/* Charlotte Urban Debate League
   ------------------------------------------------------------
   Tokens are the whole palette. Black and the brand blue come
   straight from the CUDL logo; the grey is cool, not cream.   */

:root {
  --black: #000000;
  --blue: #4A68DA;
  --blue-deep: #2F49B8;
  --blue-tint: #E9EDFB;
  --blue-light: #8EA2EC; /* kickers and links on black: 8.5:1 */
  --fog: #EEF0F4;
  --slate: #2A2F3A;
  --mute: #5D6472;
  --line: #D8DCE4;
  --white: #FFFFFF;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(2.75rem, 6vw, 5rem);
  --t-1: clamp(2.25rem, 4.4vw, 3.5rem);
  --t-2: clamp(1.75rem, 3vw, 2.375rem);
  --t-3: 1.5rem;
  --t-4: 1.1875rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --sp: clamp(4rem, 9vw, 7.5rem);
  --sp-half: clamp(2rem, 4.5vw, 3.75rem);
  --container: 1180px;
  --narrow: 760px;
  --radius: 6px;
  --shadow: 0 10px 30px -18px rgba(0,0,0,0.35);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--black); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--black); margin: 0 0 0.5em; letter-spacing: -0.012em; line-height: 1.1; }
h1 { font-size: var(--t-1); }
h2 { font-size: var(--t-2); }
h3 { font-size: var(--t-3); line-height: 1.2; }
h4 { font-family: var(--sans); font-weight: 600; font-size: var(--t-4); letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; color: var(--black); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.lede { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; color: var(--slate); max-width: 34em; }
.small { font-size: var(--t-small); color: var(--mute); }
.measure { max-width: 42em; }
.measure--wide { max-width: 52em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--white); padding: 0.6rem 1rem; z-index: 200; text-decoration: none; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--narrow); }
.container--wide { max-width: 1320px; }

.section { padding: var(--sp) 0; }
.section--tight { padding: var(--sp-half) 0; }
.section--fog { background: var(--fog); }
.section--dark { background: var(--black); color: rgba(255,255,255,0.86); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
.section--dark a { color: var(--white); }
.section--dark a:hover { color: var(--blue-light); }
.section--dark .lede { color: rgba(255,255,255,0.86); }
.section--dark .small { color: rgba(255,255,255,0.65); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h2, .section--blue h3, .section--blue strong { color: var(--white); }
.section--blue a { color: var(--white); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: end; margin-bottom: var(--sp-half); }
.section-head h2 { margin: 0; }
.section-head h2::before { content: ""; display: block; width: 40px; height: 3px; background: var(--blue); margin-bottom: 1.1rem; }
.section-head p { margin: 0; max-width: 36em; }
.section-head--stack { display: block; }
.section-head--stack h2 { margin-bottom: 0.75rem; }

/* Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; line-height: 1;
  padding: 0.95rem 1.4rem; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--fog); border-color: var(--fog); color: var(--black); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--sm { padding: 0.65rem 1rem; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.text-link { font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; color: var(--blue-deep); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--black); }
.section--dark .text-link { color: var(--white); }
.section--dark .btn--white { color: var(--black); }
.section--dark .btn--white:hover { color: var(--black); background: var(--fog); }
.section--dark .btn--outline-white:hover { color: var(--black); }
.section--dark .text-link:hover { color: var(--blue-light); }

/* Header ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1.5rem; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--white); }
.nav__brand img { height: 46px; width: auto; }
.nav__brand span { font-family: var(--serif); font-size: 1rem; line-height: 1.15; max-width: 9em; color: rgba(255,255,255,0.9); }
.nav__links { display: flex; align-items: center; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: rgba(255,255,255,0.86); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__links a:hover { color: var(--white); border-bottom-color: var(--blue); }
.nav__links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--blue); }
.nav__cta { margin-left: 0.5rem; }
.nav__links .btn { color: var(--white); border-bottom: 0; padding: 0.65rem 1rem; }
.nav__links .btn:hover { color: var(--white); }
.nav__toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); border-radius: var(--radius); padding: 0.55rem 0.8rem; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; align-items: center; gap: 0.5rem; }
.nav__toggle svg { width: 18px; height: 18px; }

/* Page hero (inner pages) ------------------------------------ */
.page-hero { background: var(--black); color: var(--white); padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -6%; bottom: -12%; width: min(560px, 46vw); height: 60%; background: url("../assets/logo/skyline-blue.png") no-repeat right bottom / contain; opacity: 0.12; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: var(--t-1); max-width: 12em; margin-bottom: 1rem; }
.page-hero .lede { color: rgba(255,255,255,0.86); }
.page-hero a { color: var(--white); }
.page-hero a:hover { color: var(--blue-light); }
.page-hero .small { color: rgba(255,255,255,0.72); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; }
.page-hero__grid img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.page-hero__kicker { font-family: var(--serif); font-style: italic; color: var(--blue-light); font-size: 1.125rem; margin-bottom: 0.75rem; display: block; }

/* Home hero --------------------------------------------------- */
.hero { background: var(--black); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; position: relative; }
.hero__skyline { position: absolute; right: -2%; bottom: -4%; width: min(640px, 48vw); opacity: 0.14; pointer-events: none; z-index: 0; }
.hero__grid { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__kicker { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--blue-light); margin-bottom: 1.25rem; }
.hero h1 { color: var(--white); font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 9.5em; }
.hero h1 .line { display: block; }
.hero .lede { max-width: 30em; margin-bottom: 2rem; color: rgba(255,255,255,0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1rem; align-items: center; }
.hero__actions .text-link { color: var(--white); }
.hero__actions .text-link:hover { color: var(--blue-light); }
.hero__media { position: relative; display: grid; gap: 1rem; }
.hero__media figure { margin: 0; position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 16 / 9; }
.hero__media figure:nth-child(2) { margin-left: 14%; margin-top: -0.25rem; }
.hero__media figure:nth-child(2) img { aspect-ratio: 4 / 3; }
.hero__media figcaption { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.5rem; }
.hero__rule { width: 64px; height: 4px; background: var(--blue); margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line, .hero .lede, .hero__actions, .hero__kicker, .hero__rule { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .hero__kicker { animation-delay: 0.05s; }
  .hero__rule { animation-delay: 0.1s; }
  .hero h1 .line:nth-child(1) { animation-delay: 0.15s; }
  .hero h1 .line:nth-child(2) { animation-delay: 0.25s; }
  .hero h1 .line:nth-child(3) { animation-delay: 0.35s; }
  .hero .lede { animation-delay: 0.5s; }
  .hero__actions { animation-delay: 0.62s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Stats ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 2rem 1.5rem 1.75rem; border-right: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; }
.stats__num { font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: 1; color: var(--black); display: block; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.stats__label { font-size: 0.9375rem; color: var(--mute); max-width: 16em; line-height: 1.4; display: block; }
.section--dark .stats { border-color: rgba(255,255,255,0.15); }
.section--dark .stats > div { border-color: rgba(255,255,255,0.15); }
.section--dark .stats__num { color: var(--white); }
.section--dark .stats__label { color: rgba(255,255,255,0.7); }
.stats__note { font-size: 0.8125rem; color: var(--mute); margin: 0.9rem 0 0; max-width: 60em; }
.section--dark .stats__note { color: rgba(255,255,255,0.55); }

/* The opportunity chain --------------------------------------- */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; position: relative; counter-reset: chain; }
.chain::before { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 2px; background: var(--line); }
.chain::after { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 2px; background: var(--blue); transform-origin: left center; transform: scaleX(0); transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s; }
.chain.is-in::after { transform: scaleX(1); }
.chain li { position: relative; padding-top: 3.25rem; counter-increment: chain; margin: 0; }
.chain li::before { content: counter(chain); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--mute); font-family: var(--serif); font-size: 1.125rem; display: flex; align-items: center; justify-content: center; z-index: 1; transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease; }
.chain.is-in li::before { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chain.is-in li:nth-child(1)::before { transition-delay: 0.1s; }
.chain.is-in li:nth-child(2)::before { transition-delay: 0.4s; }
.chain.is-in li:nth-child(3)::before { transition-delay: 0.7s; }
.chain.is-in li:nth-child(4)::before { transition-delay: 1.0s; }
.chain.is-in li:nth-child(5)::before { transition-delay: 1.3s; }
.chain h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.4rem; line-height: 1.3; }
.chain p { font-size: 0.9375rem; color: var(--mute); margin: 0; }
.section--dark .chain::before { background: rgba(255,255,255,0.18); }
.section--dark .chain li::before { background: var(--black); border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }
.section--dark .chain p { color: rgba(255,255,255,0.7); }
.section--dark .chain.is-in li::before { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .chain::after { transition: none; transform: scaleX(1); }
  .chain li::before { transition: none; background: var(--blue); border-color: var(--blue); color: var(--white); }
}

/* Timeline (about) -------------------------------------------- */
.timeline { list-style: none; margin: var(--sp-half) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 2.25rem; position: relative; }
.timeline li { margin: 0; position: relative; padding-top: 0.25rem; }
.timeline li::before { content: ""; position: absolute; top: -2.25rem; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); transform: translateY(-50%); box-shadow: 0 0 0 4px var(--black); }
.timeline__year { font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--blue-light); display: block; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.timeline h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.4rem; }
.timeline p { font-size: 0.9375rem; color: rgba(255,255,255,0.72); margin: 0; }

/* Table of contents (articles) -------------------------------- */
.toc { font-family: var(--sans); font-size: 0.9375rem; background: var(--fog); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.5rem 1.2rem; margin: 0 0 2.25rem; }
.toc__label { display: block; font-weight: 600; font-size: 0.8125rem; color: var(--mute); margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.25em; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.3rem; break-inside: avoid; }
.toc a { color: var(--black); text-decoration: none; }
.toc a:hover { color: var(--blue-deep); text-decoration: underline; }

/* Research page ----------------------------------------------- */
.verify-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.verify-strip div { display: flex; flex-direction: column; gap: 0.2rem; }
.verify-strip strong { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--black); letter-spacing: -0.02em; }
.verify-strip span { font-size: 0.875rem; color: var(--mute); }
.study-list { border-top: 1px solid var(--line); }
.study { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.study__tag { display: flex; flex-direction: column; gap: 0.25rem; }
.study__city { font-family: var(--sans); font-weight: 600; font-size: 0.875rem; color: var(--blue-deep); }
.study__year { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--black); letter-spacing: -0.02em; }
.study h3 { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 0.4rem; }
.study__authors { font-size: 0.875rem; color: var(--mute); margin-bottom: 1rem; }
.study dl { margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.study dl > div { margin: 0; }
.study dt { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; color: var(--black); margin-bottom: 0.25rem; }
.study dd { margin: 0; font-size: 0.9375rem; color: var(--slate); }

/* Split (image + text) ---------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split + .split { margin-top: var(--sp); }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; max-height: 600px; border-radius: var(--radius); object-fit: cover; }
.split__media figure { margin: 0; }
.split__media figcaption { font-size: 0.8125rem; color: var(--mute); margin-top: 0.6rem; }
.split__body h2, .split__body h3 { margin-bottom: 1rem; }
.split__body .icon { margin-bottom: 1.25rem; }
.split__body ul { margin: 1rem 0 1.5rem; padding-left: 1.1em; }

.icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue-tint); color: var(--blue-deep); }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.section--dark .icon { background: rgba(74,104,218,0.2); color: var(--white); }

/* Feature grid (programs summary, get involved) --------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 2rem 1.75rem 2.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.75rem; }
.feature .icon { margin-bottom: 0.5rem; }
.feature h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; margin: 0; }
.feature p { margin: 0; font-size: 0.9875rem; color: var(--mute); flex: 1; }
.feature a.text-link { align-self: flex-start; margin-top: 0.5rem; }
.feature-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section--dark .feature-grid, .section--dark .feature { border-color: rgba(255,255,255,0.15); }
.section--dark .feature p { color: rgba(255,255,255,0.72); }

/* Opportunity gap comparison ---------------------------------- */
.gap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gap > div { padding: 2rem; }
.gap > div:first-child { border-right: 1px solid var(--line); background: var(--fog); }
.gap h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-bottom: 1rem; }
.gap ul { list-style: none; padding: 0; margin: 0; }
.gap li { padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: 0.9875rem; margin: 0; }
.gap li:first-child { border-top: 0; }
.gap--dark { border-color: rgba(255,255,255,0.15); }
.gap--dark > div:first-child { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }
.gap--dark li { border-color: rgba(255,255,255,0.12); }

/* Research / evidence list ------------------------------------ */
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.evidence article { border-top: 3px solid var(--blue); padding-top: 1.25rem; }
.evidence h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.6rem; }
.evidence p { font-size: 0.9875rem; margin-bottom: 0.75rem; }
.evidence cite { display: block; font-style: normal; font-size: 0.8125rem; color: var(--mute); line-height: 1.45; }
.evidence cite a { color: var(--mute); }
.section--dark .evidence cite, .section--dark .evidence cite a { color: rgba(255,255,255,0.6); }

