/* BTEC Centre — design system v3.2
   Warm paper, hairlines, one quiet grotesque.
   Colour only when it means something (rust = deadlines/live).
   v3.2: self-hosted fonts · WCAG-fixed tokens · size floors ·
   mobile chrome fixes · current-week highlight · print pass. */

@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --paper: #FBFAF3;        /* warm white base */
  --paper-2: #F1EFE5;      /* tonal panel */
  --paper-3: #E8E5D8;      /* deeper panel / table band */
  --ink: #2B2A25;          /* headings, primary text — 13.7:1 */
  --soft: #565349;         /* body copy — 7:1 */
  --meta: #6E6B5E;         /* metadata text — ≥4.5:1, smallest sizes */
  --faint: #A5A295;        /* DECORATION ONLY — never text */
  --line: #DFDCCE;         /* hairline */
  --line-strong: #B9B5A4;
  --rust: #9A4522;         /* deadlines, live papers — used sparingly */
  --rust-wash: #F3E6DD;
  --school-red: #D0202E; /* the school colour — nav highlight */
  --ui: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only, .skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 14px;
  text-decoration: none;
}

/* ============ top bar ============ */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  /* byransford.com glass, verbatim (no ° — that mark stays on his site) */
  background: rgba(20, 20, 19, .62);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.top :focus-visible { outline-color: #F2EEE2; }
.brand {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  color: #F7F4EC;
}
.top-nav { display: flex; gap: 28px; justify-self: end; }
.top-nav a {
  font-family: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F7F4EC;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
}
.top-nav a:hover { color: #E8323E; }  /* school red, lifted for the dark glass */
.top-nav a.here { color: #E8323E; }

/* homepage: the bar floats fixed so the first photo runs clean behind the glass;
   its contents span the full width (brand hard left, nav hard right) */
body.home .top { position: fixed; top: 0; left: 0; right: 0; }
body.home .top-inner { max-width: none; margin: 0; }

/* header inner rail: matches main's container so the brand lines up with content */
.top-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

/* ============ layout ============ */
main {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ============ page head ============ */
.hero {
  padding: clamp(32px, 5vh, 52px) 0 clamp(22px, 3vh, 32px);
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 0 0 18px;
}
.wordmark {
  margin: 0;
  font-family: var(--ui);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.hero-intro {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--soft);
  max-width: 58ch;
}
.hero-intro a, .e-body a, .card-body a, .note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.hero-intro a:hover, .e-body a:hover, .card-body a:hover, .note a:hover { text-decoration-color: var(--ink); }

/* ============ sections ============ */
.entry { padding: clamp(24px, 3.2vh, 36px) 0; }
.e-head { display: flex; align-items: baseline; gap: 14px; }
.e-kicker {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
}
.e-title {
  margin: 0 0 .35em;
  font-family: var(--ui);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 40ch;
}
.e-body { max-width: 70ch; }
.e-body p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--soft); }
.e-body p + p { margin-top: 1.1em; }
.e-body b { color: var(--ink); font-weight: 500; }
.e-body em { color: var(--ink); font-style: italic; }

/* footnote */
.note {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .01em;
  line-height: 1.65;
  color: var(--meta);
  max-width: 78ch;
}

/* provisional / status flag — quiet inline text */
.flag {
  display: inline;
  font-style: italic;
  color: var(--soft);
}
.flag::before { content: '('; }
.flag::after { content: ')'; }

/* ============ chips ============ */
.chips { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 22px 0 0; padding: 0; list-style: none; }
.chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  letter-spacing: .01em;
}
.chip b { font-weight: 500; font-size: 16px; color: var(--rust); font-variant-numeric: tabular-nums; }
.chip span { font-size: 13.5px; color: var(--meta); }

.badge {
  display: inline-block;
  margin-left: 9px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 3px 11px 4px;
  vertical-align: 1px;
  background: var(--pill-bg, #F3E0D8);
  color: var(--pill-ink, #8A3A18);
}
.badge.deck    { --pill-bg: #E1EBF4; --pill-ink: #1F5480; }
.badge.booklet { --pill-bg: #E2EFE7; --pill-ink: #2A6344; }
.badge.paper   { --pill-bg: #F6EBD9; --pill-ink: #7A4A00; }
.badge.scheme  { --pill-bg: #EDE6F3; --pill-ink: #544484; }
.badge.report  { --pill-bg: #F1E9E3; --pill-ink: #66503E; }
.badge.soft    { --pill-bg: var(--paper-2); --pill-ink: var(--soft); }

/* ============ cards — tonal panels ============ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border-radius: 2px;
  background: var(--paper-2);
  padding: clamp(22px, 2.4vw, 32px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .2s ease;
}
a.card:hover { background: var(--paper-3); }
.card-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
}
.card-title {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.card-body { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--soft); }
.card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--meta);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-meta b { color: var(--rust); font-weight: 500; }

/* ============ content areas: one fold per area, sub-topics inside ============ */
.area-tag {
  font-size: 15px;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: .04em;
}
.fold.fold-area > summary { grid-template-columns: 2.2em minmax(0, 1fr) auto auto; }
.area-subs { list-style: none; margin: 2px 0 18px; padding: 0 0 0 calc(2.2em + 20px); display: grid; gap: 9px; }
.area-subs li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: 14px;
  font-size: .97rem;
  line-height: 1.5;
  color: var(--soft);
}
.area-subs b { font-weight: 500; color: var(--meta); font-variant-numeric: tabular-nums; }

/* ============ tables ============ */
.tbl-wrap { margin-top: 18px; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.tbl th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--meta);
  text-align: left;
  padding: 0 20px 9px 0;
  border-bottom: 1px solid var(--line);
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td { padding: 11px 20px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.tbl td b { color: var(--ink); font-weight: 500; }
.tbl td em { color: var(--ink); }
.tbl td a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tbl td a:hover { text-decoration-color: var(--ink); }
.tbl .num {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
  white-space: nowrap;
}
.tbl .num i { display: block; font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--meta); letter-spacing: .02em; margin-top: 4px; }
.tbl .when { font-size: 13.5px; letter-spacing: .03em; color: var(--soft); white-space: nowrap; font-weight: 500; }
.tbl tr.band td {
  background: var(--paper-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
  padding: 8px 20px 8px 10px;
}
.tbl tr.key .when, .tbl tr.key b { color: var(--rust); }

/* term plans: one shape on every component page.
   weeks + dates | focus, with its date on its own line | detail, one item per line */
.plan .num { width: 132px; }
.plan .num b { font-weight: 600; color: var(--ink); }
.plan .focus { width: 210px; padding-right: 32px; }
.plan .focus b { display: block; font-weight: 500; color: var(--ink); }
.plan .focus .date {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rust);
  white-space: nowrap;
}
.plan .focus .sub { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--meta); }
.plan .detail { min-width: 280px; }
.plan .detail ul { list-style: none; margin: 0; padding: 0; }
.plan .detail li + li { margin-top: 6px; }
.plan .detail li.due { color: var(--rust); font-weight: 500; }
.plan tr.key .focus b { color: var(--rust); }
.plan tr.key .num b { color: var(--ink); }   /* the week label stays ink; only the focus turns rust */
.plan tr.band td { padding-left: 0; }

/* on a phone the three columns stack into one card per block, so nothing
   has to be read by scrolling sideways */
@media (max-width: 640px) {
  .plan, .plan tbody, .plan tr, .plan td { display: block; }
  .plan thead { display: none; }
  .plan tr { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
  .plan tbody tr:last-child { border-bottom: 0; }
  .plan td { border: 0; padding: 0; width: auto; }
  .plan .num { margin-bottom: 6px; }
  .plan .focus { margin-bottom: 10px; padding-right: 0; }
  .plan .detail { min-width: 0; }
  .plan tr.band { padding: 0; border-bottom: 0; }
  .plan tr.band td { padding: 8px 10px; }
  .plan tr.now { background: var(--paper-2); }
}

/* current teaching block (set by js on [data-weeks] rows) */
.tbl tr.now td { background: var(--paper-2); }
.plan tr.now .num b::after {
  content: "Current";
  display: inline-block;
  margin-left: 9px;
  padding: 2px 8px 3px;
  border-radius: 999px;
  background: var(--rust-wash);
  color: var(--rust);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ============ doc rows ============ */
.doclist { list-style: none; margin: 18px 0 0; padding: 0; }
.doclist li { border-bottom: 1px solid var(--line); }
.doclist li:first-child { border-top: 1px solid var(--line); }
.docrow {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto 4.5em;
  gap: 18px;
  align-items: baseline;
  width: 100%;
  padding: 15px 4px;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease;
}
.docrow span:first-child { font-size: 13px; color: var(--meta); letter-spacing: .04em; }
.docrow span:nth-child(3) { font-size: 13.5px; color: var(--meta); letter-spacing: .01em; }
.docrow span:last-child { font-size: 12.5px; color: var(--meta); text-align: right; letter-spacing: .08em; text-transform: uppercase; }
.docrow:hover { background: var(--paper-2); }

/* ============ folds: collapsible document groups ============ */
.folds { margin-top: 18px; }
.fold { border-top: 1px solid var(--line); }
.folds .fold:last-child { border-bottom: 1px solid var(--line); }
.fold > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: baseline;
  padding: 13px 4px;
  font-weight: 500;
  font-size: 16.5px;
  color: var(--ink);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary i { font-style: normal; font-weight: 400; font-size: 13.5px; letter-spacing: .01em; color: var(--meta); text-align: right; }
.fold > summary::after {
  content: "+";
  align-self: center;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: var(--soft);
}
.fold[open] > summary::after { content: "\2212"; }
.fold > summary:hover::after { border-color: var(--ink); color: var(--ink); }
.fold > summary:hover { background: var(--paper-2); }
.fold .doclist { margin: 0 0 8px; }
.fold .doclist li:first-child { border-top: 0; }
.fold .doclist li:last-child { border-bottom: 0; }
.fold .docrow { padding-left: 16px; }

/* section-level fold: a whole term plan behind one summary */
.fold-plan > summary { padding: 13px 4px; }
.fold-plan > summary .e-title { margin: 0; }
.fold-plan > summary i { font-size: 14px; }
.fold-plan .tbl-wrap { margin-top: 14px; margin-bottom: 22px; }
.fold-plan > .note:first-of-type { margin-top: 14px; }

/* the next deadline: always visible, carries more weight */
.fixtures + .fold { margin-top: 22px; border-bottom: 1px solid var(--line); }
#deadline-next { margin-top: 10px; }
#deadline-next li { border: 0; }
.fixture.next { padding: 10px 0 6px; }
.fixture.next .fx-when { font-size: 20px; color: var(--rust); }
.fixture.next .fx-what { font-size: 20px; }
.fixture.next .fx-what i { font-size: 14px; margin-top: 5px; }
.fx-next-label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 26px 0 0;
}

/* ============ pull quote ============ */
.pull {
  margin: 44px auto;
  max-width: 44em;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
}
.pull cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--ui); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--meta); }

/* ============ calendar: one half term at a time ============ */
.tc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tc-title {
  display: inline;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.tc-range { margin-left: 12px; font-size: 13px; color: var(--meta); }
.tc-tabs { display: flex; gap: 16px; flex-wrap: wrap; }
.tc-tab {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--meta);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.tc-tab:hover { color: var(--ink); }
.tc-tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.tc-grid { margin-top: 26px; }
.tc-dow, .tc-week {
  display: grid;
  grid-template-columns: 92px repeat(5, 1fr);
  gap: 0 12px;
}
.tc-dow span {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--meta);
  padding-bottom: 8px;
}
.tc-week { border-top: 1px solid var(--line); }
.tc-wc { font-size: 13px; color: var(--meta); padding: 10px 0; white-space: nowrap; }
.tc-d { padding: 10px 5px 14px; min-height: 64px; }
.tc-d.out { opacity: .35; }
.tc-num { display: block; font-size: 13px; color: var(--meta); font-variant-numeric: tabular-nums; }
.tc-d.today { background: var(--paper-3); border-radius: 4px; }
.tc-d.today .tc-num { color: var(--ink); font-weight: 600; }
.tc-ev {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--rust);
}
.tc-ev.y11 { color: var(--ink); }
.tc-ev.both { color: var(--meta); }
.tc-ev.internal { color: var(--soft); font-style: italic; }
.cal-key i.internal { background: var(--line-strong); }
.cal-key {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--meta);
}
.cal-key i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rust);
  margin-right: 7px;
}
.cal-key i.y11 { background: var(--ink); }
.cal-key i.both { background: var(--meta); }
.cal-out-key { color: var(--meta); }
@media (max-width: 680px) {
  .tc-dow, .tc-week { grid-template-columns: 58px repeat(5, 1fr); gap: 0 6px; }
  .tc-wc { font-size: 10.5px; }
  .tc-ev { font-size: 11.5px; }
}

