/* ==========================================================================
   LIUminate — site styles
   Brand: deep blue #0F4C92 · orange #F7931E · white · grey #5B6573
   Type: Montserrat (headings, display) + Inter (body)
   ========================================================================== */

:root {
  --blue: #0f4c92;
  --blue-dark: #0a3468;
  --blue-ink: #0b2a4f; /* text on orange: 6.4:1 contrast */
  --blue-tint: #eaf1fa;
  --orange: #f7931e;
  --orange-dark: #e07c06;
  --orange-tint: #fff3e3;
  --white: #ffffff;
  --grey: #5b6573;
  --grey-light: #d9dee6;
  --bg-soft: #f5f7fb;
  --danger: #c0262d;
  --success: #17803d;

  /* Headlines: Michroma (wide, aerospace). Labels, buttons, names: Sora. Body: Inter. */
  --font-display: 'Michroma', 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(15, 76, 146, 0.12);
  --shadow-sm: 0 4px 14px rgba(15, 76, 146, 0.1);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--blue-ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }

/* Display elements share the heading face */
.btn, .wordmark, .eyebrow, .step-num, .cal-m, .cal-d, .trophy, legend,
.date-chip span, .stat b, .admin-badge, .ph-title { font-family: var(--font-head); }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--blue-ink); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--grey); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.5em;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-orange { background: var(--orange); color: var(--blue-ink); }
.btn-orange:hover { color: var(--blue-ink); background: #ffa33a; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { color: var(--white); background: #1559a8; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { color: var(--blue); background: var(--blue-tint); }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: var(--white); background: var(--danger); }
.btn-lg { min-height: 54px; font-size: 1.05rem; padding: 0.75em 1.8em; }
.btn-sm { min-height: 40px; padding: 0.4em 1.1em; font-size: 0.95rem; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--grey-light);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-mark { width: auto; height: 40px; }
/* Matches the LIUminate logo: bold "LIU" + lighter "minate", both blue */
.wordmark { font-family: 'Montserrat', var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--blue); letter-spacing: -0.02em; }
.wordmark span { font-weight: 500; }

.partner-logos {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  padding-left: 14px; border-left: 1px solid var(--grey-light);
}
.partner-logos img { height: 40px; width: auto; }

/* Edition links: second edition (current) / first edition (archive) */
.version-tabs { display: flex; gap: 4px; flex: none; }
.vtab {
  display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--grey); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.vtab small { font-family: var(--font); font-size: 0.78rem; font-weight: 600; opacity: 0.75; }
.vtab:hover { color: var(--blue); }
.vtab[aria-current='page'] { color: var(--blue); border-bottom-color: var(--orange); }
.header-apply { flex: none; }

@media (max-width: 1100px) {
  /* two rows: logos on top, edition tabs + Apply underneath */
  .header-inner { flex-wrap: wrap; gap: 8px 10px; padding-block: 8px; }
  .wordmark { font-size: 1.25rem; }
  .brand-mark { height: 34px; }
  .partner-logos { flex: 1 1 auto; margin-right: 0; gap: 8px; padding-left: 10px; }
  .partner-logos img { height: 34px; }
  .version-tabs { order: 3; flex: 1 1 60%; }
  .vtab { flex: 1; }
  .header-apply { order: 4; }
}
/* Small phones: logos must still fit on the first row */
@media (max-width: 560px) {
  .site-header .brand { gap: 6px; }
  .site-header .brand-mark { height: 32px; }
  .site-header .wordmark { font-size: 1.1rem; }
  .site-header .partner-logos { gap: 6px; padding-left: 8px; }
  .site-header .partner-logos img { height: 30px; }
}
@media (max-width: 440px) {
  .site-header .wordmark { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(56px, 9vw, 104px); }
.section-blue { background: var(--blue); color: var(--white); }
.section-soft { background: var(--bg-soft); }
.section-blue a:not(.btn) { color: var(--white); }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-dark);
}
.section-blue .eyebrow, .hero .eyebrow { color: var(--orange); }