/* Partners ---------------------------------------------------- */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.partners a { display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; min-height: 120px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; }
.partners img { max-height: 46px; width: auto; max-width: 78%; filter: grayscale(1); opacity: 0.72; transition: filter 0.2s ease, opacity 0.2s ease; }
.partners a:hover img, .partners a:focus-visible img { filter: none; opacity: 1; }
.partners--plain a { border: 0; background: transparent; padding: 0.5rem; min-height: 90px; }
.grant { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem 1.75rem; border-left: 4px solid var(--blue); background: var(--fog); border-radius: 0 var(--radius) var(--radius) 0; }
.grant strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.375rem; margin-bottom: 0.25rem; }
.grant p { margin: 0; font-size: 0.9875rem; }

/* Photo grid -------------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 1rem; }
.photo-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.25rem 1rem 0.85rem; font-size: 0.8125rem; color: var(--white); background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0)); }
.photo-grid .span-7 { grid-column: span 7; grid-row: span 2; }
.photo-grid .span-5 { grid-column: span 5; }
.photo-grid .span-4 { grid-column: span 4; }
.photo-grid .span-8 { grid-column: span 8; }
.photo-grid .span-6 { grid-column: span 6; }
.photo-grid .tall { grid-row: span 2; }

/* Pathway (competitions) -------------------------------------- */
.pathway { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: path; }
.pathway > div { position: relative; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); counter-increment: path; }
.pathway > div::before { content: counter(path); font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--blue); display: block; margin-bottom: 0.75rem; }
.pathway h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; }
.pathway p { font-size: 0.9875rem; margin: 0; color: var(--mute); }

