/* ACTC site styles. Mobile-first; light and dark themes via [data-theme]. Legacy Bootstrap-era markup is handled by compat.css. */

:root {
  --ink: #0b1f2a;
  --ink-soft: #33464f;
  --muted: #5d7079;
  --bg: #f4f8f5;
  --surface: #ffffff;
  --surface-2: #ebf2ee;
  --line: #dde7e1;
  --court: #0e5a44;
  --court-deep: #072f24;
  --ball: #c8f03a;
  --ball-ink: #1e2d00;
  --link: #0a6b52;
  --live: #ff4a2b;
  --ok: #17a06b;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-1: 0 1px 2px rgba(11, 31, 42, .06), 0 10px 28px rgba(11, 31, 42, .08);
  --shadow-2: 0 24px 60px rgba(4, 36, 27, .35);
  --maxw: 1140px;
  --prose: 820px;
  --header-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #e9f3ee;
  --ink-soft: #c2d3ca;
  --muted: #90a79d;
  --bg: #08130f;
  --surface: #10201a;
  --surface-2: #163027;
  --line: #21372e;
  --court: #1f9a75;
  --link: #8fe6bd;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ball); color: var(--ball-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #fff; }
.brand small { display: block; font: 600 .68rem/1 var(--display); letter-spacing: .16em; color: var(--muted); margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a.nav__link {
  color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .15s, color .15s;
}
.nav a.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav a.nav__link[aria-current="page"] { background: var(--surface-2); color: var(--court); }
:root[data-theme="dark"] .nav a.nav__link[aria-current="page"] { color: var(--ball); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .15s, background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: inline; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 16px 20px 40px; flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; overflow-y: auto;
  }
  .nav a.nav__link { font-size: 1.15rem; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { transform: none; visibility: visible; }
  .nav .nav__cta { display: inline-flex; margin-top: 12px; justify-content: center; }
}
@media (min-width: 961px) { .nav .nav__cta { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-align: center;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ball); color: var(--ball-ink); box-shadow: 0 8px 22px rgba(200, 240, 58, .35); }
.btn--primary:hover { background: #d6fa54; }
.btn--dark { background: var(--court); color: #fff; }
.btn--dark:hover { background: var(--court-deep); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--surface-2); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(200, 240, 58, .34), transparent 62%),
    radial-gradient(800px 560px at -6% 110%, rgba(31, 154, 117, .55), transparent 60%),
    linear-gradient(160deg, #05221a 0%, #0a4536 55%, #0e6a52 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/court-lines.svg") center / cover no-repeat; opacity: .13; }
.hero .container { padding-top: 48px; padding-bottom: 72px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ball); margin: 0 0 18px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 rgba(200, 240, 58, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(200, 240, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 240, 58, 0); } }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.9rem); line-height: 1.12; margin-bottom: 14px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--ball), #8ff0c1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__en { font: 600 1rem/1.5 var(--display); opacity: .85; margin: 0 0 6px; }
.hero__slogan { font-size: 1.1rem; opacity: .9; margin: 0 0 22px; letter-spacing: .1em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 26px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .92rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chips a { color: inherit; text-decoration: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__poster { position: relative; justify-self: center; width: min(100%, 420px); }
.hero__poster a { display: block; }
.hero__poster img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-2); border: 6px solid rgba(255, 255, 255, .92); transform: rotate(2deg); transition: transform .4s ease; }
.hero__poster:hover img { transform: rotate(0) scale(1.02); }
.hero__ball { position: absolute; z-index: 2; width: 74px; height: 74px; right: -14px; top: -28px; animation: bounce 2.6s ease-in-out infinite; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .3)); }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(140deg); } }
@media (min-width: 900px) {
  .hero .container { padding-top: 72px; padding-bottom: 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}

/* Countdown */
.countdown { display: inline-block; padding: 16px 18px; border-radius: var(--radius); background: rgba(3, 20, 15, .45); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.countdown__label { font-size: .85rem; opacity: .85; margin-bottom: 8px; letter-spacing: .06em; }
.countdown__grid { display: flex; gap: 10px; }
.cd { min-width: 62px; text-align: center; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.cd b { display: block; font: 800 1.9rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.cd span { font-size: .72rem; opacity: .8; }
.cd--dark { background: var(--surface-2); }
@media (max-width: 420px) { .cd { min-width: 0; flex: 1; } .cd b { font-size: 1.5rem; } }

.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--live); color: #fff; font: 800 .8rem/1 var(--display); letter-spacing: .12em; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 720px; margin: 0 0 32px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font: 800 .8rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--court); margin-bottom: 12px; }
:root[data-theme="dark"] .kicker { color: var(--ball); }
.section__head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section__head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.card h3 { font-size: 1.1rem; }

/* Status strip */
.status { background: var(--court-deep); color: #fff; }
.status .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.status p { margin: 0; flex: 1 1 260px; }
.status strong { color: var(--ball); }
.status .btn { flex: none; }

/* Facts */
.facts { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: -36px; position: relative; z-index: 2; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); }
.fact .icon { width: 28px; height: 28px; color: var(--court); margin-bottom: 8px; }
:root[data-theme="dark"] .fact .icon { color: var(--ball); }
.fact small { display: block; color: var(--muted); font-size: .8rem; }
.fact strong { display: block; font-size: 1.02rem; line-height: 1.4; }
.fact a { color: inherit; }

/* Tabs */
.tabs__list { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 22px; background: var(--surface-2); border-radius: 999px; max-width: 100%; overflow-x: auto; }
.tabs__list [role="tab"] { border: 0; background: transparent; color: var(--ink-soft); font: 700 .95rem var(--font); padding: 10px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--court); color: #fff; box-shadow: 0 4px 14px rgba(14, 90, 68, .35); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Event cards */
.ecards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ecard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.ecard:hover { transform: translateY(-3px); }
.ecard__day { align-self: flex-start; font: 700 .78rem/1 var(--display); letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--court); }
:root[data-theme="dark"] .ecard__day { color: var(--ball); }
.ecard h3 { margin: 0; font-size: 1.15rem; }
.ecard__tag { font-size: .85rem; color: var(--muted); }
.ecard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: .92rem; margin: 0; padding: 0; list-style: none; }
.ecard .ecard__meta { padding: 0; }
.ecard details { border-top: 1px dashed var(--line); padding-top: 10px; font-size: .92rem; }
.ecard summary { cursor: pointer; font-weight: 700; color: var(--link); }
.ecard ul, .ecard ol { padding-left: 1.2em; margin: 8px 0 0; }
.ecard .btn { margin-top: auto; }

/* Steps / timeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 0 26px 46px; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step__dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; margin: 0 0 2px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step.is-done .step__dot { background: var(--ok); border-color: var(--ok); }
.step.is-done .step__dot::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.step.is-next .step__dot { border-color: var(--ball); background: var(--court); box-shadow: 0 0 0 6px rgba(200, 240, 58, .3); }
.step.is-done::before { background: var(--ok); }
@media (min-width: 860px) {
  .steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; }
  .step { padding: 44px 0 0; }
  .step::before { left: 34px; right: -20px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .step__dot { left: 0; }
}

/* Accordion */
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
.acc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.acc[open] summary { border-bottom: 1px solid var(--line); }
.acc__body { padding: 8px 22px 18px; }
.acc__body ol, .acc__body ul { padding-left: 1.4em; }
.acc__body li { margin: .5em 0; }
.acc__body h4 { margin: 1.2em 0 .3em; font-size: 1rem; color: var(--court); }
:root[data-theme="dark"] .acc__body h4 { color: var(--ball); }
.note { background: var(--surface-2); border-left: 4px solid var(--ball); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0; }
.note--warn { border-left-color: #f5a623; }

/* Sponsors */
.sponsors { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); }
.sponsors h2 { text-align: center; font-size: 1.05rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; font-family: var(--display); }
.sponsors h3 { text-align: center; font-size: .95rem; color: var(--muted); margin: 32px 0 14px; }
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sponsor-grid .sponsor { flex: 0 0 calc(33.333% - 8px); display: grid; place-items: center; min-height: 84px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, box-shadow .2s; }
.sponsor-grid .sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.sponsor-grid .sponsor img { display: block; width: auto; max-width: 100%; max-height: 60px; object-fit: contain; }
.sponsor-grid .sponsor a { display: grid; place-items: center; width: 100%; height: 100%; }
.sponsor-grid--media .sponsor { flex-basis: calc(25% - 9px); min-height: 64px; }
.sponsor-grid--media .sponsor img { max-height: 44px; }
.sponsor-grid--title .sponsor { flex: 0 1 380px; min-height: 0; }
.sponsor-grid--title .sponsor img { max-height: 200px; }
@media (min-width: 720px) {
  .sponsor-grid .sponsor { flex-basis: calc(20% - 10px); }
  .sponsor-grid--media .sponsor { flex-basis: calc(16.666% - 10px); }
}

/* News cards */
.ncards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ncard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow-1); transition: transform .2s; }
.ncard:hover { transform: translateY(-4px); }
.ncard__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--court), var(--court-deep)) center / cover; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ncard time { font-size: .8rem; color: var(--muted); font-family: var(--display); letter-spacing: .06em; }
.ncard h3 { font-size: 1.05rem; margin: 0; }
.ncard p { margin: 0; color: var(--muted); font-size: .92rem; }

