/* ============================================================
   chamberlainstudent.com — homepage comp v1
   Family palette: Chamberlain navy #0C2E83 + gold #F2B134 on
   ivory #FBFAF7 — shared with chamberlaintutors /
   chamberlainpreceptor / chamberlainassignments.

   THIRD LAYOUT PRIMITIVE, distinct from both siblings:
     capellastudent  = instrument panel (cards, centred column, all-sans)
     waldenstudent   = annotated document (serif measure + hanging margin)
     chamberlain     = a STATEFUL FORK. The page has two tracks and the
                       reader picks a door; every figure re-reads itself.
   Type: Libre Franklin / IBM Plex Sans — neither used by a sibling.
   Class vocabulary shares nothing with either sibling.
   ============================================================ */

:root {
  --ivory:   #FBFAF7;
  --card:    #FFFFFF;
  --tray:    #F1F0EA;
  --mist:    #EEF2F9;

  --ink:     #10192F;
  --text:    #37415A;
  --dim:     #616C87;
  --faint:   #8590A8;

  --line:    #E3E1D8;
  --line-2:  #CFCDC1;

  --navy:      #0C2E83;
  --navy-deep: #08205E;
  --navy-lift: #1E4F9E;
  --navy-mist: #E7ECF8;

  --gold:      #8A5E0E;
  --gold-fill: #F2B134;
  --gold-soft: #FBEBC7;

  --display: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --text-face: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --pad: clamp(1.15rem, 4.5vw, 3.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text-face);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -.028em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-fill); outline-offset: 2px; }

.frame { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }

.go {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: .95rem 1.7rem; min-height: 50px;
  background: var(--navy); color: #fff; border: 0; border-radius: 2px; cursor: pointer; text-decoration: none;
  transition: background .16s ease;
}
.go:hover { background: var(--navy-deep); }
.go-gold { background: var(--gold-fill); color: var(--ink); }
.go-gold:hover { background: #E5A526; }
.go-hollow { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy-mist); }
.go-hollow:hover { background: var(--navy-mist); }

/* ============================================================
   BANNER — a solid navy bar. Neither sibling has a coloured masthead.
   ============================================================ */

.banner { background: var(--navy); color: #fff; }
.banner .frame { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .95rem; }

.crest { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.crest svg { width: 26px; height: 30px; flex: none; display: block; }
.crest .lintel { transition: transform .35s cubic-bezier(.22,1,.36,1); transform-origin: 16px 30px; }
.crest:hover .lintel { transform: scaleX(1.18); }
.crest b { font-family: var(--display); font-weight: 800; font-size: 1.14rem; letter-spacing: -.036em; }

.index { display: flex; gap: 1.7rem; }
.index a { font-size: .93rem; color: rgba(255,255,255,.82); text-decoration: none; }
.index a:hover { color: #fff; }
@media (max-width: 1040px) { .index { display: none; } }

.caveat { background: var(--navy-deep); color: rgba(255,255,255,.78); font-size: .82rem; }
.caveat .frame { padding-block: .5rem; }
.caveat b { color: #fff; font-weight: 600; }

/* ============================================================
   THE FORK — the hero is a choice, and it drives the whole page
   ============================================================ */

.fork .frame { padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem); }
.fork h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 900; letter-spacing: -.04em; max-width: 19ch; }
.fork h1 u { text-decoration: none; color: var(--navy); }
.fork-lede { margin-top: 1.35rem; font-size: 1.12rem; color: var(--text); max-width: 54ch; }

.doors { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 780px) { .doors { grid-template-columns: 1fr; } }

.door {
  text-align: left; cursor: pointer; font-family: var(--text-face);
  background: var(--card); border: 2px solid var(--line-2); border-radius: 3px;
  padding: 1.6rem 1.7rem; display: grid; gap: .5rem; align-content: start;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.door:hover { border-color: var(--navy-lift); }
.door[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-mist); box-shadow: inset 0 0 0 1px var(--navy); }
.door strong { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); }
.door span { font-size: .96rem; color: var(--dim); line-height: 1.5; }
.door em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--navy); }

/* ============================================================
   THE PILLARS — the money gap, drawn
   ============================================================ */