/* Tabs / filters ---------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tabs button { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.6rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--slate); cursor: pointer; }
.tabs button:hover { border-color: var(--black); }
.tabs button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }

/* Resource catalogue ------------------------------------------ */
.resource-list { border-top: 1px solid var(--line); }
.resource { display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.resource[hidden] { display: none; }
.resource__format { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; color: var(--blue-deep); line-height: 1.4; }
.resource__format small { display: block; font-weight: 400; color: var(--mute); margin-top: 0.25rem; }
.resource__title { font-family: var(--serif); font-size: 1.375rem; margin: 0 0 0.35rem; }
.resource__title a { color: var(--black); text-decoration: none; }
.resource__title a:hover { color: var(--blue-deep); text-decoration: underline; }
.resource p { margin: 0 0 0.5rem; font-size: 0.9875rem; }
.resource__meta { font-size: 0.8125rem; color: var(--mute); }
.resource__action { justify-self: end; text-align: right; }
.topic-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--white); border-top: 3px solid var(--blue); }
.topic-card .resource__format { margin-bottom: 0.6rem; }
.topic-card blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; color: var(--black); }
.topic-card p { font-size: 0.9375rem; margin-bottom: 1rem; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

/* Blog -------------------------------------------------------- */
.post-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; padding-bottom: var(--sp-half); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-half); }
.post-featured img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.post-featured h2 { font-size: var(--t-2); }
.post-featured h2 a { color: var(--black); text-decoration: none; }
.post-featured h2 a:hover { color: var(--blue-deep); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.post-card { display: flex; flex-direction: column; gap: 0.6rem; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.5rem; }
.post-card h3 { font-size: 1.375rem; margin: 0; }
.post-card h3 a { color: var(--black); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-deep); text-decoration: underline; }
.post-card p { margin: 0; font-size: 0.9375rem; color: var(--mute); }
.post-card > a { display: block; overflow: hidden; border-radius: var(--radius); }
.post-card > a img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.post-card:hover > a img { transform: scale(1.03); }
.post-card__meta { font-family: var(--sans); font-size: 0.8125rem; color: var(--mute); }
.post-card__meta time { color: var(--slate); font-weight: 500; }
.archive-year { margin-top: var(--sp-half); }
.archive-year__label { font-family: var(--serif); font-weight: 500; font-size: 2.5rem; letter-spacing: -0.02em; color: var(--black); margin: 0 0 1.75rem; display: flex; align-items: center; gap: 1.25rem; }
.archive-year__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; color: var(--blue-deep); }
.kicker--muted { color: var(--mute); font-weight: 500; }

/* Article ----------------------------------------------------- */
.article-hero { background: var(--black); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.article-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.25rem); max-width: 16em; margin: 0.75rem 0 1rem; }
.article-hero .lede { color: rgba(255,255,255,0.86); font-size: 1.25rem; }
.article-hero .kicker { color: var(--blue-light); }
.article-hero .byline { color: rgba(255,255,255,0.7); font-size: 0.9375rem; margin: 0; }
.article { padding: var(--sp-half) 0 var(--sp); }
.article .prose { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.65; color: var(--slate); }
.article .prose h2 { font-size: 1.85rem; margin-top: 2.25rem; }
.article .prose h3 { font-size: 1.375rem; margin-top: 1.75rem; }
.article .prose ul, .article .prose ol { margin-bottom: 1.25rem; }
.article .prose li { margin-bottom: 0.5rem; }
.article .prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.9375rem; margin: 1.5rem 0; }
.article .prose th, .article .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article .prose th { font-weight: 600; color: var(--black); border-bottom: 2px solid var(--black); }
.article .prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--blue); font-style: italic; }
.callout { background: var(--fog); border-left: 4px solid var(--blue); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0; font-family: var(--sans); font-size: 0.9875rem; }
.callout strong { display: block; margin-bottom: 0.25rem; }
.callout p:last-child { margin-bottom: 0; }
.refs { font-family: var(--sans); font-size: 0.875rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; }
.refs h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.refs ol { padding-left: 1.25em; }
.refs li { margin-bottom: 0.5rem; }
.article-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; font-family: var(--sans); }

/* CTA band ---------------------------------------------------- */
.cta-band { background: var(--blue); color: var(--white); padding: var(--sp-half) 0; }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { margin: 0; color: var(--white); max-width: 34em; }
.cta-band .btn--white:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.cta-band .btn--outline-white:hover { background: var(--black); border-color: var(--black); }

/* Get involved ------------------------------------------------ */
.involve { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.involve article { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; background: var(--white); }
.involve h2 { font-size: 1.75rem; margin: 0; }
.involve p { margin: 0; }
.involve ul { margin: 0.25rem 0 0.5rem; padding-left: 1.1em; font-size: 0.9875rem; }
.involve .btn { align-self: flex-start; margin-top: 0.75rem; }

/* Forms ------------------------------------------------------- */
.form-panel[hidden] { display: none; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--black); }
.field label small { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--slate); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,104,218,0.2); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 0.8125rem; color: var(--mute); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__note { font-size: 0.8125rem; color: var(--mute); margin: 0; }
.form__success { grid-column: 1 / -1; padding: 1.25rem 1.5rem; background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.form__success[hidden] { display: none; }
.contact-aside { background: var(--fog); border-radius: var(--radius); padding: 2rem; }
.contact-aside h2 { font-size: 1.5rem; }
.contact-aside .phone { font-family: var(--serif); font-size: 1.75rem; color: var(--black); text-decoration: none; display: inline-block; margin: 0.25rem 0 1rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }

/* Footer ------------------------------------------------------ */
.site-footer { background: var(--black); color: rgba(255,255,255,0.75); position: relative; overflow: hidden; }
.site-footer__skyline { align-self: end; justify-self: end; width: 100%; max-width: 300px; opacity: 0.85; pointer-events: none; margin-bottom: -0.5rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.75fr)) minmax(0, 0.9fr); gap: 2.5rem; padding: var(--sp-half) 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer__brand img { height: 84px; width: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 22em; font-size: 0.9375rem; }
.site-footer h3 { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; color: var(--white); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; font-size: 0.8125rem; color: rgba(255,255,255,0.55); }
.site-footer__bottom a { text-decoration: underline; }
.site-footer__phone { font-family: var(--serif); font-size: 1.375rem; color: var(--white) !important; }

