/* ==========================================================================
   Unknown Boyz Football & 7v7 — design system
   Tokens → base → layout → components → pages → utilities
   ========================================================================== */

:root {
  --red: #F01418;
  --red-deep: #B80E12;
  --navy: #182A40;
  --navy-2: #10203A;
  --silver: #C6CBD2;
  --silver-dim: #8E96A3;
  --white: #FFFFFF;
  --ink: #090D14;
  --ink-2: #0F1520;
  --line: rgba(198, 203, 210, .16);

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --header-h: 64px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* subtle film grain over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--white); margin: 0 0 .4em; }
h1, h2, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .92;
}
h1 { font-size: clamp(3rem, 11vw, 8.5rem); }
h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
h3 { font: 700 1.15rem/1.3 var(--body); letter-spacing: .01em; }
strong { color: var(--white); }
::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--red);
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--red); color: var(--white);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section--navy { background: var(--navy); }
.section--ink2 { background: var(--ink-2); }
.section--edge { clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%); margin-top: -3vw; padding-top: calc(clamp(64px, 10vw, 128px) + 3vw); }
.grid-2 { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } .grid-2--wide-left { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(9, 13, 20, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand span { font: 400 1rem/1 var(--display); letter-spacing: .08em; color: var(--white); text-transform: uppercase; display: none; }
@media (min-width: 1200px) { .brand span { display: inline; } }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px;
  font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--silver); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.header-cta { display: none; gap: 8px; }
@media (min-width: 1200px) { .header-cta { display: flex; } }
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-toggle { display: none !important; }
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line); color: var(--white);
  font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 14px; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s var(--ease);
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink);
  padding: 24px var(--gutter) calc(var(--bar-h) + 32px);
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0 0 32px; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; text-decoration: none;
  font: 400 2rem/1 var(--display); text-transform: uppercase; color: var(--white);
}
.mobile-nav a[aria-current="page"] { color: var(--red); }
.mobile-nav .social-row { margin-top: 24px; }
body.nav-open { overflow: hidden; }

/* Sticky mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
  display: grid; grid-template-columns: 1fr 1fr;
  height: var(--bar-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); border-top: 1px solid var(--line);
  transition: transform .25s var(--ease);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center;
  font: 400 1.15rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
}
.action-bar a:first-child { background: var(--red); }
.action-bar.is-hidden { transform: translateY(100%); }
body { padding-bottom: var(--bar-h); }
@media (min-width: 1024px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px;
  font: 400 1.1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease);
}
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }
.btn--sm { min-height: 40px; padding: 10px 16px; font-size: .95rem; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--white); color: var(--ink); }
.btn--ghost { border-color: var(--silver); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--white); color: var(--navy); }
.btn .arrow { transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 700 .75rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 20px;
}
.eyebrow b { color: var(--red); font-weight: 800; }
.eyebrow::after { content: ""; flex: 0 0 48px; height: 2px; background: var(--red); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--silver); max-width: 60ch; }
.red { color: var(--red); }
.stroke { -webkit-text-stroke: 2px var(--white); color: transparent; }
.muted { color: var(--silver-dim); }
.small { font-size: .875rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92svh, 900px);
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(.35) contrast(1.05); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9,13,20,.55) 0%, rgba(9,13,20,.35) 35%, rgba(9,13,20,.92) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(24,42,64,.65), transparent 60%);
}
.hero__mark { display: none; width: clamp(180px, 34vw, 360px); margin-bottom: 24px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.5)); }
@media (min-width: 760px) { .hero__mark { display: block; } }
.hero h1 { max-width: 16ch; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero .lede { color: var(--white); opacity: .9; margin-bottom: 32px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px;
  font: 700 .72rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--silver);
}
.hero__meta span::before { content: "/ "; color: var(--red); }

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .reveal:nth-child(4) { animation-delay: .24s; }
  .hero .reveal:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* Interior page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(72px, 12vw, 152px) 0 clamp(48px, 7vw, 88px);
  background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: attr(data-word);
  position: absolute; right: -2vw; bottom: -4vw; z-index: -1;
  font: 400 clamp(8rem, 28vw, 22rem)/.8 var(--display); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(198,203,210,.09);
  white-space: nowrap; pointer-events: none;
}
.page-hero h1 { font-size: clamp(3rem, 10vw, 7rem); }
.breadcrumb { font: 600 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.breadcrumb a { color: var(--silver); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--red); margin: 0 8px; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 24px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font: 400 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); color: var(--white); text-transform: uppercase; }
.stat span { font: 700 .7rem/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--silver-dim); }

/* ---------- Pillars (numbered list) ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: p; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars--4 { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 760px) { .pillar { padding-left: 24px; border-right: 1px solid var(--line); } .pillar:first-child { padding-left: 0; } }
.pillar::before {
  counter-increment: p; content: counter(p, decimal-leading-zero);
  display: block; font: 400 2.6rem/1 var(--display); color: var(--red); margin-bottom: 16px;
}
.pillar p { margin: 0; color: var(--silver); }

/* ---------- Photo band ---------- */
.photo-frame { position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-frame::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 2px solid var(--red);
}
.photo-frame figcaption, figcaption.cap {
  margin-top: 12px; font: 600 .75rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-dim);
}