.reckoning { background: var(--card); border-block: 2px solid var(--ink); }
.reckoning .frame { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.reckoning h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -.036em; max-width: 22ch; }
.reckoning > .frame > p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--text); max-width: 60ch; }

.pillars { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); display: grid; grid-template-columns: 1fr 1fr auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: end; max-width: 46rem; }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr 1fr; } }

.pillar { display: grid; gap: .75rem; justify-items: start; }
.pillar .stack { width: 100%; border-radius: 2px 2px 0 0; transition: height .5s cubic-bezier(.22,1,.36,1), background .2s ease; }
.pillar[data-live="1"] .stack { background: var(--navy); }
.pillar[data-live="0"] .stack { background: var(--line-2); }
.pillar b { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -.04em; line-height: 1; }
.pillar[data-live="0"] b { color: var(--faint); }
.pillar span { font-size: .92rem; color: var(--dim); line-height: 1.45; }

.gap { display: grid; gap: .3rem; justify-items: start; padding-bottom: .5rem; border-left: 2px solid var(--gold-fill); padding-left: 1rem; }
@media (max-width: 700px) { .gap { grid-column: 1 / -1; border-left: 0; border-top: 2px solid var(--gold-fill); padding-left: 0; padding-top: .9rem; margin-top: .5rem; } }
.gap b { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.04em; color: var(--gold); line-height: 1; }
.gap span { font-size: .92rem; color: var(--text); max-width: 20ch; }

.reckoning-note { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); padding-top: 1.35rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--faint); line-height: 1.6; max-width: 72ch; }

/* ============================================================
   TRACK DETAIL — swaps with the chosen door
   ============================================================ */

.track .frame { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.track h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); font-weight: 900; letter-spacing: -.036em; }
.track-sub { margin-top: 1rem; font-size: 1.04rem; color: var(--text); max-width: 58ch; }

.spec { margin-top: clamp(2rem, 4vw, 2.75rem); border-top: 2px solid var(--ink); }
.spec-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(.9rem, 2.5vw, 2.25rem); padding-block: 1.2rem; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (max-width: 860px) { .spec-row { grid-template-columns: 1fr; gap: .4rem; } }
.spec-row dt { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em; }
.spec-row dd { margin: 0; }
.spec-row .val { font-family: var(--display); font-weight: 800; font-size: 1.06rem; color: var(--navy); }
.spec-row .why { font-size: .95rem; color: var(--dim); line-height: 1.55; }
.spec-row .why b { color: var(--gold); font-weight: 600; }

/* ============================================================
   THE COMMITMENT — two columns, theirs and yours
   ============================================================ */

.commitment { background: var(--mist); }
.commitment .frame { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.commitment h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -.036em; max-width: 20ch; }
.commitment > .frame > p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--text); max-width: 60ch; }

.halves { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 820px) { .halves { grid-template-columns: 1fr; } }
.half { background: var(--card); border-top: 4px solid var(--navy); padding: 1.75rem 1.8rem; }
.half.yours { border-top-color: var(--gold-fill); }
.half h3 { font-size: 1.22rem; font-weight: 800; }
.half > p { margin-top: .6rem; font-size: .95rem; color: var(--dim); }
.half ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.half li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .7rem; font-size: .97rem; color: var(--text); line-height: 1.55; }
.half li::before { content: "\2014"; color: var(--navy-lift); }
.half.yours li::before { color: var(--gold); }

.verbatim { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); border-left: 3px solid var(--navy); padding-left: 1.35rem; max-width: 58ch; }
.verbatim q { font-size: 1.1rem; line-height: 1.55; color: var(--ink); quotes: "\201C" "\201D"; }
.verbatim cite { display: block; margin-top: .6rem; font-style: normal; font-size: .85rem; color: var(--faint); }

/* ============================================================
   QUIZ — a single stepped question, plain and wide
   ============================================================ */

.sift .frame { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.sift h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -.036em; max-width: 20ch; }
.sift > .frame > p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--text); max-width: 58ch; }