/* Utilities --------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.pull { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.3; color: var(--black); max-width: 24em; margin: 0; }
.section--dark .pull { color: var(--white); }
.pull span { color: var(--blue); }

/* Responsive -------------------------------------------------- */
@media (max-width: 1120px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--black); flex-direction: column; align-items: flex-start; padding: 2rem 24px; gap: 0.25rem; display: none; overflow-y: auto; }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 1.375rem; font-family: var(--serif); font-weight: 500; padding: 0.6rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav__links a[aria-current="page"], .nav__links a:hover { border-bottom-color: rgba(255,255,255,0.1); color: var(--blue-light); }
  .nav__cta { margin: 1.5rem 0 0; }
  .nav__cta .btn { width: auto; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero__grid, .page-hero__grid, .split, .split--flip, .post-featured, .cta-band__grid, .contact-grid, .gap, .section-head { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split + .split { margin-top: var(--sp-half); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 1.5rem 1rem; }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section--dark .stats > div:nth-child(-n+2) { border-color: rgba(255,255,255,0.15); }
  .stats > div:first-child { padding-left: 1rem; }
  .chain { grid-template-columns: 1fr; gap: 0; }
  .chain::before, .chain::after { left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; transform-origin: top center; transform: scaleY(0); }
  .chain.is-in::after { transform: scaleY(1); }
  .chain li { padding: 0 0 1.75rem 3.75rem; }
  .feature-grid, .feature-grid--2, .evidence, .pathway, .post-grid, .grid-3, .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .involve, .grid-2 { grid-template-columns: 1fr; }
  .gap > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .resource { grid-template-columns: 1fr; gap: 0.6rem; }
  .resource__action { justify-self: start; text-align: left; margin-top: 0.5rem; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__skyline { display: none; }
  .timeline, .verify-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { border-top: 0; padding-top: 0; gap: 1.5rem; }
  .timeline li { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,0.15); }
  .timeline li::before { top: 0.9rem; left: -6px; }
  .study { grid-template-columns: 1fr; gap: 1rem; }
  .study__tag { flex-direction: row; align-items: baseline; gap: 0.75rem; }
  .study dl { grid-template-columns: 1fr; }
  .hero__skyline { width: 70vw; opacity: 0.1; }
  .photo-grid { grid-auto-rows: 170px; }
  .photo-grid .span-7, .photo-grid .span-5, .photo-grid .span-4, .photo-grid .span-8, .photo-grid .span-6 { grid-column: span 6; }
  .hero__media figure:nth-child(2) { margin-left: 10%; }
}
@media (max-width: 600px) {
  :root { --nav-h: 66px; }
  .nav__brand img { height: 40px; }
  .nav__brand span { display: none; }
  .feature-grid, .feature-grid--2, .evidence, .pathway, .post-grid, .grid-3, .topics, .form { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .partners a { min-height: 96px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .timeline, .verify-strip { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .archive-year__label { font-size: 2rem; }
  .photo-grid { grid-auto-rows: 150px; }
  .photo-grid .span-7, .photo-grid .span-5, .photo-grid .span-4, .photo-grid .span-8, .photo-grid .span-6 { grid-column: span 12; }
  .photo-grid .span-7, .photo-grid .tall { grid-row: span 2; }
  .hero { padding-top: 2.5rem; }
  .hero__media figure:nth-child(2) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .article .prose { font-size: 1.0625rem; }
  .gap > div { padding: 1.5rem; }
  .involve article { padding: 1.5rem; }
  .btn { width: 100%; }
  .btn-row .btn, .hero__actions .btn, .form__actions .btn, .cta-band .btn { width: 100%; }
  .tabs button { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   September 2026 additions: announcement bar, sign-up hooks,
   practice tools, formats, links, updates, contact pages
   ============================================================ */

/* Announcement bar */
.announce { background: var(--blue-tint); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.announce[hidden] { display: none; }
.announce__inner { display: flex; align-items: center; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.announce__tag { font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.announce__text { flex: 1; color: var(--slate); }
.announce__text a { font-weight: 600; }
.announce__date { color: var(--mute); font-size: 0.8125rem; margin-left: 0.5rem; white-space: nowrap; }
.announce__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--mute); cursor: pointer; padding: 0.2rem 0.4rem; }
.announce__close:hover { color: var(--black); }

/* Newsletter hook */
.hook { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; background: var(--blue-tint); border-radius: var(--radius); padding: 1.75rem 2rem; margin-top: 2rem; }
.hook__text h3 { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 0.35rem; }
.hook__text p { margin: 0; font-size: 0.9375rem; color: var(--slate); }
.hook__form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.hook__form input[type="email"] { flex: 1 1 200px; font: inherit; font-size: 1rem; padding: 0.85rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.hook__form input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,104,218,0.2); }
.hook__form .form__success { flex-basis: 100%; }
.section--dark .hook { background: rgba(255,255,255,0.06); }
.section--dark .hook__text p { color: rgba(255,255,255,0.75); }

/* Join cards */
.join { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.join__card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--slate); transition: border-color 0.2s ease, transform 0.2s ease; }
.join__card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.join__card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; margin: 0; }
.join__card p { margin: 0; font-size: 0.9375rem; color: var(--mute); flex: 1; }
.join__card .text-link { align-self: flex-start; }

/* Tool grid and tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tool-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--slate); transition: border-color 0.2s ease, transform 0.2s ease; }
.tool:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin: 0; color: var(--black); }
.tool p { margin: 0; font-size: 0.9rem; color: var(--mute); flex: 1; }
.tool .small { color: var(--blue-deep); font-weight: 600; }
.tool-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; font-size: 0.9375rem; }
.tool-nav a { color: var(--slate); }

/* Tool panels */
.tool-panel { background: var(--fog); border-radius: var(--radius); padding: 2rem; }
.tool-panel__controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.tool-panel__controls label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; }
.tool-panel__controls select, .tool-panel__controls input { font: inherit; font-size: 1rem; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.timer { text-align: center; padding: 1rem 0 1.5rem; }
.timer__title { font-family: var(--serif); font-size: 1.5rem; color: var(--black); margin-bottom: 0.25rem; }
.timer__display { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: clamp(4.5rem, 14vw, 9rem); line-height: 1; color: var(--black); margin: 0.25rem 0 0.75rem; letter-spacing: -0.03em; transition: color 0.3s ease; }
.timer__display.is-warning { color: var(--blue-deep); }
.timer__display.is-over { color: #B3261E; }
.timer__display--sm { font-size: 2rem; margin: 0; }
.timer .btn-row { justify-content: center; margin-top: 0.5rem; }
.prep { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; justify-content: center; margin: 0 0 1.5rem; }
.prep__side { font: inherit; font-size: 0.9375rem; padding: 0.6rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; display: inline-flex; gap: 0.6rem; align-items: center; }
.prep__side strong { font-family: var(--serif); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.prep__side.is-running { border-color: var(--blue); background: var(--blue-tint); }
.timer__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.4rem; }
.timer__list li { padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 0.875rem; cursor: pointer; }
.timer__list li.is-current { border-color: var(--blue); background: var(--blue-tint); font-weight: 600; }
.prompt { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; color: var(--black); min-height: 3.5em; margin: 0 0 1.25rem; }
.prompt.is-empty { color: var(--mute); }
.flashcard { display: block; width: 100%; min-height: 240px; position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; text-align: center; padding: 2rem; margin-bottom: 1.25rem; perspective: 1000px; }
.flashcard:hover { border-color: var(--blue); }
.flashcard__front, .flashcard__back { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; padding: 2rem; }
.flashcard__front { font-family: var(--serif); font-size: 2rem; color: var(--black); }
.flashcard__back { font-size: 1.125rem; line-height: 1.5; color: var(--slate); opacity: 0; }
.flashcard.is-flipped .flashcard__front { opacity: 0; }
.flashcard.is-flipped .flashcard__back { opacity: 1; }
.weigh { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.weigh__side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; min-height: 120px; }
.weigh__side p { margin: 0.4rem 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--black); line-height: 1.35; }
.quiz__q { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: var(--white); }
.quiz__q legend { font-weight: 600; color: var(--black); padding: 0 0.4rem; }
.quiz__q label { display: block; padding: 0.35rem 0; cursor: pointer; }
.quiz__q.is-right { border-color: #2E7D6B; }
.quiz__q.is-wrong { border-color: #B3261E; }
.quiz__answer { margin: 0.5rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--black); }

/* Flow sheets */
.flow-page { margin-bottom: 2.5rem; }
.flow-page h2 { font-size: 1.375rem; }
.flow { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.8125rem; }
.flow th, .flow td { border: 1px solid var(--slate); padding: 0.4rem 0.5rem; vertical-align: top; }
.flow thead th { background: var(--fog); font-weight: 600; text-align: left; }
.flow tbody th { text-align: left; font-weight: 600; width: 16%; background: var(--white); }
.flow td { height: 88px; }
@media print {
  .site-header, .announce, .site-footer, .tool-nav, .no-print, .cta-band { display: none !important; }
  body.page-flow-sheets .article-hero { display: none !important; }
  .flow-page { page-break-after: always; margin: 0; }
  .flow-page:last-child { page-break-after: auto; }
  .flow td { height: 120px; }
  body { font-size: 11pt; }
  .container { max-width: none; padding: 0; }
}

/* Tracker and updates */
.tracker { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.tracker__table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tracker__table th, .tracker__table td { text-align: left; padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tracker__table thead th { font-size: 0.8125rem; font-weight: 600; color: var(--mute); border-bottom: 2px solid var(--black); }
.tracker__table tbody th { font-weight: 600; color: var(--black); white-space: nowrap; }
.tracker__side { background: var(--fog); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.tracker__side h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; }
.tracker__side h3 + h3, .tracker__side ul + h3 { margin-top: 1.5rem; }
.tracker__sched { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.9rem; }
.tracker__sched li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.tracker__sched li:first-child { border-top: 0; }
.section--dark .tracker__side { background: rgba(255,255,255,0.06); }
.updates-list { list-style: none; padding: 0; margin: 0; }
.updates-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.updates-list li:last-child { border-bottom: 1px solid var(--line); }
.updates-list time { font-family: var(--serif); font-size: 1.0625rem; color: var(--black); }
.updates-list a { font-weight: 600; color: var(--black); text-decoration: none; }
.updates-list a:hover { color: var(--blue-deep); text-decoration: underline; }
.updates-list p { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--mute); }
.updates-list--compact li { padding: 0.85rem 0; }
.updates-list--compact p { display: none; }
.updates-strip__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.updates-strip__head h2 { font-size: 1.5rem; margin: 0; }

/* Formats */
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.formats-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
.formats-table th, .formats-table td { text-align: left; padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.formats-table thead th { font-size: 0.8125rem; font-weight: 600; color: var(--mute); border-bottom: 2px solid var(--black); }
.formats-table tbody th { font-weight: 600; color: var(--black); }
.format-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.format-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--slate); transition: border-color 0.2s ease; }
.format-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.format-card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0; }
.format-card p { margin: 0; font-size: 0.875rem; color: var(--mute); flex: 1; }
.format-card .small { color: var(--blue-deep); }
.formats-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.formats-strip h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.formats-strip p { margin: 0; color: rgba(255,255,255,0.75); }

/* Links page */
.links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; }
.links-group h2 { font-size: 1.5rem; }
.links-group h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--blue); margin-bottom: 0.9rem; }
.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.links-list a { font-weight: 600; }
.links-list p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--mute); }