/* ============ deadlines list (assessment) ============ */
.fixtures { list-style: none; margin: 28px 0 0; padding: 0; }
.fixtures li { border-bottom: 1px solid var(--line); }
.fixtures li:first-child { border-top: 1px solid var(--line); }
.fixture {
  display: grid;
  grid-template-columns: 11.5em minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 4px;
}
.fx-when { font-weight: 500; font-size: 16.5px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-what { font-weight: 500; font-size: 16.5px; color: var(--ink); line-height: 1.4; }
.fx-what i { display: block; font-style: normal; font-size: 13.5px; font-weight: 400; letter-spacing: .01em; color: var(--meta); margin-top: 3px; }
.fx-tag { font-size: 13.5px; font-weight: 500; letter-spacing: .03em; color: var(--ink); white-space: nowrap; }
.fx-tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--ink);
}
.fx-tag.y10::before { background: var(--rust); }
.fx-tag.both::before { background: var(--meta); }
/* internal deadlines: ours, set two weeks ahead of Pearson's */
.fixture.internal .fx-when { color: var(--ink); }
.fixture.internal .fx-what { font-weight: 400; }
.fixture.internal .fx-what::after {
  content: "internal";
  margin-left: 9px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--paper-3);
  border-radius: 999px;
  padding: 3px 10px 4px;
  vertical-align: 2px;
}
.fixture.u-now { background: var(--rust-wash); }
.fixture.u-now .fx-when, .fixture.u-now .fx-what { color: var(--rust); }
.fixture.u-soon .fx-when { color: var(--rust); }

