/* Kingston & Poly AC - test site. Ink, electric blue, white; the vest's diagonal is the motif. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #0b0e14; --ink-2: #151a24; --ink-3: #222a38;
  --blue: #1d4fff; --blue-2: #4f7dff; --blue-dark: #1236c2;
  --paper: #ffffff; --mist: #f3f5f9; --line: #e1e6ee;
  --text: #1a1f2b; --muted: #596377;
  --ok: #0f7b4f; --warn: #b45309;
  --radius: 14px; --S: clamp(28px, 5.5vw, 88px);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(11,14,20,.06), 0 8px 24px rgba(11,14,20,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.6rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
 main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: .92rem; }
.eyebrow { font: 700 .85rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 1rem; }
.dark .eyebrow, .hero .eyebrow, .cta-band .eyebrow, .site-footer .eyebrow { color: var(--blue-2); }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 46rem; opacity: .92; }

/* ---------- header ---------- */
.launch { background: #e8eeff; color: #0f2a8a; display: flex; gap: 1rem; align-items: center; justify-content: center; padding: .35rem 1rem; font-size: .92rem; font-weight: 600; } .launch[hidden] { display: none; } .launch p { margin: 0; } .launch a { color: #0f2a8a; }
.launch-x { min-height: 44px; min-width: 44px; background: none; border: 2px solid #0f2a8a; color: #0f2a8a; border-radius: 999px; padding: 0 .9rem; font: 700 .85rem var(--body); cursor: pointer; }
.staging { background: #fff3c4; color: #5c4400; text-align: center; font-size: .82rem; padding: .35rem 1rem; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,14,20,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand img { width: 210px; }
nav { display: flex; align-items: center; gap: 1.2rem; }
nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
nav a:not(.btn) { white-space: nowrap; color: #cfd6e4; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .75rem; border-radius: 8px; display: block; }
nav a:not(.btn):hover, nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.09); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; content: ""; transition: .2s; }
.menu-btn i { top: 20px; } .menu-btn i::before { top: -7px; left: 0; right: 0; } .menu-btn i::after { top: 7px; left: 0; right: 0; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); } .menu-btn[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem/1 var(--body); padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(29,79,255,.35); } .btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); } .btn-white:hover { background: #e9edf5; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; } .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); } .btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .65rem 1.1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- diagonal motif (black | white | blue, like the vest) ---------- */
.diag { position: relative; }
.diag::before, .diag::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.diag::before { background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--S) + 22px), 0 100%); }
.diag::after { background: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--S) + 8px), 0 calc(100% - 14px)); }
.diag > .dark { position: relative; z-index: 1; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--S)), 0 calc(100% - 22px)); padding-bottom: calc(var(--S) + 2.5rem); }
.dark { background: var(--ink); color: #e8ecf5; } .dark h1, .dark h2, .dark h3 { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,14,20,.94) 0%, rgba(11,14,20,.78) 38%, rgba(11,14,20,.12) 78%); }
.hero .container { position: relative; z-index: 2; padding-block: 4rem; }
.hero h1 { max-width: 11ch; margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--blue-2); }
.hero .lede { margin-bottom: 0; }
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .25em; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: -3.2rem; position: relative; z-index: 3; }
.fact { background: #fff; padding: 1.4rem 1.5rem; }
.fact b { display: block; font: 800 2.3rem/1 var(--display); color: var(--blue); text-transform: uppercase; }
.cost-line { margin: 1rem 0 0; padding: .8rem 1.1rem; background: var(--mist, #eef4fb); border-radius: var(--radius); font-size: .98rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline; }
.cost-line b { color: var(--blue); }
.fact span { color: var(--muted); font-size: .95rem; }
.grid { display: grid; gap: 1.4rem; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card .grow { flex: 1; }
.card.dark { background: var(--ink-2); border-color: var(--ink-3); color: #cfd6e4; }
.tag { display: inline-block; font: 700 .75rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: .4rem .65rem; border-radius: 999px; background: #e8eeff; color: var(--blue-dark); margin-bottom: .9rem; align-self: flex-start; }
.price { font: 800 2.6rem/1 var(--display); color: var(--ink); } .price small { font: 500 .9rem var(--body); color: var(--muted); text-transform: none; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; } .ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .55rem; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg) scale(.8); }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { counter-increment: s; position: relative; padding: 4rem 1.4rem 1.4rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { content: counter(s); position: absolute; top: .6rem; left: 1.2rem; font: 800 3.4rem/1 var(--display); color: var(--blue); }
.steps5 { grid-template-columns: repeat(5, 1fr); }
.steps3 { grid-template-columns: repeat(3, 1fr); }
.step h3 { font-size: 1.35rem; } .step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- fixtures ---------- */
.fixture { display: grid; grid-template-columns: 78px 1fr auto; gap: 1.1rem; align-items: center; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; }
.fixture time { text-align: center; background: var(--ink); color: #fff; border-radius: 10px; padding: .5rem .2rem; line-height: 1; }
.fixture time b { display: block; font: 800 2rem/1 var(--display); } .fixture time span { font: 700 .75rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.fixture h3 { font: 700 1.25rem/1.15 var(--display); margin: 0 0 .15rem; letter-spacing: 0; }
.fixture .venue { color: var(--muted); font-size: .92rem; margin: 0; }
.fixture .tag { margin: 0; }
a.fixture { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.fixture:hover, a.fixture:focus-visible { border-color: var(--blue); box-shadow: var(--shadow); }
a.fixture:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
a.fixture:hover h3 { color: var(--blue-dark); }
.fx.fx-target { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 10px; background: var(--mist); }
.comm-table td:first-child { white-space: nowrap; overflow-wrap: normal; width: 1%; padding-right: 1.4rem; }
.comm-table td { overflow-wrap: normal; }
.month-head { font: 800 1.6rem var(--display); text-transform: uppercase; margin: 2rem 0 .8rem; color: var(--ink); display: flex; align-items: center; gap: .8rem; }
.month-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--blue), transparent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip { font: 600 .92rem var(--body); padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--blue); } .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- news ---------- */
.news-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); color: inherit; box-shadow: 0 2px 4px rgba(11,14,20,.08), 0 16px 36px rgba(11,14,20,.14); }
.news-media { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 10); width: 100%; background: var(--ink-3); }
.news-media img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.news-media--box::before { content: ""; position: absolute; inset: -12%; background: var(--bg) center / cover no-repeat; filter: blur(20px) brightness(.75); }
.news-card .ph { aspect-ratio: 16/10; width: 100%; background: linear-gradient(135deg, var(--ink) 48%, #fff 48% 52%, var(--blue) 52%); }
.news-card .body { padding: 1.2rem 1.4rem 1.5rem; }
.news-card time { font: 700 .8rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.news-card h3 { font-size: 1.45rem; margin: .3rem 0 .5rem; text-transform: none; line-height: 1.1; }
.news-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.feature-news { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; }
.feature-news .news-media { aspect-ratio: auto; height: 100%; min-height: 320px; max-height: 560px; background: var(--ink-3); }
.feature-news .news-media::before { content: ""; position: absolute; inset: -12%; background: var(--bg) center / cover no-repeat; filter: blur(20px) brightness(.75); }
.feature-news .news-media img { position: absolute; inset: 0; }
.prose { font-size: 1.12rem; } .prose p { margin-bottom: 1.1em; }
.article-img { border-radius: var(--radius); margin: 0 auto 2rem; box-shadow: var(--shadow); max-height: 560px; object-fit: contain; }

/* ---------- tables ---------- */
/* the training table: words are never broken mid-word, the columns share the width sensibly, the day and time never split inside a word */
.train-table td, .train-table th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.train-table th:nth-child(1) { width: 25%; } .train-table th:nth-child(2) { width: 15%; } .train-table th:nth-child(3) { width: 12%; }
.train-table th:nth-child(4) { width: 21%; } .train-table th:nth-child(5) { width: 17%; } .train-table th:nth-child(6) { width: 10%; }
.train-table td:nth-child(3), .train-table td:nth-child(6) { white-space: nowrap; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th { text-align: left; font: 700 .8rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .9rem 1rem; background: var(--mist); }
td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
td b { font-weight: 700; }
#records-table tr.archive-row { display: none; }
#records-table.show-archive tr.archive-row { display: table-row; }
tr.archive-row td { color: var(--muted); background: #fafbfd; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- league cards ---------- */
.league { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; }
.league img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--mist); padding: 4px; }
.league h3 { font-size: 1.35rem; margin-bottom: .1em; }
.league .who { font-weight: 600; font-size: .9rem; color: var(--blue-dark); margin-bottom: .4rem; }
.league .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; grid-column: 1 / -1; }
.hidden { display: none !important; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; }
input, select, textarea { width: 100%; font: inherit; padding: .8rem .95rem; border: 1.5px solid #ccd3e0; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,79,255,.18); }
textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 600; margin-top: 1rem; }
.alert.ok { background: #e3f6ec; color: #0b5a3a; } .alert.err { background: #fde8e8; color: #8c1d1d; }
.callout { background: #eef2ff; border-left: 5px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; }
.callout.warn { background: #fff7e6; border-color: #f0a500; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- estimator ---------- */
.estimator { background: var(--ink); color: #dfe5f2; border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; box-shadow: var(--shadow); }
.estimator h3 { color: #fff; } .estimator label { color: #fff; }
.estimator select, .estimator input { background: var(--ink-2); border-color: #384358; color: #fff; }
.est-out { background: var(--ink-2); border-radius: 16px; padding: 1.6rem; text-align: center; }
.est-out .big { font: 800 4rem/1 var(--display); color: #fff; } .est-out .big small { font-size: 1.1rem; font-weight: 600; color: #9fb1d6; }
.est-out dl { margin: 1rem 0 0; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; text-align: left; font-size: .95rem; }
.est-out dt { color: #9fb1d6; } .est-out dd { margin: 0; text-align: right; font-weight: 700; color: #fff; }

/* ---------- misc ---------- */
.split > * { min-width: 0; } td { overflow-wrap: anywhere; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.photo { border-radius: 20px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.cta-band { position: relative; overflow: hidden; background: var(--blue); color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3.6rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band::after { content: ""; position: absolute; right: -4%; top: -20%; bottom: -20%; width: 34%; background: linear-gradient(115deg, transparent 34%, #fff 34% 40%, var(--ink) 40%); opacity: .95; }
.cta-band > * { position: relative; z-index: 1; } .cta-band h2 { color: #fff; margin: 0 0 .2em; } .cta-band p { margin: 0; max-width: 34rem; }
.cta-band .btn { position: relative; z-index: 2; }
.sponsor { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; } .sponsor img { background: #fff; border-radius: 12px; padding: 1rem; max-width: 220px; }
.vest-panel { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.vest-panel img { max-height: 280px; margin-inline: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.timeline { border-left: 3px solid var(--blue); padding-left: 1.4rem; margin-left: .4rem; } .timeline p { margin-bottom: .8rem; }
.pdf { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--radius); }
details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 1.2rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 700; padding: 1rem 0; }
details[open] summary { color: var(--blue); } details > :not(summary) { padding-bottom: .4rem; }

/* ---------- age checker (ported) ---------- */
.ag-result-box { padding: 14px 16px; border-radius: 10px; margin-top: 12px; text-align: left; font-size: .95rem; }
.ag-new { background: #e8f5e9; border-left: 4px solid #43a047; } .ag-old { background: #fff8e1; border-left: 4px solid #ffa726; }
.ag-label { font: 800 2.4rem/1 var(--display); display: block; margin-bottom: 4px; text-transform: uppercase; }
.specs-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-align: left; }
.specs-header { background: var(--mist); padding: 10px 14px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.specs-chevron { margin-left: auto; transition: transform .2s; } .specs-chevron.open { transform: rotate(180deg); }
.specs-body { padding: 12px 14px; } .specs-body.collapsed { display: none; }
.specs-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 6px; }
.specs-table { font-size: .82rem; } .specs-table th, .specs-table td { padding: 5px 7px; border: 1px solid var(--line); white-space: nowrap; }
.cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); margin-right: 4px; vertical-align: middle; }
.throws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .throw-card { background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.throw-card .t-name { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); } .throw-card .t-val { font-size: 1.1rem; font-weight: 700; }
.no-spec { font-size: .85rem; color: var(--muted); } .spec-source { font-size: .72rem; color: #98a2b5; margin: 10px 0 0; }
.date-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: .6rem; }


/* ---------- compete page: age picker + leagues + fixtures side panel ---------- */
.compete { display: grid; gap: 1.6rem 2rem; grid-template-columns: minmax(0, 1fr) 410px; grid-template-areas: "age fix" "leagues fix"; align-items: start; }
.c-age { grid-area: age; } .c-leagues { grid-area: leagues; } .c-fix { grid-area: fix; position: sticky; top: 88px; align-self: start; }
.calc { margin-top: 1.1rem; border: 1px dashed #b8c2d6; border-radius: 12px; padding: 0 1.1rem; background: var(--mist); box-shadow: none; }
.calc summary { padding: .9rem 0; }
.filter-note { margin: 1.1rem 0 0; background: #e8eeff; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: .8rem 1rem; font-size: .95rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: underline; margin-left: .5rem; }
.fx-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); }
.fx-panel summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; font: 800 1.5rem var(--display); text-transform: uppercase; background: var(--ink); color: #fff; border-radius: var(--radius); }
.fx-panel[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
details.fx-panel[open] summary { color: #fff; }
details.fx-panel { padding: 0 !important; }
.fx-panel summary::-webkit-details-marker { display: none; }
.fx-count { font: 600 .9rem var(--body); text-transform: none; color: #9fb1d6; letter-spacing: 0; }
.fx-panel summary::after { content: "+"; font: 700 1.6rem/1 var(--body); color: var(--blue-2); margin-left: .8rem; }
.fx-panel[open] summary::after { content: "–"; }
.fx-panel.fixed summary { cursor: default; } .fx-panel.fixed summary::after { display: none; }
.fx-panel[open] > .fx-body { padding: 1rem 1.1rem 1.2rem; }
.fx-body { max-height: calc(100vh - 220px); overflow-y: auto; }
.fx-body .chips { gap: .35rem; margin-bottom: .7rem; } .fx-body .chip { padding: .38rem .75rem; font-size: .82rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .88rem; color: var(--muted); margin-bottom: .6rem; } .check input { width: auto; }
.fx-body .month-head { font-size: 1.15rem; margin: 1.1rem 0 .5rem; }
.fx { display: grid; grid-template-columns: 54px 1fr; gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.fx time { text-align: center; background: var(--mist); border-radius: 10px; padding: .35rem 0; line-height: 1; align-self: start; }
.fx time b { display: block; font: 800 1.5rem/1 var(--display); color: var(--ink); } .fx time span { font: 700 .66rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.fx h4 { font: 700 1.05rem/1.2 var(--body); text-transform: none; letter-spacing: 0; margin: 0 0 .15rem; }
.fx-where, .fx-info, .fx-ages { margin: 0 0 .25rem; font-size: .88rem; line-height: 1.45; } .fx-info { color: #3a4458; background: #f8f9fc; border-left: 3px solid var(--blue-2); padding: .3rem .6rem; border-radius: 0 6px 6px 0; }
.fx-where a { color: var(--muted); }
.agepill { display: inline-block; font: 700 .72rem/1 var(--body); padding: .28rem .5rem; border-radius: 999px; background: #e8eeff; color: var(--blue-dark); margin-right: .25rem; }
.fx-more { margin: .35rem 0 0; font-size: .88rem; font-weight: 700; }
.rec-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.1rem; }
.form.is-off { opacity: .5; filter: grayscale(1); pointer-events: none; user-select: none; }
.form-embed { margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
/* the Google Form is about 5,900px tall on a laptop and about 6,700px on a phone; sized so it needs no scrollbar of its own */
.form-embed iframe { display: block; width: 100%; height: 6000px; border: 0; }
@media (max-width: 700px) { .form-embed iframe { height: 6900px; } }
.mail-btns { display: grid; gap: .6rem; margin: 1rem 0 0; }
.mail-btns .btn { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-align: left; flex-wrap: wrap; }
.mail-btns .btn span { font-weight: 400; font-size: .9rem; opacity: .85; word-break: break-all; }
.agepill.level { background: #fff1d6; color: #7a4a00; }
.agepill.none { background: #f1f2f5; color: #4d576b; font-weight: 600; }
@media (max-width: 1020px) {
  .compete { grid-template-columns: minmax(0, 1fr); grid-template-areas: "age" "fix" "leagues"; }
  .c-fix { position: static; } .fx-body { max-height: none; overflow: visible; }
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; margin: 2rem 0; }
.photo-grid a { display: block; border-radius: 12px; overflow: hidden; background: var(--ink-3); }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; } .photo-grid a:hover img { transform: scale(1.05); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #aab4c8; margin-top: 0; padding-top: 4rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-logo { width: 230px; margin-bottom: 1rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #cfd6e4; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-weight: 600; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-block: 1.4rem; font-size: .88rem; }
.policies { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.6rem; border-bottom: 1px solid rgba(255,255,255,.1); display: none; max-height: calc(100vh - 80px); overflow: auto; }
  nav.open { display: flex; } nav ul { flex-direction: column; } nav a:not(.btn) { font-size: 1.1rem; padding: .8rem .5rem; }
  nav .btn { width: 100%; }
}
@media (max-width: 1020px) {
  .g4, .steps, .steps5, .steps3 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .facts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; } .estimator, .split, .feature-news { grid-template-columns: minmax(0, 1fr); }
  .feature-news .news-media { aspect-ratio: var(--ar, 16 / 10); height: auto; min-height: 0; max-height: none; }
}
@media (max-width: 760px) {
  /* tables become one card per row (site.js adds the stack class and the labels); short fields sit two to a line */
  table.stack, table.stack tbody { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap:has(table.stack) { overflow-x: visible; border: 0; background: none; border-radius: 0; }
  table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; row-gap: .1rem; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .95rem 1rem 1rem; margin-bottom: .9rem; }
  table.stack td { display: block; grid-column: 1 / -1; padding: .2rem 0; border: 0; overflow-wrap: break-word; min-width: 0; }
  table.stack td[data-label="Ages"], table.stack td[data-label="When"], table.stack td[data-label="Performance"], table.stack td[data-label="Athlete"] { grid-column: auto; }
  table.stack td:first-child:not([data-label]) { font-size: 1.05rem; padding-bottom: .3rem; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font: 700 .68rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-top: .35rem; }
  table.stack td[data-label="When"] br { display: none; } table.stack .tt-name .muted { display: block; margin-top: .15rem; line-height: 1.4; } table.stack .tt-time::before { content: " · "; }
  table.stack .tt-name b { font-size: 1.15rem; }
  table.stack td.num { font-size: 1.25rem; line-height: 1.25; }
  table.stack td[colspan] { text-align: center; }
  table.stack .tt-go { padding-top: .6rem; } table.stack .tt-go .btn { width: 100%; margin: 0 !important; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; } .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .g2, .g3, .g4, .g5, .steps, .steps5, .steps3, .row2, .foot-grid, .vest-panel { grid-template-columns: 1fr; }
  .facts { margin-top: -2rem; } .fact b { font-size: 1.8rem; } .fact { padding: 1rem; }
  .fixture { grid-template-columns: 64px 1fr; } .fixture .tag { grid-column: 2; }
  .hero::before { background: linear-gradient(180deg, rgba(11,14,20,.72), rgba(11,14,20,.94)); }
  .hero { align-items: flex-end; } .brand img { width: 170px; }
  .cta-band::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .staging, .launch, .btn-row, .cta-band { display: none; } }

/* ---- the joining and coaching form ---- */
.jf { margin: 1.2rem 0; }
.jf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.jf legend, .jf label { font-weight: 700; display: block; margin-bottom: .35rem; }
.jf-start { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.jf-card { display: flex !important; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 400 !important; }

.jf-card b { display: block; font-size: 1.1rem; } .jf-card small { color: var(--muted); font-size: .92rem; }
.jf-card:has(input:checked) { border-color: var(--blue); background: #eef3ff; }
.jf-body, .jf-done { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.6rem; box-shadow: var(--shadow); }
.jf-progress { margin-bottom: 1.2rem; }
.jf-bar { height: 8px; background: #e6ebf5; border-radius: 99px; overflow: hidden; } .jf-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .25s; }
.jf-step { display: grid; gap: 1.1rem; outline: none; } .jf-step h3 { margin: 0; }
.jf-field { display: grid; gap: .1rem; }
.jf-opts { display: grid; gap: .45rem; } .jf-opts.jf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jf-opt { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 10px; margin: 0 !important; cursor: pointer; }

.jf-error { color: #8c1d1d; font-weight: 600; font-size: .95rem; margin: .35rem 0 0; min-height: 0; } .jf-error:empty { display: none; }
.jf-error::before { content: "Error: "; }
/* Accessible choices (WCAG 2.2): 28px controls and whole-row targets (2.5.8), 3:1 borders (1.4.11), a tick or dot as well as colour (1.4.1),
   a strong two-colour focus ring (2.4.7, 2.4.11, 2.4.13), and Windows high-contrast support. */
.jf-opt, .jf-card { --jf-edge: #5b6577; min-height: 44px; }
.jf-opt { border-color: var(--jf-edge); } .jf-card { border-color: var(--jf-edge); }
.jf-opt input, .jf-card input { appearance: none; -webkit-appearance: none; flex: none; width: 1.75rem; height: 1.75rem; margin: 0; padding: 0; display: grid; place-content: center; background: #fff; border: 2px solid var(--jf-edge); cursor: pointer; }
.jf-opt input[type="radio"], .jf-card input[type="radio"] { border-radius: 50%; }
.jf-opt input[type="checkbox"] { border-radius: 6px; }
.jf-opt input::before, .jf-card input::before { content: ""; transform: scale(0); transition: transform .1s; }
.jf-opt input[type="radio"]::before, .jf-card input[type="radio"]::before { width: .85rem; height: .85rem; border-radius: 50%; background: var(--blue); }
.jf-opt input[type="checkbox"]::before { width: .9rem; height: .5rem; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -.15rem; }
.jf-opt input:checked::before, .jf-card input:checked::before { transform: scale(1); }
.jf-opt input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.jf-opt input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }
.jf-opt input:checked, .jf-card input:checked { border-color: var(--blue); }
.jf-opt:has(input:checked), .jf-card:has(input:checked) { border-color: var(--blue); border-width: 2px; background: #eef3ff; }
.jf-opt { border-width: 2px; padding: .5rem .7rem; align-items: center; }
.jf-opt:has(input:focus-visible), .jf-card:has(input:focus-visible) { outline: 3px solid #1a1a1a; outline-offset: 2px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.jf-opt:hover, .jf-card:hover { background: #f4f7fd; }
.jf-bad .jf-opt, .jf-bad .jf-card, .jf-start .jf-bad { border-color: #c53030; }
fieldset.jf-bad > legend::before { content: "\26A0\FE0F  "; }
@media (forced-colors: active) {
  .jf-opt input, .jf-card input { border-color: ButtonText; forced-color-adjust: none; }
  .jf-opt input::before, .jf-card input::before { background: Highlight; }
  .jf-opt input[type="checkbox"]::before { background: none; border-color: HighlightText; }
  .jf-opt input[type="checkbox"]:checked { background: Highlight; border-color: Highlight; }
  .jf-opt:has(input:checked), .jf-card:has(input:checked) { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) { .jf-opt input::before, .jf-card input::before { transition: none; } }
.jf-bad input, .jf-bad select, .jf-bad textarea { border-color: #c53030; }
.jf-trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.jf-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.jf-done h3 { margin-top: 0; } .jf-done ol { padding-left: 1.2rem; } .jf-done li { margin-bottom: .4rem; } .jf-done { outline: none; }
@media (max-width: 700px) { .jf-opts.jf-cols { grid-template-columns: 1fr; } .jf-body, .jf-done { padding: 1.1rem; } }
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin: 1.6rem 0 0; }
.social-row .muted { margin-right: .3rem; }
.news-submit { margin-top: 1.4rem; max-width: 46rem; }
/* athlete profile cards: the cover (a 4:5 page) above the text */
.profile-card { padding: 0; overflow: hidden; }
.profile-cover { display: block; background: var(--ink-3); }
.profile-cover img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.4rem 1.5rem; }
.profile-body h3 { font-size: 1.45rem; margin: .4rem 0 .5rem; text-transform: none; line-height: 1.1; }
.profile-body p { color: var(--muted); font-size: .96rem; margin: 0 0 1rem; }
/* records archive */
.arch-find { margin: 1.4rem 0 1.2rem; } .arch-find input { width: 100%; max-width: 32rem; margin-top: .4rem; }
.arch-group { border-top: 1px solid var(--line); padding: .6rem 0; }
.arch-group summary { cursor: pointer; list-style: revert; } .arch-group summary h2 { display: inline; font-size: 1.5rem; }
.arch-list { list-style: none; padding: 0; margin: .8rem 0 0; columns: 1; } .arch-list li { padding: .25rem 0; border-bottom: 1px solid var(--line); } .arch-list li[hidden] { display: none; }
.archive-body { font-size: 1rem; overflow-wrap: anywhere; } .archive-body img { max-width: 100%; height: auto; }
.archive-body p { margin: 0 0 .6rem; } .archive-body table { font-size: .95rem; }
/* records archive tables (rebuilt from the old lines of text) */
.archive-body .table-wrap { margin: 0 0 1.5rem; }
.arch-table { font-size: .95rem; }
.arch-table caption { text-align: left; font: 800 1.35rem var(--display); letter-spacing: .02em; text-transform: uppercase; padding: .75rem 1rem .6rem; background: #fff; border-bottom: 1px solid var(--line); }
.arch-table th { font-size: .74rem; padding: .5rem 1rem; white-space: nowrap; }
.arch-table td { padding: .45rem 1rem; }
.arch-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.arch-table tbody tr:nth-child(even) { background: var(--mist); }
.archive-body h3, .archive-body h4 { margin: 1.6rem 0 .6rem; }
@media (max-width: 640px) { .arch-table th, .arch-table td { padding-left: .6rem; padding-right: .6rem; } .arch-table caption { padding-left: .6rem; } }

/* a league card filters the fixture list: the league name is a button stretched over the whole card */
.league-card { position: relative; }
.league-pick { all: unset; box-sizing: border-box; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.league-pick::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.league-pick:disabled { cursor: default; } .league-pick:disabled::after { display: none; }
.league-pick:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.league-card.has-fixtures:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.league-card.has-fixtures:hover h3 { color: var(--blue-dark); }
.league-card.is-picked { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.league-status { margin: .55rem 0 0; }
.league-card.has-fixtures .league-status { color: var(--blue-dark); font-weight: 600; }

/* the full-page fixture list (large print, for a big screen or a printout) */
.fxl-wide { width: min(1500px, 100% - 2.5rem); }
.fx-tools { margin: 0 0 .7rem; text-align: right; font-size: .9rem; } .fx-tools a { font-weight: 700; }
.fxl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; margin-bottom: 1rem; }
.fxl-note { margin: 0; font-size: 1.25rem; } .fxl-actions { margin: 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.fxl-month { font-size: 2.4rem; margin: 2.4rem 0 1rem; }
.fxl { display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(220px, 300px); gap: 1.6rem; align-items: start; padding: 1.2rem 0; border-top: 1px solid var(--line); break-inside: avoid; }
.fxl time { text-align: center; background: var(--ink); color: #fff; border-radius: 14px; padding: .7rem .2rem; line-height: 1; }
.fxl time b { display: block; font: 800 3rem/1.05 var(--display); } .fxl time span { display: block; font: 700 .9rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.fxl time .wd { color: #fff; opacity: .85; margin-bottom: .2rem; }
.fxl h3 { font: 800 2rem/1.1 var(--display); margin: 0 0 .35rem; letter-spacing: 0; text-transform: none; }
.fxl-where { margin: 0; font-size: 1.3rem; } .fxl-info { margin: .5rem 0 0; font-size: 1.1rem; color: var(--muted); }
.fxl-meta p { margin: 0 0 .55rem; font-size: 1.1rem; } .fxl-meta .agepill { font-size: .95rem; padding: .4rem .7rem; }
.fxl-league { color: var(--muted); font-weight: 600; } .fxl-meta a { font-weight: 700; }
.fxl-foot { margin-top: 2.4rem; font-size: 1rem; }
@media (max-width: 820px) { .fxl { grid-template-columns: 78px minmax(0, 1fr); gap: 1rem; } .fxl-meta { grid-column: 2; } .fxl time b { font-size: 2.2rem; } .fxl h3 { font-size: 1.6rem; } .fxl-where { font-size: 1.15rem; } .fxl-month { font-size: 1.9rem; } }
@media print { .fxl-tools .fxl-actions, .fxl-foot a { display: none; } .fxl-section { padding: 0; } .fxl { padding: .6rem 0; } .fxl time { background: #fff; color: #000; border: 2px solid #000; } .fxl time span { color: #000; } .page-hero { padding-block: 1rem; } }
.fxl-return { margin: 0 0 1.2rem; } .fxl-return-end { margin: 2rem 0 0; }
.fxl-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem .6rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.fxl-filters .chips { gap: .5rem; margin-bottom: .8rem; } .fxl-filters .chip { padding: .55rem 1rem; font-size: 1rem; }
.fxl-selects { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: end; margin-bottom: .6rem; } .fxl-selects label:not(.check) { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.fxl-selects select { min-width: 12rem; font-size: 1.05rem; } .fxl-selects .check { margin-bottom: .45rem; font-size: 1rem; }
@media print { .fxl-return, .fxl-filters, .fxl-actions { display: none; } }

/* the training week: a calendar strip (Monday to Sunday), then the table grouped by day */
.week { margin: 0 0 2rem; }
.week-title { font: 800 1.7rem var(--display); text-transform: uppercase; margin: 0 0 .2rem; } .week-note { margin: 0 0 1rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.week-day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .6rem .7rem; min-width: 0; }
.week-day h4 { font: 800 .95rem var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ink); }
.week-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.week-day.is-empty { background: var(--mist); border-style: dashed; } .week-day.is-empty h4 { color: var(--muted); border-bottom-color: var(--line); }
.ws-none { margin: 0; color: var(--muted); font-size: .82rem; }
.week-slot { --c: var(--blue); display: block; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 8px; padding: .45rem .55rem; line-height: 1.25; transition: box-shadow .15s, border-color .15s; }
.week-slot:hover, .week-slot:focus-visible { box-shadow: var(--shadow); border-color: var(--c); }
.week-slot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ws-time { display: block; font: 800 1.15rem/1.1 var(--display); color: var(--c); } .ws-name { display: block; font-weight: 700; font-size: .86rem; margin-top: .1rem; } .ws-who { display: block; color: var(--muted); font-size: .76rem; margin-top: .15rem; }
.week-slot[data-tag="throws"] { --c: #0b0e14; } .week-slot[data-tag="multis"] { --c: var(--warn); } .week-slot[data-tag="juniors"] { --c: var(--ok); } .week-slot[data-tag="pv"] { --c: #0e7490; } .week-slot[data-tag="adults"] { --c: #6d28d9; }
.tt-dayrow th { text-align: left; background: var(--ink); color: #fff; font: 800 1.05rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .55rem 1rem; }
.train-table tbody tr[id] { scroll-margin-top: 110px; } .train-table tbody tr[id]:target td { background: #e8eeff; }
@media (max-width: 1060px) { .week-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .week-day.is-empty { display: none; } }
@media (max-width: 760px) {
  table.stack tr.tt-dayrow { display: block; background: none; border: 0; box-shadow: none; padding: 0; margin: 1.2rem 0 .5rem; border-radius: 0; }
  table.stack tr.tt-dayrow th { display: block; border-radius: 8px; }
  table.stack tr[id]:target { box-shadow: 0 0 0 3px var(--blue); }
}
@media print { .week-slot { border-color: #000; } }

/* Calendar / List selector: one joined control, one choice at a time (shown by script; both views show without it) */
.view-select { display: inline-flex; margin: 0 0 1.2rem; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; min-width: 0; } .view-select[hidden] { display: none; }
.view-select label { position: relative; cursor: pointer; margin: 0; }
.view-select input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.view-select span { display: block; padding: .55rem 1.6rem; border-radius: 999px; font: 700 1rem var(--body); color: var(--ink); transition: background .15s, color .15s; }
.view-select input:checked + span { background: var(--ink); color: #fff; }
.view-select input:not(:checked):hover + span { background: var(--mist); }
.view-select input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.is-off { display: none !important; }
.train-table tbody tr.is-picked td { background: #e8eeff; }

/* group details popout */
.week-help { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }
.group-dialog { border: 0; border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem; width: min(520px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 20px 60px rgba(11,14,20,.35); color: var(--text); }
.group-dialog::backdrop { background: rgba(11,14,20,.6); }
.gd-close { position: absolute; top: .5rem; right: .6rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); font: 400 1.8rem/1 var(--body); cursor: pointer; } .gd-close:hover { background: var(--line); } .gd-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gd-title { font: 800 1.9rem/1.1 var(--display); text-transform: uppercase; margin: 0 2.6rem .3rem 0; letter-spacing: 0; } .gd-who { margin: 0 0 1rem; color: var(--blue-dark); font-weight: 700; }
.gd-facts { margin: 0; display: grid; gap: .8rem; } .gd-facts dt { font: 700 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); } .gd-facts dd { margin: .1rem 0 0; }
.gd-go { margin: 1.3rem 0 0; } .gd-go .btn { width: 100%; }

/* Multi Events Programme (by invitation): calendar cards, colour key, popout buttons and the list-view section */
.week-slot { position: relative; }
/* club blues only (as on the poster): Heptathlon = solid blue with white text, Decathlon = pale blue with a navy outline and navy text, shared = white with both labels */
.week-slot--me[data-tag="heptathlon"] { --c: #0b2a6f; background: var(--blue); border-color: var(--blue); color: #fff; }
.week-slot--me[data-tag="heptathlon"] .ws-time, .week-slot--me[data-tag="heptathlon"] .ws-events > span { color: #fff; }
.week-slot--me[data-tag="heptathlon"] .ws-invite { color: rgba(255,255,255,.88); }
.week-slot--me[data-tag="heptathlon"] .ws-prog { background: #fff; color: var(--blue-dark); }
.week-slot--me[data-tag="decathlon"] { --c: #0b2a6f; background: #dbeafe; border-color: #0b2a6f; border-left-width: 5px; color: #0b2a6f; }
.week-slot--me[data-tag="decathlon"] .ws-time, .week-slot--me[data-tag="decathlon"] .ws-events > span, .week-slot--me[data-tag="decathlon"] .ws-invite { color: #0b2a6f; }
.week-slot--me[data-tag="decathlon"] .ws-prog { background: #0b2a6f; color: #fff; box-shadow: none; }
.week-slot--me.is-both { --c: #0b2a6f; background: #fff; border-color: #0b2a6f; border-left-color: transparent; }
.week-slot--me.is-both .ws-time { color: var(--blue-dark); }
.week-slot--me.is-both::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px; border-radius: 8px 0 0 8px; background: linear-gradient(to bottom, var(--blue) 50%, #0b2a6f 50%); }
.ws-prog { display: inline-block; font: 700 .68rem/1 var(--body); padding: .2rem .45rem; border-radius: 999px; margin: .25rem .25rem 0 0; color: #fff; }
.ws-prog.ws-heptathlon { background: var(--blue); } .ws-prog.ws-decathlon { background: #dbeafe; color: #0b2a6f; box-shadow: inset 0 0 0 1.5px #0b2a6f; }
.ws-invite { display: block; margin-top: .3rem; font-size: .72rem; color: var(--muted); font-weight: 600; }
.key-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -.05em; }
.key-groups { background: linear-gradient(90deg, #1d4fff 25%, #0f7b4f 25% 50%, #b45309 50% 75%, #6d28d9 75%); } .key-heptathlon { background: var(--blue); } .key-decathlon { background: #dbeafe; box-shadow: inset 0 0 0 2px #0b2a6f; }
.week-key { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; } .week-key[hidden] { display: none; }
.week-key label { position: relative; cursor: pointer; margin: 0; }
.week-key input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.week-key span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 600 .92rem var(--body); color: var(--muted); }
.week-key input:checked + span { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.week-key input:checked + span::after { content: "✓"; font-weight: 800; margin-left: .1rem; }
.week-key input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.week-key em { font-style: normal; font-weight: 500; } .week-key-static { margin: 0 0 1rem; } .week-key-static[hidden] { display: none; }
.week-day li.is-off { display: none; }
.tt-feeder { display: block; margin-top: .35rem; font-size: .82rem; font-weight: 600; color: var(--blue-dark); }
.gd-go .btn + .btn { margin-top: .6rem; }
.multi { margin: 2.8rem 0 0; padding-top: 1.2rem; border-top: 3px solid var(--ink); }
.multi h3 { font: 800 2.2rem/1.05 var(--display); text-transform: uppercase; margin: .1rem 0 .9rem; }
.invite-note { margin: 0 0 1.1rem; border-left-color: var(--ink); } .invite-note p { margin: 0; }
.multi-intro { max-width: 46rem; }
.multi-pillars { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 1.5rem; } .multi-pillars li { border: 1.5px solid var(--ink); border-radius: 999px; padding: .4rem .95rem; font-weight: 700; font-size: .92rem; }
.multi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; align-items: start; }
.multi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.multi-card header { padding: 1rem 1.2rem; color: #fff; } .multi-card h4 { font: 800 2.1rem/1 var(--display); text-transform: uppercase; margin: 0; letter-spacing: 0; } .multi-card header p { margin: .25rem 0 0; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.multi-card header h4, .multi-card header p { color: inherit; }   /* headings default to the page ink colour: follow the card instead */
.multi-heptathlon header { background: var(--blue); color: #fff; } .multi-decathlon header { background: #dbeafe; color: #0b2a6f; border-bottom: 3px solid #0b2a6f; }
.multi-table { width: 100%; } .multi-table thead th { text-align: left; } .multi-table tbody th { text-align: left; font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1rem; background: none; color: var(--ink); white-space: nowrap; }
.multi-table td { overflow-wrap: normal; }
.multi-go { padding: 1rem 1.2rem; margin: 0; border-top: 1px solid var(--line); } .multi-go .btn { width: 100%; }
@media (max-width: 560px) { .multi-table tbody th { white-space: normal; } .multi-table th, .multi-table td { padding-left: .7rem; padding-right: .7rem; } }

/* a programme card lists every event in its slot */
.ws-events { display: block; margin-top: .15rem; } .ws-events > span { display: block; font-weight: 700; font-size: .86rem; line-height: 1.3; }

/* News pictures are members' photos: no saving by right-click, drag or long-press. The picture ignores the pointer, so a right-click lands on the card or link around it (which keeps "open in new tab") and there is no "save image" to choose. */
.news-media img, .article-img, .photo-grid img { pointer-events: none; -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.photo-grid > div { display: block; border-radius: 12px; overflow: hidden; background: var(--ink-3); }
