/* ============================================================
   Bacchus Marsh Panthers Basketball Club
   site.css — design tokens + components
   Palette sampled directly from the club logo artwork.
   ============================================================ */

/* ---------- 1. Fonts -------------------------------------- */
/* Self-hosted, latin subset, all three under the SIL Open Font
   Licence. Source Sans 3 and JetBrains Mono are variable fonts, so
   one file covers the whole weight range declared below. No request
   ever leaves the origin — which also keeps the club clear of the
   EU's third-party-font problem.                                 */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ------------------------------------- */
:root {
  /* Ground — #0C122D sampled from the logo background so the
     mark sits seamlessly on the page with no visible box. */
  --navy:   #0C122D;
  --pit:    #060B1F;
  --raise:  #151B3C;
  --line:   #28305A;
  --line-2: #3A4478;

  /* Accents — the logo's own gradient stops. */
  --pink:   #FE4B9C;
  --rose:   #FA3C6C;
  --ember:  #F65824;
  --flare:  #FF8502;

  --grad: linear-gradient(135deg, #FE4B9C 0%, #FA3C6C 42%, #F65824 78%, #FF8502 100%);
  --grad-flat: linear-gradient(135deg, #FE4B9C 0%, #F65824 100%);

  /* Neutrals, biased violet toward the ground. */
  --paper: #EDEBF5;
  --muted: #9A9CC0;
  --dim:   #6E7196;

  /* Light panel for long-form parent-facing content. */
  --panel:     #F6F5FB;
  --panel-ink: #171B39;
  --panel-mid: #4A4F73;
  --panel-line:#DCDAEA;

  /* Semantic — status only, never decoration. */
  --ok:    #4FD69C;
  --warn:  #FF8502;
  --stop:  #FF6B6B;

  /* Type */
  --display: "Anton", "Haettenschweiler", "Arial Narrow Bold", "Arial Black", sans-serif;
  --body:    "Source Sans 3", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --data:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing scale */
  --s1: 0.375rem;
  --s2: 0.6875rem;
  --s3: 1.125rem;
  --s4: 1.75rem;
  --s5: 2.75rem;
  --s6: 4.25rem;
  --s7: 6.5rem;

  --wrap: 1180px;
  --gutter: 1.5rem;
  --radius: 3px;
  --header-h: 68px;
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
}

/* ---------- 3. Reset & base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--flare); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--flare);
  color: var(--pit);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip:focus { left: 0; }

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

/* ---------- 4. Typography --------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.94;
  text-transform: uppercase;
  transform: skewX(-7deg);
  transform-origin: left bottom;
  text-wrap: balance;
  margin: 0;
}

/* Fallback faces are not condensed; tighten them so headings
   keep the wordmark's density if Anton has not loaded. */
@supports not (font-variation-settings: normal) {
  .display { letter-spacing: -0.02em; }
}

.d-xl { font-size: clamp(2.75rem, 9vw, 6rem); }
.d-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.d-md { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.d-sm { font-size: 1.4rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flare);
  margin: 0;
}

h1, h2, h3, h4 { text-wrap: balance; }

h3 {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 var(--s2);
  color: var(--paper);
  line-height: 1.35;
}

p { margin: 0 0 var(--s3); max-width: 66ch; color: var(--muted); }
p:last-child { margin-bottom: 0; }
.lead { color: var(--paper); font-size: 1.125rem; line-height: 1.6; }
strong { color: var(--paper); font-weight: 650; }

.mono, code {
  font-family: var(--data);
  font-size: 0.86em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.note { font-size: 0.82rem; color: var(--dim); }

/* ---------- 5. Layout ------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--s6); border-top: 1px solid var(--line); }
.band-pit { background: var(--pit); }

@media (min-width: 768px) {
  .band { padding-block: var(--s7); }
}

.band-head {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s5);
}
.band-head p { max-width: 60ch; }

.grid { display: grid; gap: var(--s3); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: var(--s3); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- 6. The claw ----------------------------------- */
.claw { display: block; flex: none; }
.claw-rule { width: 92px; height: 26px; }
.claw-hero { width: 190px; height: 54px; }

/* ---------- 7. Header / nav ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 18, 45, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
}
.brand-lockup img { width: 42px; height: auto; }
.brand-lockup .bl-name,
.brand-lockup .bl-sub { display: block; }

.brand-lockup .bl-name {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-7deg);
  letter-spacing: 0.01em;
}
.brand-lockup .bl-sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1;
  margin-top: 3px;
  white-space: nowrap;
}
@media (max-width: 419px) {
  .brand-lockup .bl-sub { letter-spacing: 0.12em; font-size: 0.55rem; }
  .brand-lockup img { width: 36px; }
}
.brand-lockup:hover .bl-name { color: var(--flare); }

/* ---------- 7b. Social icons (header) --------------------- */
.socials {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.social-link svg { width: 19px; height: 19px; display: block; }
.social-link:hover {
  color: var(--flare);
  border-color: var(--ember);
  transform: translateY(-2px);
}

/* The header is tight on small phones. Drop the button's "Menu"
   label below 420px so the social icons still fit rather than
   pushing the toggle off the row. */
@media (max-width: 419px) {
  .nav-toggle { font-size: 0; gap: 0; padding: 0.5rem 0.6rem; }
  .social-link { width: 34px; height: 34px; }
  .socials { gap: 0.3rem; }
}

@media (min-width: 900px) {
  .socials { margin-left: 0; order: 3; }
  .site-nav { order: 2; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--ember); color: var(--flare); }

.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bars span {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s4);
}

/* Scoped to `ul a` so it cannot reach the .nav-cta button — an
   unscoped `.site-nav a` outranks .btn-primary and would repaint
   the button label muted grey. */
.site-nav ul a {
  position: relative;
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"],
.site-nav ul a.is-active { color: var(--paper); }
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after,
.site-nav ul a.is-active::after { transform: scaleX(1); }

/* Mobile nav */
@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--pit);
    border-bottom: 1px solid var(--line);
    padding: var(--s3) var(--gutter) var(--s4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav ul a { padding: 0.85rem 0; font-size: 1rem; }
  .site-nav ul a::after { display: none; }
  /* Two classes so this beats .btn's display:inline-flex, which is
     declared later in this file and would otherwise win. */
  .site-nav .nav-cta { display: inline-flex; margin-top: var(--s3); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav .nav-cta { display: none; }
}

/* ---------- 8. Buttons ------------------------------------ */
/* Rule: navy text on every warm surface. White on ember measures
   3.3:1 and fails WCAG AA. Do not flip these.                  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease,
              border-color 160ms ease, color 160ms ease;
}

.btn-primary { background: var(--grad); color: var(--pit); }
.btn-primary:hover {
  color: var(--pit);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px rgba(246, 88, 36, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--flare); }

.btn-quiet {
  background: none;
  color: var(--pink);
  padding: 0.4rem 0;
  min-height: 0;
  letter-spacing: 0.04em;
}
.btn-quiet:hover { color: var(--flare); }

.btn-block { width: 100%; }

/* ---------- 9. Hero --------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--s6) var(--s5);
  overflow: hidden;
}

.hero::after {
  /* Ember bloom behind the headline. Deliberately kept off the
     right-hand side: the logo artwork carries its own baked-in navy
     background, so any glow behind it reveals a rectangular seam. */
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 65vw;
  max-width: 640px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(254, 75, 156, 0.13) 0%, transparent 64%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: var(--s5); align-items: center; }

@media (min-width: 900px) {
  .hero { padding-block: var(--s7) var(--s6); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s6); }
}

.hero-copy { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.hero-copy .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }

.hero-art { justify-self: center; max-width: 420px; width: 100%; }
.hero-art img { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

/* ---------- 10. Status strip ------------------------------ */
.status {
  background: var(--pit);
  border-block: 1px solid var(--line);
}
.status-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s3);
}
.status-msg { display: flex; align-items: center; gap: 0.7rem; }
/* Override the global 66ch measure — this is a single short line,
   and the cap was forcing it to wrap mid-sentence. */
.status-msg p { margin: 0; max-width: none; color: var(--paper); }

.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}
.dot-warn { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.dot-stop { background: var(--stop); box-shadow: 0 0 12px var(--stop); }

/* ---------- 11. Cards & tiles ----------------------------- */
.card {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
}
.card p { font-size: 0.92rem; }

.stat {
  background: var(--pit);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4) var(--s3);
  text-align: center;
}
.stat-n {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  line-height: 1;
  transform: skewX(-7deg);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-l {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: var(--s2);
}

/* ---------- 12. Pathway card ------------------------------ */
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  padding-left: calc(var(--s4) + 4px);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}
.path::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--grad);
}
.path:hover { border-color: var(--line-2); transform: translateY(-3px); }