/* Article extras */
.article-meta { font-family: var(--sans); font-size: 0.875rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2rem; }
.related { font-family: var(--sans); margin-top: 1.5rem; }
.related h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.5rem; }
.related a { font-size: 0.9375rem; }
.article .container--narrow .hook { grid-template-columns: 1fr; padding: 1.5rem; }

/* Responsive for new components */
@media (max-width: 1120px) {
  .tool-grid, .tool-grid--4, .join { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .announce__inner { flex-wrap: wrap; gap: 0.35rem 1rem; }
  .announce__date { display: block; margin: 0; }
  .hook, .tracker, .links-grid { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .updates-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .weigh { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tool-grid, .tool-grid--4, .join, .format-grid, .related ul { grid-template-columns: 1fr; }
  .tool-panel { padding: 1.25rem; }
  .hook { padding: 1.25rem; }
  .hook__form .btn { width: 100%; }
  .announce__inner { position: relative; padding-right: 2.75rem; }
  .announce__close { position: absolute; right: 12px; top: 0.35rem; }
  .tool-panel__controls label { flex: 1 1 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0.3rem; }
  .tool-panel__controls select, .tool-panel__controls input { width: 100%; min-width: 0; }
  .tool-panel__controls .btn { width: 100%; }
  .timer__display--sm { font-size: 1.75rem; }
}

/* ============================================================
   CUDL Guide (sidebar assistant), ask bar, library search, pathways
   ============================================================ */
.nav__ask { margin-left: 0.25rem; }
.nav__askbtn { display: inline-flex !important; align-items: center; gap: 0.4rem; color: var(--white) !important; border: 1.5px solid rgba(255,255,255,0.35) !important; border-radius: var(--radius); padding: 0.55rem 0.8rem !important; font-size: 0.875rem; font-weight: 600; }
.nav__askbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__askbtn:hover { border-color: var(--blue-light) !important; color: var(--blue-light) !important; }
@media (max-width: 1120px) { .nav__ask { margin: 1.25rem 0 0; } .nav__askbtn { width: auto; border-bottom: 1.5px solid rgba(255,255,255,0.35) !important; } }

.askbar { margin-top: 2.25rem; max-width: 40em; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.askbar input { flex: 1 1 260px; font: inherit; font-size: 1rem; padding: 0.9rem 1rem; border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--radius); background: rgba(255,255,255,0.08); color: var(--white); }
.askbar input::placeholder { color: rgba(255,255,255,0.55); }
.askbar input:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(142,162,236,0.25); background: rgba(255,255,255,0.12); }
.askbar .btn { flex: 0 0 auto; }
.askbar__chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.askbar__chips button { font: inherit; font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.85); background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer; }
.askbar__chips button:hover { border-color: var(--blue-light); color: var(--blue-light); }
@media (prefers-reduced-motion: no-preference) { .askbar { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s forwards; } }

.pathways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.pathway { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--slate); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.pathway:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.pathway__who { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-deep); }
.pathway strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--black); }
.pathway span:last-child { font-size: 0.875rem; color: var(--mute); }
.library-search { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1.25rem; }
.library-search input { flex: 1 1 320px; font: inherit; font-size: 1rem; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.library-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,104,218,0.2); }
.text-link--btn { background: none; border: 0; border-bottom: 1.5px solid currentColor; padding: 0 0 2px; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9375rem; color: var(--blue-deep); }
.text-link--btn:hover { color: var(--black); }
.admin { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; background: var(--fog); }
.admin summary { cursor: pointer; font-weight: 600; color: var(--black); }
.admin ol { margin: 1rem 0 0.5rem; }
.admin code { font-size: 0.875em; background: var(--white); padding: 0.1em 0.35em; border-radius: 3px; border: 1px solid var(--line); }

/* Launcher */
.guide-launch { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: inline-flex; align-items: center; gap: 0.55rem; background: var(--black); color: var(--white); border: 1.5px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 0.8rem 1.15rem 0.8rem 0.95rem; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5); transition: transform 0.2s ease, background-color 0.2s ease; }
.guide-launch svg { width: 20px; height: 20px; stroke: var(--blue-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-launch:hover { background: var(--blue-deep); transform: translateY(-2px); }
.guide-launch.is-hidden { display: none; }

/* Panel */
.guide { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 160; background: var(--white); border-left: 1px solid var(--line); box-shadow: -20px 0 50px -30px rgba(0,0,0,0.4); display: flex; flex-direction: column; font-family: var(--sans); }
.guide__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem 0.9rem 1.25rem; background: var(--black); color: var(--white); }
.guide__title { display: flex; flex-direction: column; gap: 0.15rem; }
.guide__title strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.guide__status { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.guide__status.is-ai { color: var(--blue-light); }
.guide__actions { display: flex; gap: 0.25rem; }
.guide__icon { background: none; border: 0; color: var(--white); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.guide__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide__icon:hover { background: rgba(255,255,255,0.12); }
.guide__settings { padding: 1rem 1.25rem; background: var(--fog); border-bottom: 1px solid var(--line); overflow-y: auto; max-height: 60%; }
.guide__settings h2 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; margin: 0.5rem 0 0.25rem; }
.guide__settings label { display: block; font-size: 0.8125rem; font-weight: 600; margin: 0.6rem 0 0; }
.guide__settings input, .guide__settings select { display: block; width: 100%; font: inherit; font-size: 0.9375rem; padding: 0.55rem 0.7rem; margin-top: 0.25rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.guide__setrow { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.guide__log { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; background: var(--white); }
.guide__msg { max-width: 92%; padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.9375rem; line-height: 1.5; }
.guide__msg p { margin: 0 0 0.5rem; }
.guide__msg p:last-child { margin-bottom: 0; }
.guide__msg ul { margin: 0.25rem 0 0.5rem; padding-left: 1.1em; }
.guide__msg--user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.guide__msg--bot { align-self: flex-start; background: var(--fog); color: var(--slate); border-bottom-left-radius: 4px; }
.guide__msg--bot a { color: var(--blue-deep); }
.guide__thinking::after { content: "..."; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.guide__results { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.guide__results a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--slate); }
.guide__results a:hover { border-color: var(--blue); }
.guide__results strong { color: var(--black); font-size: 0.9rem; }
.guide__results span { font-size: 0.8125rem; color: var(--mute); }
.guide__type { font-size: 0.6875rem !important; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-deep) !important; }
.guide__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1.25rem 0.5rem; }
.guide__chip { font: inherit; font-size: 0.8125rem; font-weight: 500; padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--slate); cursor: pointer; }
.guide__chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.guide__form { display: flex; gap: 0.5rem; padding: 0.75rem 1.25rem 0.5rem; border-top: 1px solid var(--line); }
.guide__form input { flex: 1; min-width: 0; font: inherit; font-size: 0.9375rem; padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: var(--radius); }
.guide__form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,104,218,0.2); }
.guide__form .btn { padding: 0.7rem 1rem; }
.guide__foot { margin: 0; padding: 0 1.25rem 0.75rem; }
@media (max-width: 600px) {
  .guide { width: 100vw; }
  .guide-launch span { display: none; }
  .guide-launch { padding: 0.9rem; right: 16px; bottom: 16px; }
  .pathways { grid-template-columns: 1fr 1fr; }
  .askbar .btn { width: 100%; }
}
@media (max-width: 1120px) { .pathways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .guide, .guide-launch { display: none !important; } }

