/* ==========================================================================
   Blueprint Resonance — design system
   Palette: CSES indigo + cyan (logo), Blueprint cream / olive / ochre (promo).
   Fonts: Fjalla One (display, as on energyschool.com) + Libre Franklin (body).
   ========================================================================== */

:root {
  /* Ground */
  --bg: #f3ede1;            /* Blueprint cream, from the promo poster */
  --surface: #faf7f0;       /* lighter panel */
  --surface-2: #e9e0cc;     /* deeper cream, for bands and tiles */
  --rule: #d6cbb3;
  --rule-strong: #b9ab8c;

  /* Ink */
  --ink: #241f51;           /* CSES indigo */
  --indigo-2: #4a3e8b;
  --text: #2d2946;          /* body, 11:1 on cream */
  --muted: #5b566f;         /* 6.2:1 on cream */

  /* Accents */
  --olive: #4b6338;         /* links, secondary actions, 6.4:1 on cream */
  --olive-deep: #35482a;
  --ochre: #b8862b;         /* primary action fill; dark text on it */
  --ochre-deep: #8a6317;    /* ochre as text, 4.7:1 on cream */
  --ochre-tint: #f0dfb6;
  --cyan: #00aad4;          /* focus ring + small brand marks only */
  --cyan-tint: #d7eef6;

  /* Type */
  --font-display: "Fjalla One", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem);
  --step-5: clamp(3rem, 1.8rem + 5vw, 5.6rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: clamp(3rem, 2rem + 4vw, 5.5rem);
  --s-9: clamp(4.5rem, 3rem + 6vw, 8rem);

  --measure: 68ch;
  --wrap: 72rem;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 6px rgba(36, 31, 81, 0.12);

  /* z */
  --z-sticky: 10;
  --z-header: 20;
  --z-toast: 40;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset-ish
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p, ul, ol, blockquote, table { margin: 0 0 var(--s-4); }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: var(--s-2); }

a {
  color: var(--olive);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 150ms var(--ease-out);
}
a:hover { color: var(--olive-deep); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }

blockquote {
  border: 0;
  padding: 0;
  font-size: var(--step-1);
  color: var(--ink);
  font-style: italic;
}
blockquote cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: var(--step--1); color: var(--muted); }