.section-title { font-size: clamp(1.35rem, 2.9vw, 2rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; }
.section-title .hl { color: var(--orange); }
.section-lead { font-size: 1.08rem; color: var(--grey); max-width: 680px; }
.section-blue .section-lead { color: rgba(255, 255, 255, 0.88); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, #1a63b8 0%, transparent 60%), var(--blue);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 88px);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
/* Headline face: Michroma (wide, aerospace look); it has a single weight */
.hero h1 {
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.22; letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--orange); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 400; color: rgba(255, 255, 255, 0.9); }
.hero-sub strong { color: var(--white); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.date-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.date-chip {
  display: flex; flex-direction: column; padding: 10px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2);
}
.date-chip small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.date-chip span { font-weight: 700; font-size: 1.08rem; }
.date-chip .countdown { font-style: normal; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.date-chip .countdown:empty { display: none; }

.page-hero { padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* Home hero on tablets/phones: the flame sits beside the headline */
@media (max-width: 860px) {
  .hero-home { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(12px, 3vw, 28px); row-gap: 0; align-items: center; }
  .hero-home .hero-text { display: contents; }
  .hero-home h1 { grid-column: 1; grid-row: 1; margin: 0; font-size: clamp(1.4rem, 6vw, 2.4rem); }
  .hero-home .hero-text > :not(h1) { grid-column: 1 / -1; }
  .hero-home .hero-sub { margin-top: 18px; }
  .hero-home .hero-text > .date-chips { grid-column: 1 / -1; }
  .hero-home .date-chip { padding: 10px 12px; }
  .hero-home .date-chip span { font-size: clamp(0.86rem, 3.85vw, 1.08rem); white-space: nowrap; }
  .hero-home .hero-text > .hero-flame { display: grid; grid-column: 2; grid-row: 1; align-self: center; }
  .hero-home .hero-sub { grid-row: 2; }
  .hero-home .hero-tagline { grid-row: 3; }
  .hero-home .hero-text > .date-chips { grid-row: 4; }
  .hero-home .hero-actions { grid-row: 5; }
}

/* ---------- Animated LIUminate flame (home hero) ---------- */
/* Desktop: text on the left, the big flame on the right */
@media (min-width: 861px) {
  /* text gets most of the width; the flame column is only as wide as the flame */
  .hero-home { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 5vw, 72px); row-gap: 0; align-items: start; }
  .hero-home .hero-text { display: contents; }
  .hero-home h1 { grid-column: 1; grid-row: 1; align-self: center; margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); }
  .hero-home .hero-sub { grid-column: 1; grid-row: 2; margin-top: 22px; }
  .hero-home .hero-tagline { grid-column: 1; grid-row: 3; justify-self: start; }
  .hero-home .hero-text > .date-chips { grid-column: 1; grid-row: 4; }
  .hero-home .hero-actions { grid-column: 1; grid-row: 5; }
  .hero-home .hero-text > .hero-flame { display: grid; grid-column: 2; grid-row: 1 / 6; justify-self: center; align-self: center; width: clamp(150px, 15vw, 210px); }
}

.hero-flame { display: none; position: relative; place-items: center; width: clamp(96px, 27vw, 170px); aspect-ratio: 3 / 4; }
.flame-svg { position: relative; z-index: 2; height: 78%; width: auto; overflow: visible; filter: drop-shadow(0 0 14px rgba(247, 147, 30, 0.6)); }
.flame-svg path, .flame-svg circle { transform-box: fill-box; }
.flame-halo {
  position: absolute; inset: 6% 0 0; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 50% 58%, rgba(247, 147, 30, 0.55), rgba(247, 147, 30, 0.12) 45%, transparent 70%);
}
.ember {
  position: absolute; left: 50%; bottom: 22%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; z-index: 3; opacity: 0;
  background: #ffd08a; box-shadow: 0 0 8px 2px rgba(247, 147, 30, 0.85);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm); border: 1px solid #e6ebf2;
}
.card h3 { font-size: 1rem; line-height: 1.35; color: var(--blue); }
.card p:last-child { margin-bottom: 0; }

.step { position: relative; border-top: 3px solid var(--orange); }
.step-num {
  display: block; margin-bottom: 10px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--orange-dark);
}
.steps { margin-top: 30px; }

