:root {
  --green: #009f4d;
  --green-deep: #046b34;
  --green-ink: #034d27;
  --gold: #e8cd30;
  --gold-deep: #b89612;
  --ink: #323648;
  --muted: #5c6570;
  --line: #e4e7ee;
  --wash: #f3faf6;
  --paper: #ffffff;
  --footer: #191818;
  --header-h: 78px;
  --shadow: 0 16px 40px rgba(25, 24, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Thasadith", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}
img, svg { max-width: 100%; height: auto; }
.diagram svg, figure svg { width: 100%; height: auto; display: block; }
.brand-mark, .navbar-brand svg { width: 34px; height: 34px; flex: 0 0 auto; }
html, body { max-width: 100%; overflow-x: clip; }
a { color: var(--green-deep); }
a:hover { color: var(--green-ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1rem; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: .5rem; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  position: fixed;
  background: var(--green-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 1.35rem;
  text-decoration: none;
}
.navbar-brand:hover { color: var(--gold); }
.brand-mark { width: 34px; height: 34px; color: var(--gold); flex: 0 0 auto; }
.navbar-nav .nav-link {
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .7rem .75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active { color: var(--gold); }
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .55);
  min-width: 44px;
  min-height: 44px;
  color: #fff;
  background: transparent;
}
.menu-label { font-weight: 700; letter-spacing: .08em; font-size: .95rem; }
@media (min-width: 992px) {
  .navbar-toggler { display: none; }
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(232, 205, 48, .45); }
.site-header .navbar-toggler-icon {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
@media (max-width: 991.98px) {
  .site-header { background: var(--green-deep); position: sticky; }
  .site-header .navbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
  }
  .navbar-brand { max-width: 100%; min-width: 0; }
  .navbar-collapse { grid-column: 1 / -1; }
  .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: var(--gold);
    color: var(--ink);
    border: 0;
    z-index: 5;
  }
  .navbar-toggler::before { content: "Menu"; font-weight: 700; letter-spacing: .06em; }
  .site-header .navbar-toggler-icon { display: none; }
  .navbar-collapse {
    background: var(--green-deep);
    padding: .4rem .2rem 1rem;
    flex-basis: 100%;
  }
}

.hero-slider {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  overflow: hidden;
  outline: none;
}
.slide {
  grid-area: 1 / 1;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  text-align: center;
  position: relative;
  background-color: #02331a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.08);
}
.hero-slider.is-live .slide {
  transition: opacity 1s ease, transform 1.25s ease, visibility 1s;
}
.slide.is-leaving {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: scale(1);
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
  transform: scale(1);
}
.slide .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 33, 16, .55), rgba(2, 33, 16, .42) 40%, rgba(2, 33, 16, .62));
}
.slide { min-width: 0; }
.slide .container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding-top: 6.5rem;
  padding-bottom: 8rem;
  opacity: 0;
  transform: translateY(18px);
}
.hero-slider.is-live .slide .container { transition: opacity .45s ease, transform .45s ease; }
.slide.is-active .container { opacity: 1; transform: none; }
.hero-slider.is-live .slide.is-active .container { transition: opacity .75s ease .32s, transform .75s ease .32s; }
.hero-slider.is-live .slide.is-leaving .container {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .4s ease, transform .4s ease;
}
.hero-lead, .slide :is(h1, h2), .page-hero h1, .page-hero p { overflow-wrap: break-word; }
.eyebrow, .hero-kicker {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: .8rem;
}
.slide :is(h1, h2) {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: min(16ch, 100%);
  margin: 0 auto .9rem;
  letter-spacing: .01em;
}
.hero-lead {
  max-width: min(38rem, 100%);
  margin: 0 auto 1.5rem;
  color: #f4f7f5;
  font-size: 1.15rem;
}
.btn-line, .btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.4rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
}
.btn-line { color: #fff; border-color: #ddd; background: transparent; }
.btn-line:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.btn-fill { color: #fff; background: var(--green); border-color: var(--green); }
.btn-fill:hover { color: #fff; background: var(--green-deep); }
.btn-line.dark, .btn-ghost-dark {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.2);
  color: #fff;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-prev:hover, .slider-next:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5.5rem;
  display: flex;
  justify-content: center;
  gap: .5rem;
  z-index: 4;
}
.slider-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
}
.slider-dots button.is-active { background: var(--gold); border-color: var(--gold); }

.question-strip { margin-top: -4.2rem; position: relative; z-index: 3; }
.q-card {
  background: #fff;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.1rem 1.25rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
  display: block;
}
.q-card:hover { color: inherit; transform: translateY(-3px); }
.q-card span {
  display: block;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .75rem;
  margin-bottom: .35rem;
}
.q-card strong { display: block; font-size: 1.15rem; line-height: 1.35; }

/* Keep main columns on the same track as .page-hero .container */
.container,
.page-hero .container,
.site-header .container,
.site-footer .container {
  max-width: 1140px;
}
.section-pad { padding: 4.5rem 0; }
.heading-block { text-align: center; margin-bottom: 2rem; }
.heading-block h2, .page-hero h1 { letter-spacing: .03em; }
.gold-rule {
  width: 64px;
  height: 4px;
  background: var(--gold);
  margin: .8rem auto 0;
  border: 0;
}
.intro-copy { font-size: 1.12rem; }
.intro-panel {
  background: var(--wash);
  border-left: 6px solid var(--green);
  padding: 1.4rem 1.3rem;
  height: 100%;
}
.intro-panel ol { margin: 0; padding-left: 1.1rem; }
.intro-panel li { margin: .45rem 0; }

.green-band { background: var(--green); color: #fff; }
.green-band h2, .green-band p { color: #fff; }
.stat-num {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
}
.band-list { list-style: none; padding: 0; margin: 0; }
.band-list li {
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: #f3fff7;
}

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip, .chip:hover {
  border: 2px solid var(--green);
  background: #fff;
  color: var(--green-deep);
  border-radius: 999px;
  min-height: 44px;
  padding: .4rem 1rem;
  font-weight: 700;
}
.chip.is-active, .chip.is-active:hover { background: var(--green); color: #fff; }
.filter-input {
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: .4rem .8rem;
  width: 100%;
  color: var(--ink);
}
.filter-input:focus { outline: 3px solid rgba(232, 205, 48, .55); border-color: var(--gold-deep); }
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.shelf-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.shelf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shelf-card.is-hidden { display: none; }
.shelf-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex: 0 0 auto;
}
.shelf-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 14px 28px rgba(4, 107, 52, .12);
}
.shelf-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .15rem;
  min-width: 0;
  padding: .95rem 1rem 1.1rem;
  flex: 1;
}
.shelf-card .idx {
  color: var(--gold-deep);
  font-weight: 700;
  line-height: 1;
  font-size: 1.35rem;
  letter-spacing: .04em;
}
.shelf-card small {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  font-size: .7rem;
}
.shelf-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.3;
  margin: .2rem 0 .25rem;
}
.shelf-card em {
  font-style: normal;
  color: var(--muted);
  font-size: .95rem;
}