.path h3 {
  font-family: var(--display);
  /* Scales down on narrow cards so a long grade name can never
     overflow the rail. The fallback faces are far wider than Anton. */
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.6rem);
  overflow-wrap: break-word;
  font-weight: 400;
  text-transform: uppercase;
  transform: skewX(-7deg);
  transform-origin: left;
  margin: 0 0 var(--s1);
  line-height: 1;
}
.path-age {
  font-family: var(--data);
  font-size: 0.78rem;
  color: var(--flare);
  letter-spacing: 0.03em;
}
/* Fixed label column, not `auto`. With `auto` each card sized its
   label track to its own widest term — "Training" and "Standard" are
   wider than "Gear" and "Team" — so the value column started at a
   different x in all four cards. A fixed track aligns them, and the
   narrower label leaves more room for values before they wrap. */
.path dl {
  margin: var(--s3) 0;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.55rem var(--s2);
  font-size: 0.9rem;
}
.path dt {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.25rem;
}
.path dd { margin: 0; color: var(--paper); }
/* margin-top:auto aligns the CTA across cards; padding-top gives it
   a minimum separation from the copy on the tallest card. */
.path .btn-quiet { margin-top: auto; padding-top: var(--s4); align-self: flex-start; }

/* ---------- 13. Light panel ------------------------------- */
.panel {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
}
@media (min-width: 768px) { .panel { padding: var(--s6) var(--s5); } }

