/* ==========================================================================
   WASDL — Washington Area Speech and Debate League
   Static site stylesheet. No framework, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License — see assets/fonts) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/source-serif-4.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/source-serif-4-italic.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #14233d;          /* body text, navy ink */
  --ink-soft: #46546b;     /* secondary text */
  --blue: #205eab;         /* league blue, sampled from the 2026 logo */
  --blue-deep: #0f2a5c;    /* dark bands */
  --blue-wash: #e6eef8;    /* tinted panels */
  --paper: #f4f6fa;        /* alternate section background */
  --white: #ffffff;
  --gold: #f0b429;         /* medal gold, used sparingly */
  --gold-deep: #9a6a00;
  --rule: #d6dce6;
  --neg: #c98a0b;          /* negative / con side in round timelines */

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;      /* 18px body */
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
  --step-5: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);

  --measure: 68ch;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-family: var(--font-display); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }

/* ---------- Prose (content migrated from WordPress) ---------- */
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--blue); }
.prose h3 { margin-top: 1.6em; }
.prose h4 { margin-top: 1.6em; font-size: var(--step-1); }
.prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; font-size: 1rem; line-height: 1.45; }
.prose th { font-family: var(--font-display); font-weight: 650; text-align: left; font-size: .95rem; border-bottom: 2px solid var(--ink); padding: .55rem .75rem .55rem 0; }
.prose td { border-bottom: 1px solid var(--rule); padding: .6rem .75rem .6rem 0; vertical-align: top; }
.prose td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { background: var(--blue-wash); border-left: 4px solid var(--blue); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0 1.5rem; }
.timelimit { display: flex; gap: .75rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.25rem 0; }
.timelimit svg { flex: none; margin-top: .2rem; color: var(--blue); }
.timelimit p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.3rem; border-radius: var(--radius);
  background: var(--blue); color: var(--white); text-decoration: none;
  border: 2px solid var(--blue);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ffc94d; border-color: #ffc94d; color: var(--ink); }
.btn--light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--blue-deep); border-color: var(--white); }
.btn svg { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Resource links: documents & external guides that sit under a section */
.resources { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; max-width: 34rem; }
.resource {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--white); text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 650; font-size: 1rem; line-height: 1.25;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.resource:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); color: var(--ink); text-decoration: none; }
.resource__icon { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 4px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); }
.resource__kind { display: block; font-weight: 450; font-size: .82rem; color: var(--ink-soft); margin-top: .15rem; }
.resource__go { margin-left: auto; color: var(--blue); flex: none; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--blue-deep); color: #dfe7f5; font-family: var(--font-display); font-size: .9rem; }
.utility .wrap { display: flex; justify-content: flex-end; text-align: center; flex-wrap: wrap; gap: .25rem 1.5rem; padding-block: .45rem; }
.utility a { color: #fff; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility svg { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 200px; height: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__link, .nav__toggle {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: .6rem .8rem; border-radius: var(--radius); display: inline-flex; align-items: center; gap: .35rem;
}
.nav__link:hover, .nav__toggle:hover { color: var(--blue); background: var(--blue-wash); text-decoration: none; }
.nav__link[aria-current="page"], .nav__item--current > .nav__toggle { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: var(--radius) var(--radius) 0 0; }
.nav__toggle svg { transition: transform .15s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 15rem;
  list-style: none; margin: 0; padding: .4rem; background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 12px 32px -12px rgba(15,42,92,.35);
  display: none;
}
.nav__menu.is-open { display: block; }
.nav__menu a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .75rem; border-radius: 4px; font-family: var(--font-display); font-weight: 550; color: var(--ink); text-decoration: none; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background: var(--blue-wash); color: var(--blue); }
.nav__cta { margin-left: .5rem; }
.nav__cta .btn { padding: .65rem 1.1rem; }
.menu-button { display: none; margin-left: auto; background: none; border: 2px solid var(--rule); border-radius: var(--radius); padding: .5rem .7rem; font-family: var(--font-display); font-weight: 650; color: var(--ink); gap: .5rem; align-items: center; cursor: pointer; font-size: 1rem; }