/* ============ home: full-screen component panels ============ */
.panel {
  position: sticky;
  top: 0;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* every sheet that slides over another gets the rounded leading edge */
.panel + .panel {
  border-radius: 26px 26px 0 0;
  /* clip the photo to the curve on its own layer so the corners stay crisp */
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
  transform: translateZ(0);
}

/* the paper footer slides over the last pinned panel (homepage only) */
.panel ~ .foot {
  position: relative;
  z-index: 2;
  margin: 0 0 0 calc(50% - 50vw);
  width: 100vw;
  background: var(--paper);
  padding: 26px clamp(20px, 5vw, 64px) 44px;
  border-top: 0;
  border-radius: 20px 20px 0 0;
}
.panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 40%);
  background: var(--paper-2);
}
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 22, 17, .52) 0%, rgba(24, 22, 17, .18) 48%, rgba(24, 22, 17, 0) 75%),
    linear-gradient(0deg, rgba(24, 22, 17, .58) 0%, rgba(24, 22, 17, .18) 34%, rgba(24, 22, 17, 0) 60%);
}
.panel-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(32px, 7vh, 80px) clamp(20px, 5vw, 64px);
}
.panel .row-kicker {
  font-size: 12px;
  color: rgba(251, 250, 243, .72);
  margin-bottom: 16px;
}
.panel .row-title {
  color: #FBFAF3;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  max-width: 22ch;
  text-wrap: balance;
}
.panel .panel-name {
  color: rgba(251, 250, 243, .8);
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
  margin: 12px 0 0;
}
.panel-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 32px;
  margin-top: 34px;
}
.panel-links a {
  color: #FBFAF3;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(251, 250, 243, .38);
  padding-bottom: 3px;
  transition: border-color .15s ease;
}
.panel-links a:hover { border-bottom-color: #FBFAF3; }
.panel-links em {
  font-style: normal;
  color: rgba(251, 250, 243, .62);
  font-size: 12.5px;
  margin-left: 8px;
}
.panel a:focus-visible { outline-color: #FBFAF3; }

.row-kicker {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 0 0 14px;
}
.row-title {
  font-family: var(--ui);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0;
  max-width: 22ch;
}
.linklist { list-style: none; margin: 26px 0 0; padding: 0; max-width: 34em; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist li:first-child { border-top: 1px solid var(--line); }
.linklist a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 2px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: padding-left .18s ease;
}
.linklist a span:last-child { color: var(--meta); font-size: 14px; }
.linklist a:hover { padding-left: 10px; }
.linklist a:hover span:last-child { color: var(--ink); }
.linklist a em { font-style: normal; color: var(--meta); font-size: 12.5px; margin-left: 8px; }
/* ============ footer ============ */
.foot {
  margin-top: clamp(56px, 9vh, 100px);
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--meta);
}
.foot a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============ reveal — slide-up on entry (sprint social curve) ============ */
.r {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1),
              transform 1s cubic-bezier(.22, 1, .36, 1);
}
.r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .28s; }