.icon-badge {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 14px;
}
.icon-badge svg { width: 28px; height: 28px; }


/* ---------- Talk cards (archive) ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip {
  min-height: 42px; padding: 6px 16px; border-radius: 4px; border: 2px solid var(--grey-light);
  background: var(--white); color: var(--blue-ink); font-weight: 600; cursor: pointer;
}
.filter-chip:hover { border-color: var(--blue); }
.filter-chip[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.talk-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid #e6ebf2; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.talk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.talk-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  background: var(--blue); overflow: hidden;
}
.talk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.talk-thumb .play-badge {
  position: absolute; right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--orange); color: var(--blue-ink); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform 0.18s ease;
}
.talk-thumb .play-badge svg { width: 20px; height: 20px; margin-left: 3px; }
.talk-thumb:hover .play-badge, .talk-thumb:focus-visible .play-badge { transform: scale(1.1); }
.talk-thumb.no-video { cursor: default; }  /* talk listed without a video */
.talk-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.talk-body h3 { font-size: 0.98rem; line-height: 1.35; margin: 0; color: var(--blue-ink); }
.talk-speaker { margin: 0; color: var(--grey); font-weight: 600; }
.school-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--blue-tint); color: var(--blue);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.award-tag {
  padding: 3px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--orange-tint); color: var(--blue-ink);
  border: 1px solid #f9c27f;
}
.award-tag.winner { background: var(--orange); border-color: var(--orange); display: inline-flex; align-items: center; gap: 5px; }
.award-tag svg { width: 13px; height: 13px; }

/* Generated placeholder thumbnail (when no image uploaded yet) */
.thumb-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 18px 20px; color: var(--white); text-align: left;
  background:
    radial-gradient(circle at 110% 120%, var(--orange) 0 32%, transparent 33%),
    radial-gradient(circle at -10% -20%, #1d66bb 0 40%, transparent 41%),
    var(--blue);
}
.thumb-placeholder.has-avatar .ph-school, .thumb-placeholder.has-avatar .ph-title { max-width: 50%; }
.thumb-placeholder.has-avatar .ph-title { font-size: 1.05rem; }
.thumb-placeholder .ph-avatar {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: auto; height: 68%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.thumb-placeholder .ph-title { font-weight: 700; font-size: 1.15rem; line-height: 1.15; max-width: 80%; }
.thumb-placeholder .ph-school { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; margin-bottom: 6px; }

/* Winner highlight */
.winner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--white); color: var(--blue-ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22); border-top: 3px solid var(--orange);
}
.winner-media { position: relative; min-height: 280px; background: var(--blue-dark); }
.winner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Square speaker portraits: fill the card height on desktop (trims the sides), square on phones */
.winner-media img.portrait { object-position: 50% 15%; }
.winner-media .photo-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,0.85);
  font-weight: 700; letter-spacing: 0.1em; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #0d4280 0 14px, #0f4c92 14px 28px);
}
.winner-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.trophy {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px;
  background: var(--orange); color: var(--blue-ink); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
}
.trophy svg { width: 18px; height: 18px; }
.winner h3 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin: 6px 0 0; color: var(--blue); }
.winner .winner-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.winner .winner-desc { color: var(--grey); margin: 0; }
.winner .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 760px) {
  .winner { grid-template-columns: 1fr; }
  .winner-media { min-height: 0; aspect-ratio: 4 / 3; }
  .winner-media:has(img.portrait) { aspect-ratio: 1; }
}