/* ---------- Quote ---------- */
.quote { border-left: 4px solid var(--red); padding: 8px 0 8px 24px; margin: 32px 0; }
.quote p { font: 400 clamp(1.6rem, 3.6vw, 2.6rem)/1.05 var(--display); text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.quote cite { font: 700 .75rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--silver-dim); }

/* ---------- Coach block ---------- */
.coach { display: grid; gap: 32px; align-items: stretch; }
@media (min-width: 900px) { .coach { grid-template-columns: 380px 1fr; gap: 64px; } }
.coach__card {
  background: var(--navy); position: relative; overflow: hidden;
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.coach__card img.mark { position: absolute; top: 28px; left: 28px; width: 120px; }
.coach__card::after {
  content: "HC"; position: absolute; right: -10px; top: 10px;
  font: 400 12rem/1 var(--display); color: rgba(255,255,255,.05);
}
.coach__name { font: 400 clamp(2.4rem, 5vw, 3.4rem)/.9 var(--display); text-transform: uppercase; color: var(--white); }
.coach__role { font: 700 .75rem/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #FF6366; margin-top: 8px; }

.coach__card--photo { padding: 0; min-height: 0; aspect-ratio: 4 / 5; justify-content: flex-end; width: 100%; align-self: start; }
.coach__card--photo::after { content: ""; inset: 0; top: auto; right: 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(9,13,20,.92)); font-size: 0; }
.coach__card--photo picture, .coach__card--photo .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coach__card--photo .coach__name, .coach__card--photo .coach__role { position: relative; z-index: 1; margin-left: 28px; }
.coach__card--photo .coach__role { margin-bottom: 28px; }

/* ---------- Staff ---------- */
.team-label { font: 400 clamp(1.6rem, 3.5vw, 2.2rem)/1 var(--display); text-transform: uppercase; color: var(--white); margin: 40px 0 16px; display: flex; align-items: center; gap: 14px; }
.team-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.coach-grid { display: grid; gap: 2px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .coach-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .coach-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 759px) { .coach-tile__body { padding: 12px 12px 16px; } .coach-tile__body h4 { font-size: 1.3rem; } .coach-tile__quote { font-size: .82rem; } }
.coach-tile { background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.coach-tile__media { position: relative; aspect-ratio: 1 / 1; background: var(--navy); overflow: hidden; }
.coach-tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.coach-tile__media img.is-placeholder { object-position: center; }
.coach-tile__team { position: absolute; left: 0; bottom: 0; background: var(--red); color: var(--white); font: 800 .62rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 6px 8px; }
.coach-tile__body { padding: 16px 18px 20px; }
.coach-tile__body h4 { font: 400 1.6rem/1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.coach-tile__body .coach__role { margin: 0; }
.coach-tile__quote { margin: 12px 0 0; font-size: .9rem; color: var(--silver); line-height: 1.55; }


/* ---------- Placeholder (editable content) ---------- */
.placeholder {
  border: 1px dashed rgba(198,203,210,.35);
  padding: 20px 22px;
  background: rgba(24,42,64,.35);
  font-size: .95rem;
}
.placeholder::before {
  content: "Content pending"; display: block; margin-bottom: 6px;
  font: 800 .68rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}
.placeholder p:last-child { margin: 0; }

/* ---------- Empty state ---------- */
.empty {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-2), var(--navy-2));
  padding: clamp(32px, 6vw, 56px);
}
.empty::after {
  content: attr(data-word);
  position: absolute; right: -8px; bottom: -24px;
  font: 400 clamp(5rem, 16vw, 10rem)/1 var(--display); text-transform: uppercase;
  color: rgba(255,255,255,.035); pointer-events: none;
}
.empty h3 { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.empty p { max-width: 52ch; }
.empty .btn-row { margin-top: 20px; position: relative; z-index: 1; }

/* ---------- Section header ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; max-width: 14ch; }
.section-head p { max-width: 46ch; margin: 0; }

/* ---------- Events ---------- */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start;
}
@media (min-width: 760px) { .event-row { grid-template-columns: 96px 1fr auto; align-items: center; } }
.event-date { text-align: center; border: 1px solid var(--line); padding: 10px 4px; }
.event-date b { display: block; font: 400 2rem/1 var(--display); color: var(--white); }
.event-date span { font: 700 .68rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.event-row h3 { margin: 0 0 4px; font-size: 1.1rem; }
.event-row h3 a { text-decoration: none; }
.event-row .meta { font-size: .9rem; color: var(--silver-dim); }
.event-row .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 760px) { .event-row .actions { grid-column: auto; } }
.tag {
  display: inline-block; padding: 4px 8px; margin-right: 8px;
  font: 800 .64rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  background: var(--navy); color: var(--white); vertical-align: middle;
}
.tag--tournament { background: var(--red); }
.tag--tryout { background: var(--white); color: var(--ink); }

.tz-note { font: 700 .72rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-dim); }