/* ============ responsive ============ */
/* six nav items need less air on mid-size windows, but stay on one row, right-aligned */
@media (max-width: 1040px) {
  .top-nav { gap: 18px; }
  .top-nav a { letter-spacing: .1em; }
}
@media (max-width: 880px) {
  .cards, .cards.cols-3 { grid-template-columns: 1fr; }
  .docrow { grid-template-columns: 2.4em minmax(0,1fr) 4em; }
  .docrow span:nth-child(3) { display: none; }
  .fixture { grid-template-columns: minmax(0,1fr) auto; }
  .fx-when { grid-column: 1 / -1; padding-bottom: 2px; }
  .fold > summary { grid-template-columns: minmax(0,1fr) auto; }
  .fold > summary i { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-inner { gap: 12px; height: auto; padding-top: 12px; padding-bottom: 12px; grid-template-columns: 1fr; }
  .top-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .season-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .season-months span:nth-child(even) { color: transparent; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .r { opacity: 1; transform: none; }
}

/* ============ print — noticeboard-ready ============ */
@media print {
  :root {
    --paper: #fff; --paper-2: #f2f0e8; --paper-3: #e8e5da;
    --ink: #111; --soft: #333; --meta: #555;
    --line: #bbb; --line-strong: #333;
    --rust: #8a3210; --rust-wash: #f4e8e0;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
  .top, .season, .skip, .foot a { display: none; }
  .hero { padding: 0 0 14px; }
  .entry { padding: 20px 0; }
  a { text-decoration: none; }
}