.probe { margin-top: clamp(2rem, 4vw, 3rem); background: var(--card); border: 2px solid var(--ink); padding: clamp(1.6rem, 3.5vw, 2.5rem); }
.probe-mark { font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--navy); }
.probe-q { font-size: clamp(1.4rem, 3.2vw, 2.05rem); font-weight: 900; letter-spacing: -.036em; margin: .55rem 0 1.4rem; max-width: 24ch; }

.answers { display: grid; gap: .5rem; max-width: 42rem; }
.answers button {
  text-align: left; width: 100%; cursor: pointer; font-family: var(--text-face); font-size: 1.02rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line-2); border-radius: 2px; padding: .95rem 1.15rem; min-height: 54px;
  transition: background .15s ease, border-color .15s ease, padding-left .15s ease;
}
.answers button:hover { background: var(--navy-mist); border-color: var(--navy); padding-left: 1.5rem; }

.probe-back { margin-top: 1.3rem; background: none; border: 0; cursor: pointer; font-family: var(--text-face); font-size: .95rem; color: var(--dim); padding: 0; }
.probe-back:hover { color: var(--ink); }
.probe-back[hidden] { display: none; }

.upshot { display: none; }
.upshot[data-open="1"] { display: block; }
.upshot-band { font-family: var(--display); font-weight: 900; font-size: 1rem; color: #fff; background: var(--navy); display: inline-block; padding: .4rem .9rem; }
.upshot-band.warn { background: var(--gold-fill); color: var(--ink); }
.upshot-band.hold { background: var(--tray); color: var(--text); }
.upshot h3 { font-size: clamp(1.35rem, 3vw, 1.95rem); font-weight: 900; letter-spacing: -.036em; margin-top: 1.15rem; max-width: 25ch; }
.upshot-say { margin-top: 1rem; font-size: 1.06rem; color: var(--text); line-height: 1.6; max-width: 56ch; }
.caveats { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; max-width: 54rem; }
.caveats li { background: var(--ivory); border-left: 3px solid var(--gold-fill); padding: .95rem 1.2rem; }
.caveats b { display: block; font-family: var(--display); font-weight: 700; font-size: .98rem; }
.caveats span { display: block; margin-top: .25rem; font-size: .95rem; color: var(--dim); line-height: 1.55; }
.upshot-act { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .7rem; }

/* ============================================================
   AGAINST — a comparison strip
   ============================================================ */

.against .frame { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.against h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -.036em; }
.against > .frame > p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--text); max-width: 58ch; }
.rivals { margin-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.rivals a { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline; padding-block: 1.3rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s ease, padding-inline .15s ease; }
.rivals a:hover { background: var(--card); padding-inline: .7rem; }
.rivals strong { font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; }
.rivals span { font-size: 1rem; color: var(--text); }
.rivals i { font-style: normal; color: var(--navy); font-size: 1.2rem; }

/* ============================================================
   CLOSE-OUT — a navy spread with a gold rule
   ============================================================ */

.closeout { background: var(--navy); color: #fff; }
.closeout .frame { padding-block: clamp(3rem, 6vw, 4.75rem); }
.closeout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .closeout-grid { grid-template-columns: 1fr; } }
.closeout h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 900; letter-spacing: -.04em; max-width: 18ch; color: #fff; border-top: 5px solid var(--gold-fill); padding-top: 1.35rem; }
.closeout-say { margin-top: 1.2rem; font-size: 1.08rem; color: rgba(255,255,255,.85); max-width: 44ch; }
.closeout ul { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; max-width: 46ch; }
.closeout li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .8rem; font-size: .98rem; color: rgba(255,255,255,.82); line-height: 1.55; }
.closeout li::before { content: "\2014"; color: var(--gold-fill); }