/* Guide and nav fixes (Sept 13 review) */
.guide__head strong, .guide__head { color: var(--white); }
.guide__form input { flex: 1 1 auto; }
.guide__form .btn { width: auto; flex: 0 0 auto; }
.nav__links { gap: 1rem; }
.nav__links a { font-size: 0.85rem; }
.nav__brand { flex-shrink: 0; }
.nav__askbtn span { display: inline; }
@media (max-width: 1400px) and (min-width: 1121px) {
  .nav__brand span { display: none; }
}
@media (max-width: 1260px) and (min-width: 1121px) {
  .nav__askbtn { padding: 0.55rem 0.6rem !important; }
  .nav__askbtn span { display: none; }
}
@media (max-width: 600px) {
  .guide__form .btn { width: auto; }
  .guide__setrow .btn { width: auto; }
}

/* ============================================================
   Motion and galleries (September 13, interface pass)
   ============================================================ */
/* Page transitions */
.js main { animation: pagein 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.is-leaving main { opacity: 0; transition: opacity 0.17s ease; }
@media (prefers-reduced-motion: reduce) { .js main { animation: none; } body.is-leaving main { opacity: 1; transition: none; } }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in:hover { transition-delay: 0s !important; }
.chain li.reveal { transition-property: opacity, transform; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Header on scroll */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,0.6); }

/* Mobile nav slide */
@media (max-width: 1120px) {
  .nav__links { display: flex; transform: translateX(100%); opacity: 0; transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease; pointer-events: none; }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
}

/* Links: animated underline */
.text-link { position: relative; border-bottom: 0; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s ease, color 0.2s ease; padding-bottom: 2px; }
.text-link:hover { background-size: 30% 1.5px; }

/* Tab panel fade */
[data-panel]:not([hidden]) { animation: pagein 0.35s ease both; }

/* Buttons */
.btn { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn:active { transform: translateY(1px); }

/* Carousel */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0.25rem 0 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.carousel__slide { flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; }
.carousel__slide figure { margin: 0; }
.carousel__slide img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); display: block; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease; }
.carousel__slide:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.carousel__slide figcaption { font-size: 0.8125rem; color: var(--mute); margin-top: 0.6rem; }
.section--dark .carousel__slide figcaption { color: rgba(255,255,255,0.65); }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--black); font-size: 1.5rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.carousel__btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-1px); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.section--dark .carousel__btn { background: transparent; border-color: rgba(255,255,255,0.3); color: var(--white); }
.carousel__dots { display: flex; gap: 0.4rem; }
.carousel__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background-color 0.2s ease, transform 0.2s ease; }
.carousel__dot.is-active { background: var(--blue); transform: scale(1.25); }
.section--dark .carousel__dot { background: rgba(255,255,255,0.3); }
.section--dark .carousel__dot.is-active { background: var(--blue-light); }
@media (max-width: 900px) { .carousel__slide { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (max-width: 600px) { .carousel__slide { flex-basis: 84%; } .carousel__slide img { height: 240px; } }

/* Gallery grid (about page) */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); display: block; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.02); }
.gallery-grid figcaption { font-size: 0.8125rem; color: var(--mute); margin-top: 0.5rem; }
.gallery-grid figure:nth-child(1) { grid-column: span 2; }
.gallery-grid figure:nth-child(1) img { height: 380px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-grid figure:nth-child(1) img { height: 280px; } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid figure:nth-child(1) { grid-column: auto; } .gallery-grid img, .gallery-grid figure:nth-child(1) img { height: 220px; } }