@media (max-width: 1020px) {
  .brand img { width: 158px; }
  .utility .wrap { justify-content: center; }
  .menu-button { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--nav-top, calc(var(--header-h) + 1px)) 0 0 0; background: var(--white); z-index: 60;
    overflow-y: auto; padding: 1rem var(--gutter) 3rem; display: none; margin: 0;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--rule); }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: 1rem .25rem; font-size: 1.15rem; border-radius: 0; }
  .nav__link[aria-current="page"], .nav__item--current > .nav__toggle { box-shadow: inset 4px 0 0 var(--blue); padding-left: .9rem; border-radius: 0; }
  .nav__menu { position: static; box-shadow: none; border: 0; padding: 0 0 .75rem .75rem; min-width: 0; }
  .nav__menu a { font-size: 1.05rem; }
  .nav__cta { margin: 1.5rem 0 0; border: 0 !important; }
  .nav__cta .btn { width: 100%; justify-content: center; padding: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Crosshair frame (motif from the WASDL mark) ---------- */
.reticle { position: relative; isolation: isolate; }
.reticle::before, .reticle::after { content: ""; position: absolute; z-index: -1; background: var(--blue); }
.reticle::before { left: 50%; top: -22px; bottom: -22px; width: 2px; transform: translateX(-1px); }
.reticle::after { top: 50%; left: -22px; right: -22px; height: 2px; transform: translateY(-1px); }
.reticle img { position: relative; border-radius: 2px; }
@media (max-width: 640px) {
  .reticle::before { top: -14px; bottom: -14px; }
  .reticle::after { left: -14px; right: -14px; }
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 4vw, 3.5rem); background: linear-gradient(var(--white), var(--white) 70%, var(--paper)); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-5); font-stretch: 72%; font-weight: 800; letter-spacing: -0.015em; line-height: .98; margin-bottom: .4em; }
.hero h1 span { display: block; color: var(--blue); }
.hero .lede { margin-bottom: 0; }
.hero__media { margin: 22px; }
.hero__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__caption { font-family: var(--font-display); font-size: .9rem; color: var(--ink-soft); margin-top: 2rem; text-align: right; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { margin: 14px 14px 0; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; color: var(--white); background: var(--blue-deep); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.75); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,42,92,.96) 0%, rgba(15,42,92,.82) 45%, rgba(15,42,92,.35) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.page-hero h1 { color: var(--white); font-size: var(--step-5); font-stretch: 72%; font-weight: 800; max-width: 16ch; margin-bottom: .3em; }
.page-hero p { font-size: var(--step-1); line-height: 1.45; max-width: 40ch; color: #e3eaf6; margin: 0; }
.crumbs { font-family: var(--font-display); font-size: .95rem; margin-bottom: 1rem; color: #c7d3ea; }
.crumbs a { color: #fff; }

/* ---------- Docket (upcoming tournaments) ---------- */
.schedule { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .schedule { grid-template-columns: 1fr; } }
.docket { border-top: 3px solid var(--ink); }
.docket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.docket__head h3 { margin: 0; font-size: var(--step-1); }
.docket__head a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.docket ol { list-style: none; margin: 0; padding: 0; }
.docket li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.docket__date { text-align: center; font-family: var(--font-display); line-height: 1; border: 2px solid var(--blue); border-radius: var(--radius); padding: .45rem 0 .5rem; color: var(--blue); }
.docket__date b { display: block; font-size: 1.9rem; font-stretch: 75%; font-weight: 800; margin: .15rem 0; }
.docket__date span { font-size: .8rem; font-weight: 650; }
.docket__event { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; margin: 0 0 .2rem; }
.docket__host { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.docket li.is-past { opacity: .55; }
.docket li.is-past .docket__date { border-color: var(--rule); color: var(--ink-soft); }
.docket__done { display: inline-block; font-family: var(--font-display); font-size: .78rem; font-weight: 650; background: var(--paper); border: 1px solid var(--rule); border-radius: 99px; padding: .05rem .55rem; margin-left: .4rem; vertical-align: .1em; color: var(--ink-soft); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--flip .split__media { order: -1; }
.split__media img { width: 100%; border-radius: 2px; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media--wide img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media--tall img { aspect-ratio: 4 / 3; }
}

/* ---------- Audience paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2.5rem; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.path:hover { color: var(--ink); text-decoration: none; border-color: var(--blue); }
.path img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .4s ease; }
@media (prefers-reduced-motion: no-preference) { .path:hover img { transform: scale(1.03); } }
.path__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; }
.path h3 { font-size: var(--step-2); margin-bottom: .35rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.path h3 svg { color: var(--blue); flex: none; }
.path p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 860px) { .path { grid-template-columns: 40% 1fr; grid-template-rows: none; } .path img { aspect-ratio: auto; height: 100%; } .path h3 { font-size: var(--step-1); } }
@media (max-width: 480px) { .path { grid-template-columns: 1fr; } .path img { aspect-ratio: 16/9; } }

/* ---------- Value / stats band ---------- */
.band { background: var(--blue-deep); color: #e6ecf7; position: relative; overflow: hidden; }
.band h2, .band h3 { color: var(--white); }
.band a { color: #fff; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; mix-blend-mode: luminosity; }
.band .wrap { position: relative; }
.band__intro { max-width: 52ch; color: #cfd9ec; font-size: var(--step-1); line-height: 1.5; }
.stats { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.25); }
.stats li { padding: 1.5rem 1.5rem 0 0; border-right: 1px solid rgba(255,255,255,.18); padding-left: 1.5rem; }
.stats li:first-child { padding-left: 0; }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--font-display); font-stretch: 70%; font-weight: 800; font-size: clamp(3.2rem, 2rem + 4vw, 5.5rem); line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.stats span { display: block; margin-top: .6rem; font-size: 1.05rem; line-height: 1.45; color: #e6ecf7; max-width: 22ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 1.5rem 1rem 1.25rem 0 !important; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stats li:nth-child(odd) { padding-right: 1.25rem !important; }
}

/* ---------- Speech vs debate ---------- */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }
.format img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 2px; margin-bottom: 1.5rem; }
.format h2 { font-size: var(--step-3); }
.format .prose { font-size: 1.06rem; }

/* ---------- Testimonials ---------- */
.quotes { columns: 3 18rem; column-gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.quote { break-inside: avoid; margin: 0 0 clamp(1.25rem, 3vw, 2.5rem); padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: .6; color: var(--blue); margin-bottom: .35rem; height: 1.3rem; }
.quote figcaption { margin-top: .9rem; font-family: var(--font-display); font-size: .95rem; line-height: 1.35; color: var(--ink-soft); }
.quote figcaption b { display: block; color: var(--ink); font-weight: 700; }

/* ---------- Section heading row ---------- */
.heading-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.heading-row > :first-child { max-width: 44rem; }
.heading-row h2 { margin-bottom: .25em; }
.heading-row p { margin: 0; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.45; }

/* ---------- Resource pages: question index + topic sections ---------- */
.qindex { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: q; }
@media (max-width: 960px) { .qindex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .qindex { grid-template-columns: 1fr; } }
.qindex a { display: block; height: 100%; padding: 1.1rem 1.2rem 1.2rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.qindex a:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.qindex b { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; margin-bottom: .4rem; color: var(--blue); }
.qindex span { display: block; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }

.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 6vw, 4.75rem); border-top: 1px solid var(--rule); align-items: start; }
.topic:first-child { border-top: 0; }
.topic h2 { font-size: var(--step-3); }
.topic__media { position: sticky; top: calc(var(--header-h) + 24px); }
.topic__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.topic__media .nsda { aspect-ratio: auto; object-fit: contain; background: #fff; padding: 1.5rem; border: 1px solid var(--rule); }
@media (max-width: 860px) {
  .topic { grid-template-columns: 1fr; }
  .topic__media { position: static; order: -1; }
  .topic__media img { aspect-ratio: 16 / 9; }
}
.back-top { font-family: var(--font-display); font-size: .95rem; font-weight: 600; display: inline-block; margin-top: 1.5rem; }

/* ---------- Events page ---------- */
.events-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-family: var(--font-display); }
.toc h2 { font-size: 1.05rem; font-stretch: 90%; margin: 1.5rem 0 .5rem; color: var(--ink-soft); font-weight: 650; }
.toc h2:first-child { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: .38rem 0 .38rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; line-height: 1.3; }
.toc a:hover { color: var(--blue); }
.toc a.is-active { border-left-color: var(--blue); color: var(--blue); font-weight: 700; }
.toc-mobile { display: none; }
@media (max-width: 960px) {
  .events-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 2rem; }
  .toc-mobile label { font-family: var(--font-display); font-weight: 650; display: block; margin-bottom: .4rem; }
  .toc-mobile select { width: 100%; font: inherit; font-family: var(--font-display); padding: .8rem; border: 2px solid var(--rule); border-radius: var(--radius); background: var(--white); color: var(--ink); }
}
.event-group-intro { padding-bottom: clamp(2rem, 4vw, 3rem); }
.event-group-intro img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2px; margin: 0 0 2rem; }
.event-group-intro h2 { font-size: var(--step-4); }
.event { padding-block: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid var(--rule); }
.event h3 { font-size: var(--step-3); margin-bottom: .75rem; }
.event__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.event__meta li { font-family: var(--font-display); font-size: .88rem; font-weight: 600; padding: .2rem .7rem; border-radius: 99px; background: var(--blue-wash); color: var(--blue-deep); }
.criteria { background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-top: 1.75rem; }
.criteria h4 { margin-top: 0 !important; }
.criteria ul, .criteria ol { margin-bottom: 0; }
.criteria > :last-child { margin-bottom: 0; }
.group-divider { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 3px solid var(--ink); }

/* Round timeline — proportional speech segments */
.round { margin: 1.5rem 0 .5rem; }
.prose .round__legend { padding: 0; margin: .7rem 0 0; }
.prose .round__legend li { margin: 0; padding: 0; }
.round__bar { display: flex; gap: 3px; height: 3.25rem; border-radius: 4px; overflow: hidden; }
.round__seg { flex-grow: var(--m); flex-basis: 0; min-width: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: #fff; background: var(--blue); position: relative; }
.round__seg--neg { background: var(--neg); color: var(--ink); }
.round__seg--both { background: repeating-linear-gradient(135deg, var(--blue) 0 6px, var(--neg) 6px 12px); }
.round__seg--both span { background: var(--white); color: var(--ink); border-radius: 3px; padding: 0 .3rem; }
.round__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .7rem 0 0; padding: 0; list-style: none; font-family: var(--font-display); font-size: .9rem; color: var(--ink-soft); }
.round__legend li { display: inline-flex; align-items: center; gap: .45rem; }
.round__legend i { width: .85rem; height: .85rem; border-radius: 2px; background: var(--blue); display: inline-block; }
.round__legend i.neg { background: var(--neg); }
.round__legend i.both { background: repeating-linear-gradient(135deg, var(--blue) 0 3px, var(--neg) 3px 6px); }
.round__total { font-family: var(--font-display); font-weight: 650; color: var(--ink); }
@media (max-width: 560px) { .round__bar { height: 2.6rem; } .round__seg { font-size: .72rem; } }

/* ---------- About: season numbers ---------- */
.season { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.season li { background: var(--white); border-top: 4px solid var(--blue); padding: 1.25rem 1.25rem 1.4rem; }
.season b { display: block; font-family: var(--font-display); font-stretch: 70%; font-weight: 800; font-size: clamp(2.8rem, 2rem + 2.5vw, 4.25rem); line-height: 1; color: var(--blue-deep); }
.season span { display: block; margin-top: .5rem; font-family: var(--font-display); font-weight: 550; line-height: 1.3; }
@media (max-width: 860px) { .season { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.linklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; color: var(--ink); }
.linklist a:hover { color: var(--blue); }
.linklist small { font-weight: 450; color: var(--ink-soft); font-size: .88rem; margin-left: .5rem; }
.linklist svg { color: var(--blue); flex: none; }

/* ---------- Executive council ---------- */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr)); gap: 1.5rem 1.25rem; }
.roster a { display: block; text-decoration: none; color: var(--ink); }
.roster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; margin-bottom: .6rem; background: var(--paper); }
.roster b { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.roster span { display: block; font-size: .9rem; line-height: 1.35; color: var(--ink-soft); margin-top: .15rem; font-family: var(--font-display); }
.roster a:hover b { color: var(--blue); text-decoration: underline; }
.bio { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); align-items: start; }
.bio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; position: sticky; top: calc(var(--header-h) + 24px); }
.bio h2 { font-size: var(--step-3); margin-bottom: .15em; }
.bio__role { font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: 1.1rem; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem .9rem; } .roster span { font-size: .8rem; } .roster b { font-size: .95rem; }
  .bio { grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; } .bio img { position: static; } .bio .prose { grid-column: 1 / -1; } }

