/* ==========================================================================
   Virginia Men's Club Rugby — site styles
   Brand: crest navy + crest orange, jersey "hoops" as the signature motif.
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #050F20;
  --navy-900: #081A33;
  --navy: #0B2341;          /* crest navy */
  --navy-700: #16355F;
  --navy-100: #E6EBF3;
  --orange: #F2551B;        /* crest orange — fills, bars, large text */
  --orange-600: #D8460F;
  --orange-ink: #B23F0C;    /* orange for small text on light (5.6:1) */
  --orange-100: #FDE9DF;
  --bone: #F5F2EB;          /* warm off-white, crest scroll */
  --paper: #FFFFFF;

  /* Semantic */
  --color-bg: var(--paper);
  --color-surface: var(--bone);
  --color-fg: #0E1726;
  --color-muted: #4A5568;
  --color-line: #D9DEE7;
  --color-win: #166534;
  --color-loss: #B91C1C;
  --color-focus: #F2551B;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space (8pt rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius: 4px;
  --container: 1240px;
  --shadow-1: 0 1px 2px rgb(8 26 51 / .08), 0 2px 8px rgb(8 26 51 / .06);
  --shadow-2: 0 4px 12px rgb(8 26 51 / .10), 0 16px 40px rgb(8 26 51 / .10);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-1: 150ms; --dur-2: 240ms;

  /* Jersey hoops — the signature motif */
  --hoops: repeating-linear-gradient(180deg, var(--orange) 0 14px, var(--navy-700) 14px 28px);
  --hoops-thin: repeating-linear-gradient(180deg, var(--orange) 0 4px, var(--navy) 4px 8px);

  /* z-index scale */
  --z-header: 40; --z-drawer: 100; --z-skip: 1000;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0 0 var(--s-4);
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 var(--s-4); }

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

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-skip);
  background: var(--orange); color: var(--navy); padding: var(--s-3) var(--s-4);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.container { width: min(100% - 2 * var(--s-5), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Sample-data banner ---------- */
.sample-banner {
  background: #FFF7D6; color: #5B4300; border-bottom: 1px solid #EAD48A;
  font-size: .875rem; text-align: center; padding: var(--s-2) var(--s-4);
}
.sample-banner strong { font-weight: 700; }

/* ==========================================================================
   Header (navy main bar + orange club bar)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: var(--z-header); }

.mainbar { background: var(--navy); color: #fff; }
.mainbar__inner { display: flex; align-items: stretch; min-height: 76px; }

.brand {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  padding: 0 var(--s-6) 0 var(--s-5); text-decoration: none; color: #fff;
  background: var(--navy-950);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  margin-right: var(--s-3);
}
/* hoops slashes after the brand block (echoes the reference's slash device, in jersey hoops) */
.brand::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: -30px; width: 46px;
  background: var(--hoops-thin);
  clip-path: polygon(28px 0, 46px 0, 18px 100%, 0 100%);
}
.brand img { width: 50px; height: auto; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .35)); }
.brand__text { display: flex; flex-direction: column; line-height: .9; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: .02em; text-transform: uppercase; }
.brand__sub { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #F7B79C; margin-top: 4px; }
.brand:hover { color: #fff; }

/* Main nav lives in the orange club bar */
.primary-nav { display: flex; align-self: stretch; margin-left: calc(-1 * var(--s-4)); }
.primary-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: flex; align-items: center; height: 100%; min-height: 48px;
  padding: 0 var(--s-4); color: var(--navy); text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.125rem; text-transform: uppercase; letter-spacing: .02em;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.primary-nav a::after {
  content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: 0; height: 4px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.primary-nav a:hover { background: rgb(11 35 65 / .1); color: var(--navy); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }

.mainbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.social { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--navy);
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.social a:hover { background: #fff; color: var(--navy); }
.social svg { width: 20px; height: 20px; }

.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 48px; min-height: 48px; margin-left: var(--s-2); padding: 0 var(--s-3);
  background: transparent; border: 2px solid rgb(255 255 255 / .3); border-radius: var(--radius);
  color: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Orange club bar */
.clubbar { background: var(--orange); color: var(--navy); }
.clubbar__inner { display: flex; align-items: center; gap: var(--s-5); min-height: 48px; }
.clubbar__label {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: .03em; white-space: nowrap;
}
.clubbar__next {
  margin-left: auto; display: flex; align-items: center; gap: var(--s-3);
  font-weight: 600; font-size: .95rem; min-width: 0;
}
.clubbar__next .tag {
  font-family: var(--font-display); font-weight: 800; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 2px; white-space: nowrap;
}
.clubbar__next a { color: var(--navy); font-weight: 700; white-space: nowrap; }
.clubbar__next .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; }
.drawer[data-open="true"] { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(5 15 32 / .6); opacity: 0; transition: opacity var(--dur-2) var(--ease-out); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--navy); color: #fff; padding: var(--s-5);
  transform: translateX(100%); transition: transform var(--dur-2) var(--ease-out);
  display: flex; flex-direction: column; gap: var(--s-5); overflow-y: auto;
}
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer[data-open="true"] .drawer__panel { transform: none; }
.drawer__close {
  align-self: flex-end; min-width: 48px; min-height: 48px; background: transparent; color: #fff;
  border: 2px solid rgb(255 255 255 / .3); border-radius: var(--radius); cursor: pointer;
  display: grid; place-items: center;
}
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
  display: block; padding: var(--s-3) 0; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.75rem; text-transform: uppercase;
  border-bottom: 1px solid rgb(255 255 255 / .12);
}
.drawer nav a[aria-current="page"] { color: var(--orange); }
.drawer .social { margin-top: auto; }

/* Nav and "up next" both fit only on wide screens; tablets keep the nav, phones use the drawer */
@media (max-width: 1100px) {
  .clubbar__next { display: none; }
}
@media (max-width: 760px) {
  .primary-nav { display: none; }
  .clubbar__next { display: flex; }
  .menu-toggle { display: inline-flex; }
  .mainbar .social { display: none; }
}
@media (max-width: 640px) {
  .brand { padding-right: var(--s-5); }
  .brand__name { font-size: 1.4rem; }
  .brand img { width: 42px; }
  .clubbar__label { display: none; }
  .clubbar__next { margin-left: 0; font-size: .875rem; }
  .menu-toggle .label { display: none; }
}

/* ==========================================================================
   Shared building blocks
   ========================================================================== */
.page-head { padding: var(--s-7) 0 var(--s-5); }
.page-head h1 { margin-bottom: var(--s-2); }
.page-head p { color: var(--color-muted); max-width: 65ch; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--orange-ink); margin-bottom: var(--s-2);
}
.eyebrow::before { content: ""; width: 18px; height: 10px; background: var(--hoops-thin); }