/* ---------- Modal (video player) ---------- */
dialog.modal {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--white); color: var(--blue-ink); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
dialog.modal::backdrop { background: rgba(6, 26, 52, 0.78); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; }
.modal-head h2 { font-size: 1.05rem; line-height: 1.35; margin: 0; flex: 1; }
.modal-head p { margin: 2px 0 0; }
.modal-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bg-soft); display: grid; place-items: center;
}
.modal-close:hover { background: var(--blue-tint); }
.modal-close svg { width: 20px; height: 20px; }
.player-wrap {
  position: relative; background: #000; width: 100%; margin-inline: auto;
  aspect-ratio: var(--video-ratio, 16 / 9);
  max-height: var(--player-max-h, 70dvh);
}
/* absolutely positioned so the video's own size can never stretch the frame */
.player-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-wrap .player-empty { position: absolute; inset: 0; display: grid; place-items: center; }
/* tall (phone) videos: the whole dialog narrows to the video's width */
dialog.modal.is-portrait { width: min(max(calc(var(--player-max-h, 70dvh) * var(--video-ratio)), 340px), calc(100vw - 24px)); }
dialog.modal.is-portrait .player-wrap { width: min(100%, calc(var(--player-max-h, 70dvh) * var(--video-ratio))); }
/* laptops/tablets: tall video on the left, title + description beside it */
@media (min-width: 760px) {
  dialog.modal.is-portrait[open] {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start;
    width: min(calc(var(--player-max-h, 70dvh) * var(--video-ratio) + 400px), calc(100vw - 24px));
  }
  dialog.modal.is-portrait .player-wrap {
    grid-column: 1; grid-row: 1 / span 2;
    width: calc(var(--player-max-h, 70dvh) * var(--video-ratio)); height: var(--player-max-h, 70dvh); max-height: none;
  }
  dialog.modal.is-portrait .modal-head, dialog.modal.is-portrait .modal-desc { grid-column: 2; }
  dialog.modal.is-portrait .modal-head { padding-top: 22px; }
}
.player-empty { color: var(--white); text-align: center; padding: 24px; font-weight: 600; }
.modal-desc { padding: 16px 18px 22px; margin: 0; color: var(--grey); }

/* ---------- Forms ---------- */
.form-card { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; margin-top: clamp(-110px, -10vw, -70px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend {
  font-weight: 700; font-size: 1.25rem; color: var(--blue); margin-bottom: 14px; padding: 0;
  display: flex; align-items: center; gap: 10px;
}
legend .num {
  width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--orange); color: var(--blue-ink);
  display: inline-grid; place-items: center; font-size: 0.95rem;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; color: var(--blue-ink); }
.hint { font-size: 0.9rem; color: var(--grey); font-weight: 400; }
.input, .field input[type='text'], .field input[type='email'], .field input[type='tel'], .field input[type='password'],
.field input[type='number'], .field input[type='search'], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  border: 2px solid #c9d2de; background: var(--white); font-weight: 500; color: var(--blue-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C92' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 76, 146, 0.18); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.92rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.counter { font-size: 0.9rem; font-weight: 600; color: var(--grey); text-align: right; }
.counter.over { color: var(--danger); }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.form-alert {
  padding: 14px 16px; border-radius: var(--radius); font-weight: 600; margin-bottom: 18px;
  background: #fdecec; color: var(--danger); border: 2px solid #f5c2c4;
}
.turnstile-box { min-height: 65px; }

.status-panel { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 2; margin-top: clamp(-110px, -10vw, -70px); }
.status-panel .big-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
}
.status-panel .big-icon svg { width: 42px; height: 42px; }
.status-panel.success .big-icon { background: #e3f6ea; color: var(--success); }
.status-panel.closed .big-icon { background: var(--orange-tint); color: var(--orange-dark); }
.status-panel h2 { color: var(--blue); font-size: clamp(1.3rem, 3vw, 1.8rem); }

.spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--grey); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255, 255, 255, 0.85); padding: 48px 0 32px; font-weight: 500; }
.site-footer a { color: var(--white); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand .wordmark { color: var(--white); font-size: 1.6rem; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.footer-logos li { background: var(--white); border-radius: var(--radius); padding: 6px; display: grid; place-items: center; }
.footer-logos li.wide { padding-inline: 12px; }
.footer-logos img { height: 52px; width: auto; border-radius: 8px; }

/* Official LIUminate logo shown on a white tile (it has blue text, so it needs a light background) */
.logo-card {
  background: var(--white); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); max-width: 300px; margin-inline: auto;
}
.logo-card img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .logo-card { max-width: 190px; padding: 12px; }
}
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ---------- People: representatives, committee, supporters ----------
   Desktop: portrait cards (square headshot on top, name and role below), one row per group.
   Phones: every person is a full-width card with the photo on the left.
   --n = number of people in the group (set in the HTML). */
