/* ==========================================================================
   ICTOB redesign — subpage components
   Loaded after site.css. Uses only tokens declared in tokens.css.
   Homepage does not need these, but they are harmless there and keep every
   page on one stylesheet.
   ========================================================================== */

/* ------------------------------------------------------------------ *
 * Page hero — every subpage opens with this
 * ------------------------------------------------------------------ */
.page-hero {
  padding-block: clamp(44px, 6vw, 76px) clamp(20px, 3vw, 36px);
}
.page-hero__inner { width: var(--content); margin-inline: auto; }
.page-hero h1 {
  font: 400 clamp(34px, 4.6vw, 56px) / 1.06 var(--serif);
  letter-spacing: -.02em;
  margin: 14px 0 0;
}
/* Hero-sized heading that is not the page <h1> — used by the hidden
   "event not found" fallback so a page never ships two <h1>s. */
.page-hero .hero-title {
  font: 400 clamp(34px, 4.6vw, 56px) / 1.06 var(--serif);
  letter-spacing: -.02em; color: var(--ink);
  margin: 14px 0 0;
}
.page-hero .lede { margin-top: 16px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-top: 20px; color: var(--ink-3); font: 500 14px/1.4 var(--sans);
}

/* breadcrumb — removed at the user's request; the page hero's own eyebrow
   carries the section label instead. */
.crumbs { display: none; }

/* ------------------------------------------------------------------ *
 * Section scaffolding
 * ------------------------------------------------------------------ */
.sec-head { width: var(--content); margin-inline: auto; margin-bottom: 26px; }
.sec-head h2 {
  font: 400 clamp(26px, 3vw, 40px) / 1.12 var(--serif);
  letter-spacing: -.015em; margin: 0;
}
.sec-head .lede { margin-top: 12px; }
.sec-head--row {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-end; justify-content: space-between;
}

/* ------------------------------------------------------------------ *
 * Grids
 * ------------------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }
.grid--tight { gap: 14px; }

/* ------------------------------------------------------------------ *
 * Tile — the workhorse content card
 * ------------------------------------------------------------------ */