.request { background: var(--ivory); color: var(--ink); padding: clamp(1.6rem, 3.5vw, 2.1rem); display: grid; gap: .95rem; }
.request h3 { font-size: 1.38rem; font-weight: 900; letter-spacing: -.032em; }
.slot { display: grid; gap: .3rem; }
.slot label { font-size: .9rem; font-weight: 500; color: var(--text); }
.slot input, .slot select { font-family: var(--text-face); font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 2px; padding: .8rem .9rem; width: 100%; }
.slot input::placeholder { color: var(--faint); }
.request small { font-size: .82rem; color: var(--dim); line-height: 1.5; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   BASE
   ============================================================ */

.base { background: var(--tray); border-top: 5px solid var(--gold-fill); }
.base .frame { padding-block: clamp(2.5rem, 5vw, 3.25rem) clamp(2rem, 4vw, 2.75rem); display: grid; gap: 1.75rem; }
.base-top { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: center; }
.base-crest { display: inline-flex; align-items: center; gap: .6rem; }
.base-crest svg { width: 22px; height: 26px; flex: none; display: block; }
.base-crest b { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.034em; }
.base-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.base-nav a { font-size: .93rem; color: var(--text); text-decoration: none; }
.base-nav a:hover { color: var(--navy); }
.standing { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.55rem); letter-spacing: -.03em; max-width: 34ch; line-height: 1.25; }
.standing b { color: var(--navy); }
.fineprint { font-size: .84rem; color: var(--dim); line-height: 1.6; max-width: 78ch; }
.fineprint b { color: var(--text); font-weight: 600; }
.stamp { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-top: 1.3rem; border-top: 1px solid var(--line-2); font-size: .84rem; color: var(--faint); }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } }

/* ============================================================
   NAV + DARK FOOTER + HERO FORM + LIBRARY  (added 08-23)
   ============================================================ */

.index a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--gold-fill); }
@media (max-width: 1180px) { .index { display: none; } }

/* hero enquiry — the form now leads */
.opening-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 940px) { .opening-grid { grid-template-columns: 1fr; } }

.hero-form { background: var(--card); border: 2px solid var(--ink); border-radius: 3px; padding: clamp(1.5rem, 3.5vw, 2.1rem); display: grid; gap: .85rem; }
.hero-form h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.034em; }
.hero-form > p { font-size: .96rem; color: var(--dim); line-height: 1.5; }
.hero-form .slot label { font-size: .88rem; }
.hero-form small { font-size: .82rem; color: var(--dim); line-height: 1.5; }
.hero-form .trust { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding-top: .2rem; font-size: .84rem; color: var(--dim); }
.hero-form .trust span::before { content: "\2713  "; color: var(--navy); font-weight: 700; }

/* the fork, relocated into its own section with flanking text */
.crossroads { background: var(--mist); }
.crossroads .frame { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.crossroads h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -.036em; max-width: 20ch; }
.crossroads-grid { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 2.75rem); align-items: center; }
@media (max-width: 1000px) { .crossroads-grid { grid-template-columns: 1fr; } }
.aside-note h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.024em; margin-bottom: .45rem; }
.aside-note p { font-size: .95rem; color: var(--text); line-height: 1.6; }
.aside-note p + h3 { margin-top: 1.4rem; }
.aside-note .fig { display: block; font-family: var(--display); font-weight: 900; font-size: 2rem; letter-spacing: -.04em; color: var(--navy); line-height: 1; margin-bottom: .3rem; }
.aside-note .fig.warn { color: var(--gold); }