/* ---------- Filters / toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.filters label { display: block; font: 700 .7rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button {
  background: none; border: 0; color: var(--silver); padding: 10px 16px; min-height: 44px; cursor: pointer;
  font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
}
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head h3 { font: 400 1.8rem/1 var(--display); text-transform: uppercase; margin: 0; }
.cal-head button { background: none; border: 1px solid var(--line); color: var(--white); width: 44px; height: 44px; cursor: pointer; font-size: 1.1rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 64px; padding: 6px; font-size: .78rem; }
@media (min-width: 760px) { .cal > div { min-height: 110px; } }
.cal .dow { min-height: 0; font: 700 .65rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-dim); padding: 10px 6px; }
.cal .out { opacity: .3; }
.cal .today .n { background: var(--red); color: var(--white); padding: 0 5px; }
.cal .n { font-weight: 700; color: var(--white); display: inline-block; margin-bottom: 4px; }
.cal a { display: block; text-decoration: none; background: var(--navy); color: var(--white); padding: 3px 5px; margin-bottom: 3px; font-size: .72rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal a.t-tournament { background: var(--red); }
.cal a.t-tryout { background: var(--white); color: var(--ink); }

/* ---------- Detail panel (event / athlete) ---------- */
.detail {
  border: 1px solid var(--line); background: var(--ink-2); padding: clamp(24px, 4vw, 44px); margin-bottom: 40px;
}
.detail h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 24px 0; }
.detail dt { font: 700 .7rem/1.6 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--silver-dim); }
.detail dd { margin: 0; color: var(--white); }
.back-link { display: inline-block; margin-bottom: 20px; font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--silver); }