/* ---------- Get started form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-display); font-weight: 650; font-size: .98rem; margin-bottom: .35rem; }
.field label .req { color: #b42318; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: .8rem .9rem; border: 1.5px solid #b9c3d3; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,94,171,.22); }
.field textarea { min-height: 9rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: #b42318; }
.field__error { display: block; margin-top: .35rem; font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: #b42318; }
.form__note { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.form__status { grid-column: 1 / -1; margin: 0; font-family: var(--font-display); font-weight: 600; }
.form__status.ok { color: #157347; }
.form__status.err { color: #b42318; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- News ---------- */
.posts { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.post-item { padding-block: 2rem; border-top: 1px solid var(--rule); }
.post-item:first-child { border-top: 2px solid var(--ink); }
.post-item time { font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); font-weight: 550; }
.post-item h2 { font-size: var(--step-3); margin: .3rem 0 .6rem; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--blue); text-decoration: underline; }
.post-item p { color: var(--ink-soft); margin-bottom: .75rem; }
.readmore { font-family: var(--font-display); font-weight: 650; }
.article { max-width: 44rem; }
.article time { font-family: var(--font-display); color: #c7d3ea; display: block; margin-top: 1rem; }

/* ---------- CTA strip ---------- */
.cta { background: var(--blue); color: var(--white); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta h2 { color: var(--white); font-size: var(--step-3); margin: 0 0 .25rem; }
.cta p { margin: 0; color: #dfe7f5; font-size: var(--step-1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #cfd9ec; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-top h2 { font-size: 1.05rem; font-stretch: 90%; color: #fff; margin: 0 0 1rem; font-weight: 700; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-family: var(--font-display); }
.footer-brand img { width: 230px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 32ch; line-height: 1.55; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.25rem; font-family: var(--font-display); font-size: .9rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; }

@media print {
  .utility, .site-header, .site-footer, .toc, .toc-mobile, .menu-button { display: none !important; }
  .page-hero { background: none; color: var(--ink); }
  .page-hero h1, .page-hero p { color: var(--ink); }
  .page-hero__img, .page-hero::after { display: none; }
}

/* ---------- Consent notice, SMS checkbox, legal pages ---------- */
.notice { max-width: var(--measure); margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem; line-height: 1.55; }
.notice p { margin: 0; }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.field.check input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--blue); }
.field.check label { font-family: var(--font-body); font-weight: 400; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.field.check label span { display: block; font-family: var(--font-display); font-weight: 650; font-size: .98rem; color: var(--ink); margin-bottom: .15rem; }
.legal-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-family: var(--font-display); }
.legal-toc p { font-weight: 650; color: var(--ink-soft); margin: 0 0 .5rem; font-size: .95rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .95rem; line-height: 1.3; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; }
.legal h2 { font-size: var(--step-2); margin-top: 2.25rem; }
.legal section:first-of-type h2 { margin-top: 0; }
.legal__meta { font-family: var(--font-display); color: var(--ink-soft); font-size: .95rem; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2rem; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- Home: founded line; About: names; Get started: glance; Library ---------- */
.hero__aka { margin: 1rem 0 0; font-family: var(--font-display); font-size: .98rem; color: var(--ink-soft); max-width: 46ch; }
.names { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: n; }
.names li { position: relative; padding: 1.25rem 1.5rem 0 0; border-top: 3px solid var(--rule); }
.names li:last-child { border-top-color: var(--blue); }
.names li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--rule); }
.names li:last-child::before { border-color: var(--blue); background: var(--blue); }
.names__when { display: block; font-family: var(--font-display); font-weight: 650; font-size: .9rem; color: var(--ink-soft); }
.names b { display: block; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); line-height: 1.05; color: var(--blue-deep); margin: .2rem 0 .35rem; }
.names li:last-child b { color: var(--blue); }
.names span:last-child { display: block; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); max-width: 26ch; }
@media (max-width: 700px) { .names { grid-template-columns: 1fr; gap: 1.5rem; } .names li { border-top: 0; border-left: 3px solid var(--rule); padding: 0 0 0 1.25rem; } .names li:last-child { border-left-color: var(--blue); } .names li::before { top: 0; left: -9px; } }
.glance { margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.glance div { background: var(--white); padding: 1.1rem 1.2rem 1.25rem; }
.glance dt { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--blue); margin-bottom: .35rem; }
.glance dd { margin: 0; font-size: 1rem; line-height: 1.45; }
@media (max-width: 1000px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .glance { grid-template-columns: 1fr; } }
.libgroup { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.libgroup:last-of-type { border-bottom: 0; }
.libgroup h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.resources--grid { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 700px) { .resources--grid { grid-template-columns: 1fr; } }

/* ---------- Member schools directory ---------- */
.schools__tools { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 1.75rem 0 1.5rem; }
.schools__tools input { flex: 1 1 18rem; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border: 1.5px solid #b9c3d3; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.schools__tools input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,94,171,.22); }
.schools__filter { display: inline-flex; border: 1.5px solid #b9c3d3; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.schools__filter button { font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .7rem 1rem; border: 0; background: none; color: var(--ink); cursor: pointer; }
.schools__filter button + button { border-left: 1.5px solid #b9c3d3; }
.schools__filter button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.schools__count { margin: 0; font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); }
.schools { display: grid; gap: 2rem; }
.schools__group h3 { font-size: var(--step-1); display: flex; align-items: baseline; gap: .6rem; margin-bottom: .75rem; }
.schools__group h3 small { font-family: var(--font-display); font-weight: 550; font-size: .9rem; color: var(--ink-soft); font-stretch: 100%; }
.schools__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.schools__list li { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: .7rem .9rem; }
.schools__list b { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1rem; line-height: 1.25; }
.schools__list span { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: .15rem; line-height: 1.35; }
.schools__list li[hidden], .schools__group[hidden] { display: none; }
@media (max-width: 960px) { .schools__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .schools__list { grid-template-columns: 1fr; } }

/* ---------- News: outside coverage ---------- */
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: 0 0 .35rem; font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); }
.news-item__meta span:first-child { font-weight: 700; color: var(--ink); }
.news-item__kind { font-size: .8rem; font-weight: 650; padding: .1rem .55rem; border-radius: 99px; background: var(--blue-wash); color: var(--blue-deep); }
.news-item .readmore { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Home: rules assistant card + slide-in panel ---------- */
.hero__side { display: flex; flex-direction: column; }
.askbox { margin: 2.25rem 22px 0; }
.askbox__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0 0 .5rem; color: var(--ink); }
.askbox__input { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; cursor: text;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink-soft); background: var(--white);
  border: 1.5px solid #b9c3d3; border-radius: var(--radius); padding: .75rem .9rem; }
.askbox__input svg { color: var(--blue); flex: none; }
.askbox__input:hover { border-color: var(--blue); }
.askbox__note { margin: .5rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 860px) { .askbox { margin: 2rem 14px 0; } }

.chatpanel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100vw); background: var(--white);
  display: flex; flex-direction: column; box-shadow: -16px 0 40px -16px rgba(15,42,92,.35); }