/* CTA panel */
.cta-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 36px 28px; color: #fff; background: linear-gradient(135deg, #0a4a39, #0e6a52); display: grid; gap: 20px; align-items: center; }
.cta-panel h2 { margin-bottom: 6px; }
.cta-panel p { margin: 0; opacity: .9; }
.cta-panel img { border-radius: 14px; background: #fff; padding: 8px; max-width: 180px; }
@media (min-width: 720px) { .cta-panel { grid-template-columns: 1fr auto; padding: 44px; } }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: linear-gradient(160deg, #05221a, #0a4536 60%, #0e6a52); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/court-lines.svg") center / cover no-repeat; opacity: .18; }
.page-hero .container { padding-top: 44px; padding-bottom: 48px; max-width: var(--maxw); }
.page-hero h1 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); margin: 6px 0 8px; }
.page-hero p { margin: 0; opacity: .85; }
.page-hero.is-narrow .container { max-width: calc(var(--prose) + 40px); }
.crumbs { font-size: .85rem; opacity: .8; }
.crumbs a { color: inherit; }
.page-body { padding: 40px 20px 72px; }
.page-body--wide .prose { max-width: var(--maxw); }

.prose { max-width: var(--prose); margin: 0 auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; padding-bottom: .3em; border-bottom: 2px solid var(--line); }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.4em; color: var(--court); }
:root[data-theme="dark"] .prose h4 { color: var(--ball); }
.prose p { margin: 1em 0; }
.prose li { margin: .3em 0; }
.prose img { border-radius: 12px; display: block; margin-left: auto; margin-right: auto; }
.prose a[style*="color"] { color: var(--link) !important; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--ball); color: var(--ink-soft); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose iframe { max-width: 100%; border: 0; border-radius: 12px; background: var(--surface); }
.prose dl dt { font-weight: 700; margin-top: .8em; }
.prose dd { margin-left: 1.2em; }
.prose img[src$=".svg"] { border-radius: 0; }
.prose .btn { text-decoration: none; }
.lead { font-size: 1.3rem; line-height: 1.6; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; border-radius: 12px; }