.panel p { color: var(--panel-mid); }
.panel h3, .panel strong, .panel .display { color: var(--panel-ink); }
.panel .eyebrow { color: #C2410C; }
.panel a { color: #BE2C6C; }
.panel a:hover { color: #C2410C; }
.panel .mono { color: #C2410C; }

.panel details {
  border-bottom: 1px solid var(--panel-line);
  padding-block: var(--s3);
}
.panel details:first-of-type { border-top: 1px solid var(--panel-line); }

.panel summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--panel-ink);
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 28px;
}
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after {
  content: "+";
  font-family: var(--data);
  font-size: 1.35rem;
  line-height: 1;
  color: #C2410C;
  flex: none;
}
.panel details[open] summary::after { content: "\2212"; }
.panel details > *:not(summary) { margin-top: var(--s2); }
.panel details p { max-width: 62ch; margin-bottom: 0; }

/* ---------- 14. Values ------------------------------------ */
.value {
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  border-image-slice: 1;
  padding-left: var(--s3);
}
.value h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
  transform: skewX(-7deg);
  transform-origin: left;
  margin-bottom: var(--s2);
}
.value p { font-size: 0.92rem; margin: 0; }

/* ---------- 15. Committee --------------------------------- */
.person {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
}
/* Fixed 96px badge, not a full-bleed tile — at one column on a
   phone a 100%-width square becomes a 343px block of gradient. */
.person-avatar {
  width: 96px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--pit);
  overflow: hidden;
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-weight: 700; color: var(--paper); line-height: 1.3; }
.person-role {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flare);
}
.person p { font-size: 0.85rem; margin: 0; }
.person a { font-size: 0.85rem; word-break: break-word; }

/* ---------- 16. Sponsors ----------------------------------
   Light tiles, deliberately. The supplied logos have flat
   backgrounds baked in and no alpha — two are artwork on solid
   black (which disappears on white) and three are artwork on solid
   white (which disappears on navy). A single light tile is the only
   treatment where all five stay legible, and it's what sponsors
   expect. Logos run in full colour: greyscaling a sponsor's brand
   and only restoring it on hover isn't ours to do.               */
/* Wide tiles on purpose. These logos range from 1:1 to nearly 4:1,
   and in a narrow tile the banner-shaped ones shrink to a sliver
   while the square ones fill the box. Giving every tile room lands
   them at comparable visual weight. */
.sponsor-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s3);
}

.sponsor {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.sponsor:hover {
  transform: translateY(-3px);
  border-color: var(--ember);
  box-shadow: 0 10px 26px -12px rgba(246, 88, 36, 0.55);
}

/* Fixed box, explicit pixel ceiling on the image. A percentage
   max-height here does not resolve reliably against the grid area,
   which let the square logos overflow and collide with the name
   below. overflow:hidden is the belt-and-braces guard. */
.sponsor-logo {
  display: grid;
  place-items: center;
  height: 110px;
  overflow: hidden;
}
.sponsor-logo img {
  max-height: 104px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--panel-ink);
  line-height: 1.3;
}
.sponsor-what {
  font-size: 0.76rem;
  color: var(--panel-mid);
  line-height: 1.45;
}

/* Call-to-action tile keeps the dark treatment so it reads as an
   action rather than as another sponsor. */