/* Swipeable card rows on small screens */
@media (max-width: 600px) {
  .tool-grid, .join, .format-grid, .pathways { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; padding-bottom: 0.75rem; scrollbar-width: none; }
  .tool-grid::-webkit-scrollbar, .join::-webkit-scrollbar, .format-grid::-webkit-scrollbar, .pathways::-webkit-scrollbar { display: none; }
  .tool-grid > *, .join > *, .format-grid > *, .pathways > * { flex: 0 0 82%; scroll-snap-align: start; }
  .is-swipeable { position: relative; }
  .is-swipeable::after { content: "Swipe"; position: absolute; right: 0; top: -1.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
  .is-swipeable:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; animation: fadein 0.2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lightbox__figure img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: var(--radius); opacity: 0; transform: scale(0.97); transition: opacity 0.3s ease, transform 0.3s ease; }
.lightbox__figure img.is-shown { opacity: 1; transform: none; }
.lightbox__figure figcaption { color: rgba(255,255,255,0.8); font-size: 0.9375rem; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25); color: var(--white); border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__close { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.75rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.8125rem; margin: 0; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 600px) { .lightbox { padding: 3.5rem 0.75rem; } .lightbox__nav { width: 40px; height: 40px; } }

/* Photo strip in heroes */
.hero__media figure img, .page-hero__grid img, .split__media img, .photo-grid img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.page-hero__grid img:hover, .split__media img:hover, .photo-grid img:hover { transform: scale(1.015); }

/* ============================================================
   Case archive, curriculum, tournaments, topics, map, charts
   ============================================================ */
.ev { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.25rem 0; background: var(--fog); font-family: var(--sans); }
.ev__tag { font-weight: 700; color: var(--black); margin: 0 0 0.35rem; font-size: 0.9375rem; }
.ev__cite { font-size: 0.8125rem; color: var(--mute); margin: 0 0 0.5rem; }
.ev__text { font-size: 0.9rem; color: var(--slate); margin: 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.case-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.75rem; background: var(--white); display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.case-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.case-card__fmt { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-deep); }
.case-card h3 { font-family: var(--serif); font-size: 1.375rem; margin: 0; }
.case-card h3 a { color: var(--black); text-decoration: none; }
.case-card h3 a:hover { color: var(--blue-deep); text-decoration: underline; }
.case-card__res { font-family: var(--serif); font-style: italic; color: var(--slate); margin: 0; }
.case-card p { margin: 0; font-size: 0.9375rem; color: var(--mute); }
.lessons { border-top: 1px solid var(--line); }
.lesson { border-bottom: 1px solid var(--line); }
.lesson summary { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; align-items: baseline; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson summary:hover .lesson__title { color: var(--blue-deep); }
.lesson__n { font-family: var(--serif); font-size: 1.5rem; color: var(--blue); grid-row: span 2; }
.lesson__title { font-weight: 600; color: var(--black); font-size: 1.0625rem; }
.lesson__obj { font-size: 0.9rem; color: var(--mute); }
.lesson__body { padding: 0 0 1.5rem 60px; }
.lesson__body dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; margin: 0; }
.lesson__body dt { font-weight: 600; font-size: 0.8125rem; color: var(--black); margin-bottom: 0.2rem; }
.lesson__body dd { margin: 0; font-size: 0.9375rem; color: var(--slate); }
.lesson[open] summary { background: var(--fog); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: var(--radius) var(--radius) 0 0; }
.tracker-table td time { font-weight: 600; color: var(--black); white-space: nowrap; }
.status { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.status--listed { background: #E3F2EC; color: #1F5F4A; }
.status--expected { background: var(--blue-tint); color: var(--blue-deep); }
.pool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.pool { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.pool h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.5rem; }
.pool ul { padding-left: 1.2em; margin: 0.25rem 0 0.75rem; }
.timeline--light { border-top-color: var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline--light li::before { box-shadow: 0 0 0 4px var(--white); }
.timeline--light .timeline__year { color: var(--blue-deep); font-size: 1.5rem; }
.timeline--light h3 { color: var(--black); }
.timeline--light p { color: var(--slate); }
.section--fog .timeline--light li::before { box-shadow: 0 0 0 4px var(--fog); }
.topic-list { border-top: 1px solid var(--line); }
.topic-entry { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.topic-entry h3 { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 0.5rem; }
.links-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.links-inline li::before { content: "\\2192"; margin-right: 0.35rem; color: var(--blue); }
.card--dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: rgba(255,255,255,0.75); }
.mapwrap { margin-top: 0.5rem; }
.map { width: 100%; height: 520px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--fog); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; overflow: hidden; }
.map__fallback { max-width: 34em; color: var(--mute); margin: 0; }
.map .leaflet-tooltip { font-family: var(--sans); font-weight: 600; }
.chart { margin: 1.5rem 0 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.chart figcaption { font-family: var(--sans); font-size: 0.9rem; color: var(--slate); margin-bottom: 0.9rem; }
.chart figcaption strong { color: var(--black); display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.chart__label { font-size: 12px; fill: var(--slate); }
.chart__bar { fill: var(--blue); }
.chart__value { font-size: 12px; font-weight: 600; fill: var(--black); }
.section--dark .chart { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.section--dark .chart figcaption, .section--dark .chart figcaption strong, .section--dark .chart__label, .section--dark .chart__value { color: var(--white); fill: var(--white); }
.study-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.25rem; }
.study-strip a { display: flex; flex-direction: column; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--slate); min-width: 90px; }
.study-strip a:hover { border-color: var(--blue); }
.study-strip__year { font-family: var(--serif); font-size: 1.25rem; color: var(--black); }
.study-strip__city { font-size: 0.75rem; font-weight: 600; color: var(--blue-deep); }
.mb-2 { margin-bottom: 1.25rem; }
@media (max-width: 900px) {
  .case-grid, .pool-grid { grid-template-columns: 1fr; }
  .timeline--light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .lesson__body dl { grid-template-columns: 1fr; }
  .map { height: 420px; }
}
@media (max-width: 600px) {
  .timeline--light { grid-template-columns: 1fr; }
  .lesson__body { padding-left: 0; }
  .map { height: 360px; }
}

/* ============================================================
   Tool set two: case builder, flow, card cutter, progress, judge, search
   ============================================================ */
.cb-field { display: block; margin: 0.9rem 0 0; font-family: var(--sans); }
.cb-field > span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--black); margin-bottom: 0.3rem; }
.cb-field input, .cb-field textarea { width: 100%; font: inherit; font-size: 0.9375rem; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cb-field input:focus, .cb-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,104,218,0.2); }
.cb-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.cb-contention { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1.25rem 1.25rem; margin: 1.25rem 0 0; background: var(--white); }
.cb-contention legend { font-weight: 700; color: var(--blue-deep); padding: 0 0.4rem; }
.cb-contention .btn { margin-top: 0.9rem; }
.cb-preview { white-space: pre-wrap; font-family: var(--serif); font-size: 1rem; line-height: 1.6; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; max-height: 480px; overflow: auto; }
.cb-over { color: #B3261E; font-weight: 600; }
.cb-ok { color: #1F5F4A; font-weight: 600; }
.tool-panel input[type="range"] { width: 160px; vertical-align: middle; }
.flow--live td { height: auto; padding: 0; }
.flow--live textarea { width: 100%; min-height: 84px; border: 0; font: inherit; font-size: 0.8125rem; padding: 0.4rem 0.5rem; resize: vertical; background: var(--white); display: block; }
.flow--live textarea:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.flow--live thead th { min-width: 140px; }
.flow-page-title { font-size: 1.375rem; margin: 0.5rem 0 0.75rem; }
.cc-read { background: rgba(74,104,218,0.18); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; font-weight: 600; color: var(--black); }
.cc-text { font-family: var(--serif); white-space: pre-wrap; }
.cc-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.cc-card p { margin: 0; white-space: pre-wrap; }
.pg-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.pg-stats > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.pg-stats__num { font-family: var(--serif); font-size: 1.5rem; color: var(--black); line-height: 1.15; }
.pg-goal { max-width: 260px; margin-top: 0; }
.pg-bar { height: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 0.75rem 0 0; }
.pg-bar__fill { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 0.6s ease; }
.pg-kinds, .pg-recent { list-style: none; padding: 0; margin: 0; }
.pg-kinds li, .pg-recent li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.pg-recent time { color: var(--mute); font-size: 0.875rem; white-space: nowrap; }
.pg-kinds strong { font-family: var(--serif); font-size: 1.125rem; }
.cert { margin-top: 1.5rem; }
.cert__inner { border: 3px double var(--blue); border-radius: var(--radius); padding: 2rem 2.5rem; background: var(--white); text-align: center; max-width: 640px; margin: 0 auto 1rem; }
.cert__kicker { font-family: var(--serif); font-style: italic; color: var(--blue-deep); margin: 0 0 0.25rem; }
.cert__inner h2 { margin-bottom: 0.75rem; }
.cert__name { font-family: var(--serif); font-size: 1.75rem; color: var(--black); margin: 0.25rem 0 0.75rem; }
.search-group h2 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; }
.guide__results--wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.guide__results--wide a { height: 100%; }
.nextup { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.nextup li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.nextup__when { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-deep); }
.nextup strong { color: var(--black); }
.tracker-table tr.is-past td { color: var(--mute); }
.tracker-table tr.is-past time { color: var(--mute); font-weight: 500; }
.tracker-table tr.is-next td { background: var(--blue-tint); }
.footer-search { display: flex; gap: 0.5rem; align-items: center; margin-right: auto; }
.footer-search input { font: inherit; font-size: 0.875rem; padding: 0.5rem 0.7rem; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); background: rgba(255,255,255,0.08); color: var(--white); min-width: 220px; }
.footer-search input::placeholder { color: rgba(255,255,255,0.55); }
.site-footer__bottom { align-items: center; }
[data-ballot-choice].is-active { background: var(--black); border-color: var(--black); }
@media print {
  .tool-panel { background: none; padding: 0; }
  .cb-preview { max-height: none; border: 0; padding: 0; }
  .cert__inner { border-color: #000; }
  /* case builder prints only the assembled case */
  body.page-case-builder .article-hero, body.page-case-builder .grid-2, body.page-case-builder .tool-panel__controls, body.page-case-builder .cb-field, body.page-case-builder [data-cb-fields], body.page-case-builder [data-cb-contentions], body.page-case-builder h2.mt-3:first-of-type { display: none !important; }
  /* digital flow prints only the grid */
  body.page-flow .article-hero, body.page-flow .grid-2, body.page-flow .tool-panel__controls { display: none !important; }
  /* judge training prints only the completion note once earned */
  body.page-judge-training.has-cert main > section:not(.section--fog), body.page-judge-training.has-cert .section--fog > .container > :not(.cert) { display: none !important; }
  .cert, .cb-preview, .flow-page-title, [data-flow-grid] { display: block !important; }
}
}
@media (max-width: 900px) { .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nextup, .guide__results--wide { grid-template-columns: 1fr; } .cb-row { grid-template-columns: 1fr; } .footer-search { width: 100%; } .footer-search input { flex: 1; min-width: 0; } }

/* Evidence library, research feed */
.ev-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.ev--lib { margin: 0; display: flex; flex-direction: column; }
.ev--lib .ev__text { flex: 1; }
.ev__use { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.9rem 0 0; }
.ev__use .btn { margin-left: auto; }
.feeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.feed h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.feed h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--blue); margin-bottom: 0.7rem; }
.feed__list { list-style: none; padding: 0; margin: 0; }
.feed__list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.feed__list .btn-row { gap: 0.4rem; }
@media (max-width: 900px) { .ev-list, .feeds { grid-template-columns: 1fr; } }

