/* Nightfall Devlog #1 (v2.07) - page-only styles. Linked only from devlog-1.html.
   Breakpoints: see the "Version 2 foundation" header in ../site.css. */

/* ---------- Page banner (v2 inner-page header: title + line + framed real screenshot) ----------
   Same block in news.css, devlog.css and faq.css (each page links only its own file). */
.pb {
  background:
    radial-gradient(60% 80% at 75% 40%, rgba(138, 110, 60, 0.18) 0%, rgba(12, 11, 10, 0) 70%),
    linear-gradient(180deg, #12100D 0%, #0C0B0A 100%);
}

.pb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 360px;
  padding-top: 84px; /* clears the crest that hangs below the desk nav */
}

.pb-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 640px;
}

.pb-crumbs {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.pb-crumbs a {
  display: inline-block;
  margin-block: -11px;
  padding-block: 11px;
  color: var(--v2-dim);
}

.pb-crumbs [aria-current] {
  color: var(--v2-muted);
}

.pb-title {
  margin: 0;
  color: var(--v2-text-hero);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  line-height: 62px;
}

.pb-line {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 23px;
  line-height: 28px;
}

.pb-pic {
  position: relative;
  flex: 0 0 auto;
  width: 460px;
  height: 240px;
  margin: 0 6px 0 0;
  border: 1px solid var(--v2-line-strong);
  background: #050506;
  box-shadow: 0 0 0 5px #0A0908, 0 0 0 6px #4A3B22;
}

.pb-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .pb-crumbs a:hover {
    color: var(--v2-gold-light);
  }
}

@media (max-width: 1279px) {
  .pb-copy {
    max-width: 520px;
  }

  .pb-pic {
    width: 420px;
    height: 220px;
  }
}

/* iPad portrait: slim bar, banner sits right under it */
@media (max-width: 1023px) {
  .pb-inner {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .pb-pic {
    width: 330px;
    height: 186px;
  }

  /* Devlog + FAQ: title block, then the picture full width */
  .pb-stack .pb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 40px;
  }

  .pb-stack .pb-pic {
    width: auto;
    height: 330px;
    margin: 0 6px;
  }
}

/* iPhone portrait */
@media (max-width: 767px) {
  .pb-inner,
  .pb-stack .pb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .pb-copy {
    gap: 12px;
  }

  .pb-title {
    font-size: 44px;
    line-height: 52px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: auto;
    height: 200px;
    margin: 0 6px 6px;
  }
}

/* Short landscape phone: compact row so real content shows on the first screen */
@media (max-height: 500px) and (orientation: landscape) {
  .pb-inner,
  .pb-stack .pb-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .pb-copy {
    gap: 6px;
  }

  .pb-title {
    font-size: 40px;
    line-height: 46px;
  }

  .pb-line {
    font-size: 21px;
    line-height: 26px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: 280px;
    height: 136px;
    margin: 6px;
  }
}

/* ---------- Title rule with the gold end diamond (reuses .title-rule from site.css) ---------- */
.title-rule.has-diamond {
  gap: 18px;
}

.title-rule.has-diamond::after {
  height: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='4' y='4' width='8' height='8' transform='rotate(45 8 8)' fill='%23C9A55C'/%3E%3C/svg%3E") right center / 16px 16px no-repeat,
    linear-gradient(90deg, var(--v2-line-strong), rgba(138, 110, 60, 0)) left center / calc(100% - 34px) 1px no-repeat;
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .title-rule.has-diamond {
    gap: 14px;
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .title-rule.has-diamond {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ---------- Devlog article ---------- */
.dl-content {
  padding-bottom: 96px;
}

.dl-article {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
  max-width: calc(760px + var(--pad-l) + var(--pad-r));
  margin-inline: auto;
  padding-top: 56px;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

.dl-meta {
  align-self: center;
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 22px;
  text-align: center;
}

.dl-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-section-wide {
  gap: 14px;
}

.dl-heading {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 30px;
}

.dl-copy {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 31px;
}

/* Before → after */
.dl-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.dl-shot {
  flex: 0 1 340px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
}

.dl-shot-new {
  margin: 5px;
  border-color: var(--v2-line-strong);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

.dl-shot img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.dl-shot figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px 12px;
  text-align: center;
}

.dl-shot-title {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.dl-shot-label {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 19px;
}

.dl-arrow {
  flex: 0 0 auto;
  color: var(--v2-gold);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
}

.dl-arrow-down {
  display: none;
}

/* Pull quote */
.dl-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 0 4px;
}

.dl-quote::before {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 110, 60, 0) 0%, var(--v2-gold) 50%, rgba(138, 110, 60, 0) 100%);
}

.dl-quote p {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-body);
  font-size: 31px;
  font-style: italic;
  line-height: 40px;
  text-align: center;
}

.dl-cta {
  align-self: center;
  width: 560px;
  height: 75px;
  padding-inline: 72px;
  color: #F6E7C0;
  font-size: 22px;
  line-height: 28px;
}

/* ---------- Read next ---------- */
.dl-next {
  padding-top: 40px;
}

.dl-next .title-rule {
  padding-bottom: 8px;
}

.dl-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
}