.page-hero {
  color: #fff;
  padding: 8.5rem 0 3.2rem;
  position: relative;
  background-color: #034d27;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2, 33, 16, .78) 0%, rgba(2, 33, 16, .46) 62%, rgba(2, 33, 16, .28) 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3.1rem); max-width: min(18ch, 100%); }
.page-hero p { color: #f4fff8; max-width: min(40rem, 100%); margin-bottom: 0; }

.heat-band { padding: 2.4rem 0; }
.heat-band:nth-child(even) { background: var(--wash); }
.heat-band .num {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--gold-deep);
  font-weight: 700;
  line-height: 1;
}
.heat-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .3rem 0 .6rem; }

.mag-lead {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: min(16ch, 100%);
}
.drop-note {
  font-size: 1.2rem;
  border-top: 4px solid var(--gold);
  padding-top: 1rem;
}
.mag-card {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 0;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}
.mag-card:hover { color: var(--green-deep); }
.mag-card b { display: block; color: var(--gold-deep); font-size: 1.4rem; }

.spine { position: relative; margin-left: .4rem; padding-left: 2rem; }
.spine:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
}
.spine-item { position: relative; padding: 0 0 2.2rem; }
.spine-item:before {
  content: "";
  position: absolute;
  left: -2rem;
  top: .35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--green-deep);
}
.spine-item h2 { font-size: 1.55rem; }
.spine-item a { text-decoration: none; }