.article-hero .byline a { color: var(--white); }
.article-hero .byline a:hover { color: var(--blue-light); }

/* Forms: validation, success, error, honeypot; footer columns */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__req { color: var(--mute); margin: 0 0 0.5rem; }
.field label small { color: var(--mute); font-weight: 400; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179,38,30,0.15); }
.field__error { display: block; font-size: 0.8125rem; color: #B3261E; margin-top: 0.3rem; font-weight: 600; }
.form__success, .form__error { border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 1rem; font-family: var(--sans); }
.form__success { background: #E3F2EC; border: 1px solid #9FCDB9; color: #1F3D31; }
.form__success p, .form__error p { margin: 0.5rem 0 0; }
.form__error { background: #FDECEA; border: 1px solid #F1A9A3; color: #5C1A15; }
.form__success:focus, .form__error:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.form[data-sent="1"] > h2, .form[data-sent="1"] > p { display: block; }
.hook__form .form__error { flex-basis: 100%; }
.site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto; gap: 2.5rem 2rem; }
.site-footer h3 { font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-family: var(--sans); font-weight: 700; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer li a { font-size: 0.9rem; }
@media (max-width: 1120px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__top { grid-template-columns: 1fr; } }

.form__req, .form__success, .form__error, .hp { grid-column: 1 / -1; }

/* Glossary, legislation bank, footer legal */
.az { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.75rem; position: sticky; top: 64px; z-index: 20; background: var(--white); padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.az a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.az a:hover { border-color: var(--blue); color: var(--blue-deep); }
.gl-group { margin-bottom: 2rem; }
.gl-group h2 { font-family: var(--serif); font-size: 2rem; color: var(--blue-deep); margin-bottom: 0.75rem; scroll-margin-top: 120px; }
.gl-group h2::before { content: none; }
.gl-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.gl { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.gl dt { font-weight: 700; color: var(--black); font-size: 1rem; scroll-margin-top: 130px; }
.gl dd { margin: 0.2rem 0 0; font-size: 0.9375rem; color: var(--slate); }
.gl__tags { display: block; margin-top: 0.3rem; }
.gl__tags span { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-deep); background: var(--blue-tint); border-radius: 999px; padding: 0.1rem 0.5rem; margin-right: 0.25rem; }
.bill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.bill { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; background: var(--white); display: flex; flex-direction: column; gap: 0.6rem; }
.bill__head { display: flex; align-items: center; gap: 0.75rem; }
.bill h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0; scroll-margin-top: 120px; }
.bill__text { margin: 0.4rem 0 0; padding-left: 1.1em; font-size: 0.875rem; color: var(--slate); }
.bill__text li { margin-bottom: 0.4rem; }
.bill__args { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; background: var(--fog); border-radius: var(--radius); padding: 1rem 1.15rem; margin-top: 0.4rem; }
.bill__args h4 { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 0.25rem; }
.bill__args p { margin: 0; font-size: 0.875rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.site-footer__legal a { text-decoration: underline; }
@media print { .az { display: none; } .bill { break-inside: avoid; border-color: #000; } .bill-list { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .gl-list, .bill-list, .bill__args { grid-template-columns: 1fr; } .az { top: 56px; } }

/* Source index */
.src-group { margin-bottom: 2.25rem; }
.src-group h3 { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 0.25rem; }
.src-group .small { margin-bottom: 0.75rem; }
.src-group table { min-width: 620px; }
.src-group td .small { display: block; margin: 0.25rem 0 0; color: var(--mute); }

/* Offline: indicator bar and save panel */
.offline-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 0.875rem; text-align: center; padding: 0.7rem 1rem; }
.offline-bar[hidden] { display: none; }
.offline-panel { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.75rem; }
.offline-panel h3 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.375rem; margin-bottom: 0.4rem; }
.offline-panel h3 svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.offline-panel .pg-bar { max-width: 420px; }
html.is-offline .guide-launch { bottom: 64px; }

/* Program handbook */
.hb-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 1rem 0 1.5rem; }
.hb-course { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.35rem; background: var(--white); }
.hb-course h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.hb-lessons { margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--slate); }
.hb-lessons li { padding: 0.2rem 0; border-top: 1px solid var(--line); }
.print-title { display: none; }
@media print {
  .print-title { display: block; }
  .hb-courses { grid-template-columns: repeat(3, 1fr); }
  .hb-course, .table-wrap { break-inside: avoid; }
  .container--narrow { max-width: none; }
}
@media (max-width: 900px) { .hb-courses { grid-template-columns: 1fr; } }

/* ============================================================
   Print: guides, cases, evidence, and articles print as clean documents
   ============================================================ */
@media print {
  @page { margin: 0.75in; }
  html, body { background: #fff !important; color: #000 !important; }
  .site-header, .announce, .site-footer, .guide, .guide-launch, .cta-band, .hook, .related, .article-nav, .toc, .carousel, .carousel__controls, .tool-nav, .offline-bar, .offline-panel, .lightbox, .askbar, .az, .tabs, .library-search, .btn-row, [data-filter-count], .skip-link { display: none !important; }
  .article-hero, .page-hero { background: none !important; color: #000 !important; padding: 0 0 12pt !important; }
  .article-hero *, .page-hero * { color: #000 !important; }
  .page-hero::after, .hero__skyline { display: none !important; }
  .page-hero__grid { display: block !important; }
  .page-hero__grid img { display: none !important; }
  .section { padding: 8pt 0 !important; background: none !important; }
  .section--dark, .section--fog { background: none !important; color: #000 !important; }
  .section--dark * { color: #000 !important; }
  .container, .container--narrow { max-width: none !important; padding: 0 !important; }
  h1 { font-size: 22pt; } h2 { font-size: 15pt; break-after: avoid; } h3 { font-size: 12pt; break-after: avoid; }
  p, li, dd { font-size: 10.5pt; line-height: 1.45; orphans: 3; widows: 3; }
  .prose a, .ev a, .study a, .bill a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after, .ev__cite a[href^="http"]::after, .study a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; word-break: break-all; }
  .ev, .study, .bill, .case-card, .callout, .lesson, table, figure { break-inside: avoid; }
  .ev { border: 1px solid #999 !important; border-left: 3pt solid #000 !important; background: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  details.lesson > .lesson__body { display: block !important; }
  .ev-list, .case-grid, .bill-list, .gl-list, .grid-2, .grid-3 { display: block !important; }
  .grid-2 > *, .grid-3 > * { margin-bottom: 10pt; }
  .article-meta { border-top: 1px solid #999; }
}

@media print { .ev__use .btn, .study .text-link[download] { display: none !important; } .article-hero .kicker, .article-hero .byline { font-size: 9pt; } }
@media print { .gl-list { columns: 2; column-gap: 24pt; } .gl { break-inside: avoid; } .gl__tags { display: none; } .gl-group h2 { font-size: 14pt; } }
@media (min-width: 1121px) { .nav__links { gap: 0.8rem; } .nav__ask { margin-left: 0.15rem; } .nav__cta { margin-left: 0.25rem; } }
.site-footer__email { display: block; margin-top: 0.35rem; color: rgba(255,255,255,0.8) !important; font-size: 0.9375rem; }
.site-footer__email:hover { color: var(--blue-light) !important; }