.reps {
  --gap: clamp(16px, 2.2vw, 24px);
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gap);
  max-width: min(100%, calc(var(--n, 4) * 190px + (var(--n, 4) - 1) * var(--gap)));
  margin: 0 auto; list-style: none; padding: 0;
}
/* the people under the two deans span the same width as the deans' row */
.reps-wide { max-width: 980px; }
.reps-wide .rep-photo { aspect-ratio: 4 / 3; }

.rep {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left;
  border-radius: var(--radius); border: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(11, 42, 79, 0.06), 0 8px 24px rgba(11, 42, 79, 0.06);
}
.rep-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--blue-tint); }
.rep .rep-photo { width: 100%; }
.rep-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rep-photo.is-missing img { display: none; }
.rep-photo.is-missing::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a5ca8, var(--blue-dark)) no-repeat;
}
.rep-photo.is-missing::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: no-repeat center 75% / 58%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' fill-opacity='.55'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 23c0-5 4-8.5 9-8.5s9 3.5 9 8.5z'/%3E%3C/svg%3E");
}
.rep > :not(.rep-photo) { padding-inline: 18px; }
.rep .rep-name {
  margin: 0; padding-top: 16px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--blue-ink);
  border-top: 3px solid var(--orange);
}
.rep .rep-school { margin: 4px 0 0; padding-bottom: 18px; color: var(--blue); font-weight: 600; font-size: 0.9rem; line-height: 1.4; }
/* role title on the first line, details (school, campus) on their own lines below */
.role-sub { display: block; color: var(--grey); font-weight: 500; font-size: 0.86rem; }

/* Featured people (head of committee, deans): wide card, photo on the left */
.organizer {
  display: grid; grid-template-columns: 168px 1fr; align-items: center; gap: 0;
  padding: 0; overflow: hidden; max-width: 560px; margin: 0 auto clamp(20px, 3vw, 28px);
  border-radius: var(--radius); border: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(11, 42, 79, 0.06), 0 8px 24px rgba(11, 42, 79, 0.06);
}
.organizer .rep-photo { width: 100%; height: 100%; aspect-ratio: auto; min-height: 168px; border-right: 3px solid var(--orange); }
.organizer > div:last-child { padding: 20px 24px; }
.organizer .rep-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--blue-ink); }
.organizer-role { margin: 6px 0 0; color: var(--blue); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
/* two featured people side by side (e.g. the two deans), the rest on the row below */
.organizer-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px);
  max-width: 980px; margin: 0 auto clamp(16px, 2.2vw, 24px);
}
.organizer-pair .organizer { max-width: none; margin: 0; }

/* ---------- Organizing team (students) ---------- */
.team { --gap: clamp(12px, 1.8vw, 18px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); list-style: none; padding: 0; margin: 0; }
.team > li { flex: 0 0 calc((100% - 4 * var(--gap)) / 5); min-width: 0; }   /* rows of 5, last row centred */
@media (max-width: 720px) { .team > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 480px) { .team > li { flex-basis: calc((100% - var(--gap)) / 2); } }
.team-member {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px;
  border-radius: var(--radius); border: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(11, 42, 79, 0.05);
}
.team-initials {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--blue); background: var(--blue-tint);
}
.team-member.has-role .team-initials { color: var(--white); background: var(--blue); }
.team-member :is(h3, h4) { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--blue-ink); }
.team-role { margin: 0; color: var(--grey); font-weight: 500; font-size: 0.86rem; line-height: 1.35; }

/* ---------- People behind each edition: group headings ---------- */
.people-group + .people-group { margin-top: clamp(52px, 7vw, 84px); }
.group-title {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: clamp(0.9rem, 1.6vw, 1rem); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-ink); margin: 0 0 clamp(22px, 3vw, 30px);
}
.group-title::after { content: ''; width: 32px; height: 2px; background: var(--orange); margin-top: 8px; order: 3; }
.group-title small { font-family: var(--font); font-size: 0.9rem; font-weight: 500; color: var(--grey); letter-spacing: 0; text-transform: none; }