.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; opacity: .85; }
.pager-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: var(--prose); margin: 48px auto 0; }
.pager-cards a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager-cards a:hover { border-color: var(--court); }
.pager-cards small { display: block; color: var(--muted); }
.pager-cards .next { text-align: right; }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

/* History */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 600 .92rem var(--font); }
.chip[aria-pressed="true"] { background: var(--court); border-color: var(--court); color: #fff; }
.search { flex: 1 1 200px; min-width: 0; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.hyear { display: grid; gap: 12px; margin-bottom: 26px; }
.hyear__label { font: 800 2.2rem/1 var(--display); color: var(--court); }
:root[data-theme="dark"] .hyear__label { color: var(--ball); }
.hitems { display: grid; gap: 10px; }
.hitem { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.hitem:hover { transform: translateX(4px); border-color: var(--court); }
.hitem em { flex: none; font-style: normal; font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--court); font-weight: 700; }
:root[data-theme="dark"] .hitem em { color: var(--ball); }
@media (min-width: 720px) { .hyear { grid-template-columns: 120px 1fr; align-items: start; } .hyear__label { position: sticky; top: calc(var(--header-h) + 16px); } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* People */
.pcards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; display: block; border-radius: 0; }
.pcard__body { padding: 18px 20px 22px; }
.pcard h3 { margin: 0 0 4px; }
.pcard p.role { color: var(--court); font-weight: 700; margin: 0 0 8px; font-size: .95rem; }
:root[data-theme="dark"] .pcard p.role { color: var(--ball); }
.pcard ul { padding-left: 1.2em; margin: 0; font-size: .93rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 28px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat b { display: block; font: 800 2rem/1.1 var(--display); color: var(--court); }
:root[data-theme="dark"] .stat b { color: var(--ball); }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--court-deep); color: #cfe3da; padding: 56px 0 90px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ball); font-family: var(--display); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer address { font-style: normal; }
.site-footer .qr { width: 120px; border-radius: 12px; background: #fff; padding: 6px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: #fff; font-weight: 800; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; opacity: .75; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Mobile sticky CTA */
.cta-bar { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; }
.cta-bar .btn { width: 100%; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
@media (max-width: 720px) { .cta-bar:not([hidden]) { display: block; } }
.to-top { position: fixed; z-index: 80; right: 16px; bottom: 84px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 721px) { .to-top { bottom: 24px; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(2, 10, 8, .92); animation: fadeUp .2s ease; }
.lb img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lb button { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb .lb-x { top: 14px; right: 14px; }
.lb .lb-p { left: 12px; top: 50%; }
.lb .lb-n { right: 12px; top: 50%; }
.lb .lb-c { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .8; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print { .site-header, .cta-bar, .to-top, .sponsors, .site-footer, .hero__ball { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Desktop sponsor rails (hidden on phones and small tablets) ---------- */
.rail { display: none; }
.rail__item { margin-bottom: 14px; }
.rail__item img { display: block; width: 100%; height: auto; border-radius: 10px; }
.rail__item a { display: block; transition: transform .2s; }
.rail__item a:hover { transform: translateY(-2px); }
.rail__qr { display: block; text-align: center; font-size: .78rem; line-height: 1.4; color: var(--muted); text-decoration: none; }
.rail__qr img { display: block; width: 100%; border-radius: 10px; background: #fff; margin-bottom: 4px; }
@media (min-width: 1100px) {
  .rails { display: grid; grid-template-columns: 140px minmax(0, 1fr) 140px; gap: 24px; max-width: 1560px; margin: 0 auto; padding: 0 20px; align-items: start; }
  .rail { display: block; padding-top: 40px; }
  .rails--home .rail { padding-top: 24px; }
  .rails__main { min-width: 0; }
  .rails__main .container { max-width: none; padding-left: 0; padding-right: 0; }
  .rails__main .section { padding-left: 8px; padding-right: 8px; }
  .rails__main .section--alt { border-radius: var(--radius-lg); padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1400px) {
  .rails { grid-template-columns: 180px minmax(0, 1fr) 180px; }
}