table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--s-5), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--s-5), 48rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--band { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #efe9dc; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #f6f1e6; }
.section--ink a { color: #f1d89a; }
.section--ink a:hover { color: #fff; }

.split {
  display: grid;
  gap: var(--s-6) var(--s-8);
  align-items: start;
}
@media (min-width: 52em) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.stack > * + * { margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Buttons, pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.25em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.btn--primary:hover { background: #c9973a; border-color: #c9973a; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #f6f1e6; }
.section--ink .btn--ghost, .hero .btn--ghost { color: #f6f1e6; border-color: #f6f1e6; }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { background: #f6f1e6; color: var(--ink); }
.btn--olive { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn--olive:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; }
.btn--small { font-size: var(--step--1); padding: 0.5em 0.95em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.pill {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  background: var(--surface-2);
  color: var(--ink);
}
.pill--live { background: var(--ochre-tint); color: var(--ochre-deep); }
.pill--upcoming { background: var(--cyan-tint); color: #0b5f78; }
.pill--complete { background: var(--surface-2); color: var(--muted); }

/* --------------------------------------------------------------------------
   Header / footer
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in oklab, var(--bg) 92%, white);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 4.25rem;
}
.site-header__brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-header__brand img { height: 3.25rem; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }
.site-nav a {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ochre); }
.site-nav .btn { margin-left: var(--s-2); }
@media (max-width: 40em) {
  .site-header__brand img { height: 2.25rem; }
  .site-nav a:not(.btn) { display: none; }
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-7) var(--s-6);
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer__inner { display: grid; gap: var(--s-5); }
@media (min-width: 52em) { .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; } }
.site-footer img { height: 2.5rem; width: auto; margin-bottom: var(--s-3); }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--olive); }
.site-footer__small { margin-top: var(--s-5); font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #f6f1e6;
  background: var(--ink);
  min-height: min(84vh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  animation: hero-drift 18s var(--ease-out) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(36, 31, 81, 0.12) 0%, rgba(36, 31, 81, 0.42) 45%, rgba(36, 31, 81, 0.9) 100%);
}
.hero__inner { padding-block: var(--s-9) var(--s-8); }
.hero__school {
  font-size: var(--step--1);
  font-weight: 600;
  color: #f1d89a;
  margin-bottom: var(--s-4);
}
.hero h1 {
  color: #fff;
  font-size: var(--step-5);
  margin-bottom: var(--s-3);
  max-width: 14ch;
}
.hero__sub {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: #f1d89a;
  margin-bottom: var(--s-4);
  max-width: 24ch;
}
.hero__lede { font-size: var(--step-1); max-width: 46ch; color: #efe9dc; margin-bottom: var(--s-6); }
.hero__actions { gap: var(--s-3) var(--s-4); }
.hero__portal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero__portal-label {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d9d3e8;
  margin-right: var(--s-2);
}
.btn--pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: var(--step--1);
  padding: 0.5em 1em;
}
.btn--pill:hover, .btn--pill:focus-visible { background: rgba(255, 255, 255, 0.24); border-color: #fff; color: #fff; }
.teaser__card {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.teaser__card p { margin: 0 0 var(--s-3); }
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.lede { font-size: var(--step-1); color: var(--ink); }

.aside-note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.aside-note h3 { font-size: var(--step-1); margin-bottom: var(--s-3); }
.aside-note ul { margin: 0; }

.syllabus {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-4) var(--s-6);
  counter-reset: syl;
}
@media (min-width: 52em) { .syllabus { grid-template-columns: 1fr 1fr; } }
.syllabus li {
  margin: 0;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--s-3);
  align-items: start;
}
.syllabus li::before {
  content: "";
  display: block;
  width: 1rem;
  height: 3px;
  margin-top: 0.7em;
  background: var(--ochre);
}

.cohorts { display: grid; gap: var(--s-6); }
@media (min-width: 52em) { .cohorts { grid-template-columns: 1fr 1fr; } }
.cohort-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border: 1px solid var(--rule);
}
.cohort-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); }
.cohort-card h3 { margin: 0; }
.cohort-card table td:first-child { color: var(--muted); width: 6.5rem; white-space: nowrap; }
.cohort-card table td:last-child { font-variant-numeric: tabular-nums; }
.cohort-card__foot { margin-top: var(--s-4); font-size: var(--step--1); }

.facts { display: grid; gap: var(--s-4); margin: var(--s-7) 0 0; }
@media (min-width: 40em) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.facts dt { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); }
.fine { margin-top: var(--s-5); color: var(--muted); }
.facts dd small { display: block; font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); margin-top: var(--s-1); }

.teacher { align-items: center; }
.teacher__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.teaser { align-items: center; }
.teaser__poster { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); max-width: 22rem; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 48ch; margin-inline: auto; }
.cta-band .cluster { justify-content: center; margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   Video embeds
   -------------------------------------------------------------------------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: var(--s-4);
  background: linear-gradient(160deg, var(--indigo-2), var(--ink));
  color: #f6f1e6;
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: var(--s-2);
  text-align: center;
  transition: filter 150ms var(--ease-out);
}
.video__poster:hover { filter: brightness(1.12); }
.video__poster strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.video__poster span { font-size: var(--step--1); color: #d9d3e8; }
.video__play {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--ochre);
  display: grid; place-items: center;
}
.video__play svg { width: 1.4rem; height: 1.4rem; fill: var(--ink); margin-left: 3px; }

/* --------------------------------------------------------------------------
   Cohort hub
   -------------------------------------------------------------------------- */
.hub-head { padding-block: var(--s-7) var(--s-6); border-bottom: 1px solid var(--rule); }
.hub-head__eyebrow { color: var(--muted); font-weight: 600; font-size: var(--step--1); margin-bottom: var(--s-2); }
.hub-head h1 { margin-bottom: var(--s-2); }
.hub-head__meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }

.up-next {
  display: grid;
  gap: var(--s-4) var(--s-6);
  background: var(--ink);
  color: #efe9dc;
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
  margin-block: var(--s-6);
}
@media (min-width: 52em) { .up-next { grid-template-columns: 1fr auto; align-items: center; } }
.up-next__label { color: #f1d89a; font-weight: 600; font-size: var(--step--1); margin-bottom: var(--s-1); }
.up-next h2 { color: #fff; margin-bottom: var(--s-1); }
.up-next__dates { font-size: var(--step-1); color: #efe9dc; margin: 0; }
.up-next__dates small { display: block; font-size: var(--step--1); color: #d9d3e8; margin-top: var(--s-1); }

.module-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.module-grid li { margin: 0; }
.tile {
  display: block;
  height: 100%;
  padding: var(--s-4) var(--s-4) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 150ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
a.tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.tile--muted { background: transparent; border-style: dashed; color: var(--muted); }
.tile--now { border-color: var(--ochre); background: var(--ochre-tint); }
.tile--done .tile__num { color: var(--muted); }
.tile__num { font-family: var(--font-display); font-size: var(--step-3); color: var(--ochre-deep); line-height: 1; margin-bottom: var(--s-2); }
.tile__title { font-weight: 600; color: var(--ink); margin-bottom: var(--s-1); text-wrap: balance; }
.tile__dates { font-size: var(--step--1); color: var(--muted); }
.tile__soon { font-size: 0.8rem; color: var(--muted); margin-top: var(--s-2); }

.hub-body { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 60em) { .hub-body { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s-8); } }

.local-nav { font-size: var(--step--1); }
@media (min-width: 60em) { .local-nav { position: sticky; top: 5.25rem; align-self: start; z-index: var(--z-sticky); } }
.local-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
@media (min-width: 60em) { .local-nav ul { display: block; } }
.local-nav li { margin: 0; }
.local-nav a {
  display: inline-block;
  padding: 0.3em 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
@media (min-width: 60em) { .local-nav a { display: block; border-bottom: 0; border-left: 2px solid var(--rule); padding: 0.35em 0.75em; } }
.local-nav a:hover { color: var(--ink); }
.local-nav a.is-active { color: var(--ink); border-color: var(--ochre); }

.section-block { padding-block: var(--s-5); border-top: 1px solid var(--rule); }
.section-block:first-child { border-top: 0; padding-top: 0; }
.section-block h2 { margin-bottom: var(--s-4); }
.section-block .prose h2 { font-size: var(--step-2); margin-top: var(--s-5); }
.section-block .prose h3 { font-size: var(--step-1); margin-top: var(--s-5); }

.to-top {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: var(--z-sticky);
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 1.1rem; height: 1.1rem; }

/* --------------------------------------------------------------------------
   Module page
   -------------------------------------------------------------------------- */
.module-head { padding-block: var(--s-6) var(--s-6); }
.module-head__back { font-size: var(--step--1); font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4em; align-items: center; margin-bottom: var(--s-4); }
.module-head__back:hover { text-decoration: underline; }
.module-head__num { font-family: var(--font-display); color: var(--ochre-deep); font-size: var(--step-1); margin-bottom: var(--s-1); }
.module-head__dates { color: var(--muted); font-size: var(--step-1); margin-bottom: var(--s-3); }
.module-head__summary { max-width: var(--measure); font-size: var(--step-1); color: var(--ink); }

.module-nav { border-block: 1px solid var(--rule); background: color-mix(in oklab, var(--bg) 92%, white); position: sticky; top: 4.25rem; z-index: var(--z-sticky); }
.module-nav ul { list-style: none; padding: 0 var(--s-6) 0 0; margin: 0; display: flex; gap: var(--s-4); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
.module-nav ul::-webkit-scrollbar { display: none; }
.module-nav li { margin: 0; flex: 0 0 auto; }
.module-nav a { display: block; padding: var(--s-3) 0; font-size: var(--step--1); font-weight: 600; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.module-nav a:hover, .module-nav a.is-active { color: var(--ink); border-bottom-color: var(--ochre); }
.module-body > .section-block:first-child { padding-top: var(--s-6); }
.section-block { scroll-margin-top: 8rem; }

.media-day { padding-block: var(--s-5); }
.media-day + .media-day { border-top: 1px solid var(--rule); }
.media-day__label { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); margin-bottom: var(--s-4); display: flex; gap: var(--s-3); align-items: baseline; }
.media-day__label small { font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); }

.video-list { display: grid; gap: var(--s-5); }
@media (min-width: 52em) { .video-list--multi { grid-template-columns: 1fr 1fr; } }
.video-item figcaption { margin-top: var(--s-2); font-size: var(--step--1); color: var(--muted); display: flex; justify-content: space-between; gap: var(--s-3); }
.video-item figcaption strong { color: var(--ink); font-weight: 600; }
figure.video-item { margin: 0; }

.audio-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.audio-list li { margin: 0; }
.audio-item {
  display: grid;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  align-items: center;
}
@media (min-width: 52em) { .audio-item { grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr) auto; } }
.audio-item__title { font-weight: 600; color: var(--ink); }
.audio-item__title small { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.audio-item audio { width: 100%; height: 2.4rem; }
.audio-item__dl { font-size: var(--step--1); white-space: nowrap; }

.slides { display: grid; gap: var(--s-4); }
.slides__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.slides__frame iframe { width: 100%; height: 100%; border: 0; }
.slides__meta { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; align-items: center; }

.plain-list { padding-left: 1.2em; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 0; padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   Login / plain pages
   -------------------------------------------------------------------------- */
.plain { padding-block: var(--s-8); }
.login {
  max-width: 26rem;
  margin: var(--s-8) auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.login h1 { font-size: var(--step-3); }
.login p { color: var(--muted); }
.field { display: grid; gap: var(--s-1); margin-bottom: var(--s-4); }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.field input, .field select {
  font: inherit;
  padding: 0.6em 0.8em;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--ink); }
.field input::placeholder { color: var(--muted); }
.form-error {
  background: #f7e3dc;
  color: #7a2b1a;
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
  font-size: var(--step--1);
}
.login .btn { width: 100%; justify-content: center; }
.login__help { margin-top: var(--s-4); font-size: var(--step--1); text-align: center; }

.notfound { text-align: center; padding-block: var(--s-9); }
.notfound h1 { font-size: var(--step-5); }

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .to-top, .module-nav, .local-nav { display: none; }
  body { background: #fff; color: #000; }
}
