/* ==========================================================================
   TRWEA public site
   One stylesheet, no framework. Sections:
   1. Tokens  2. Base  3. Layout  4. Header & footer  5. Components
   6. Page-specific  7. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0a1b2e;
  --ink-soft: #2b3d52;
  --muted: #56667b;
  --line: #d9e2ee;
  --bg: #edf2f9;
  --surface: #ffffff;
  --surface-2: #e9eff8;

  --brand: #2a67b1;          /* deep blue from the logo */
  --brand-dark: #1b4a85;
  --brand-tint: #e2eefc;
  --sky: #7cbcf0;            /* light blue from the logo */
  --violet: #6d4bd8;         /* flag-silk accents */
  --magenta: #d9437f;
  --accent: #f4b63f;         /* gold */
  --accent-dark: #d8961a;
  --accent-ink: #3a2700;
  --night: #0a1b2e;
  --night-2: #12304f;

  /* "Under the lights": blue into violet, magenta and gold */
  --spotlight: linear-gradient(115deg, var(--brand) 0%, var(--violet) 38%, var(--magenta) 72%, var(--accent) 100%);
  --spotlight-cool: linear-gradient(115deg, var(--brand) 0%, var(--violet) 100%);
  /* Sequin dots for tinted sections */
  --sequins: radial-gradient(rgb(42 103 177 / .13) 1.2px, transparent 1.7px) 0 0 / 22px 22px;

  --guard: #2a67b1;
  --percussion: #cf5446;
  --winds: #128486;
  --baton: #7a4fbf;
  --dance: #b97d0a;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(10 27 46 / .06), 0 2px 8px rgb(10 27 46 / .04);
  --shadow: 0 6px 24px -6px rgb(10 27 46 / .14);
  --shadow-lg: 0 24px 48px -16px rgb(10 27 46 / .28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.sr-only {
  position: absolute; 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: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--surface); }