.ledger { background: #191818; color: #f4f4f2; }
.ledger a { color: var(--gold); }
.ledger-row {
  display: grid;
  grid-template-columns: 6rem 1.4fr .8fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  color: #fff;
}
.ledger-row:hover { color: var(--gold); }
.ledger-row span { color: var(--gold); font-weight: 700; }
.ledger-row em { font-style: normal; color: #c8c8c4; }

.drawer-essay {
  font-size: 1.12rem;
}
.drawer-essay h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 .8rem; }
.drawer-essay p { margin-bottom: 1rem; }
.drawer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.drawer-pills li {
  border: 1px solid var(--line);
  background: #fff;
  padding: .45rem .85rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--green-deep);
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.scene-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 1.15rem 1.1rem 1.25rem;
}
.scene-tile h3 { font-size: 1.2rem; margin: 0 0 .55rem; }
.scene-tile p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.note-index { display: grid; gap: 0; }
.note-index-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.note-index-row:hover { color: var(--green-deep); }
.note-index-row .idx {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}
.note-index-row h3 { font-size: 1.28rem; margin: 0 0 .35rem; }
.note-index-row p { margin: 0; color: var(--muted); }
.note-index-row .go {
  align-self: center;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.bound-box {
  background: #191818;
  color: #f4f4f2;
  padding: 1.6rem 1.4rem;
}
.bound-box h2 { color: #fff; margin-top: 0; font-size: 1.4rem; }
.bound-box p { color: #e8e8e4; margin-bottom: .75rem; }
.bound-box p:last-child { margin-bottom: 0; }
.drawer-cross-section {
  background: #191818;
  color: #f4f4f2;
  padding: 3.4rem 0 3.6rem;
}
.drawer-cross-section .heading-block h2 { color: #fff; }
.drawer-cross-section .quiet { color: #b8b8b2; }
.drawer-cross-section .gold-rule {
  background: var(--gold);
  border: 0;
  height: 3px;
  width: 4.5rem;
  margin-left: auto;
  margin-right: auto;
}
.drawer-cross {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  margin-top: .4rem;
}
.drawer-cross a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .55rem;
  text-decoration: none;
  color: #fff;
  background: #222;
  padding: 1.45rem 1.3rem 1.35rem;
  min-height: 12.5rem;
  transition: background .2s ease, color .2s ease;
}
.drawer-cross a:hover {
  background: var(--green-deep);
  color: #fff;
}
.drawer-cross .mark {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.drawer-cross strong {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  margin: 0;
  color: inherit;
}
.drawer-cross span {
  color: #c9c9c3;
  font-size: 1.02rem;
  line-height: 1.55;
}
.drawer-cross a:hover span { color: #f3fff7; }
.drawer-cross .go {
  margin-top: .35rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
}
.drawer-cross a:hover .go { color: #fff; }
.drawer-cross-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.drawer-cross-section .btn-fill {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.drawer-cross-section .btn-fill:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.drawer-cross-section .btn-ghost-dark {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.drawer-cross-section .btn-ghost-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.pair-card {
  background: var(--wash);
  padding: 1.2rem 1.15rem;
}
.pair-card h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.pair-card p { margin: 0; }
.about-more { background: #fff; }
.about-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.about-steps-stack {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}
.heading-block.text-lg-start .gold-rule { margin-left: 0; }
.about-step {
  border-top: 3px solid var(--gold);
  padding-top: .85rem;
}
.about-step .n {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.3rem;
}
.about-step h3 { font-size: 1.1rem; margin: .35rem 0 .4rem; }
.about-step p { margin: 0; color: var(--muted); font-size: .98rem; }
.about-drawers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.about-drawer-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--wash);
  padding: 1.2rem 1.15rem;
  border-top: 4px solid var(--green);
}
.about-drawer-card:hover { color: var(--green-deep); }
.about-drawer-card strong { display: block; font-size: 1.25rem; margin-bottom: .35rem; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.about-panel {
  background-color: var(--green-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 7.5rem 8vw 3rem;
  position: relative;
}
.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 49, 27, .76);
}
.about-panel > * { position: relative; z-index: 1; }
.about-panel h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.about-copy { padding: 7.5rem 8vw 3rem; background: var(--wash); }
.creed { font-size: 1.25rem; color: #f7fff9; }

.criterion {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.criterion .n {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.contact-card {
  background: #fff;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
  padding: 1.6rem 1.3rem 1.5rem;
}
label { font-weight: 700; display: block; margin-bottom: .3rem; }
.form-control, .form-select {
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 4px;
}
textarea.form-control { min-height: 140px; }
.field-error { color: #8d1d1d; font-size: .92rem; min-height: 1.2rem; }
.form-note { background: var(--wash); padding: .8rem 1rem; }

.layout-about .site-header,
.layout-privacy .site-header { background: var(--green-deep); }
.layout-privacy .site-header { position: sticky; }
.layout-privacy .page-hero { padding-top: 2.6rem; }
.layout-contact .page-hero { padding-bottom: 6rem; }
.row > [class*="col-"] { min-width: 0; }
.privacy-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); }
.jump-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.jump-list a { font-weight: 700; }

.prose { font-size: 1.12rem; }
.prose h2 { font-size: 1.55rem; margin: 2rem 0 .7rem; }
.prose p { margin-bottom: 1rem; }
.diagram {
  background: var(--wash);
  padding: 1rem;
  margin: 0 0 1.2rem;
}
.diagram figcaption, .quiet, .note-photo figcaption { color: var(--muted); font-size: .98rem; }
.note-photo {
  margin: 0 0 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.note-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.note-photo figcaption { padding: .75rem 1rem 1rem; margin: 0; }
.limit-note {
  border-left: 6px solid var(--gold);
  background: #fffdf3;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.limit-note h2 { margin-top: 0; font-size: 1.25rem; }
.terms dt { color: var(--green-deep); font-weight: 700; margin-top: .7rem; }
.sources { padding-left: 1.1rem; }
.sources li { margin: .4rem 0; }
.outline {
  position: sticky;
  top: 96px;
  background: var(--wash);
  padding: 1rem;
}
.outline ol { margin: 0; padding-left: 1.1rem; }
.outline a { text-decoration: none; font-weight: 700; }
.wrong, .right-col { padding: 1.1rem; height: 100%; }
.wrong { background: #191818; color: #f4f4f2; }
.wrong h2, .wrong p { color: #fff; }
.right-col { background: var(--wash); }
.claim-panel {
  background: var(--gold);
  color: var(--ink);
  padding: 1.5rem 1.3rem;
  height: 100%;
}
.claim-panel h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.station {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  margin: 0 0 1.4rem;
}
.station .n {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.calc {
  background: var(--wash);
  border-top: 4px solid var(--green);
  padding: 1rem;
  margin: 1rem 0 1.4rem;
}
.calc-out {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-deep);
  min-height: 2.4rem;
}
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-row button { min-height: 48px; }
.demo-result {
  margin-top: .8rem;
  padding: .8rem 1rem;
  background: #fff;
  border-left: 4px solid var(--gold);
}
.mirror-stage { background: var(--wash); padding: 1rem; }

.site-footer { background: var(--footer); color: #d9d9d6; }
.footer-brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-brand:hover { color: var(--gold); }
.footer-lead { max-width: 36rem; margin: 1rem auto; color: #c8c8c4; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; }
.footer-links a, .footer-mail a { color: #eee; text-decoration: none; font-weight: 700; }
.footer-links a:hover, .footer-mail a:hover { color: var(--gold); }
.footer-copy { color: #c8c8c4; font-size: .92rem; max-width: 44rem; margin: 1rem auto 0; }
#toTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}
#toTop.is-on { opacity: 1; pointer-events: auto; }
#toTop:hover { background: var(--gold); color: var(--ink); }
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 50;
  background: transparent;
}
.read-progress span { display: block; height: 100%; width: 0; background: var(--gold); }

@media (max-width: 991.98px) {
  .about-split { grid-template-columns: 1fr; }
  .about-panel, .about-copy { padding: 6.5rem 1.25rem 2rem; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-row { grid-template-columns: 3rem 1fr; }
  .ledger-row em, .ledger-row .open { grid-column: 2; }
  .slider-prev, .slider-next { display: none; }
  .slider-dots { bottom: 1rem; }
  .question-strip { margin-top: 0; }
  .outline { position: static; margin-bottom: 1rem; }
  .scene-grid, .about-steps, .about-steps-stack { grid-template-columns: 1fr; }
  .drawer-cross { grid-template-columns: 1fr; }
  .drawer-cross a { min-height: 0; }
  .pair-grid, .about-drawers { grid-template-columns: 1fr; }
  .note-index-row { grid-template-columns: 3rem 1fr; }
  .note-index-row .go { grid-column: 2; }
}
@media (max-width: 575.98px) {
  .criterion, .station { grid-template-columns: 1fr; }
  .hero-slider, .slide { min-height: 88vh; }
  .page-hero { padding-top: 6.5rem; }
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .slide :is(h1, h2), .hero-lead, .page-hero h1, .page-hero p {
    max-width: calc(100vw - 3rem);
  }
  .slide :is(h1, h2) { font-size: 1.7rem; }
  .hero-lead { font-size: 1.02rem; }
  .slide :is(h1, h2), .hero-lead { margin-left: auto; margin-right: auto; }
  .navbar-toggler { padding: .4rem .65rem; }
  .shelf-grid { grid-template-columns: 1fr; }
  .shelf-card strong { font-size: 1.05rem; }
  .wrong, .right-col, .diagram, .prose { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .q-card, .shelf-card { transition: none; }
  .hero-slider .slide,
  .hero-slider .slide .container { transition: none; transform: none; }
}
@media print {
  .site-header, #toTop, .read-progress, .slider-prev, .slider-next, .slider-dots, .site-footer, .chip-row, .filter-input { display: none !important; }
  .slide { display: none !important; min-height: 0; }
  .slide.is-active { display: block !important; color: #000; background: #fff; }
  .slide :is(h1, h2), .hero-lead { color: #000; }
  a { text-decoration: underline; }
}