.section { padding: var(--s-8) 0; }
.section--bone { background: var(--color-surface); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.link-arrow {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
}
.link-arrow::after { content: "→"; transition: transform var(--dur-1) var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--navy .link-arrow { color: #fff; }

.hoops-band { height: 28px; background: var(--hoops); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #fff; color: var(--navy); border-color: var(--orange); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--sm { min-height: 40px; font-size: .95rem; padding: 0 var(--s-4); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.badge {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 2px; background: var(--navy); color: #fff; white-space: nowrap;
}
.badge--orange { background: var(--orange); color: var(--navy); }
.badge--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between;
  background: var(--color-surface); border: 1px solid var(--color-line); padding: var(--s-4); margin-bottom: var(--s-5);
}
.toolbar__group { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

.segmented { display: inline-flex; border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.segmented button {
  min-height: 40px; padding: 0 var(--s-4); background: #fff; color: var(--navy); border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
}
.segmented button + button { border-left: 2px solid var(--navy); }
.segmented button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.segmented button:hover:not([aria-pressed="true"]) { background: var(--navy-100); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--color-muted); }
.input, select.input, textarea.input {
  min-height: 48px; padding: var(--s-3) var(--s-4); font: inherit; color: var(--color-fg);
  background: #fff; border: 1.5px solid #9AA5B8; border-radius: var(--radius);
}
.input:hover { border-color: var(--navy-700); }
.input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 0; border-color: var(--navy); }
.input[aria-invalid="true"] { border-color: var(--color-loss); }
.field .error { color: var(--color-loss); font-size: .875rem; font-weight: 600; }

/* ---------- Record strip (Overall / Home / Away …) ---------- */
.record-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border: 1px solid var(--color-line); background: #fff;
}
.record-strip > div { padding: var(--s-4) var(--s-3); text-align: center; border-right: 1px solid var(--color-line); }
.record-strip > div:last-child { border-right: 0; }
.record-strip dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.record-strip dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.section--navy .record-strip { background: transparent; border-color: rgb(255 255 255 / .2); }
.section--navy .record-strip > div { border-color: rgb(255 255 255 / .2); }
.section--navy .record-strip dt { color: #C9D3E3; }
.section--navy .record-strip dd { color: #fff; }

/* ==========================================================================
   Home
   ========================================================================== */
.home-top { padding: var(--s-5) 0 var(--s-7); }
.home-top__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; box-shadow: var(--shadow-2); }

.feature { position: relative; background: var(--navy-950); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.feature__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgb(5 15 32 / .85), transparent); }
.feature__body { position: relative; padding: var(--s-5) var(--s-6) var(--s-6); background: var(--navy-950); }
.feature__body::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--hoops-thin); }
.feature__meta { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-3); font-size: .9rem; color: #C9D3E3; }
.feature h2 { color: #fff; font-size: clamp(1.75rem, 2.4vw + .75rem, 2.75rem); margin-bottom: var(--s-3); }
.feature h2 a { color: inherit; text-decoration: none; }
.feature h2 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.feature p { color: #DCE3EE; max-width: 62ch; margin: 0; }

.headlines { background: #fff; display: flex; flex-direction: column; min-height: 0; }
.headlines__head {
  display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5);
  background: var(--navy); color: #fff;
}
.headlines__head h2 { color: #fff; font-size: 1.5rem; margin: 0; font-style: italic; }
.headlines__head img { width: 30px; }
.headlines ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; max-height: 640px; }
.headlines li a {
  display: block; padding: var(--s-4) var(--s-5); text-decoration: none; color: var(--color-fg);
  font-weight: 600; line-height: 1.35; border-bottom: 1px solid var(--color-line); border-left: 4px solid transparent;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.headlines li a:hover, .headlines li a[aria-current="true"] { background: var(--bone); border-left-color: var(--orange); color: var(--navy); }
.headlines time { display: block; font-size: .8rem; font-weight: 500; color: var(--color-muted); margin-top: 4px; }

@media (max-width: 960px) {
  .home-top__grid { grid-template-columns: 1fr; }
  .headlines ol { max-height: none; }
}

/* Fixtures rail */
.fixtures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.fixture {
  position: relative; background: #fff; border: 1px solid var(--color-line); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-2); min-height: 200px;
}
.fixture--result { border-top: 6px solid var(--navy); }
.fixture--next { border-top: 6px solid var(--orange); }
.fixture__when { font-weight: 700; font-size: .9rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }
.fixture__opp { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--navy); text-transform: uppercase; }
.fixture__opp small { display: block; font-size: .95rem; font-weight: 700; color: var(--orange-ink); letter-spacing: .08em; margin-bottom: 4px; }
.fixture__where { font-size: .9rem; color: var(--color-muted); margin-top: auto; }
.fixture__score { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.75rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.fixture__score .wl { color: var(--color-win); }
.fixture__score .wl.l { color: var(--color-loss); }
@media (max-width: 1000px) { .fixtures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fixtures { grid-template-columns: 1fr; } }

/* Club intro split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-2); }
.split__media::before {
  content: ""; position: absolute; left: -16px; top: -16px; width: 40%; height: 60%; background: var(--hoops); z-index: -1;
}
.split p { font-size: 1.075rem; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin: var(--s-5) 0; padding: 0; list-style: none; }
.facts li { border-left: 4px solid var(--orange); padding-left: var(--s-3); }
.facts strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--navy); }
.facts span { font-size: .9rem; color: var(--color-muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__media::before { left: -8px; top: -8px; } }

/* Join CTA */
.cta {
  position: relative; overflow: hidden; color: #fff; background: var(--navy-950);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 420px;
}
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__body { padding: var(--s-8) var(--s-7); display: flex; flex-direction: column; justify-content: center; position: relative; }
.cta__body::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 28px; background: var(--hoops); }
.cta h2 { color: #fff; font-size: clamp(2rem, 3vw + 1rem, 3.25rem); }
.cta p { color: #DCE3EE; font-size: 1.1rem; max-width: 46ch; }
.cta .btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); }
.cta .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .5); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__media { aspect-ratio: 16/9; } .cta__body { padding: var(--s-7) var(--s-5); } }