/* library / article cards */
.library { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.shelf-item { background: var(--card); border: 1px solid var(--line-2); border-radius: 3px; padding: 1.5rem 1.6rem; display: grid; gap: .5rem; align-content: start; text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.shelf-item:hover { border-color: var(--navy); transform: translateY(-2px); }
.shelf-item b { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.026em; line-height: 1.2; }
.shelf-item span { font-size: .93rem; color: var(--dim); line-height: 1.5; }
.shelf-item i { font-style: normal; font-size: .86rem; color: var(--navy); font-weight: 600; }

/* answer box — the AEO/LLM lift */
.answer { background: var(--navy-mist); border-left: 5px solid var(--navy); padding: 1.35rem 1.6rem; margin-top: clamp(1.75rem, 3.5vw, 2.25rem); max-width: 62ch; }
.answer b { display: block; font-family: var(--display); font-weight: 800; font-size: .98rem; margin-bottom: .35rem; }
.answer p { font-size: 1.02rem; line-height: 1.6; color: var(--ink); }

/* prose for articles */
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 800; letter-spacing: -.03em; margin-top: 2.25rem; }
.prose h3 { font-size: 1.12rem; font-weight: 800; margin-top: 1.6rem; }
.prose p { margin-top: .9rem; font-size: 1.04rem; line-height: 1.68; color: var(--text); }
.prose ul { margin: .9rem 0 0; padding-left: 1.2rem; }
.prose li { margin-top: .5rem; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.prose b { color: var(--ink); }

/* team bench */
.bench { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.person { background: var(--card); border: 1px solid var(--line-2); border-radius: 3px; padding: 1.5rem 1.6rem; display: grid; gap: .4rem; align-content: start; }
.person .mono { width: 2.8rem; height: 2.8rem; border-radius: 999px; background: var(--navy-mist); color: var(--navy); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1rem; margin-bottom: .4rem; }
.person b { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.026em; }
.person em { font-style: normal; font-size: .9rem; color: var(--navy); font-weight: 600; }
.person p { font-size: .93rem; color: var(--dim); line-height: 1.55; }

/* testimonials */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: clamp(1.75rem, 3.5vw, 2.25rem); }
.chips button { font-family: var(--text-face); font-size: .92rem; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem 1rem; min-height: 42px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.chips button:hover { border-color: var(--navy); }
.chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.voices { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; }
.voice { background: var(--card); border: 1px solid var(--line-2); border-radius: 3px; padding: 1.5rem 1.6rem; display: grid; gap: .55rem; align-content: start; }
.voice .stars { color: var(--gold-fill); letter-spacing: .1em; font-size: 1rem; }
.voice q { font-size: 1rem; line-height: 1.6; color: var(--ink); quotes: "\201C" "\201D"; }
.voice footer { font-size: .89rem; color: var(--dim); }
.voice footer b { color: var(--ink); font-weight: 700; }
.voices-empty { margin-top: 1.5rem; font-size: 1rem; color: var(--dim); }

/* ---------- DARK FOOTER ---------- */
.base { background: #0A1428; border-top: 5px solid var(--gold-fill); color: #C4CCDC; }
.base .frame { padding-block: clamp(2.75rem, 5.5vw, 3.75rem) clamp(2rem, 4vw, 2.75rem); display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.base-crest b { color: #fff; }
.base-crest svg path { stroke: #fff; }

.map { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.75rem 2rem; padding-top: clamp(1.75rem, 3.5vw, 2.25rem); border-top: 1px solid #1E2C48; }
.map h4 { font-family: var(--display); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #7C8AA6; margin-bottom: .75rem; }
.map ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.map a { font-size: .94rem; color: #C4CCDC; text-decoration: none; }
.map a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.standing { color: #fff; }
.standing b { color: var(--gold-fill); }
.fineprint { color: #8E9AB4; }
.fineprint b { color: #C4CCDC; }
.stamp { border-top: 1px solid #1E2C48; color: #7C8AA6; }

/* doors stack inside the crossroads column */
.crossroads .doors { grid-template-columns: 1fr; margin-top: 0; }
.crossroads .door { border-radius: 3px; }

/* glossary table for the portal page */
.lexicon { margin-top: clamp(2rem, 4vw, 2.75rem); border-top: 2px solid var(--ink); }
.term { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: clamp(.9rem, 2.5vw, 2.25rem); padding-block: 1.15rem; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (max-width: 760px) { .term { grid-template-columns: 1fr; gap: .3rem; } }
.term dt { font-family: var(--display); font-weight: 800; font-size: 1.04rem; letter-spacing: -.022em; }
.term dd { margin: 0; font-size: .98rem; color: var(--text); line-height: 1.6; }
.term dd b { color: var(--ink); }
.term dd code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--navy-mist); color: var(--navy-deep); padding: .1em .35em; border-radius: 2px; }

/* ============================================================
   CONTACT WIDGETS — text-left, chat-right, seasonal centre modal
   ============================================================ */

.wg-left { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: grid; gap: .5rem; }
.wg-btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--text-face); font-size: .92rem; font-weight: 600; color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.1rem; min-height: 48px; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(16,25,47,.45); transition: transform .15s ease; }
.wg-btn:hover { transform: translateY(-2px); }
.wg-btn svg { width: 20px; height: 20px; flex: none; }
.wg-wa { background: #1FA855; }
.wg-sms { background: var(--navy); }
@media (max-width: 520px) { .wg-btn span { display: none; } .wg-btn { padding: .7rem; width: 48px; justify-content: center; } }
body.wg-open .wg-left { display: none; }

.wg-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 999px; background: var(--card); cursor: pointer; box-shadow: 0 10px 26px -8px rgba(16,25,47,.5); overflow: visible; }
.wg-fab svg { width: 100%; height: 100%; display: block; border-radius: 999px; }
.wg-dot { position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; border-radius: 999px; background: #1FA855; box-shadow: 0 0 0 3px var(--ivory); }
body.wg-open .wg-fab { display: none; }

.wg-panel { position: fixed; right: 16px; bottom: 16px; z-index: 95; width: min(370px, calc(100vw - 32px)); height: clamp(460px, 72vh, 580px); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 26px 60px -20px rgba(16,25,47,.5); display: none; flex-direction: column; overflow: hidden; }
.wg-panel.open { display: flex; }
.wg-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: var(--navy); color: #fff; }
.wg-head .wg-avatar svg { width: 40px; height: 40px; display: block; }
.wg-who { display: grid; line-height: 1.25; min-width: 0; }
.wg-who b { font-family: var(--display); font-weight: 800; font-size: .98rem; }
.wg-who i { font-style: normal; font-size: .78rem; color: rgba(255,255,255,.78); }
.wg-x, .wg-back { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .3rem .4rem; min-width: 44px; min-height: 44px; }
.wg-back { display: none; margin-left: 0; margin-right: -.3rem; font-size: 1.2rem; }

.wg-body { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: .55rem; align-content: start; background: var(--ivory); }
.wg-msg { max-width: 85%; font-size: .95rem; line-height: 1.5; padding: .65rem .85rem; border-radius: 12px; }
.wg-msg.them { background: var(--card); border: 1px solid var(--line-2); justify-self: start; }
.wg-msg.me { background: var(--navy); color: #fff; justify-self: end; }

.wg-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line-2); background: var(--card); }
.wg-form input { flex: 1; font-family: var(--text-face); font-size: 16px; color: var(--ink); background: var(--ivory); border: 1px solid var(--line-2); border-radius: 8px; padding: .7rem .85rem; min-width: 0; }
.wg-form button { font-family: var(--display); font-weight: 700; font-size: .92rem; color: #fff; background: var(--navy); border: 0; border-radius: 8px; padding: 0 1.1rem; min-height: 44px; cursor: pointer; }

@media (max-width: 760px) {
  .wg-panel.open { right: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
  .wg-back { display: block; }
  .wg-x { display: none; }
}

/* ---------- seasonal centre modal ---------- */
.wg-modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 1rem; background: rgba(10,20,40,.55); }
.wg-modal.show { display: grid; }
body.wg-locked { overflow: hidden; }
.wg-modal-card { position: relative; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; background: var(--ivory); border-top: 6px solid var(--gold-fill); border-radius: 4px; padding: clamp(1.5rem, 4vw, 2.1rem); box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.wg-modal-x { position: absolute; top: .4rem; right: .4rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--dim); cursor: pointer; min-width: 44px; min-height: 44px; }
.wg-modal-tag { font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.wg-modal-card h2 { margin-top: .4rem; font-size: clamp(1.35rem, 3.2vw, 1.7rem); font-weight: 900; letter-spacing: -.032em; }
.wg-modal-sub { margin-top: .7rem; font-size: .98rem; color: var(--text); line-height: 1.55; }
.wg-lead { display: grid; gap: .55rem; margin-top: 1.25rem; }
.wg-mf { font-family: var(--text-face); font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 3px; padding: .8rem .9rem; width: 100%; }
.wg-modal-fine { font-size: .82rem; color: var(--dim); line-height: 1.5; }

/* ---------- article byline ---------- */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .93rem; color: var(--dim); }
.article-meta .by { display: inline-flex; align-items: center; gap: .5rem; }
.article-meta .by a { color: var(--navy); font-weight: 600; text-decoration: none; }
.article-meta .by a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-meta .cred { color: var(--dim); }