.sponsor-cta {
  background: var(--raise);
  align-items: flex-start;
  justify-content: center;
}
.sponsor-cta .sponsor-name { color: var(--flare); font-size: 1rem; }
.sponsor-cta .sponsor-what { color: var(--muted); }
.sponsor-cta:hover .sponsor-name { color: var(--pink); }

/* ---------- 17. News -------------------------------------- */
.news {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
.news:hover { border-color: var(--line-2); transform: translateY(-3px); }
.news time {
  font-family: var(--data);
  font-size: 0.75rem;
  color: var(--flare);
  letter-spacing: 0.04em;
}
.news h3 { margin: 0; font-size: 1.1rem; }
.news p { font-size: 0.9rem; margin: 0; }
.news:hover h3 { color: var(--flare); }

/* ---------- 18. Forms ------------------------------------- */
.form { display: grid; gap: var(--s3); }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form .field-wide { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .req { color: var(--ember); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: var(--pit);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--flare) 50%),
                    linear-gradient(135deg, var(--flare) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ember);
  outline: 2px solid var(--flare);
  outline-offset: 1px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }

.field-error {
  font-size: 0.8rem;
  color: var(--stop);
  min-height: 1.2em;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--flare);
  min-height: 1.2em;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--stop); }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-status {
  border-radius: var(--radius);
  padding: var(--s3);
  font-weight: 650;
}
.form-status[data-state="ok"]   { background: rgba(79, 214, 156, 0.12); border: 1px solid var(--ok); color: var(--ok); }
.form-status[data-state="error"]{ background: rgba(255, 107, 107, 0.12); border: 1px solid var(--stop); color: var(--stop); }
.form-status[hidden] { display: none; }

/* ---------- 18b. Photography ------------------------------ */
.photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pit);
}
.photo img { width: 100%; display: block; }
.photo figcaption {
  padding: var(--s2) var(--s3);
  font-size: 0.78rem;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

/* ---------- 18c. Venue cards ------------------------------ */
.venue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  padding-left: calc(var(--s4) + 4px);
  overflow: hidden;
}
.venue-card::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--grad);
}
.venue-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  transform: skewX(-7deg);
  transform-origin: left;
  margin: 0;
  line-height: 1;
}
.venue-card .venue-alias {
  font-family: var(--data);
  font-size: 0.78rem;
  color: var(--flare);
  letter-spacing: 0.03em;
}
.venue-card address {
  font-style: normal;
  color: var(--paper);
  line-height: 1.5;
}
.venue-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem var(--s2);
  font-size: 0.9rem;
}
.venue-card dt {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.2rem;
}
.venue-card dd { margin: 0; color: var(--muted); }
.venue-card .btn-quiet { margin-top: auto; align-self: flex-start; }

/* ---------- 18d. Callout ---------------------------------- */
.callout {
  border-left: 4px solid var(--flare);
  background: var(--raise);
  border-radius: var(--radius);
  padding: var(--s4);
}
.callout h3 { color: var(--flare); }
.panel .callout {
  background: #FFF6EC;
  border-left-color: #C2410C;
}

/* Association callout: the BMBA mark sits beside the explanation of
   how club and association relate — the one place in the body copy
   where the logo genuinely aids comprehension. */
.assoc-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}
.assoc-callout .assoc-mark {
  flex: none;
  width: 72px;
  height: auto;
  margin-top: 2px;
}
@media (max-width: 599px) {
  .assoc-callout { gap: var(--s3); }
  .assoc-callout .assoc-mark { width: 54px; }
}
.panel .callout h3 { color: #C2410C; }

/* ---------- 19. Venue ------------------------------------- */
.venue {
  display: grid;
  gap: var(--s4);
  align-items: center;
}
@media (min-width: 768px) { .venue { grid-template-columns: 1fr 1fr; } }
.venue-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pit);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s4);
}

/* ---------- 20. Tables ------------------------------------ */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.8rem var(--s3); border-bottom: 1px solid var(--line); }
th {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  background: var(--pit);
}
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--data); font-variant-numeric: tabular-nums; }

.panel .tablewrap { border-color: var(--panel-line); }
.panel th { background: #ECEAF6; color: var(--panel-mid); }
.panel th, .panel td { border-bottom-color: var(--panel-line); }

/* ---------- 21. Page header (secondary pages) ------------- */
.page-head {
  padding-block: var(--s6) var(--s5);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 50vw; max-width: 520px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(254, 75, 156, 0.12) 0%, transparent 62%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .stack { align-items: flex-start; }

.crumbs { font-size: 0.8rem; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--flare); }

/* ---------- 21b. Affiliations -----------------------------
   One quiet strip above the footer links, on every page. The
   governing-body marks belong together in a single place rather
   than sprinkled through the content — this reads as a masthead
   credit, not as decoration. */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  padding-bottom: var(--s5);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}

