.guide {
  --guide-line: #334250;
  --guide-paper: #121e2b;
  --guide-subtle: #a4b6c6;
  --guide-gutter: clamp(20px, 5vw, 64px);
  color: var(--steel);
  background: var(--night);
  border-top: 1px solid var(--guide-line);
}

.guide-inner {
  width: min(1120px, calc(100% - 2 * var(--guide-gutter)));
  margin-inline: auto;
}

.guide-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--guide-line);
  background: #0c1521;
}

.guide-nav .guide-inner,
.guide-footer .guide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.guide-nav a,
.guide-footer a {
  text-decoration: none;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
}

.guide-brand img {
  width: 28px;
  height: 28px;
  border: 1px solid #665b43;
}

.guide-links {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.75vw, 36px);
}

.guide-links a {
  border-bottom: 2px solid transparent;
  display: grid;
  place-items: center;
  min-height: 60px;
  color: #cad4dc;
  font-size: 0.9rem;
  font-weight: 530;
}

.guide-links a[aria-current='location'],
.guide-links a:hover,
.guide-links a:focus-visible,
.guide-footer a:hover {
  color: var(--gold);
}

.guide-links a[aria-current='location'] {
  border-bottom-color: var(--gold);
}

.guide-section {
  padding-block: clamp(46px, 6vw, 82px);
  border-bottom: 1px solid var(--guide-line);
  scroll-margin-top: 60px;
}

.guide h2,
.guide h3,
.quick-facts dd,
.zone-gallery figcaption strong {
  color: var(--ink);
}

.guide h2 {
  font:
    650 clamp(2.05rem, 3.8vw, 3.35rem)/1.055 system-ui,
    sans-serif;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.guide h3 {
  margin: 0 0 0.65rem;
  font:
    620 clamp(1.12rem, 1.55vw, 1.38rem)/1.24 system-ui,
    sans-serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.guide p {
  margin: 0;
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.67;
  overflow-wrap: break-word;
}

.guide p + p {
  margin-top: 0.78rem;
}

.guide p strong {
  color: var(--ink);
  font-weight: 640;
}

.guide-start {
  background: linear-gradient(180deg, #101b28, var(--night) 42%);
  padding-top: clamp(36px, 4.5vw, 63px);
}

.guide-opening,
.guide-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.guide-spread {
  grid-template-areas: 'heading illustration' 'note illustration';
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 0.85rem;
}
.guide-spread .chapter-copy {
  grid-area: heading;
  align-self: end;
}
.guide-spread .spread-note {
  grid-area: note;
  align-self: start;
}
.guide-spread :is(.tier-table, .guide-figure) {
  grid-area: illustration;
}
.spread-note h3 {
  margin-top: 0.45rem;
}
.guide-opening h2 {
  font-size: clamp(2.85rem, 5.25vw, 4.8rem);
  line-height: 0.99;
  margin: 0 0 1.25rem;
}

.guide-opening h2 span {
  display: block;
  margin-top: 0.32em;
  color: var(--gold);
  font: 400 0.72em/1 var(--pixel);
  letter-spacing: -0.065em;
}

.guide-opening header > p {
  max-width: 47ch;
}

.quick-facts {
  display: flex;
  margin: 1.4rem 0 0;
}

.quick-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.22rem;
  padding-inline: clamp(16px, 2.1vw, 30px);
  border-inline-start: 1px solid var(--guide-line);
}

.quick-facts div:first-child {
  padding-inline-start: 0;
  border: 0;
}

.quick-facts div:last-child {
  padding-inline-end: 0;
}

.quick-facts dt,
.guide figcaption {
  color: var(--guide-subtle);
  font-size: 0.85rem;
  line-height: 1.5;
}

.quick-facts dd {
  margin: 0;
  font: 1.38rem/1.1 var(--pixel);
}

.quick-facts dd span {
  font-size: 0.72em;
}

.guide-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #3b4d5b;
  border-radius: 6px;
  background: var(--guide-paper);
}

.guide-figure picture,
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.prompt-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--guide-line);
  color: #c4d1dc;
  font: 0.75rem/1.25 var(--pixel);
}

.prompt-hud span:last-child {
  color: var(--gold);
}

.guide-figure figcaption {
  border-top: 1px solid var(--guide-line);
  padding: 0.9rem 1.15rem 1rem;
}

.how-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 7vw, 108px);
  align-items: start;
  border-top: 1px solid var(--guide-line);
  padding-top: clamp(30px, 3.1vw, 45px);
  margin-top: clamp(34px, 4.5vw, 63px);
}

.screen-tip {
  border-left: 2px solid #8d7954;
  padding-left: clamp(18px, 2vw, 28px);
}

.screen-tip h3 {
  font-size: 1.1rem;
}
.screen-tip p {
  color: #afc0cf;
}

.outcomes,
.report-notes,
.zone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.1vw, 44px);
}

.outcomes,
.report-notes {
  margin-top: clamp(30px, 3.5vw, 50px);
  border-top: 1px solid var(--guide-line);
  padding-top: clamp(24px, 2.8vw, 40px);
}

.outcomes h3,
.report-notes h3 {
  font-size: 1.08rem;
}