/* small, low-key credits (trainer, designer) */
.thanks-row { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 16px; list-style: none; padding: 0; margin: 0; }
.thanks { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px 22px; border-radius: var(--radius); border: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(11, 42, 79, 0.05); }
.thanks p { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.thanks strong { color: var(--blue-ink); }
.thanks span { color: var(--grey); font-weight: 500; font-size: 0.88rem; }

/* ---------- People on phones and small tablets: one full-width card per person ---------- */
@media (max-width: 720px) {
  .reps, .reps-wide { grid-template-columns: 1fr; max-width: 520px; gap: 12px; }
  .organizer-pair { grid-template-columns: 1fr; max-width: 520px; gap: 12px; margin-bottom: 12px; }
  .organizer, .organizer-pair .organizer { max-width: 520px; grid-template-columns: 112px 1fr; }
  .organizer { margin-bottom: 12px; }
  .organizer .rep-photo { min-height: 112px; }
  .organizer > div:last-child { padding: 14px 18px; }
  .organizer .rep-name { font-size: 1.08rem; }
  .rep { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: 1fr auto auto 1fr; }
  .rep .rep-photo { grid-row: 1 / -1; grid-column: 1; height: 100%; min-height: 112px; aspect-ratio: auto; border-right: 3px solid var(--orange); }
  .rep .rep-name { grid-row: 2; grid-column: 2; border-top: 0; padding-top: 14px; }
  .rep .rep-school { grid-row: 3; grid-column: 2; padding-bottom: 14px; }
  .thanks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .thanks { padding: 16px 12px; }
}

/* ---------- Photo carousel (v1 archive) ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--blue-dark);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.carousel-slide { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 3 / 2; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; color: var(--white); font-weight: 600;
  background: linear-gradient(transparent, rgba(6, 26, 52, 0.8));
}
.carousel-slide.is-missing img { display: none; }
.carousel-slide.is-missing::after {
  content: '[V1 PHOTO] ' attr(data-file); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  color: rgba(255, 255, 255, 0.85); font-weight: 700; letter-spacing: 0.06em; text-align: center;
  background: repeating-linear-gradient(45deg, #0d4280 0 14px, #0f4c92 14px 28px);
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; background: var(--orange); color: var(--blue-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); transition: transform 0.18s ease;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.carousel-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-dot::before { content: ''; width: 10px; height: 10px; border-radius: 4px; background: var(--grey-light); transition: width 0.2s ease, background 0.2s ease; }
.carousel-dot[aria-current='true']::before { width: 26px; background: var(--orange); }
.carousel-dots { align-items: center; }
.carousel-toggle {
  width: 32px; height: 32px; margin-right: 6px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--blue); background: var(--white); color: var(--blue); display: grid; place-items: center;
}
.carousel-toggle:hover { background: var(--blue); color: var(--white); }
.carousel-toggle svg { width: 14px; height: 14px; }
.carousel-count { min-width: 80px; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; line-height: 28px; }
.carousel.single .carousel-btn, .carousel.single .carousel-dots { display: none; }
@media (max-width: 560px) {
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
}

/* One-line tagline under the hero subtitle */
.hero-tagline {
  margin: 0 0 6px; padding-left: 14px; border-left: 3px solid var(--orange);
  color: rgba(255, 255, 255, 0.9); font-weight: 500;
}

/* ---------- v2: example fields under "How it works" ---------- */
.topic-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; }
.topic-areas li {
  padding: 6px 16px; border-radius: 4px; background: var(--blue-tint); color: var(--blue);
  font-weight: 600; font-size: 0.95rem;
}
.topic-areas li:last-child { background: transparent; color: var(--grey); }