.dl-card {
  min-width: 0;
}

.dl-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
}

.dl-card-pic {
  position: relative;
  flex: 0 0 auto;
  height: 210px;
  overflow: hidden;
  background: #050506;
}

.dl-card-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-card-pic .tag {
  top: 12px;
  right: 12px;
}

.dl-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
}

.dl-card-title {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.dl-card-text {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
}

.dl-card-date {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

@media (hover: hover) {
  .dl-card-link:hover {
    border-color: var(--v2-gold);
  }

  .dl-card-link:hover .dl-card-title {
    color: var(--v2-gold-pale);
  }
}

/* ---------- iPad portrait (768–1023) ---------- */
@media (max-width: 1023px) {
  .dl-article {
    max-width: none;
  }

  .dl-compare {
    gap: 24px;
  }

  .dl-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Phones (portrait + short landscape) ---------- */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .dl-content {
    padding-bottom: 56px;
  }

  .dl-article {
    gap: 28px;
    padding-top: 30px;
  }

  .dl-meta {
    font-size: 16px;
  }

  .dl-heading {
    font-size: 20px;
    line-height: 26px;
  }

  .dl-copy {
    font-size: 19px;
    line-height: 28px;
  }

  .dl-quote p {
    font-size: 24px;
    line-height: 32px;
  }

  .dl-cta {
    width: 370px;
    height: 62px;
    padding-inline: 40px;
    font-size: 18px;
    line-height: 22px;
  }

  .dl-next {
    padding-top: 32px;
  }

  .dl-related {
    gap: 18px;
  }

  .dl-card-pic .cat-tag {
    font-size: 15px;
    line-height: 18px;
  }
}

/* iPhone portrait: one column, shots stacked with a down arrow */
@media (max-width: 767px) {
  .dl-compare {
    flex-direction: column;
    gap: 6px;
  }

  .dl-shot {
    flex: 0 0 auto;
    width: 100%;
  }

  .dl-shot-new {
    width: calc(100% - 10px);
  }

  .dl-shot img {
    height: 200px;
  }

  .dl-arrow-right {
    display: none;
  }

  .dl-arrow-down {
    display: block;
  }

  .dl-related {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl-card-pic {
    height: 190px;
  }

  .dl-card-title {
    font-size: 21px;
    line-height: 27px;
  }

  .dl-card-text {
    font-size: 18px;
    line-height: 23px;
  }
}

/* Short landscape phone (844×390) */
@media (max-height: 500px) and (orientation: landscape) {
  .dl-shot {
    flex-basis: 330px;
  }

  .dl-shot img {
    height: 190px;
  }

  .dl-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dl-card:last-child {
    grid-column: auto;
  }

  .dl-card-pic {
    height: 150px;
  }

  .dl-card-body {
    padding: 16px 16px 20px;
  }

  .dl-card-title {
    font-size: 18px;
    line-height: 24px;
  }

  .dl-card-text {
    font-size: 16px;
    line-height: 21px;
  }

  .dl-card-date {
    font-size: 15px;
  }
}

/* ==========================================================================
   Version 3 "native to every screen" (lane site-v3-d). Mac (>= 1280) keeps
   the approved look; new there only: the banner picture opens the lightbox.
   Queries copied from the "Version 3" header in ../site.css:
     IPAD PORTRAIT  (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait)
     PHONE PORTRAIT (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait)
     SHORT landscape (max-height: 500px) and (orientation: landscape)  (last, wins)
   ========================================================================== */

/* ---------- Page banner: status slot + lightbox link (same in news/devlog/faq.css) ---------- */
/* The slot box disappears, so the injected .hero-status is a plain flex item of .pb-copy
   (and adds no gap on screens where it is hidden). */
.pb-status {
  display: contents;
}

.pb-pic-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pb .hero-status {
  color: var(--v2-muted);
}

/* iPad portrait: one compact row under the 64px bar — words left, 16:9 picture right */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .pb-inner,
  .pb-stack .pb-inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .pb-copy {
    flex: 1 1 0;
    gap: 10px;
  }

  .pb-title {
    font-size: 48px;
    line-height: 56px;
  }

  .pb-line {
    font-size: 21px;
    line-height: 27px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    flex: 0 0 auto;
    width: min(380px, 46%);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 6px;
  }
}

/* iPhone portrait: status line, title, one line, then a full-width 16:9 picture */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .pb-inner,
  .pb-stack .pb-inner {
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .pb-copy {
    gap: 8px;
  }

  .pb-crumbs {
    font-size: 16px;
    line-height: 20px;
  }

  .pb-title {
    font-size: 40px;
    line-height: 46px;
  }

  .pb-line {
    font-size: 19px;
    line-height: 25px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 5px 5px;
  }
}

/* iPhone landscape: words left, picture right, all inside 390 − 44px */
@media (max-height: 500px) and (orientation: landscape) {
  .pb-inner,
  .pb-stack .pb-inner {
    gap: 28px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pb-copy {
    flex: 1 1 0;
  }

  .pb-title {
    font-size: 36px;
    line-height: 42px;
  }

  .pb-line {
    font-size: 19px;
    line-height: 25px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: 320px;
    height: 180px;
  }
}

/* ---------- Devlog v3 ---------- */
/* Before/after slider (below 1280): the right label is a real build too, so it gets the plain tag look. */
.dl-ba {
  margin-top: 6px;
}

.dl-ba .ba-label-after {
  border-color: var(--v2-line-strong);
}

.dl-ba .ba-caption {
  color: var(--v2-muted);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
}

/* iPad (768–1279): 60–70 characters per line */
@media (max-width: 1279px) {
  .dl-article {
    max-width: calc(660px + var(--pad-l) + var(--pad-r));
  }

  .dl-copy {
    font-size: 21px;
    line-height: 32px;
  }
}

/* iPad landscape keeps a 3-up grid; the row below only scrolls on smaller screens. */
@media (min-width: 1024px) {
  .dl-related.swipe {
    overflow: visible;
  }
}

/* iPad portrait + phones: "Read next" is a swipe row */
@media (max-width: 1023px), (max-height: 500px) and (orientation: landscape) {
  .dl-article {
    max-width: calc(660px + var(--pad-l) + var(--pad-r));
  }

  .dl-related {
    display: flex;
    gap: var(--swipe-gap);
    padding: 18px 0 4px;
  }

  .dl-card:last-child {
    grid-column: auto;
  }

  .dl-card-pic {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .dl-article {
    gap: 32px;
    padding-top: 44px;
  }

  .dl-heading {
    font-size: 24px;
    line-height: 30px;
  }
}

/* Phones: comfortable reading, edge-to-edge swipe row */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .dl-related {
    margin-left: calc(-1 * var(--pad-l));
    margin-right: calc(-1 * var(--pad-r));
    padding-left: var(--pad-l);
    padding-right: var(--pad-r);
  }

  .dl-card-body {
    gap: 6px;
    padding: 16px 16px 18px;
  }

  .dl-cta {
    width: 100%;
    max-width: 420px;
    height: 60px;
    padding-inline: 24px;
    font-size: 17px;
  }
}

@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .dl-article {
    gap: 26px;
    padding-top: 26px;
  }

  .dl-meta {
    align-self: flex-start;
    text-align: left;
    font-size: 15px;
  }

  .dl-heading {
    font-size: 21px;
    line-height: 27px;
  }

  .dl-copy {
    font-size: 19px;
    line-height: 30px;
  }

  .dl-quote p {
    font-size: 23px;
    line-height: 31px;
  }

  .dl-card-title {
    font-size: 19px;
    line-height: 25px;
  }

  .dl-card-text {
    font-size: 17px;
    line-height: 22px;
  }

  .dl-card-date {
    font-size: 15px;
  }
}

/* iPhone landscape: keep the measure readable on the wide, short screen */
@media (max-height: 500px) and (orientation: landscape) {
  .dl-article {
    max-width: calc(580px + var(--pad-l) + var(--pad-r));
    gap: 24px;
    padding-top: 24px;
  }

  .dl-copy {
    font-size: 19px;
    line-height: 29px;
  }

  /* 16:9 at 440px wide = 248px tall, so the whole slider fits under the bar + chips */
  .dl-ba {
    width: 100%;
    max-width: 440px;
    align-self: center;
  }

  .dl-card-pic {
    height: 120px;
    aspect-ratio: auto;
  }
}

/* ==========================================================================
   Fix pass 2026-11-27 (lane d): unwritten posts are non-link "coming soon"
   cards; tags and slider labels are at least 13px; the pull quote is credited.
   ========================================================================== */
.pb-pic .tag,
.dl-card-pic .tag,
.dl-ba .ba-label {
  font-size: 13px;
  line-height: 17px;
}

.dl-quote-by {
  color: var(--v2-muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 20px;
}

.dl-soon {
  cursor: default;
}

@media (hover: hover) {
  .dl-card-link.dl-soon:hover {
    border-color: var(--v2-line);
  }

  .dl-card-link.dl-soon:hover .dl-card-title {
    color: var(--v2-text);
  }
}

.dl-soon-label {
  color: var(--v2-muted);
  font-style: italic;
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .dl-quote-by {
    font-size: 15px;
    line-height: 19px;
  }
}

/* Only one card in "Read next" for now */
.dl-related:has(> .dl-card:only-child) { display: block; overflow: visible; }
.dl-related > .dl-card:only-child { max-width: 420px; }