/* A quiet woven blue backdrop for the public homepage; cards remain solid. */
.public-home {
  --home-texture:
    repeating-linear-gradient(135deg, rgb(42 103 177 / .035) 0 1px, transparent 1px 7px),
    radial-gradient(rgb(42 103 177 / .12) .8px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(120deg, #e2edf7, #edf0f8 55%, #e2edf4);
  background: var(--home-texture);
}
.public-home .section--white,
.public-home .audience-nav { background: var(--home-texture); }
.public-home .audience-nav { border-block: 1px solid #ccdbe8; }
.public-home .audience-nav a:hover { background: rgb(255 255 255 / .65); }
.public-home .home-contests { padding-top: clamp(28px, 3vw, 40px); }
.section + .section--flush { padding-top: 0; }

/* Pale blue with a sequin-dot texture */
.section--sky { background: var(--sequins), linear-gradient(180deg, #dfeafa, #e9f0fa); }

/* Dark "stage" with colored spotlights */
.section--night {
  position: relative; isolation: isolate; color: #fff;
  background:
    radial-gradient(45% 60% at 8% 0%, rgb(109 75 216 / .45), transparent 70%),
    radial-gradient(40% 55% at 95% 100%, rgb(217 67 127 / .35), transparent 70%),
    radial-gradient(60% 60% at 60% 40%, rgb(42 103 177 / .35), transparent 70%),
    var(--night);
}
.section--night .section-heading h2 { color: #fff; }
.section--night .link-arrow { color: var(--accent); }
.section--night .empty-state { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); color: rgb(255 255 255 / .75); }
.section--night .empty-state h3 { color: #fff; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; align-items: center; }
  .sticky { position: sticky; top: calc(var(--header-h) + 24px); }
}

.stack > * + * { margin-top: clamp(16px, 2vw, 24px); }

/* 4. Header & footer -------------------------------------------------------- */
.announcement {
  background: var(--night); color: rgb(255 255 255 / .86);
  font-size: .875rem; text-align: center; padding: .6rem 0;
}
.announcement .container { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.announcement .icon { color: var(--accent); }
.announcement a { color: var(--accent); font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-top: 4px solid; border-image: var(--spotlight) 1;
  background: rgb(255 255 255 / .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px -12px rgb(10 27 46 / .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__links a {
  display: block; padding: .5rem .9rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.site-nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav__links a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }
.nav-login {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem;
  color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; border-radius: 999px;
}
.nav-login:hover, .nav-login[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close, .nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1023.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 16px var(--gutter) 28px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .site-nav__links { flex-direction: column; }
  .site-nav__links a { font-size: 1.15rem; padding: .85rem 1rem; border-radius: 14px; }
  .site-nav__actions { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
  .nav-open { overflow: hidden; }
}
/* Without JavaScript the menu can't open, so show the links inline. */
@media (max-width: 1023.98px) and (scripting: none) {
  .nav-toggle { display: none; }
  .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; width: 100%; }
  .site-nav__links { flex-direction: row; flex-wrap: wrap; }
  .site-nav__links a { font-size: .95rem; padding: .4rem .7rem; }
}

.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  color: rgb(255 255 255 / .7); padding: 72px 0 28px; font-size: .95rem;
  border-top: 6px solid; border-image: var(--spotlight) 1;
  background:
    radial-gradient(40% 60% at 0% 0%, rgb(109 75 216 / .35), transparent 70%),
    radial-gradient(40% 60% at 100% 20%, rgb(42 103 177 / .35), transparent 70%),
    var(--night);
}
.site-footer a { color: rgb(255 255 255 / .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
/* Same logo as the header, on a light tile so its black silhouettes stay visible */
.site-footer__logo { display: inline-block; margin-bottom: 18px; padding: 12px 18px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .5); }
.site-footer__logo img { width: 180px; height: auto; }
.site-footer__brand p { max-width: 32ch; }
.site-footer__heading { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .5); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer__email { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.site-footer__muted { color: rgb(255 255 255 / .5); font-size: .875rem; }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .82rem; color: rgb(255 255 255 / .45); }
.social { display: flex; gap: 10px; }
.social a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .2); transition: background .2s, transform .2s;
}
.social a:hover { background: var(--spotlight-cool); border-color: transparent; transform: translateY(-2px); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }

/* 5. Components ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { font-size: .875rem; padding: .55em 1.05em; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff; background: linear-gradient(115deg, var(--brand), var(--violet), var(--brand)) 0 0 / 200% 100%;
  box-shadow: 0 8px 20px -8px rgb(109 75 216 / .7);
  transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .2s;
}
.btn--primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 12px 26px -10px rgb(109 75 216 / .8); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -10px rgb(244 182 63 / .9); }
.btn--accent:hover { background: #f7c45f; color: var(--accent-ink); }
.btn--ghost { color: #fff; border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .06); }
.btn--ghost:hover { color: #fff; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .7); }
.btn--outline { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--outline:hover { color: var(--ink); border-color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent); }

/* Section headings use a hand-written kicker instead of the uppercase eyebrow */
.section-heading .eyebrow {
  margin: 0 0 .1rem; font-family: var(--font-script); font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--magenta);
  transform: rotate(-2deg); transform-origin: left bottom;
}
.section-heading .eyebrow::before { content: "✦"; width: auto; height: auto; background: none; font-size: .8em; color: var(--accent); }
.section--night .section-heading .eyebrow { color: var(--accent); }
.section--night .section-heading .eyebrow::before { color: var(--magenta); }

.text-gradient {
  background: linear-gradient(95deg, var(--sky) 0%, #c9b8ff 35%, #ff8fbd 65%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.panel > :last-child { margin-bottom: 0; }
.panel__title { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.panel__title .icon { color: var(--brand); }
.panel__photo { margin-top: 1.5rem; border-radius: 14px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(260px, 36vh, 380px); display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--night-2), var(--night)); color: #fff;
  border-bottom: 6px solid; border-image: var(--spotlight) 1;
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
/* Navy on the text side, washing into violet and magenta stage light */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 90% at 100% 0%, rgb(217 67 127 / .45), transparent 70%),
    linear-gradient(95deg, rgb(10 27 46 / .94) 0%, rgb(10 27 46 / .72) 42%, rgb(109 75 216 / .45) 75%, rgb(217 67 127 / .3) 100%),
    linear-gradient(0deg, rgb(10 27 46 / .6) 0%, transparent 55%);
}
/* A soft spotlight cone from the top */
.page-hero::after {
  content: ""; position: absolute; z-index: -1; top: -30%; left: 18%; width: 38%; height: 160%;
  background: linear-gradient(180deg, rgb(255 255 255 / .16), transparent 70%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(18px);
  transform: rotate(-14deg); pointer-events: none;
}
.page-hero__inner { padding-block: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 56px); }
.page-hero__title { margin: 0; max-width: 20ch; }
.page-hero__lede { margin: .75rem 0 0; max-width: 60ch; color: rgb(255 255 255 / .82); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.page-hero .meta-list { color: rgb(255 255 255 / .85); margin-top: 1rem; }
.page-hero .meta-list .icon { color: var(--accent); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.photo-credit {
  position: absolute; right: 16px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem; max-width: calc(100% - 32px);
  padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 500;
  color: rgb(255 255 255 / .85); text-decoration: none;
  background: rgb(10 27 46 / .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.photo-credit:hover { color: #fff; background: rgb(10 27 46 / .7); }
.photo-credit .icon { width: .95em; height: .95em; }

/* Meta list (icon + text rows) */
.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .925rem; color: var(--muted); }
.meta-list li { display: flex; align-items: flex-start; gap: .5rem; }
.meta-list .icon { color: var(--brand); margin-top: .2em; }
.meta-list--inline { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* Date badge */
/* Tear-off calendar page */
.date-badge {
  display: inline-grid; justify-items: center; min-width: 64px; padding-bottom: .4rem; overflow: hidden;
  background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  line-height: 1;
}
.date-badge__month {
  justify-self: stretch; text-align: center; padding: .32rem .5rem .28rem;
  background: var(--spotlight-cool); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.date-badge__day { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; margin: .25rem .5rem .1rem; }
.date-badge__dow { font-size: .68rem; color: var(--muted); font-weight: 600; }

/* Status chip */
.status {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.status--live { background: var(--accent); color: var(--accent-ink); }
.status--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.status--muted { background: rgb(10 27 46 / .72); color: #fff; }
.status--success { background: #dcf5e8; color: #126b41; }
@keyframes pulse { 50% { opacity: .3; } }

/* Contest card */
.contest-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.contest-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 28px 50px -20px rgb(109 75 216 / .55); }
.section--night .contest-card { border-color: transparent; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); }
.section--night .contest-card:hover { box-shadow: 0 30px 60px -18px rgb(217 67 127 / .45); }
.contest-card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--brand), var(--night)); overflow: hidden; }
.contest-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s var(--ease); }
.contest-card:hover .contest-card__media img { transform: scale(1.04); }
.contest-card__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(109 75 216 / .45)); mix-blend-mode: multiply; }
.contest-card__media .date-badge { position: absolute; left: 14px; top: 14px; z-index: 1; }
.contest-card__media .status { position: absolute; right: 14px; top: 14px; z-index: 1; }
.contest-card__body { display: flex; flex-direction: column; gap: .75rem; padding: 20px 22px 18px; flex: 1; }
.contest-card__title { margin: 0; font-size: 1.25rem; }
.contest-card__title a { color: var(--ink); text-decoration: none; }
.contest-card__title a::after { content: ""; position: absolute; inset: 0; }
.contest-card__foot {
  margin: auto 0 0; padding-top: .9rem; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .875rem; font-weight: 600; color: var(--ink-soft);
}
.contest-card__foot > span:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.contest-card__go {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand); transition: background .2s, color .2s;
}
.contest-card:hover .contest-card__go { background: var(--spotlight-cool); color: #fff; }
.contest-card.is-past .contest-card__media img { filter: grayscale(.75); opacity: .85; }

/* Cards in a grid take turns wearing the flag colors */
.grid > :nth-child(3n + 1) { --tone: var(--brand); }
.grid > :nth-child(3n + 2) { --tone: var(--violet); }
.grid > :nth-child(3n + 3) { --tone: var(--magenta); }

/* News card */
.news-card {
  --tone: var(--brand);
  position: relative; display: flex; flex-direction: column; gap: .6rem; height: 100%;
  padding: 30px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s;
}
.grid > * > .news-card { --tone: inherit; }
.news-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tone); transition: height .3s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -20px color-mix(in srgb, var(--tone) 60%, transparent); }
.news-card:hover::before { height: 10px; }
.news-card__date { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tone); }
.news-card__title { margin: 0; font-size: 1.3rem; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
.news-card__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--tone); }

/* Feature cards (season resources) */
.feature-card {
  --tone: var(--brand);
  position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 9%, white), var(--surface) 55%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -20px color-mix(in srgb, var(--tone) 60%, transparent); }
.feature-card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--tone); color: #fff; transform: rotate(-6deg);
  box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--tone) 70%, transparent); transition: transform .3s var(--ease);
}
.feature-card:hover .feature-card__icon { transform: rotate(4deg) scale(1.06); }
.feature-card__icon .icon { width: 26px; height: 26px; }
.feature-card h3 { margin: 0; }
.feature-card h3 a { color: var(--ink); text-decoration: none; }
.feature-card h3 a::after { content: ""; position: absolute; inset: 0; }
.feature-card p { color: var(--muted); margin: 0; }