.tile {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
a.tile:hover, .tile--link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.tile__icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--panel-lilac); color: var(--brand-deep);
  margin-bottom: 4px;
}
.tile__icon .ic { width: 22px; height: 22px; }
.tile h3 { font: 600 19px / 1.25 var(--sans); margin: 0; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
/* margin-top:auto pins the footer to the card's bottom edge, so a wrapping
   title or a longer bullet list in a sibling card does not lift its link. */
.tile__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tile--butter .tile__icon { background: var(--panel-butter); }
.tile--mint   .tile__icon { background: var(--panel-mint); }
.tile--sky    .tile__icon { background: var(--panel-sky); }
.tile--peach  .tile__icon { background: var(--panel-peach); }
.tile--lilac  .tile__icon { background: var(--panel-lilac); }
.tile--periwinkle .tile__icon { background: var(--panel-periwinkle); }
/* bullet lists inside a tile — used by the partner-format cards */
.tile ul {
  margin: 4px 0 0; padding-left: 1.15em;
  font-size: 14px; line-height: 1.5; color: var(--ink-3);
}
.tile li + li { margin-top: .3em; }

/* ------------------------------------------------------------------ *
 * Toolbar — filters + search above a list
 * ------------------------------------------------------------------ */
.toolbar {
  width: var(--content); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between;
  padding: 14px 0 22px;
}
.toolbar__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg-pill {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
  padding: 9px 16px; border-radius: var(--r-pill);
  font: 600 13.5px / 1 var(--sans);
  white-space: nowrap;   /* a pill's label is never allowed to wrap */
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg-pill:hover { background: var(--panel-lilac); color: var(--brand-deep); }
.seg-pill[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 16px; min-width: 240px;
}
.search input {
  border: 0; outline: 0; background: none; width: 100%;
  font: 500 14.5px / 1.4 var(--sans); color: var(--ink);
}
.search .ic { width: 17px; height: 17px; color: var(--ink-3); flex: none; }

/* ------------------------------------------------------------------ *
 * Long-form prose (about / legal)
 * ------------------------------------------------------------------ */
.prose { max-width: 74ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font: 400 clamp(24px, 2.4vw, 32px) / 1.2 var(--serif);
  color: var(--ink); margin-top: 2em; letter-spacing: -.012em;
}
.prose h3 { font: 600 19px / 1.3 var(--sans); color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--panel-lilac);
  font: 400 italic 20px / 1.6 var(--serif); color: var(--ink);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ------------------------------------------------------------------ *
 * Empty state
 * ------------------------------------------------------------------ */
.empty {
  width: var(--content); margin-inline: auto;
  text-align: center; padding: 56px 24px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.empty__icon {
  width: 56px; height: 56px; border-radius: var(--r-md); margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--panel-butter); color: var(--brand-deep);
}
.empty h3 { font: 600 20px / 1.3 var(--sans); margin: 0 0 8px; }
.empty p { margin: 0 auto; max-width: 46ch; color: var(--ink-2); line-height: 1.6; }

/* ------------------------------------------------------------------ *
 * Person card — team / group pages
 * ------------------------------------------------------------------ */
.person {
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--sh-1); overflow: clip;
  display: grid; grid-template-rows: auto 1fr;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.person:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.person__photo {
  aspect-ratio: 1 / 1; position: relative; overflow: clip;
  background: var(--panel-sky);
}
/* Both the initials and the photo are absolutely positioned so DOM order (photo
   last) decides the paint order. Leaving the <img> in normal flow let the
   absolutely-positioned initials paint on top of every face. */
.person__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
}
.person__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 clamp(30px, 6vw, 46px) / 1 var(--serif); color: var(--brand-deep);
}
.person__body { padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.person__name { font: 600 17px / 1.3 var(--sans); margin: 0; letter-spacing: -.01em; }
.person__role { font: 500 13.5px / 1.4 var(--sans); color: var(--brand); }
.person__org { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.person__socials { display: flex; gap: 8px; margin-top: 8px; }
.person__socials a {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--bg); color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.person__socials a:hover { background: var(--brand); color: #fff; }
.person__socials .ic { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ *
 * FAQ accordion
 * ------------------------------------------------------------------ */
.faq { width: var(--content); margin-inline: auto; display: grid; gap: 10px; }
.faq__item { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: clip; }
.faq__btn {
  width: 100%; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  text-align: left; padding: 20px 22px; background: none; border: 0; cursor: pointer;
  font: 600 16.5px / 1.4 var(--sans); color: var(--ink);
}
.faq__btn:hover { color: var(--brand); }
.faq__btn .ic { flex: none; width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.faq__item[data-open="true"] .faq__btn .ic { transform: rotate(180deg); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease); }
.faq__item[data-open="true"] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { padding: 0 22px 22px; margin: 0; color: var(--ink-2); line-height: 1.68; }

/* ------------------------------------------------------------------ *
 * Winners — podium + results table
 * ------------------------------------------------------------------ */
.podium {
  width: var(--content); margin-inline: auto;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: end;
}
.podium__card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: 30px 24px;
  display: grid; gap: 10px; justify-items: center; text-align: center;
}
.podium__card--1 { background: linear-gradient(180deg, #fff 30%, var(--panel-butter)); }
.podium__card--2 { background: linear-gradient(180deg, #fff 30%, #eceef3); }
.podium__card--3 { background: linear-gradient(180deg, #fff 30%, var(--panel-peach)); }
.podium__rank { font: 600 11.5px / 1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.podium__medal {
  width: 58px; height: 58px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--sh-1); color: var(--brand);
}
.podium__medal .ic { width: 26px; height: 26px; }
.podium__name { font: 400 22px / 1.25 var(--serif); margin: 0; letter-spacing: -.01em; }
.podium__meta { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

.tablewrap {
  width: var(--content); margin-inline: auto;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: auto;
}
.wtable { width: 100%; border-collapse: collapse; min-width: 660px; }
.wtable th, .wtable td { text-align: left; padding: 15px 18px; font-size: 14.5px; }
.wtable thead th {
  font: 600 11.5px / 1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); background: var(--bg);
  position: sticky; top: 0; z-index: 1;
}
.wtable tbody tr + tr { border-top: 1px solid var(--line); }
.wtable tbody tr:hover { background: #fbf9fd; }
.wtable .rank { font: 600 15px / 1 var(--sans); color: var(--brand); width: 72px; }
.wtable .name { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------ *
 * Auth (login / register)
 * ------------------------------------------------------------------ */
.auth {
  width: min(460px, 100% - 40px); margin: clamp(40px, 7vw, 84px) auto;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: clamp(26px, 4vw, 40px);
}
.auth h1 { font: 400 clamp(26px, 3vw, 34px) / 1.15 var(--serif); margin: 12px 0 6px; }
.auth .field label { font: 600 13.5px / 1 var(--sans); color: var(--ink-2); }
.auth input, .auth select, .auth textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font: 500 15px / 1.4 var(--sans);
  background: var(--bg); color: var(--ink);
}
.auth input:focus-visible, .auth select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.auth__alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-2); }
.auth__alt a { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------------ *
 * Steps, stats, CTA band, misc
 * ------------------------------------------------------------------ */
.steps { width: var(--content); margin-inline: auto; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.step__num {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--brand); color: #fff;
  font: 600 16px / 1 var(--sans);
}
.step h3 { font: 600 18px / 1.3 var(--sans); margin: 0 0 4px; }
.step p { margin: 0; color: var(--ink-2); line-height: 1.62; }

.stat-row {
  width: var(--content); margin-inline: auto;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-box { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 22px; }
.stat-box b { display: block; font: 400 clamp(28px, 3.4vw, 40px) / 1 var(--serif); color: var(--ink); }
.stat-box span { display: block; margin-top: 8px; font: 500 13.5px / 1.4 var(--sans); color: var(--ink-3); }

.cta-band {
  width: var(--content); margin-inline: auto;
  background: var(--brand-deep); color: #fff;
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { font: 400 clamp(24px, 3vw, 36px) / 1.15 var(--serif); margin: 0; color: #fff; }
.cta-band p { margin: 10px 0 0; color: rgba(255, 255, 255, .78); max-width: 52ch; line-height: 1.62; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* alternating section wash — keeps long subpages from reading as one wall */
.section--alt { background: linear-gradient(180deg, transparent, rgba(112, 40, 192, .035) 18%, rgba(112, 40, 192, .035) 82%, transparent); }
/* ghost button that survives a dark surface (.btn--ghost uses dark ink) */
.btn--ghost-light {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }

/* A link that behaves like a card — the whole surface is the hit target.
   Used on join-all / partners / recruitments to route to a sub-page. */
.cta-card {
  display: grid; gap: 7px; align-content: start;
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 22px;
  color: var(--ink); text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cta-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); }
.cta-card__label {
  font: 600 11px / 1 var(--sans); letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand);
}
.cta-card__title { font: 600 19px / 1.25 var(--sans); letter-spacing: -.01em; }
.cta-card__body { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cta-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.media-card {
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--sh-1); overflow: clip; display: grid;
  /* minmax(0, 1fr) is load-bearing. With a bare `display: grid` the implicit
     column is `auto`, which resolves to the <img>'s intrinsic width — and the
     blog covers range from 564px to 2200px wide. Each card therefore sized its
     own image column to a different width (285 / 313 / 322 / 332 px inside a
     285px card) and every photo was cropped by a different amount. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
.media-card__img {
  aspect-ratio: 16 / 10; min-width: 0;
  overflow: clip; background: var(--panel-sky);
}
.media-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-card__body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
/* The category label used to be a filled lilac pill. On a card that is only
   ~245px of content it read as a purple oval blob, so it is now a plain small
   caps label in the brand colour. Two lines are reserved because the real
   source labels are long ("Remote Control & Automation Systems" wraps) and a
   wrapped label would otherwise push that card's title 13px below its
   neighbours'. */
.media-card .tag--brand {
  background: none; padding: 0; border-radius: 0; align-self: flex-start;
  font: 600 11px / 1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  min-height: calc(2 * 1.2em);
}
.media-card__body h3 {
  font: 600 16.5px / 1.35 var(--sans); margin: 0; letter-spacing: -.005em;
  /* Reserve exactly three lines so every title starts and ends on the same
     grid line, and cap at four so nothing can run off the card. */
  min-height: calc(3 * 1.35em);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: break-word;
}
/* Bottom-pinned meta keeps the date/read row on one line across a row of
   cards even when the titles differ in length. */
.media-card__body .caption { margin-top: auto; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--bg); font: 600 12px / 1 var(--sans); color: var(--ink-2);
}
.tag--brand { background: var(--panel-lilac); color: var(--brand-deep); }
.divider { width: var(--content); margin: clamp(36px, 5vw, 64px) auto; border: 0; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ *
 * Syllabus browser
 * ------------------------------------------------------------------ */
.syl-panel {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: clamp(22px, 3vw, 34px);
}
.syl-panel__head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: baseline; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.syl-panel__head h3 { font: 400 22px / 1.2 var(--serif); margin: 0; }
.syl-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.syl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.syl-seg {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15.5px; line-height: 1.5; color: var(--ink);
}
.syl-seg .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand); }

/* ------------------------------------------------------------------ *
 * Winners — real data from assets/data/winners.json
 * ------------------------------------------------------------------ */
.wgroups { display: grid; gap: 44px; }

.wgroup__title {
  display: flex; align-items: center; gap: 12px;
  /* must match .podium's box, or the heading sits flush with the page edge
     while the cards are inset — the "heading is too far left" bug */
  width: var(--content); margin: 0 auto 20px;
  font: 500 clamp(22px, 2.5vw, 28px) / 1.2 var(--serif);
  letter-spacing: -.01em; color: var(--ink);
  padding-bottom: 14px; border-bottom: 2px solid var(--line);
}
.wgroup__dot {
  width: 11px; height: 11px; border-radius: var(--r-pill);
  background: var(--brand); flex: none;
}

/* ---- class filter: label · ‹ · scrolling pills · › ----
   The arrows are flex siblings of the scroller, NOT overlays — as overlays they
   sat on top of the first and last pill and read as broken artwork rather than
   buttons. The track keeps the overflow, and `flex: 1 1 0` + `min-width: 0`
   stop it widening the page (a scrolling child does not constrain its parent). */
.pillstrip {
  --psnav: 32px; --psgap: 8px;
  display: flex; align-items: center; gap: var(--psgap);
  flex: 1 1 0; max-width: 100%; min-width: 0;
}
.toolbar > .caption { flex: none; white-space: nowrap; }
.pillstrip__label {
  flex: none; font: 700 11px / 1 var(--sans);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.pillstrip__track {
  display: flex; gap: 9px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  flex: 1 1 0; min-width: 0; padding: 4px 0;
}
.pillstrip__track::-webkit-scrollbar { display: none; }
.pillstrip__track > * { flex: none; }
.pillstrip__nav {
  flex: none; width: var(--psnav); height: var(--psnav); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--sh-1), 0 0 0 1px var(--line);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.pillstrip__nav .ic { width: 14px; height: 14px; }
/* dimmed, never removed — a hidden arrow reads as "there is nothing there" */
.pillstrip__nav[disabled] { opacity: .28; pointer-events: none; }
@media (hover: hover) { .pillstrip__nav:hover { transform: scale(1.08); } }

/* Podium: 1st runner-up · CHAMPION · 2nd runner-up. The champion column is
   wider, so its 4:3 photo is taller and — bottom-aligned — the card rises above
   the two runners-up. `order` keeps the DOM in rank order, which is what screen
   readers and the single-column phone layout use. */
.podium {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: end;
}
.podium:has(> .winner:nth-child(3)) { grid-template-columns: 1fr 1.3fr 1fr; }
.winner--first-runner-up { order: 1; }
.winner--champion { order: 2; }
.winner--second-runner-up { order: 3; }

.winner {
  position: relative;
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--sh-1); overflow: clip;
  display: flex; flex-direction: column;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.winner:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

/* Each rank tints the WHOLE card. The champion is properly golden with a gold
   ring; the runners-up are a silver / bronze wash and carry no figure. */
.winner { --metal-deep: var(--ink-3); }
.winner--champion { --metal-deep: var(--gold-deep); }
.winner--first-runner-up { --metal-deep: var(--silver-deep); }
.winner--second-runner-up { --metal-deep: var(--bronze-deep); }

.winner--champion {
  background: linear-gradient(180deg, #fffdf4 0%, #fbeeb6 52%, #f0d67c 100%);
  box-shadow: var(--sh-2), 0 0 0 2px var(--gold);
}
/* The photo occupies the top ~2/3 of the card, so the metal has to be strong
   by the time the gradient reaches the visible body — a gentle wash reads as
   "white card" rather than silver / bronze. */
.winner--first-runner-up { background: linear-gradient(180deg, #ffffff 0%, #dde3ec 40%, #c1ccdb 100%); }
.winner--second-runner-up { background: linear-gradient(180deg, #fffdfa 0%, #f7dcc3 40%, #e5b78c 100%); }

/* Photo and initials are BOTH absolutely positioned so DOM order decides the
   paint order. Leaving the <img> in normal flow lets the absolutely-positioned
   initials paint on top of every face. */
/* A results list, not a photo gallery. The photo is the top third; the card
   stays compact so 19 categories scan quickly instead of becoming 19 screens. */
.winner__photo {
  position: relative; aspect-ratio: 4 / 3; overflow: clip;
  background: var(--panel-periwinkle);
  flex: none;
}
.winner__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
}
.winner__initials {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font: 600 40px / 1 var(--serif); color: var(--brand-deep);
  letter-spacing: .02em;
}
/* Body: content is centred as a tight group rather than pinned to the top with
   a stretched spacer, which used to leave the class label stranded at the
   bottom of the card. Equal card heights come from the grid's align-items:
   stretch plus the identical 4:3 photo ratio — not from padding the text. */
.winner__body {
  padding: 16px 18px 20px; display: grid; gap: 7px; align-content: start;
  text-align: center; justify-items: center; flex: 1;
}
.winner__rank {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 700 10.5px / 1 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; color: var(--metal-deep);
  min-height: 12px;
}
.winner--champion .winner__rank { font-size: 11.5px; }
.winner__name {
  font: 600 17px / 1.3 var(--sans); margin: 0; letter-spacing: -.01em;
  color: var(--ink);
  /* clamp to two lines so a long name cannot stretch one card past its row */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.winner--champion .winner__name { font-size: 18.5px; }
.winner__group {
  margin: 0; font: 500 13px / 1.4 var(--sans); color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* current page marker in the primary nav */
.nav__drop a[aria-current="page"],
.nav__links > li > a[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------------ *
 * Subpage responsive
 * ------------------------------------------------------------------ */
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .step { grid-template-columns: 36px 1fr; gap: 14px; }
  .step__num { width: 36px; height: 36px; font-size: 14px; }
  /* The nav pill is position:fixed (top 12, height 56 -> bottom 68), so a
     subpage hero needs clearance or the crumbs slide underneath it. */
  .page-hero { padding-block: clamp(88px, 22vw, 120px) clamp(20px, 3vw, 36px); }
  /* single column: the champion goes FIRST (a vertical stack has no middle,
     and the winner should be the first thing read) */
  .podium,
  .podium:has(> .winner:nth-child(3)) { grid-template-columns: 1fr; }
  .winner--champion { order: 0; }
  .winner--first-runner-up { order: 1; }
  .winner--second-runner-up { order: 2; }
  .wgroup__title { font-size: 20px; }
}

/* ------------------------------------------------------------------ *
 * Article  (blog post)
 * ------------------------------------------------------------------ */
.post { width: var(--content); margin-inline: auto; }
.post__head { max-width: 74ch; }
.post__title {
  font: 400 clamp(28px, 4vw, 46px) / 1.14 var(--serif);
  letter-spacing: -.018em; color: var(--ink); margin: 14px 0 0;
}
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 18px; font: 500 13.5px / 1.5 var(--sans); color: var(--ink-3);
}
.post__meta .dot { color: var(--line); }
.post__author { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.post__avatar {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--panel-lilac);
  color: var(--brand-deep); font: 600 13px / 1 var(--sans);
}
.post__cover {
  margin: clamp(24px, 3.5vw, 40px) 0 0; border-radius: var(--r-lg);
  overflow: clip; box-shadow: var(--sh-1); background: var(--panel-sky);
  aspect-ratio: 16 / 9;
}
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__body { margin-top: clamp(28px, 4vw, 44px); }
.post__body.prose { max-width: 74ch; }
.post__foot {
  max-width: 74ch; margin-top: clamp(32px, 4vw, 52px);
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}

/* ------------------------------------------------------------------ *
 * Application form  (join pages)
 * ------------------------------------------------------------------ */
.appform {
  width: var(--content); margin-inline: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: clamp(22px, 3.4vw, 42px);
}
.appform__note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--panel-butter); border-radius: var(--r-md);
  padding: 16px 18px; margin-bottom: 26px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
}
.appform__note .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand-deep); }
.form-section { margin: 0 0 30px; padding: 0; border: 0; }
.form-section > legend,
.form-section__head {
  font: 600 12px / 1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px; padding: 0;
}
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid .field--wide { grid-column: 1 / -1; }
.checkline {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 4px 0 22px;
}
.checkline input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.checkline a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
/* Radio group. The label carries the control AND the text, so the text is
   wrapped in a <span> — an anonymous text run inside a flex label wraps and
   clips in ways that are hard to reason about. */
.radiorow { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.radiopill {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fdfcfa; font-size: 14.5px; color: var(--ink-2); cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.radiopill:hover { border-color: var(--brand); }
.radiopill:has(input:checked) { border-color: var(--brand); background: var(--panel-lilac); color: var(--brand-deep); font-weight: 600; }
.radiopill input { accent-color: var(--brand); flex: none; margin: 0; }
.field__hint { font-size: 12.5px; color: var(--ink-3); margin-top: -3px; }

@media (max-width: 620px) {
  .post__foot { flex-direction: column; align-items: flex-start; }
}

/* Article prev / next — a two-up grid whose cells can shrink, so a long post
   title truncates with an ellipsis instead of widening the page. */
.post__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 74ch; margin-top: 28px;
}
.post__navlink {
  display: grid; gap: 4px; min-width: 0;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1);
  padding: 14px 18px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.post__navlink:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.post__navlink--next { text-align: right; }
.post__navdir { font: 600 11.5px / 1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.post__navtitle {
  font: 500 14px / 1.4 var(--sans); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 620px) {
  .post__nav { grid-template-columns: 1fr; }
  .post__navlink--next { text-align: left; }
}