.affiliations-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  max-width: 12ch;
  line-height: 1.5;
}

.affiliation {
  display: flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--muted);
  opacity: 0.78;
  transition: opacity 180ms ease, color 180ms ease, transform 180ms ease;
}
.affiliation:hover { opacity: 1; color: var(--paper); transform: translateY(-2px); }

.affiliation img { display: block; width: auto; }
.affiliation-bmba img { height: 46px; }
.affiliation-bv img { height: 40px; }

.affiliation-text { font-size: 0.82rem; line-height: 1.4; max-width: 26ch; }
.affiliation-text b { display: block; font-weight: 700; color: var(--paper); }

@media (max-width: 599px) {
  .affiliations { gap: var(--s4); }
  .affiliations-label { max-width: none; }
}

/* ---------- 22. Footer ------------------------------------ */
.site-footer {
  background: var(--pit);
  border-top: 1px solid var(--line);
  padding-block: var(--s6) var(--s5);
  font-size: 0.9rem;
}
/* Explicit columns, not auto-fit. There are five children — a brand
   block and four link lists — and auto-fit resolved to four columns,
   which orphaned the last list onto its own row beside a large empty
   space. The brand block gets a wider track; the four lists sit level
   with each other on one row. */
/* Column counts are always a divisor of the four link lists, so the
   last one is never orphaned onto a row of its own: 1 → 2 → 4 → 5.
   (An earlier 3-column step did exactly that at tablet width.) */
.footer-grid {
  display: grid;
  gap: var(--s5) var(--s4);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Wide enough for the brand block to sit inline as a fifth track. */
@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
    gap: var(--s4);
  }
  .footer-grid > :first-child { grid-column: auto; }
}

.footer-brand { display: flex; flex-direction: column; gap: var(--s3); }
.footer-brand .brand-lockup { margin-bottom: 0; }
.site-footer h3 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--s3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--flare); }
.footer-base {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  color: var(--dim);
  font-size: 0.8rem;
}

/* ---------- 22b. Utilities --------------------------------
   These exist because the site ships a strict Content-Security-
   Policy (`style-src 'self'`, no 'unsafe-inline'). Under it the
   browser silently drops every inline style="..." attribute, so
   the layout collapsed on the real host while looking correct on
   a local server that sends no CSP. Every former inline style is
   now one of these classes. Do not reintroduce style attributes. */

.mb-0  { margin-bottom: 0; }
.mb-3  { margin-bottom: var(--s3); }
.mb-5  { margin-bottom: var(--s5); }
.mt-xs { margin-top: 0.6rem; }
.mt-2  { margin-top: var(--s2); }
.mt-3  { margin-top: var(--s3); }
.mt-4  { margin-top: var(--s4); }
.mt-5  { margin-top: var(--s5); }
.my-4  { margin-block: var(--s4); }

/* Panel section titles: tight to the eyebrow above, roomy below. */
.panel-title { margin: var(--s2) 0 var(--s4); }

.align-start   { align-items: start; }
.content-start { align-content: start; }
.gap-3         { gap: var(--s3); }
.measure-46    { max-width: 46ch; }

.text-stop     { color: var(--stop); }
.text-dim      { color: var(--dim); }
.border-strong { border-color: var(--line-2); }
.no-underline  { text-decoration: none; }

/* Emergency variant of .callout — child at immediate risk. */
.callout-stop { border-left-color: var(--stop); }

/* Bulleted list inside a card, matched to card body copy. */
.list-plain {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Off-screen container for the shared <symbol> defs. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 23. Motion ------------------------------------ */
/* Reveal-on-scroll is OPT-IN, not opt-out. `.rv` on its own does
   nothing; site.js adds `.rv-armed` immediately before it starts
   observing an element, and removes the hidden state via `.is-in`.
   That way content is only ever hidden while JS is demonstrably
   running — if the script is blocked, slow, errors, or the browser
   lacks IntersectionObserver, everything simply renders visible.
   The earlier `html:not(.js)` guard only caught JS *disabled*, and
   left the whole page below the fold blank in every other failure. */
.rv-armed {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms ease, transform 550ms ease;
}
.rv-armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv-armed,
  .rv-armed.is-in { opacity: 1; transform: none; transition: none; }
  .btn, .path, .news, .site-nav ul a::after, .sponsor { transition: none; }
  .btn-primary:hover, .path:hover, .news:hover { transform: none; }
}