/* Chips */
.toolbar__label + .chip-row { flex: 1 1 0; min-width: 0; }
.chip-row { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0; list-style: none; scroll-snap-type: x proximity; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row--wrap { flex-wrap: wrap; overflow: visible; }
.chip-row > * { scroll-snap-align: start; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip[aria-current="page"], .chip[aria-current="true"], .chip[aria-pressed="true"] {
  background: var(--spotlight-cool); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -8px rgb(109 75 216 / .8);
}
/* Type filters light up in their unit-type color */
.chip[data-filter-type="guard"][aria-pressed="true"] { background: var(--guard); }
.chip[data-filter-type="percussion"][aria-pressed="true"] { background: var(--percussion); }
.chip[data-filter-type="winds"][aria-pressed="true"] { background: var(--winds); }
.chip[data-filter-type="baton"][aria-pressed="true"] { background: var(--baton); }
.chip[data-filter-type="dance"][aria-pressed="true"] { background: var(--dance); }
.chip__count { font-size: .75rem; opacity: .65; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; }
.badge--guard { background: color-mix(in srgb, var(--guard) 12%, white); color: var(--guard); }
.badge--percussion { background: color-mix(in srgb, var(--percussion) 12%, white); color: var(--percussion); }
.badge--winds { background: color-mix(in srgb, var(--winds) 12%, white); color: var(--winds); }
.badge--baton { background: color-mix(in srgb, var(--baton) 12%, white); color: var(--baton); }
.badge--dance { background: color-mix(in srgb, var(--dance) 14%, white); color: var(--dance); }

/* Tabs */
.tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgb(237 242 249 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: .45rem; padding: 1rem 1.1rem; border: 0; background: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-image: var(--spotlight) 1; }
.tab[aria-selected="true"] .icon { color: var(--violet); }
.tab__count { font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tab-panel { padding-block: clamp(28px, 4vw, 48px); }
@media (scripting: none) { .tabs { display: none; } }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
/* Scoreboard-style header */
.data-table th {
  text-align: left; padding: .8rem 1rem; background: var(--night); color: rgb(255 255 255 / .7);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  border: 0; box-shadow: inset 0 -3px 0 var(--violet);
}
.data-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgb(231 241 252 / .45); }
.data-table a { color: var(--ink); font-weight: 600; text-decoration: none; }
.data-table a:hover { color: var(--brand); text-decoration: underline; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .rank-col { width: 4rem; }
.data-table .group-row td {
  background: linear-gradient(90deg, color-mix(in srgb, var(--violet) 11%, white), var(--surface) 70%);
  box-shadow: inset 4px 0 0 var(--violet);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); padding-top: 1rem;
}
.data-table .group-row:hover td { background: linear-gradient(90deg, color-mix(in srgb, var(--violet) 11%, white), var(--surface) 70%); }
.score { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.rank {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  font-weight: 700; font-size: .85rem; background: var(--surface-2); color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.rank--1 { background: linear-gradient(135deg, #ffd86b, var(--accent-dark)); color: var(--accent-ink); }
.rank--2 { background: linear-gradient(135deg, #f1f4f8, #b9c2cf); color: #2b3440; }
.rank--3 { background: linear-gradient(135deg, #f3c39b, #c27a45); color: #3b1d06; }
.note-pill { font-size: .8rem; font-weight: 700; }
.note-pill--noshow { color: #b42318; }
.note-pill--preview { color: #126b41; }

/* Lists of documents */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a {
  display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.doc-list a:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.doc-list__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fdecea; color: #c2382a; flex: none; }
.doc-list__go { margin-left: auto; color: var(--muted); }

/* Facts (definition list) */
.facts { display: grid; gap: 1rem; margin: 0; }
.facts div { display: grid; gap: .15rem; }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.facts dd a { font-weight: 600; }
.facts--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* Alerts */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid; font-size: .95rem; }
.alert .icon { margin-top: .2em; }
.alert p { margin: 0; }
.alert--info { background: var(--brand-tint); border-color: #c9def6; color: var(--brand-dark); }
.alert--error { background: #fdeceb; border-color: #f6cbc7; color: #9b2218; }
.alert--success { background: #e5f6ee; border-color: #bfe6d2; color: #126b41; }

/* Forms */
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.input {
  width: 100%; padding: .85rem 1rem; border: 1px solid #cdd7e3; border-radius: 12px; background: var(--surface);
  font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.check { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); }

.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: .75rem 1rem .75rem 2.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }

/* Empty state */
.empty-state { text-align: center; padding: clamp(32px, 6vw, 64px) 24px; border: 2px dashed #c4d2e6; border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.empty-state .icon { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--violet); }
.empty-state h3 { color: var(--ink); margin-bottom: .35rem; }
.empty-state p { margin: 0 auto; max-width: 48ch; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: clamp(32px, 5vw, 48px); list-style: none; padding: 0; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-weight: 600; text-decoration: none;
}
.pagination a:hover { border-color: var(--ink-soft); color: var(--ink); }
.pagination [aria-current="page"] { background: var(--spotlight-cool); border-color: transparent; color: #fff; }

/* Sponsors */
.sponsor-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.sponsor-wall a {
  display: grid; place-items: center; height: 116px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s var(--ease);
}
.sponsor-wall a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sponsor-wall img { max-height: 68px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.sponsor-wall a:hover img { filter: none; opacity: 1; }

/* Call-to-action band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; align-items: center; padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(115deg, var(--brand) 0%, var(--violet) 50%, var(--magenta) 100%);
  box-shadow: 0 30px 60px -30px rgb(109 75 216 / .7);
}
/* Darken the text side and scatter some sparkle */
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(rgb(255 255 255 / .22) 1.2px, transparent 1.8px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgb(10 27 46 / .55), transparent 65%);
}
.cta-band::after {
  content: "✦"; position: absolute; z-index: -1; right: 4%; top: -10%;
  font-size: clamp(8rem, 22vw, 16rem); line-height: 1; color: rgb(255 255 255 / .12); transform: rotate(14deg);
}
.cta-band h2 { margin: 0 0 .4rem; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { margin: 0; color: rgb(255 255 255 / .78); max-width: 52ch; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* Lightbox */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gallery a { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 12 22 / .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86dvh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: #fff;
}
.lightbox button:hover { background: rgb(255 255 255 / .2); }
.lightbox .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

/* Rich text */
.prose { font-size: 1.075rem; line-height: 1.75; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 4px solid var(--sky); color: var(--ink); font-style: italic; }
.prose a { font-weight: 500; }

.back-link { margin-bottom: 1.5rem; }
.article-head { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.article-head h1 { margin: .5rem 0 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.attachment { margin-top: clamp(32px, 5vw, 48px); }
.attachment__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1rem; }
.attachment__head .panel__title { margin: 0; }
.pdf-frame { width: 100%; height: min(85vh, 960px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* 6. Page-specific --------------------------------------------------------- */

/* Home hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--night);
  min-height: clamp(400px, 54vh, 520px); display: flex; align-items: center;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__slides img.is-active { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 100% 0%, rgb(217 67 127 / .4), transparent 70%),
    radial-gradient(45% 60% at 75% 100%, rgb(109 75 216 / .45), transparent 70%),
    linear-gradient(180deg, rgb(10 27 46 / .3) 0%, rgb(10 27 46 / .45) 40%, rgb(10 27 46 / .95) 100%),
    linear-gradient(90deg, rgb(10 27 46 / .78) 0%, transparent 70%);
}
.hero__inner { display: grid; gap: 24px; align-items: center; padding-block: clamp(60px, 8vh, 88px) clamp(48px, 6vh, 64px); }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 56px; } }
.hero__title { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1rem; max-width: 22ch; }
.hero__lede { font-size: clamp(1rem, 1.3vw, 1.1rem); color: rgb(255 255 255 / .82); max-width: 54ch; margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__dots { position: absolute; left: var(--gutter); bottom: 20px; display: flex; gap: 8px; }
@media (min-width: 1248px) { .hero__dots { left: calc((100% - var(--container)) / 2); } }
.hero__dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgb(255 255 255 / .35); transition: background .2s, width .3s var(--ease); }
.hero__dots button[aria-current="true"] { width: 48px; background: var(--accent); }
.hero .photo-credit { top: 16px; bottom: auto; }

.audience-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.audience-nav__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 22px; }
.audience-nav a { display: flex; align-items: center; gap: 14px; padding: 12px; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); }
.audience-nav a:hover { background: var(--brand-tint); }
.audience-nav a > .icon:first-child { width: 24px; height: 24px; color: var(--brand); }
.audience-nav a > .icon:last-child { margin-left: auto; color: var(--brand); }
.audience-nav strong, .audience-nav small { display: block; }
.audience-nav strong { font-size: 1rem; }
.audience-nav small { margin-top: 3px; font-size: .8rem; color: var(--muted); }
.visitor-info { padding-block: 32px; scroll-margin-top: calc(var(--header-h) + 20px); }
.visitor-info > h2 { font-size: 1.6rem; margin-bottom: 20px; }
.visitor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.visitor-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.visitor-card > .icon { width: 24px; height: 24px; color: var(--brand); margin-bottom: 14px; }
.visitor-card h3 { font-size: 1.05rem; }
.visitor-card p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.visitor-card p:last-child { margin-bottom: 0; }
.visitor-card a { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; font-weight: 600; }
.contest-card__go { margin-left: auto; }
@media (max-width: 899px) { .visitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .audience-nav__inner { grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
  .audience-nav a { padding: 12px 0; }
  .audience-nav a + a { border-top: 1px solid var(--line); border-radius: 0; }
  .hero__inner { padding-block: 64px 48px; }
  .visitor-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Ensemble-name ticker: a slim, quiet strip between the hero and the next section */
.ticker {
  overflow: hidden; background: var(--night); color: rgb(255 255 255 / .6);
  border-block: 1px solid rgb(255 255 255 / .1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 110s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker__list li { display: flex; align-items: center; padding: .7rem 0; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.ticker__list li::after { content: "•"; margin-inline: 1.1rem; color: var(--accent); opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; overflow-x: auto; width: auto; }
  .ticker__list[aria-hidden] { display: none; }
}

.glass-card {
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .6);
}
.next-contest { display: grid; gap: 1rem; }
.next-contest__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.next-contest__label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.next-contest__row { display: flex; gap: 1rem; align-items: center; }
.next-contest__title { font-size: 1.4rem; margin: 0; }
.next-contest .meta-list { color: rgb(255 255 255 / .8); }
.next-contest .meta-list .icon { color: var(--sky); }
.countdown { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: #fff; background: rgb(255 255 255 / .12); padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }

/* Results (scores page) */
.result-block { scroll-margin-top: calc(var(--header-h) + 80px); }
.result-block + .result-block { margin-top: clamp(40px, 6vw, 64px); }
.result-block__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.result-block__head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .25rem; }
.result-block__head h2 a { color: inherit; text-decoration: none; }
.result-block__head h2 a:hover { color: var(--brand); }
.result-block__links { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.jump-nav { margin-bottom: 32px; }
.jump-nav__select { width: min(100%, 360px); min-height: 46px; padding: 10px 36px 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: var(--surface); color: var(--ink); font: inherit; }
.toolbar__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sticky-bar { position: sticky; top: var(--header-h); z-index: 20; padding-block: 14px; background: rgb(237 242 249 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }

/* Ensembles */
.unit-group + .unit-group { margin-top: clamp(40px, 6vw, 64px); }
.unit-group__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.unit-group__head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.unit-card {
  --type-tone: var(--brand);
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: inset 4px 0 0 var(--type-tone);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.unit-card[data-type="percussion"] { --type-tone: var(--percussion); }
.unit-card[data-type="winds"] { --type-tone: var(--winds); }
.unit-card[data-type="baton"] { --type-tone: var(--baton); }
.unit-card[data-type="dance"] { --type-tone: var(--dance); }
.unit-card:hover {
  transform: translateY(-3px); border-color: transparent;
  box-shadow: inset 4px 0 0 var(--type-tone), 0 18px 34px -18px color-mix(in srgb, var(--type-tone) 70%, transparent);
}
.unit-card__name { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.unit-card__name a { color: var(--ink); text-decoration: none; }
.unit-card__name a::after { content: ""; position: absolute; inset: 0; }
.unit-card__meta { margin: 0; font-size: .85rem; color: var(--muted); }
.avatar {
  --tone: var(--brand);
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 12%, white); color: var(--tone);
}
.avatar .icon { width: 22px; height: 22px; }
.avatar--guard { --tone: var(--guard); }
.avatar--percussion { --tone: var(--percussion); }
.avatar--winds { --tone: var(--winds); }
.avatar--baton { --tone: var(--baton); }
.avatar--dance { --tone: var(--dance); }

/* Unit profile */
.unit-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--night); }
.unit-hero { border-bottom: 6px solid; border-image: var(--spotlight) 1; }
.unit-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(rgb(255 255 255 / .07) 1.2px, transparent 1.7px) 0 0 / 24px 24px,
    radial-gradient(60% 90% at 100% 0%, rgb(217 67 127 / .4), transparent 60%),
    radial-gradient(70% 90% at 70% 100%, rgb(109 75 216 / .45), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgb(42 103 177 / .4), transparent 60%);
}
.unit-hero__photo { transform: rotate(2deg); }
.unit-hero__inner { display: grid; gap: 32px; align-items: center; padding-block: clamp(40px, 7vw, 80px); }
@media (min-width: 900px) { .unit-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; } }
.unit-hero h1 { margin: .75rem 0 1rem; }
.unit-hero .meta-list { color: rgb(255 255 255 / .82); font-size: 1rem; }
.unit-hero .meta-list .icon { color: var(--sky); }
.unit-hero__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: rgb(255 255 255 / .06); box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .12); }
.unit-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.unit-hero__monogram { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: rgb(255 255 255 / .2); }
.unit-hero .badge { background: rgb(255 255 255 / .14); color: #fff; margin-right: 6px; }
.unit-hero .badge .icon { width: 1em; height: 1em; }
.link-light { color: #fff; }
.link-light:hover { color: var(--sky); }
.schedule-list { gap: .75rem; }
.schedule-list li { align-items: center; gap: .85rem; }
.schedule-list .date-badge { box-shadow: none; border: 1px solid var(--line); min-width: 54px; }
.schedule-list .date-badge__day { font-size: 1.35rem; }
.schedule-list a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.35; }
.schedule-list a:hover { color: var(--brand); }

/* About */
.statement { position: relative; isolation: isolate; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); margin: 0; }
.statement::before {
  content: "“"; position: absolute; left: -.08em; top: -.62em; z-index: -1;
  font-size: 6em; line-height: 1; font-weight: 800; background: var(--spotlight);
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35;
}
.statement-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 18px 18px 0 var(--violet), var(--shadow-lg); position: relative; transform: rotate(1.5deg); }
.statement-photo img { width: 100%; height: 100%; object-fit: cover; }
.person { text-align: center; }
.person img, .person__placeholder {
  width: calc(100% - 12px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.4rem; background: var(--surface-2);
  box-shadow: 12px 12px 0 var(--tone, var(--brand)); transition: transform .3s var(--ease);
}
.person:hover img, .person:hover .person__placeholder { transform: rotate(-2deg) translateY(-3px); }
.person__placeholder { display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--muted); }
.person h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.person p { margin: 0; color: var(--muted); font-size: .92rem; }
.hof { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.hof__year { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.hof__year h3 { font-size: 2.4rem; font-weight: 800; margin: 0 0 .5rem; background: linear-gradient(95deg, var(--brand), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hof__year ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-weight: 500; }
/* On the dark stage the Hall of Fame goes gold */
.section--night .hof__year { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); transition: background .2s, transform .2s var(--ease); }
.section--night .hof__year:hover { background: rgb(255 255 255 / .09); transform: translateY(-3px); }
.section--night .hof__year h3 { background: linear-gradient(95deg, #ffe08a, var(--accent) 50%, #ff9fc6); -webkit-background-clip: text; background-clip: text; }
.section--night .hof__year ul { color: rgb(255 255 255 / .85); }

/* Login */
.auth { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) var(--gutter); background:
  radial-gradient(rgb(255 255 255 / .08) 1.2px, transparent 1.7px) 0 0 / 24px 24px,
  radial-gradient(55% 60% at 10% 10%, rgb(109 75 216 / .55), transparent 70%),
  radial-gradient(50% 55% at 90% 90%, rgb(217 67 127 / .45), transparent 70%),
  radial-gradient(60% 60% at 70% 20%, rgb(42 103 177 / .5), transparent 70%), var(--night); }
.auth__card { width: 100%; max-width: 440px; padding: clamp(28px, 5vw, 44px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.auth__card h1 { font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: .35rem; }
.auth__card form { display: grid; gap: 18px; margin-top: 24px; }
.auth__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: .9rem; }

/* Live schedule (qr.php): restyles CompetitionSuite's markup */
.page-hero--compact { min-height: 0; }
.schedule-tools { margin-bottom: 16px; }
.schedule { padding: clamp(16px, 3vw, 28px); }
.schedule .event-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.schedule .event-details__logo img { max-height: 56px; width: auto; }
.schedule .event-details__event-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.schedule .schedule-note { margin: 12px 0; padding: .75rem 1rem; border-radius: 12px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; text-align: center; }
.schedule .schedule-area { border-top: 1px solid var(--line); }
.schedule .schedule-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
.schedule .schedule-row__time { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.schedule .schedule-row__name { flex: 1 1 220px; font-weight: 700; }
.schedule .schedule-row__location { flex: 1 1 150px; color: var(--muted); font-size: .92rem; }
.schedule .schedule-row__initials { min-width: 3.5rem; font-weight: 700; color: var(--brand); font-size: .9rem; }
.schedule .schedule-row__custom { flex: 1 1 100%; padding: .55rem .8rem; border-radius: 10px; background: var(--surface-2); font-weight: 800; }
.schedule .generation-date { margin-top: 16px; text-align: center; font-size: .8rem; color: var(--muted); }

/* Members (director) area -------------------------------------------------- */
.members-bar { background: var(--night); color: rgb(255 255 255 / .75); font-size: .9rem; }
.members-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 10px; }
.members-bar__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.members-bar__nav a { padding: .4rem .85rem; border-radius: 999px; color: rgb(255 255 255 / .8); font-weight: 600; text-decoration: none; }
.members-bar__nav a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.members-bar__nav a[aria-current="page"] { background: var(--spotlight-cool); color: #fff; }
.members-bar__user { display: inline-flex; align-items: center; gap: .4rem; }
.members-bar__user a { color: var(--accent); font-weight: 600; }
.flash { margin-top: 20px; }

.members-main { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px); }
body.members main { background: var(--sequins), linear-gradient(180deg, #dde9f9 0, var(--bg) 420px); }
.members-section > h2 .icon { box-sizing: content-box; padding: .4rem; border-radius: 10px; background: var(--spotlight-cool); color: #fff; font-size: .8em; }
.members-heading { margin-bottom: clamp(20px, 3vw, 32px); }
.members-heading h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0; }
.members-heading .lede { margin: .5rem 0 0; }
.members-heading .eyebrow { margin-bottom: .4rem; }
.members-section + .members-section, .callout + .members-section { margin-top: clamp(36px, 5vw, 56px); }
.members-section > h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }

/* Collapsible sections (details/summary): open/closed is remembered per browser by site.js */
.fold__summary, .tool-fold__summary, .unit-panel__head { list-style: none; cursor: pointer; }
.fold__summary::-webkit-details-marker, .tool-fold__summary::-webkit-details-marker, .unit-panel__head::-webkit-details-marker { display: none; }
.fold__summary, .tool-fold__summary, .unit-panel__head { -webkit-user-select: none; user-select: none; }
summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fold__summary { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; border-radius: 14px; }
.fold:not([open]) > .fold__summary { margin-bottom: 0; }
.fold__summary h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); margin: 0; display: flex; align-items: center; gap: .6rem; }
.fold__summary h2 .icon { box-sizing: content-box; padding: .4rem; border-radius: 10px; background: var(--spotlight-cool); color: #fff; font-size: .8em; }
.fold__count {
  display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--violet) 12%, white); color: var(--violet); font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.fold__chevron {
  margin-left: auto; box-sizing: content-box; padding: .4rem; border-radius: 50%; font-size: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); transition: transform .2s var(--ease), color .15s, border-color .15s;
}
details:not([open]) > summary .fold__chevron { transform: rotate(-90deg); }
summary:hover .fold__chevron { border-color: var(--violet); color: var(--violet); }
.fold__stack { display: grid; gap: 12px; }
.tool-fold { --tone: var(--brand); border: 1px solid var(--line); border-left: 6px solid var(--tone); border-radius: 18px; background: rgb(255 255 255 / .72); transition: background .15s, box-shadow .15s; }
.tool-fold:nth-child(4n + 2) { --tone: var(--violet); }
.tool-fold:nth-child(4n + 3) { --tone: var(--magenta); }
.tool-fold:nth-child(4n + 4) { --tone: #128486; }
.tool-fold[open] { background: var(--surface); box-shadow: var(--shadow-sm); }
.tool-fold__summary { display: flex; align-items: center; gap: .75rem; padding: 14px 18px; border-radius: 12px; }
.tool-fold__summary h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
.tool-fold__summary .fold__count { background: color-mix(in srgb, var(--tone) 13%, white); color: color-mix(in srgb, var(--tone) 80%, var(--ink)); }
.tool-fold .tool-list { padding: 0 18px 18px; }

/* View dashboard as: type a unit name */
.view-as { display: grid; gap: .45rem; max-width: 680px; margin-bottom: 22px; }
.view-as > label { font-weight: 600; font-size: .9rem; }
.view-as__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.view-as__pick { flex: 1 1 300px; min-width: 0; }

/* Type-to-search for long lists (site.js turns a <select data-typeahead> into this) */
select[data-typeahead][hidden] { display: none !important; }
.typeahead { position: relative; }
.typeahead .search { display: block; max-width: none; }
.typeahead__list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: min(340px, 55vh); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.typeahead__list [role="option"] { padding: .55rem .8rem; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.typeahead__list [role="option"][aria-selected="true"] { background: color-mix(in srgb, var(--violet) 11%, white); }
.typeahead__list mark { background: none; color: var(--violet); font-weight: 700; }
.typeahead__group { padding: .6rem .8rem .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.typeahead__empty { padding: .6rem .8rem; color: var(--muted); }

/* Smart contact fields */
.zip-note:empty { display: none; }
.field .zip-note.is-found { color: #12804a; font-weight: 600; }
.link-button { border: 0; padding: 0; background: none; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
.email-suggest { color: var(--accent-ink); }

.callout {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 16px 32px; align-items: center; padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(115deg, var(--brand), var(--violet) 60%, var(--magenta));
  box-shadow: 0 24px 50px -28px rgb(109 75 216 / .8);
}
.callout::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgb(255 255 255 / .2) 1.2px, transparent 1.8px) 0 0 / 24px 24px; }
.callout h2 { margin: 0 0 .25rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.callout p { margin: 0; color: rgb(255 255 255 / .85); }
@media (min-width: 760px) { .callout { grid-template-columns: 1fr auto; } }
.callout--quiet { background: var(--surface); color: var(--ink); border: 1px dashed #c4d2e6; box-shadow: none; }
.callout--quiet::before { display: none; }
.callout--quiet p { color: var(--muted); }

/* Each unit has its own color (--unit), so a director's units are easy to tell apart. */
.unit-panel {
  --unit: var(--brand);
  display: block; overflow: hidden;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--unit) 30%, var(--line)); border-radius: var(--radius);
  box-shadow: 0 14px 34px -22px color-mix(in srgb, var(--unit) 80%, transparent);
}
.unit-panel__body { display: grid; gap: 18px; padding: 18px clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px); }
.unit-panel__toggle { display: inline-flex; margin-left: auto; }
.unit-panel__toggle .fold__chevron { margin: 0; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .45); color: #fff; }
.unit-panel__head:hover .fold__chevron { background: rgb(255 255 255 / .28); border-color: #fff; color: #fff; }
.unit-panel__head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px clamp(18px, 3vw, 24px);
  background: linear-gradient(115deg, var(--unit), color-mix(in srgb, var(--unit) 70%, #0a1b2e)); color: #fff;
}
.unit-panel__mark, .unit-banner__mark {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: rgb(255 255 255 / .18); border: 2px solid rgb(255 255 255 / .45);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em;
}
.unit-panel__title { flex: 1 1 220px; min-width: 0; }
.unit-panel__head h3 { margin: 0 0 .2rem; font-size: 1.35rem; color: #fff; }
.unit-panel__meta, .unit-banner__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .88rem; color: rgb(255 255 255 / .85); }
.unit-panel__meta span, .unit-banner__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.unit-panel__head .pill--ok { background: #fff; color: #126b41; }
.unit-panel__head .pill--wait { background: #fff1d6; color: #8a5300; }
.unit-panel .action-grid a { background: color-mix(in srgb, var(--unit) 8%, white); }
.unit-panel .action-grid a:hover { background: color-mix(in srgb, var(--unit) 16%, white); color: var(--ink); }
.unit-panel .action-grid .icon { color: var(--unit); }

.unit-banner {
  --unit: var(--brand);
  display: flex; align-items: center; gap: 18px; padding: clamp(20px, 3vw, 28px); margin-bottom: 14px;
  border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, var(--unit), color-mix(in srgb, var(--unit) 65%, #0a1b2e));
  box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--unit) 90%, transparent);
}
.unit-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgb(255 255 255 / .16) 1.2px, transparent 1.8px) 0 0 / 22px 22px; }
.unit-banner__mark { width: 64px; height: 64px; font-size: 1.45rem; border-radius: 20px; }
.unit-banner__text { min-width: 0; }
.unit-banner__section { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.unit-banner h1 { margin: .1rem 0 .3rem; font-size: clamp(1.6rem, 4vw, 2.3rem); color: #fff; }
.unit-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.unit-switcher__label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.unit-switcher a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--unit) 35%, white); background: var(--surface);
  color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.unit-switcher a:hover { border-color: var(--unit); }
.unit-switcher a[aria-current="page"] { background: var(--unit); border-color: var(--unit); color: #fff; }
.unit-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--unit); flex: none; }
.unit-switcher a[aria-current="page"] .unit-dot { background: #fff; }
.form-gap { margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill--ok { background: #dcf5e8; color: #126b41; }
.pill--wait { background: #fff1d6; color: #8a5300; }
.pill--off { background: var(--surface-2); color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: .45rem; background: #fff8ea; border: 1px solid #f4dfb2; border-radius: 14px; font-size: .92rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; }
.checklist .icon { color: var(--accent-dark); margin-top: .2em; }
.checklist strong { display: block; color: var(--accent-ink); }
.action-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.action-grid a {
  display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; border-radius: 12px;
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.action-grid a:hover { background: var(--brand-tint); color: var(--brand-dark); transform: translateY(-1px); }
.action-grid .icon { color: var(--violet); }

/* Forms */
.form-panel {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm);
  background: linear-gradient(90deg, var(--brand), var(--violet), var(--magenta)) top / 100% 4px no-repeat, var(--surface);
}
.form-panel + .form-panel { margin-top: 20px; }
.form-panel > h2 { font-size: 1.2rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.form-panel > h2 + p.muted { margin-top: -.6rem; }
.fields .field { align-content: start; }
.form-panel > h2 .step { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--spotlight-cool); color: #fff; font-size: .85rem; }
.form-panel > p.muted { margin: 0 0 1.25rem; font-size: .92rem; }
.fields { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.fields--wide > .field { grid-column: 1 / -1; }
.field--full { grid-column: 1 / -1; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .optional { font-weight: 500; color: var(--muted); font-size: .8rem; }
.field .req { color: var(--magenta); }
.field.has-error .input { border-color: #d92d20; }
.field .error-text { color: #b42318; font-size: .82rem; font-weight: 600; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
textarea.input { min-height: 120px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.terms { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--ink-soft); }

/* Big radio/checkbox choices */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: grid; gap: .2rem; height: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice span strong { font-size: 1rem; }
.choice span small { color: var(--muted); font-size: .84rem; }
.choice:hover span { border-color: #b8c7dc; }
.choice input:checked + span { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 7%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input:disabled + span { opacity: .55; cursor: not-allowed; }

.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 24px; padding: 0; font-size: .88rem; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: .45rem; }
.steps li::before { content: attr(data-step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .78rem; }
.steps li[aria-current="step"] { color: var(--ink); }
.steps li[aria-current="step"]::before, .steps li.is-done::before { background: var(--spotlight-cool); color: #fff; }

/* Contest registration */
.contest-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.contest-option .date-badge { box-shadow: none; border: 1px solid var(--line); min-width: 56px; }
.contest-option .date-badge__day { font-size: 1.35rem; }
.contest-option { flex-wrap: wrap; }
.contest-option__body { flex: 1 1 150px; min-width: 0; }
.contest-option__body strong { display: block; }
.contest-option__body small { color: var(--muted); }
.contest-list { display: grid; gap: 10px; }
label.contest-option { cursor: pointer; transition: border-color .15s, background .15s; }
label.contest-option:hover { border-color: #b8c7dc; }
label.contest-option:has(input:checked) { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 7%, white); }
.contest-option input[type="checkbox"] { width: 1.3rem; height: 1.3rem; accent-color: var(--violet); flex: none; }
.contest-option.is-entered { border-color: #bfe6d2; background: #f2fbf6; }
.contest-option.is-locked { background: var(--surface-2); color: var(--muted); }

/* Invoice */
.invoice { max-width: 820px; margin-inline: auto; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.invoice__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 28px 32px; border-top: 6px solid; border-image: var(--spotlight) 1; }
.invoice__top img { height: 54px; width: auto; margin-bottom: 10px; }
.invoice__top address { font-style: normal; color: var(--muted); font-size: .92rem; }
.invoice__meta { text-align: right; }
.invoice__meta h1 { font-size: 1.6rem; margin: 0 0 .3rem; letter-spacing: .08em; text-transform: uppercase; }
.invoice__meta p { margin: 0; color: var(--muted); font-size: .92rem; }
.invoice__body { padding: 0 32px 28px; }
.invoice__billto { margin: 0 0 20px; }
.invoice .data-table td:last-child, .invoice .data-table th:last-child { text-align: right; }
.invoice__total td { font-weight: 800; font-size: 1.05rem; background: var(--surface-2); }
.paid-stamp { display: inline-block; margin-top: 18px; padding: .35rem 1rem; border: 3px solid #12804a; color: #12804a; border-radius: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; transform: rotate(-4deg); }
.invoice__foot { padding: 20px 32px; background: var(--surface-2); font-size: .92rem; color: var(--ink-soft); }
@media print {
  .members-bar, .flash, .no-print { display: none !important; }
  .invoice { box-shadow: none; border: 0; }
  .members-main { padding: 0; }
}

.photo-tile { margin: 0; padding: 10px; display: grid; gap: 10px; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.photo-tile figcaption { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

/* Admin lists */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-bottom: 18px; }
.filter-bar .field { min-width: 160px; }
.filter-bar .search { max-width: 320px; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); margin-bottom: 22px; }
.stat { --tone: var(--brand); padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 12%, white), var(--surface) 70%); box-shadow: inset 4px 0 0 var(--tone); }
.stat:nth-child(5n + 2) { --tone: var(--violet); }
.stat:nth-child(5n + 3) { --tone: var(--magenta); }
.stat:nth-child(5n + 4) { --tone: #128486; }
.stat:nth-child(5n + 5) { --tone: var(--accent-dark); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; color: color-mix(in srgb, var(--tone) 75%, var(--ink)); }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tool-list li { --tone: var(--brand); }
.tool-list li:nth-child(4n + 2) { --tone: var(--violet); }
.tool-list li:nth-child(4n + 3) { --tone: var(--magenta); }
.tool-list li:nth-child(4n + 4) { --tone: #128486; }
.tool-list a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.tool-list a:hover { border-color: var(--tone); color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 22px -16px var(--tone); }
.tool-list .icon { box-sizing: content-box; padding: .45rem; border-radius: 10px; background: var(--tone); color: #fff; }
.tool-list small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.danger-zone { border: 2px solid #f3b8b2; background: #fff6f5; }

/* Admin tools */
.back-row { margin: 0 0 .6rem; font-size: .9rem; }
.back-row .link-arrow:hover .icon { transform: translateX(-3px); }
.members-section-tight { margin-bottom: 18px; }
.form-gap-bottom { margin-bottom: 14px; }
.nowrap { white-space: nowrap; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.input--sm { padding: .45rem .65rem; border-radius: 9px; font-size: .92rem; }
select.input--sm { width: auto; max-width: 100%; }
.input--short { max-width: 7rem; }
.input--score { width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.input--rank { width: 4.25rem; text-align: right; font-variant-numeric: tabular-nums; }
.big-check { width: 1.3rem; height: 1.3rem; accent-color: var(--violet); }
.pill-button { border: 0; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; transition: filter .15s, transform .15s var(--ease); }
.pill-button:hover { filter: brightness(.95); transform: translateY(-1px); }
.pill-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choices--compact { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.choices--compact .choice span { padding: .55rem .8rem; }
.choices--compact .choice span strong { font-size: .92rem; }
.doc-row { display: flex; align-items: center; gap: 10px; }
.doc-row > a { flex: 1 1 auto; min-width: 0; }
.data-table tr.is-filled td { background: color-mix(in srgb, var(--accent) 12%, white); }
.data-table tr.is-filled .input { border-color: var(--accent-dark); }

/* Entries matrix */
.matrix th, .matrix td { padding: .5rem .6rem; }
.matrix td:first-child { white-space: nowrap; }
.matrix__col { text-align: center; font-size: .78rem; line-height: 1.25; min-width: 4.5rem; }
.matrix__col small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.matrix__cell { text-align: center; font-variant-numeric: tabular-nums; }
.matrix tbody tr:nth-child(even):not(.group-row) td { background: color-mix(in srgb, var(--surface-2) 45%, white); }
.matrix__total td { font-weight: 800; border-top: 2px solid var(--line); background: color-mix(in srgb, var(--violet) 7%, white); }
.tick { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: color-mix(in srgb, #12804a 16%, white); color: #12804a; font-weight: 800; font-size: .85rem; }

/* Pre-made reports */
.report-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.report-tools .search { flex: 1 1 260px; max-width: 380px; }
.report-tools__actions { display: flex; gap: 8px; margin-left: auto; }
.report-count { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.report-section { margin-top: 28px; }
.report-section:first-of-type { margin-top: 0; }
.report-section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; margin-bottom: 10px; }
.report-section__head h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.report-section__head .pill { background: color-mix(in srgb, var(--violet) 12%, white); color: var(--violet); }
.report-page .data-table td { vertical-align: top; }
.report-page .data-table td.unit-cell { font-weight: 700; min-width: 11rem; }
.report-page .data-table .center { text-align: center; }
.report-page .data-table tr.is-flagged td { background: #fff8ea; }
.report-page .data-table ol { margin: 0; padding-left: 1.2rem; }
.report-page .data-table ol li + li { margin-top: .15rem; }
.mark { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-weight: 800; }
.mark--yes { background: #dcf5e8; color: #12804a; }
.mark--no { background: #fdecea; color: #c2382a; }
.mark--na { color: var(--muted); }
.missing-text { color: #c2382a; font-weight: 600; }
.class-tag { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.type-head { --tone: var(--brand); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px 14px 0 0; background: var(--tone); color: #fff; }
.type-head h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.type-head + .table-wrap { border-top-left-radius: 0; border-top-right-radius: 0; }
.report-section:nth-of-type(5n + 2) .type-head { --tone: var(--violet); }
.report-section:nth-of-type(5n + 3) .type-head { --tone: var(--magenta); }
.report-section:nth-of-type(5n + 4) .type-head { --tone: #128486; }
.report-section:nth-of-type(5n + 5) .type-head { --tone: var(--accent-dark); }
.eval-card { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.eval-card + .eval-card { margin-top: 8px; }
.eval-card__score { grid-row: span 2; align-self: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--violet); }
.eval-card__comments { grid-column: 1 / -1; margin: 6px 0 0; color: var(--ink-soft); white-space: pre-line; }
.proposal { break-inside: avoid; }
.proposal h3 { margin: 1rem 0 .3rem; font-size: 1.05rem; }
.proposal h3:first-child { margin-top: 0; }
.proposal blockquote { margin: 0; padding-left: 14px; border-left: 4px solid var(--line); }
.proposal__foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.reg-card dl { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 4px 14px; margin: 0; font-size: .93rem; }
.reg-card dt { color: var(--muted); font-weight: 600; }
.reg-card dd { margin: 0; overflow-wrap: anywhere; }
.reg-card h3 { margin: 0 0 4px; }
.reg-card h4 { margin: 14px 0 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.plain-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; display: grid; gap: 2px; }
.h4 { font-size: 1.2rem; margin: 0 0 .8rem; }
.report-section > .report-section { margin-top: 18px; }
.report-section__head h3 { margin: 0; font-size: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; }
.field--grow { flex: 1 1 320px; max-width: 520px; }
.builder-presets { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.builder-presets a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.builder-presets a:hover { border-color: var(--violet); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.builder-presets strong { font-size: 1rem; }
.builder-presets small { color: var(--muted); }
.builder-group { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; background: var(--surface); }
.builder-group legend { padding: 0 6px; font-weight: 800; font-family: var(--font-display); }
.builder-group__cols { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 8px; }
.builder-group .link-button { font-size: .85rem; }
@media print {
  .report-page .table-wrap { overflow: visible; }
  .report-page .data-table { font-size: .78rem; }
  .report-page .data-table td, .report-page .data-table th { padding: .3rem .45rem; }
  .report-page [data-row][hidden], .report-page [data-group-row][hidden] { display: none !important; }
  .type-head { background: none !important; color: var(--ink); border-bottom: 2px solid var(--ink); padding: 4px 0; }
  .type-head h2 { color: var(--ink); }
  .eval-card, .proposal, .reg-card { break-inside: avoid; }
  .proposal-page { break-after: page; }
}

/* Staff passes */
.pass-card { --tone: var(--brand); padding: 18px 20px; border-top: 5px solid var(--tone); }
.pass-card:nth-child(4n + 2) { --tone: var(--violet); }
.pass-card:nth-child(4n + 3) { --tone: var(--magenta); }
.pass-card:nth-child(4n + 4) { --tone: #128486; }
.pass-card h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.pass-card p { font-size: .85rem; margin: 0; }
.pass-card ol { margin: .7rem 0; padding-left: 1.3rem; font-size: .95rem; }
.pass-card li::marker { color: var(--tone); font-weight: 700; }

/* Profile photo check */
.photo-tile--link { color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.photo-tile--link:hover { border-color: var(--violet); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.photo-missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; aspect-ratio: 4 / 3; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--magenta) 45%, white); background: color-mix(in srgb, var(--magenta) 6%, white); color: var(--magenta); font-weight: 700; font-size: .9rem; }
.photo-missing .icon { font-size: 1.6rem; }

/* Spiel sheets: a card per unit on screen, a page per unit on paper */
.spiel-page { max-width: 760px; margin: 0 auto 22px; padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: 1.1rem; line-height: 1.55; }
.spiel-cover { text-align: center; border-top: 6px solid; border-image: var(--spotlight) 1; }
.spiel-cover h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .3rem 0; }
.spiel-cover p { margin: 0; color: var(--muted); }
.spiel-head { border-bottom: 2px solid var(--line); padding-bottom: .8rem; margin-bottom: 1rem; }
.spiel-head h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 0; }
.spiel-head p { margin: .2rem 0 0; color: var(--ink-soft); }
.spiel-head .cue-title { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.spiel-page .cue { margin: 1.1rem 0 .3rem; font-size: .9rem; font-style: italic; color: var(--muted); }
.spiel-page .read { margin: 0 0 .5rem; }
.notes-box { margin: .8rem 0; min-height: 5.5rem; padding: .5rem .75rem; border: 1px dashed #b8c7dc; border-radius: 10px; font-size: .8rem; color: var(--muted); }
.spiel-foot { margin: 1.4rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

@media print {
  body.members main { background: #fff; }
  .back-row, .filter-bar, .toolbar { display: none !important; }
  .table-wrap, .report-table { overflow: visible; box-shadow: none; border: 0; }
  .report-table .data-table { font-size: .8rem; }
  .report-table .data-table td, .report-table .data-table th { padding: .3rem .45rem; }
  .data-table tbody tr:hover td { background: none; }
  .pass-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pass-card { break-inside: avoid; box-shadow: none; padding: 10px 14px; }
  .photo-tile--link { break-inside: avoid; }
  .spiel-page { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 13pt; break-after: page; }
  .spiel-page:last-child { break-after: auto; }
  .notes-box { min-height: 1.2in; }
}

/* Error page */
.error-page { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 32px var(--gutter); }
.error-page img { height: 48px; width: auto; margin-bottom: 24px; }
.error-page--inline { min-height: 0; padding-block: clamp(32px, 8vw, 96px); }
.error-page--inline .hero__actions { justify-content: center; margin-top: 1rem; }
.big-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; margin: 0; background: var(--spotlight); -webkit-background-clip: text; background-clip: text; color: transparent; transform: rotate(-3deg); }

/* 7. Motion ---------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .announcement, .to-top, .tabs, .hero__dots, .photo-credit { display: none !important; }
  [role="tabpanel"][hidden] { display: block !important; }
  body { background: #fff; }
}