/* Gallery strip */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.gallery figure { margin: 0; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Sponsors */
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4); }
.sponsor {
  display: grid; place-items: center; min-height: 96px; padding: var(--s-4); border: 1px dashed #AEB7C6; background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--color-muted); text-transform: uppercase; text-align: center; text-decoration: none;
}
a.sponsor:hover { border-color: var(--navy); color: var(--navy); }

/* ==========================================================================
   Schedule
   ========================================================================== */
.schedule { list-style: none; margin: 0; padding: 0; }
.match {
  display: grid; grid-template-columns: 76px minmax(0, 1.5fr) minmax(0, 1fr) 170px; gap: var(--s-4);
  align-items: center; padding: var(--s-4) var(--s-5); background: #F3F4F7; border-bottom: 2px solid #fff;
}
.match:nth-child(even) { background: #E9ECF1; }
.match__crest {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em;
}
.match--away .match__crest { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.match__date { font-weight: 700; font-size: .95rem; }
.match__date span { font-weight: 500; color: var(--color-muted); }
.match__opp { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--navy); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.match__opp .at { font-family: var(--font-body); font-style: italic; font-size: .8rem; font-weight: 700; background: var(--navy); color: #fff; padding: 1px 6px; border-radius: 2px; }
.match__badges { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: 4px; }
.match__where { font-size: .95rem; }
.match__where .muted { color: var(--color-muted); display: block; font-size: .875rem; }
.match__result { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.match__result .w { color: var(--color-win); }
.match__result .l { color: var(--color-loss); }
.match__result .d { color: var(--color-muted); }
.match__result a { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .9rem; margin-top: 4px; }
.match__result .tbd { font-style: normal; font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--color-muted); }
.season-title { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-6) 0 var(--s-3); }
.season-title h2 { margin: 0; font-size: 1.75rem; }
.empty { padding: var(--s-7); text-align: center; color: var(--color-muted); background: var(--bone); }

@media (max-width: 860px) {
  .match { grid-template-columns: 56px 1fr; grid-template-areas: "crest main" "crest where" "crest result"; row-gap: var(--s-2); }
  .match__crest { grid-area: crest; width: 48px; height: 48px; font-size: 1rem; align-self: start; }
  .match__main { grid-area: main; } .match__where { grid-area: where; } .match__result { grid-area: result; }
  .match__opp { font-size: 1.4rem; }
}

/* ==========================================================================
   Tables (roster, stats)
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); }
table.data { width: 100%; border-collapse: collapse; font-size: .975rem; }
table.data caption { text-align: left; padding: var(--s-3) 0; font-weight: 600; color: var(--color-muted); caption-side: bottom; }
table.data thead th {
  background: var(--navy); color: #fff; text-align: left; padding: var(--s-3) var(--s-3);
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
table.data thead th button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px;
}
table.data thead th button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
table.data thead th button .arrow { opacity: .5; font-style: normal; }
table.data thead th[aria-sort] button .arrow { opacity: 1; color: var(--orange); }
table.data tbody th { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--color-line); font-weight: 700; }
table.data td { padding: var(--s-3); border-bottom: 1px solid var(--color-line); vertical-align: middle; }
table.data tbody tr:nth-child(even) { background: #F7F8FA; }
table.data tbody tr:hover { background: var(--orange-100); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
table.data .jersey { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy); width: 56px; text-align: center; }
table.data .name { font-weight: 700; color: var(--navy); white-space: nowrap; }
table.data .pos-group { font-size: .75rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
table.data tfoot td { font-weight: 700; background: var(--bone); border-top: 2px solid var(--navy); }

/* Staff cards */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-4); }
.person { background: #fff; border: 1px solid var(--color-line); display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 1; background: var(--navy); display: grid; place-items: center; overflow: hidden; position: relative; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo .initials { font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; color: #fff; }
.person__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--hoops-thin); }
.person__body { padding: var(--s-4); }
.person__name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--navy); line-height: 1.1; margin: 0; }
.person__role { color: var(--orange-ink); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.person__body p { font-size: .925rem; color: var(--color-muted); margin: var(--s-2) 0 0; }
.person__body a { font-size: .925rem; font-weight: 600; }

/* ==========================================================================
   Stats
   ========================================================================== */
.leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.leader { background: var(--navy); color: #fff; padding: var(--s-5); position: relative; overflow: hidden; }
.leader::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: var(--hoops-thin); }
.leader__label { font-family: var(--font-display); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: #F7B79C; }
.leader__value { font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; line-height: 1; margin: var(--s-2) 0; font-variant-numeric: tabular-nums; }
.leader__name { font-weight: 700; font-size: 1.05rem; }
.leader__name span { color: #C9D3E3; font-weight: 500; font-size: .9rem; }
@media (max-width: 1000px) { .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .leaders { grid-template-columns: 1fr; } }

.chart-card { background: #fff; border: 1px solid var(--color-line); padding: var(--s-5); }
.chart-card h3 { margin-bottom: var(--s-1); }
.chart-card .sub { color: var(--color-muted); font-size: .9rem; margin-bottom: var(--s-4); }
.legend { display: flex; gap: var(--s-4); list-style: none; padding: 0; margin: 0 0 var(--s-3); font-size: .9rem; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; display: inline-block; border-radius: 2px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar-for { fill: var(--navy); }
.chart .bar-against { fill: var(--orange); }
.chart .bar:hover, .chart .bar:focus { opacity: .8; }
.chart .axis text { font-size: 12px; fill: var(--color-muted); font-family: var(--font-body); }
.chart .grid line { stroke: #E5E8EE; }
.chart .val { font-size: 11px; font-weight: 700; font-family: var(--font-body); }
.chart-tip {
  position: fixed; pointer-events: none; z-index: 50; background: var(--navy-950); color: #fff; padding: 8px 12px;
  font-size: .875rem; border-radius: var(--radius); box-shadow: var(--shadow-2); opacity: 0; transition: opacity var(--dur-1);
}
.chart-tip[data-show="true"] { opacity: 1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.diff-pos { color: var(--color-win); font-weight: 700; }
.diff-neg { color: var(--color-loss); font-weight: 700; }

/* ==========================================================================
   News
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-line); text-decoration: none; color: inherit; transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.news-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); color: inherit; }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.news-card h3 { margin: 0; font-size: 1.5rem; color: var(--navy); }
.news-card p { margin: 0; color: var(--color-muted); font-size: .95rem; }
.news-card time { font-size: .85rem; color: var(--color-muted); font-weight: 600; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.article { max-width: 760px; margin: 0 auto; padding: var(--s-7) 0 var(--s-8); }
.article__hero { margin: var(--s-5) 0; }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--pos, center); }
.article__hero figcaption { font-size: .85rem; color: var(--color-muted); margin-top: var(--s-2); }
.article__meta { display: flex; gap: var(--s-3); align-items: center; color: var(--color-muted); font-weight: 600; font-size: .95rem; flex-wrap: wrap; }
.article__body { font-size: 1.125rem; line-height: 1.7; }
.article__body p:first-child::first-letter {
  float: left; font-family: var(--font-display); font-weight: 800; font-size: 4.2rem; line-height: .85; color: var(--orange); margin: 6px 10px 0 0;
}
.article__score {
  display: flex; align-items: center; justify-content: center; gap: var(--s-5); padding: var(--s-5);
  background: var(--navy); color: #fff; margin: var(--s-5) 0; text-align: center;
}
.article__score .team { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; }
.article__score .pts { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }

/* ==========================================================================
   Join / Alumni
   ========================================================================== */
.join-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7); align-items: start; }
@media (max-width: 960px) { .join-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0 0 var(--s-5); counter-reset: step; display: grid; gap: var(--s-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-3); align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; background: var(--orange); color: var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
}
.steps h3 { margin: 0 0 4px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--color-muted); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.info-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; }
.info-list svg { width: 24px; height: 24px; color: var(--orange-ink); margin-top: 2px; }
.form-card { background: #fff; border: 1px solid var(--color-line); border-top: 8px solid var(--navy); padding: var(--s-6); box-shadow: var(--shadow-1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: var(--s-5); } }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-weight: 500; }
.checks input { width: 20px; height: 20px; accent-color: var(--navy); }
.form-status { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--radius); font-weight: 600; }
.form-status[data-kind="ok"] { background: #E7F5EC; color: var(--color-win); }
.form-status[data-kind="err"] { background: #FDECEC; color: var(--color-loss); }
.error-summary { border: 3px solid var(--color-loss); padding: var(--s-4); margin-bottom: var(--s-4); }
.error-summary h3 { color: var(--color-loss); font-size: 1.1rem; margin-bottom: var(--s-2); }
.error-summary ul { margin: 0; padding-left: 1.2em; }

.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.75rem; color: var(--orange-ink); transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--color-muted); max-width: 70ch; }

.alumni-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.alumni-card { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .18); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.alumni-card h3 { margin: 0; }
.alumni-card p { color: #DCE3EE; margin: 0; flex: 1; }
@media (max-width: 860px) { .alumni-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #C9D3E3; margin-top: 0; }
.site-footer .hoops-band { height: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); padding: var(--s-7) 0; }
.footer__brand { display: flex; gap: var(--s-4); align-items: flex-start; }
.footer__brand img { width: 72px; }
.footer__brand strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; text-transform: uppercase; line-height: 1.05; }
.footer__brand p { font-size: .9rem; margin: var(--s-2) 0 0; }
.site-footer h2 { font-size: 1rem; color: var(--orange); letter-spacing: .12em; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; color: #fff; text-decoration: none; }
.site-footer li a:hover { color: var(--orange); text-decoration: underline; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / .12); padding: var(--s-4) 0; font-size: .85rem; display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.site-footer .social a { display: grid; place-items: center; padding: 0; min-height: 0; background: var(--navy-700); color: #fff; }
.site-footer .social a:hover { background: var(--orange); color: var(--navy); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .toolbar, .sample-banner, .no-print { display: none !important; }
  body { font-size: 11pt; }
  .match { break-inside: avoid; background: none !important; border-bottom: 1px solid #ccc; }
  table.data thead th { background: #eee !important; color: #000 !important; }
}

/* Segmented filters: fit narrow screens */
.segmented { max-width: 100%; }
@media (max-width: 560px) {
  .segmented { width: 100%; }
  .segmented button { flex: 1 1 0; padding: 0 6px; font-size: .85rem; min-height: 44px; }
  .toolbar { padding: var(--s-3); }
}

/* Player profile extras */
.person__meta { font-size: .875rem; font-weight: 600; color: var(--navy-700); margin-top: 4px; }
.person:target { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Opponent logos */
.match__crest--logo, .match--away .match__crest--logo { background: transparent; box-shadow: none; border-radius: 0; }
.match__crest--logo img { width: 100%; height: 100%; object-fit: contain; }
.fixture__logo { position: absolute; top: var(--s-4); right: var(--s-4); width: 48px; height: 48px; object-fit: contain; }
.fixture--result .fixture__opp, .fixture--next .fixture__opp { padding-right: 0; }
.fixture:has(.fixture__logo) .fixture__when { padding-right: 56px; }

/* Note above the officers table (e.g. incoming officers) */
.officers-note { color: var(--color-muted); max-width: 65ch; margin: 0 0 var(--s-4); }

/* ==========================================================================
   Donate: always one click away
   ========================================================================== */
.btn-donate svg { width: 18px; height: 18px; }
.header-donate { white-space: nowrap; }
.header-donate:hover { background: #fff; }
.drawer-donate { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.25rem; padding: 0 var(--s-6); }
.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: #fff; }

.support-band { background: var(--orange); color: var(--navy); padding: var(--s-6) 0; }
.support-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.support-band h2 { margin: 0 0 var(--s-1); color: var(--navy); }
.support-band p { margin: 0; font-weight: 600; max-width: 55ch; }
.support-band__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.support-band .btn-donate { background: var(--navy); color: #fff; }
.support-band .btn-donate:hover { background: var(--navy-700); color: #fff; }

@media (max-width: 640px) {
  .mainbar__right { padding-right: var(--s-3); gap: var(--s-2); }
  .header-donate { min-height: 44px; padding: 0 var(--s-3); font-size: .9rem; }
  .menu-toggle { margin-left: 0; }
  .support-band__actions, .support-band__actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .brand { padding-left: var(--s-3); padding-right: var(--s-4); gap: var(--s-2); }
  .brand img { width: 36px; }
  .brand__name { font-size: 1.2rem; white-space: nowrap; }
  .brand__sub { font-size: .65rem; letter-spacing: .12em; }
}

/* Match video inside a recap */
.article__video { margin: var(--s-6) 0 0; }
.article__video video { display: block; width: 100%; max-height: 80vh; background: var(--navy-950); border-radius: var(--radius); }
.article__video figcaption { font-size: .9rem; color: var(--color-muted); margin-top: var(--s-2); font-weight: 600; }

/* Spam trap on the recruit form: off-screen for people, still filled in by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Note under donate buttons (e.g. temporary Venmo) */
.donate-note { font-size: .875rem; font-weight: 500; margin-top: var(--s-2) !important; opacity: .85; }
.alumni-card .donate-note { margin-bottom: 0; }

/* Stats page PDF download */
.stats-pdf { margin-top: var(--s-3); }