/* ---------- v2: timeline ---------- */
.timeline { display: grid; gap: 44px; max-width: 820px; margin: 30px auto 0; padding: 0; list-style: none; }
.timeline-dots { display: none; }
/* Phones: the phases become a row you swipe through; the next card peeks in from the right */
@media (max-width: 720px) {
  .timeline {
    display: flex; gap: 14px; max-width: none; margin: 24px calc(-1 * var(--gutter)) 0;
    padding: 4px var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .timeline::-webkit-scrollbar { display: none; }
  .timeline > .phase { flex: 0 0 86%; scroll-snap-align: start; }
  .timeline-dots:not([hidden]) { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 8px; }
  .timeline-dots button {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .timeline-dots button::before {
    content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--grey-light); transition: width 0.2s ease, background 0.2s ease;
  }
  .timeline-dots button[aria-current='true']::before { width: 24px; background: var(--orange); }
}
.phase { position: relative; border-top: 3px solid var(--orange); }
.phase h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.4em; }
.milestones { margin: 18px 0 0; display: grid; gap: 12px; }
.milestones > div {
  display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 6px 18px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); border-left: 4px solid var(--grey-light);
}
.milestones dt { font-weight: 700; color: var(--blue); }
.milestones dd { margin: 0; }
.milestones .is-deadline { background: var(--orange-tint); border-left-color: var(--orange); }
.milestones .is-event { background: var(--blue-tint); border-left-color: var(--blue); }
.deadline-tag {
  display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 6px; vertical-align: 1px;
  background: var(--orange); color: var(--blue-ink); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 640px) {
  .milestones > div { grid-template-columns: 1fr; }
}

/* ---------- v2: inspiring topics ---------- */
.topic-chips { justify-content: center; }
.topic-panel + .topic-panel { margin-top: 48px; }
.topic-panel-head { text-align: center; margin-bottom: 22px; }
.topic-panel-head h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 0.35em; }
.topic-panel-head p { margin: 0; }
.js-tabs .topic-panel + .topic-panel { margin-top: 0; }
.topics { margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }
#topics, #join { scroll-margin-top: var(--header-h); }
.topic { position: relative; padding-left: clamp(66px, 8vw, 76px); }
.topic-num {
  position: absolute; left: clamp(18px, 2.6vw, 24px); top: clamp(20px, 3vw, 30px);
  width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; background: var(--blue); color: var(--white);
}
.topic h4 { font-size: 1.12rem; color: var(--blue-ink); margin-bottom: 0.5em; }
.topic-insp {
  display: inline-block; margin: 0 0 10px; padding: 2px 10px; border-radius: 8px;
  background: var(--orange-tint); color: var(--blue-ink); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.topic p.muted { font-size: 0.98rem; }

/* ---------- v2: how to join ---------- */
.join-grid {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  max-width: 900px; margin: 0 auto;
}
.join-why h3 { font-size: 1.05rem; color: var(--white); }
.why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.why-list li {
  position: relative; padding: 12px 14px 12px 44px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 600;
}
.why-list li::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a4f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.join-deadline {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 30px; border-radius: var(--radius); background: var(--orange); color: var(--blue-ink); box-shadow: var(--shadow);
}
.join-deadline small { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.join-deadline b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; }
.join-deadline span { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.join-deadline .countdown { font-style: normal; font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.join-deadline .countdown:empty { display: none; }
@media (max-width: 640px) {
  .join-grid { grid-template-columns: 1fr; }
}
.school-teams {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  max-width: 900px; margin: 36px auto 0; padding: 0; list-style: none;
}
.school-teams li {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px;
  border-radius: var(--radius-sm); background: var(--white); color: var(--blue);
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; line-height: 1.2;
}
.school-teams small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.school-teams span { margin-top: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-dark); }
@media (max-width: 760px) {
  .school-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-teams li:last-child { grid-column: 1 / -1; }
}
.join-contact { margin: 28px 0 0; color: rgba(255, 255, 255, 0.85); }
.join .section-title .hl { color: var(--orange); }

/* Brand name keeps its casing inside uppercase headings */
.brand-name { text-transform: none; }

/* Link from the inspiring topics to the first edition archive */
.topics-archive { margin: -8px 0 22px; font-weight: 600; }
.topics-archive a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Edition tabs: drop the year on narrow phones so the labels fit */
@media (max-width: 480px) {
  .version-tabs { flex-basis: 100%; }
  .vtab { padding: 7px 10px; font-size: 0.95rem; white-space: nowrap; }
  .vtab small { display: none; }
  /* the page's own "How to join" buttons sit right below; keep the header to two rows */
  .site-header .header-apply { display: none; }
}