.chatpanel[hidden], .chatpanel__backdrop[hidden] { display: none; }
.chatpanel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); }
.chatpanel__head h2 { font-size: 1.15rem; font-stretch: 85%; margin: 0; }
.chatpanel__close { background: none; border: 0; font-size: 1.9rem; line-height: 1; padding: .1rem .5rem; cursor: pointer; color: var(--ink); border-radius: var(--radius); }
.chatpanel__close:hover { background: var(--paper); }
.chatpanel__frame { flex: 1; width: 100%; border: 0; }
.chatpanel__backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(15,42,92,.35); }
@media (prefers-reduced-motion: no-preference) { .chatpanel:not([hidden]) { animation: chatin .2s ease-out; } }
@keyframes chatin { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- Home: "Coming up" docket (date ranges, today, notes, empty state) ---------- */
.docket__date--range b { font-size: 1.35rem; margin: .3rem 0 .25rem; letter-spacing: -.01em; }
.docket__date--range span:last-child { font-size: .72rem; }
.docket__note { margin: .3rem 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; font-style: italic; }
.docket__today { display: inline-block; font-family: var(--font-display); font-size: .78rem; font-weight: 700; background: var(--gold); color: var(--blue-deep); border-radius: 99px; padding: .05rem .55rem; margin-left: .4rem; vertical-align: .1em; }
.docket li.is-today .docket__date { background: var(--blue); color: #fff; }
.docket__empty { margin: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