.outcomes p,
.report-notes p,
.zone-stop p {
  font-size: 0.975rem;
}

.chapter-copy h2 {
  margin-bottom: 1.2rem;
}
.chapter-copy p + h3 {
  margin-top: 1.4rem;
}

.tier-table {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 6px;
  background: var(--guide-paper);
}

.tier-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.tier-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.tier-table th,
.tier-table td {
  text-align: right;
  padding: 0.7rem clamp(12px, 1.6vw, 23px);
}

.tier-table th:first-child {
  text-align: left;
}
.tier-table thead {
  background: #1b2a39;
}
.tier-table thead th {
  color: #bfd0de;
  font: 0.77rem/1.4 var(--pixel);
}

.tier-table tbody tr {
  border-top: 1px solid #2c3a47;
}
.tier-table tbody th {
  color: var(--ink);
  font-weight: 540;
}
.tier-table tbody tr:last-child {
  background: #22272a;
}
.tier-table tbody tr:last-child > * {
  color: var(--gold);
}

.scoring-example {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 45px);
  margin-top: clamp(28px, 3.5vw, 50px);
  padding-top: clamp(22px, 2.7vw, 36px);
  border-top: 1px solid var(--guide-line);
}

.scoring-example p {
  max-width: 70ch;
}
.guide .scoring-example strong {
  color: var(--gold);
}

.map-section {
  background: #111d2a;
}
.map-section h2 {
  margin-bottom: clamp(25px, 3vw, 42px);
}
.zone-gallery {
  gap: clamp(16px, 2vw, 32px);
}

.zone-stop figure {
  margin: 0 0 0.8rem;
}

.zone-image {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 216;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  image-rendering: pixelated;
}

.zone-image.street {
  object-position: left;
}
.zone-image.air {
  object-position: center;
}
.zone-image.space {
  object-position: right;
}

.zone-stop figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.85rem;
}

.zone-stop figcaption strong {
  font-size: 1.08rem;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.zone-stop figcaption span {
  color: var(--gold);
  white-space: nowrap;
  font: 0.85rem/1.3 var(--pixel);
}

.report-figure {
  align-self: center;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.questions {
  border-top: 1px solid var(--guide-line);
}
.questions details {
  border-bottom: 1px solid var(--guide-line);
}
.questions summary {
  position: relative;
  list-style: none;
  padding: 1.1rem 2.1rem 1.1rem 0;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 565;
  line-height: 1.4;
}

.questions summary::-webkit-details-marker {
  display: none;
}
.questions summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 5px;
  width: 8px;
  height: 8px;
  border: solid var(--gold);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
}

.questions details[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.questions p {
  padding-bottom: 1.15rem;
}

.guide-footer .guide-inner {
  padding-block: 1.4rem 2rem;
  font-size: 0.85rem;
}

.guide-footer .guide-inner > span {
  color: var(--guide-subtle);
}
.guide-footer a {
  color: var(--ink);
}
.guide-footer a span {
  margin-left: 0.4em;
  color: var(--gold);
}

@media (max-width: 900px) {
  .guide-opening,
  .guide-spread {
    gap: 28px;
    grid-template-columns: 1fr 1fr;
  }
  .zone-stop figcaption {
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
  }
  .outcomes,
  .report-notes {
    gap: 20px;
  }
}

@media (max-width: 740px) {
  .guide-section {
    scroll-margin-top: 48px;
  }
  .guide-nav .guide-inner {
    justify-content: center;
  }
  .guide-brand {
    display: none;
  }
  .guide-links {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  .guide-links a {
    min-height: 48px;
    font-size: 0.875rem;
  }

  .guide-opening,
  .guide-spread,
  .how-notes,
  .scoring-example,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .guide-spread {
    grid-template-areas: 'heading' 'illustration' 'note';
  }
  .spread-note h3 {
    margin-top: 0;
  }
  .wide-break {
    display: none;
  }
  .guide-start {
    padding-top: 32px;
  }
  .guide-opening h2 {
    margin-bottom: 0.9rem;
  }
  .quick-facts {
    margin-top: 1rem;
  }
  .quick-facts div {
    padding-inline: 18px;
  }
  .quick-facts dt {
    font-size: 0.78rem;
  }
  .quick-facts dd {
    font-size: 1.15rem;
  }

  .how-notes {
    margin-top: 32px;
    padding-top: 27px;
  }
  .screen-tip {
    padding-left: 15px;
  }
  .outcomes,
  .report-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .guide p {
    line-height: 1.57;
  }
  .guide h3 {
    margin-bottom: 0.45rem;
  }
  .tier-table th,
  .tier-table td {
    padding: 0.68rem 0.75rem;
  }
  .scoring-example {
    gap: 0.3rem;
  }
  .zone-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
  .zone-stop figure {
    display: grid;
    grid-template-columns: minmax(92px, 37%) 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 0.65rem;
  }
  .zone-stop figcaption {
    display: grid;
    justify-content: start;
    gap: 0.25rem;
    margin: 0;
  }
  .zone-stop + .zone-stop {
    padding-top: 1.25rem;
    border-top: 1px solid var(--guide-line);
  }
  .guide-footer .guide-inner {
    gap: 12px;
  }
}
