/* Nightfall FAQ & Support (v2.08) - page-only styles. Linked only from faq.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;
  }
}

/* ---------- FAQ: quick answers ---------- */
.fq-content {
  padding-bottom: 96px;
}

.fq-block {
  padding-top: 40px;
}

.fq-block .title-rule {
  padding-bottom: 8px;
}

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

.fq-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  min-height: 148px;
  padding: 26px 28px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
}

.fq-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.fq-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fq-q {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 29px;
}

.fq-a {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 26px;
}

/* ---------- Need help: 3 gold buttons in one row (768px and up) ---------- */
.fq-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
}

.fq-help-btn {
  display: flex;
  width: 100%;
  height: 75px;
  gap: 12px;
  padding-inline: 48px;
  color: #241708;
  font-size: 20px;
  font-weight: 800;
  line-height: 25px;
}

.fq-help-btn img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ---------- Status ---------- */
.fq-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}

.fq-status {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 640px;
  max-width: calc(100% - 10px);
  padding: 24px 28px;
  border: 1px solid var(--v2-line-strong);
  background: rgba(10, 10, 14, 0.88);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

.fq-status-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.fq-badge {
  padding: 2px 8px;
  background: #751912;
  color: #F6E7C0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.fq-status-label {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.fq-status-value {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 33px;
}

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

.fq-cta {
  width: 560px;
  height: 75px;
  margin-top: 28px;
  padding-inline: 72px;
  color: #F6E7C0;
  font-size: 22px;
  line-height: 28px;
}

/* ---------- iPad landscape (1024–1279) ---------- */
@media (max-width: 1279px) {
  .fq-help {
    gap: 26px;
  }

  .fq-help-btn {
    height: 72px;
    padding-inline: 40px;
    font-size: 19px;
  }
}

/* ---------- iPad portrait (768–1023) ---------- */
@media (max-width: 1023px) {
  .fq-card {
    gap: 18px;
    padding: 24px;
  }

  .fq-icon {
    width: 56px;
    height: 56px;
  }

  .fq-q {
    font-size: 20px;
    line-height: 26px;
  }

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

  /* Fix on top of the design: still one row of three */
  .fq-help {
    gap: 16px;
  }

  .fq-help-btn {
    height: 64px;
    gap: 8px;
    padding-inline: 26px;
    font-size: 15px;
    line-height: 19px;
  }

  .fq-help-btn img {
    width: 28px;
    height: 28px;
  }
}

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

  .fq-block {
    padding-top: 32px;
  }

  .fq-card {
    gap: 16px;
    padding: 20px 18px;
  }

  .fq-icon {
    width: 52px;
    height: 52px;
  }

  .fq-q {
    font-size: 19px;
    line-height: 24px;
  }

  .fq-a {
    font-size: 17px;
    line-height: 23px;
  }

  .fq-status {
    gap: 16px;
    padding: 20px 18px;
  }

  .fq-status-value {
    font-size: 22px;
    line-height: 28px;
  }

  .fq-status-line {
    font-size: 18px;
    line-height: 23px;
  }

  .fq-icon-status {
    width: 52px;
    height: 52px;
  }

  .fq-badge {
    font-size: 15px;
    line-height: 19px;
  }

  .fq-cta {
    width: 370px;
    height: 62px;
    padding-inline: 40px;
    font-size: 16px;
    line-height: 20px;
  }
}

/* iPhone portrait: one column, help buttons stacked */
@media (max-width: 767px) {
  .fq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .fq-card {
    min-height: 0;
  }

  .fq-help {
    grid-template-columns: minmax(0, 330px);
    gap: 12px;
  }

  .fq-help-btn {
    height: 66px;
    gap: 12px;
    padding-inline: 40px;
    font-size: 20px;
    line-height: 25px;
  }

  .fq-help-btn img {
    width: 34px;
    height: 34px;
  }
}

/* Short landscape phone (844×390): 2 columns, help row of three */
@media (max-height: 500px) and (orientation: landscape) {
  .fq-grid {
    gap: 20px;
  }

  .fq-card {
    min-height: 148px;
  }

  .fq-help {
    gap: 12px;
  }

  .fq-help-btn {
    height: 60px;
    padding-inline: 26px;
    font-size: 15px;
    line-height: 19px;
  }

  .fq-help-btn img {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   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;
  }
}

/* ---------- FAQ v3 ---------- */
.fq-accs {
  display: none;
}

details.fq-acc > summary {
  gap: 12px;
}

details.fq-acc > summary img {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Below 1024: answers as accordions, first one open */
@media (max-width: 1023px), (max-height: 500px) and (orientation: landscape) {
  .fq-grid {
    display: none;
  }

  .fq-accs {
    display: block;
    padding-top: 18px;
  }

  .fq-acc .acc-body {
    padding-left: 60px;
  }
}

/* iPad portrait: accordions in a calm single column, help row of three stays */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .fq-accs {
    max-width: 680px;
  }

  details.fq-acc > summary {
    font-size: 20px;
  }

  .fq-acc .acc-body {
    font-size: 19px;
    line-height: 27px;
  }
}

/* iPhone portrait: buttons stacked full width */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .pb-crumbs {
    display: none;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    aspect-ratio: 21 / 9;
  }

  .fq-block {
    padding-top: 28px;
  }

  .fq-accs {
    padding-top: 12px;
  }

  .fq-acc .acc-body {
    padding-left: 56px;
  }

  .fq-help {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 12px;
  }

  .fq-help-btn {
    max-width: none;
    height: 58px;
    padding-inline: 24px;
    font-size: 18px;
    line-height: 22px;
  }

  .fq-help-btn img {
    width: 30px;
    height: 30px;
  }

  .fq-status-wrap {
    align-items: stretch;
    padding-top: 12px;
  }

  .fq-status {
    width: auto;
    max-width: none;
    margin: 5px;
  }

  .fq-cta {
    width: 100%;
    max-width: none;
    height: 60px;
    margin-top: 22px;
    padding-inline: 24px;
  }
}

/* iPhone landscape: accordions in 2 columns, help row of three */
@media (max-height: 500px) and (orientation: landscape) {
  .fq-accs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px 16px;
  }

  details.acc.fq-acc + details.acc.fq-acc {
    margin-top: 0;
  }

  .fq-acc .acc-body {
    padding-left: 56px;
  }

  .fq-status-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .fq-status {
    width: auto;
    flex: 1 1 0;
    max-width: 380px;
  }

  .fq-cta {
    width: 320px;
    margin-top: 0;
    padding-inline: 24px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Fix pass 2026-11-27 (lane d): 8 quick answers on every screen (cards on
   iPad landscape + Mac, accordions below); picture tags at least 13px.
   ========================================================================== */
.pb-pic .tag {
  font-size: 13px;
  line-height: 17px;
}

@media (min-width: 1024px) and (min-height: 501px), (min-width: 1024px) and (orientation: portrait) {
  .fq-card {
    min-height: 132px;
  }
}