/* ---------- Athletes ---------- */
.athlete-grid { display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.athlete-grid > .empty { grid-column: 1 / -1; }
@media (min-width: 760px) { .athlete-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.athlete {
  position: relative; display: block; text-decoration: none; color: var(--white);
  background: var(--navy); aspect-ratio: 3 / 4; overflow: hidden;
}
.athlete img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.athlete:hover img { transform: scale(1.04); }
.athlete .no-photo { position: absolute; inset: 0; display: grid; place-items: center; }
.athlete .no-photo img { position: static; width: 55%; height: auto; opacity: .25; }
.athlete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(9,13,20,.95)); }
.athlete .num { position: absolute; top: 10px; right: 14px; z-index: 1; font: 400 3rem/1 var(--display); color: var(--white); }
.athlete .info { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; }
.athlete .info b { display: block; font: 400 1.6rem/.95 var(--display); text-transform: uppercase; }
.athlete .info span { font: 700 .68rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.athlete .info span em { color: var(--red); font-style: normal; }
.athlete .info span + span { display: block; margin-top: 2px; letter-spacing: .08em; color: var(--white); opacity: .85; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field legend { padding: 0; color: var(--red) !important; margin-bottom: 14px !important; }
.field label, .field legend {
  display: block; margin-bottom: 8px;
  font: 700 .75rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--white);
}
.field .req { color: var(--red); margin-left: 2px; }
.field .hint { display: block; font-size: .85rem; color: var(--silver-dim); margin: -4px 0 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ink); color: var(--white);
  border: 1px solid rgba(198,203,210,.35); border-radius: 0;
  font: 400 1rem/1.4 var(--body);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--white); outline: 2px solid var(--red); outline-offset: 0; box-shadow: none; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .error { display: block; margin-top: 6px; color: #FF7A7D; font-size: .88rem; font-weight: 600; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field.check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; -webkit-appearance: auto; appearance: auto; accent-color: var(--red); }
.check label { text-transform: none; letter-spacing: 0; font: 400 .95rem/1.5 var(--body); color: var(--silver); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-panel { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form-panel--navy { background: var(--navy); border-color: transparent; }
.form-panel--navy .field input, .form-panel--navy .field select, .form-panel--navy .field textarea { background: var(--navy-2); }

.alert { padding: 16px 18px; border-left: 4px solid; font-size: .95rem; }
.alert:empty, .alert[hidden] { display: none; }
.alert--error { border-color: var(--red); background: rgba(240,20,24,.1); color: var(--white); }
.alert--success { border-color: #3BD37B; background: rgba(59,211,123,.1); color: var(--white); }
.alert--info { border-color: var(--silver); background: rgba(198,203,210,.08); color: var(--white); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert a { color: var(--white); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 2rem/1 var(--display); color: var(--red); }
.steps li b { display: block; color: var(--white); margin-bottom: 4px; }
.steps li p { margin: 0; }

/* ---------- Media ---------- */
.gallery-group { margin-bottom: clamp(48px, 7vw, 88px); }
.gallery-group h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.gallery { display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; } }
.gallery button { padding: 0; border: 0; background: var(--navy); cursor: zoom-in; display: block; width: 100%; }
.gallery button:first-child:nth-last-child(n+3) { grid-column: span 2; grid-row: span 2; }
/* stretch the last photo so rows end flush (first photo fills 4 cells) */
@media (max-width: 759px) { .gallery button:last-child:nth-child(2n):not(:nth-child(2)) { grid-column: span 2; } }
@media (min-width: 760px) {
  .gallery button:last-child:nth-child(3n+2):not(:nth-child(2)) { grid-column: span 2; }
  .gallery button:last-child:nth-child(3n+1):not(:first-child) { grid-column: span 3; }
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.video-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed button {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--ink)); display: grid; place-items: center; gap: 8px; padding: 16px;
  font: 400 1.3rem/1.1 var(--display); text-transform: uppercase;
}
.video-embed button .play { width: 64px; height: 64px; background: var(--red); clip-path: polygon(30% 20%, 80% 50%, 30% 80%); }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(9,13,20,.96); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 78svh; width: auto; margin: 0 auto; }
.lightbox figcaption { text-align: center; margin-top: 12px; color: var(--silver); font-size: .9rem; }
.lightbox .lb-btn { position: absolute; background: none; border: 1px solid var(--line); color: var(--white); width: 48px; height: 48px; font-size: 1.3rem; cursor: pointer; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Support ---------- */
.donate-panel { background: var(--red); color: var(--white); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.donate-panel h2 { color: var(--white); }
.donate-panel p { color: rgba(255,255,255,.92); }
.donate-panel .btn--primary { background: var(--ink); }
.donate-panel .btn--primary:hover { background: var(--white); color: var(--ink); }
.donate-panel .fine { font-size: .85rem; color: rgba(255,255,255,.85); margin-top: 16px; max-width: 60ch; }
.sponsor-grid { display: grid; gap: 2px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .sponsor-grid { grid-template-columns: repeat(4, 1fr); } }
.sponsor-grid a, .sponsor-grid div { background: var(--white); display: grid; place-items: center; padding: 24px; aspect-ratio: 3 / 2; }
.sponsor-grid img { max-height: 72px; width: auto; object-fit: contain; }

/* ---------- Partner block ---------- */
.partner { border: 1px solid var(--line); display: grid; }
@media (min-width: 900px) { .partner { grid-template-columns: 1fr 1.4fr; } }
.partner__label { background: var(--navy); padding: clamp(28px, 4vw, 48px); }
.partner__label .x { font: 400 clamp(2.4rem, 6vw, 4rem)/.9 var(--display); text-transform: uppercase; color: var(--white); }
.partner__label .x i { color: var(--red); font-style: normal; }
.partner__body { padding: clamp(28px, 4vw, 48px); }
.partner__body ul { margin: 0 0 24px; padding: 0; list-style: none; }
.partner__body li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.partner__body li::before { content: ""; position: absolute; left: 0; top: 21px; width: 14px; height: 2px; background: var(--red); }

/* ---------- Contact split ---------- */
.split { display: grid; gap: 24px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.contact-card { border: 1px solid var(--line); padding: 28px; margin-bottom: 24px; }
.contact-card h3 { font: 400 1.8rem/1 var(--display); text-transform: uppercase; }
.contact-card dl { margin: 16px 0 0; }
.contact-card dt { font: 700 .7rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--silver-dim); margin-top: 14px; }
.contact-card dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.badge { display: inline-block; font: 800 .64rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; margin-bottom: 12px; }
.badge--team { background: var(--red); color: var(--white); }
.badge--abf { background: var(--silver); color: var(--ink); }

/* ---------- Social ---------- */
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-row a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); text-decoration: none; color: var(--white);
  font: 700 .78rem/1 var(--body); letter-spacing: .1em;
}
.social-row a:hover { border-color: var(--red); color: var(--white); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); padding: clamp(56px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); max-width: 14ch; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 50ch; }
.cta-band .btn--primary { background: var(--ink); }
.cta-band .btn--primary:hover { background: var(--white); color: var(--ink); }
.cta-band .btn--ghost { border-color: var(--white); }
.cta-band::after {
  content: "UB"; position: absolute; right: -2vw; bottom: -6vw;
  font: 400 clamp(12rem, 36vw, 28rem)/.8 var(--display); color: rgba(9,13,20,.14); pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #05080D; border-top: 4px solid var(--red); padding: 64px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .f-mark { width: 160px; margin-bottom: 20px; }
.site-footer h2 { font: 800 .72rem/1 var(--body); letter-spacing: .2em; color: var(--silver-dim); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--silver-dim); font-size: .82rem; }

/* ---------- Prose (privacy etc) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; }
[hidden] { display: none !important; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--silver-dim); padding: 24px 0; }

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

@media print {
  body::after, .site-header, .action-bar, .site-footer, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
}
