/* Carnmoney Colts Academy: site styles. Mobile first. Colours are sampled from the club badge. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0b1449;
  --navy-2: #141f5e;
  --blue: #0f4fb1;
  --sky: #528ccc;
  --sky-light: #e6eefb;
  --yellow: #f9de0c;
  --yellow-dark: #c9b100;
  --white: #ffffff;
  --off: #f3f5f4;
  --ink: #0b1449;
  --muted: #4b5378;
  --line: #d9deea;
  --ok: #1d7a4a;
  --radius: 18px;
  --gutter: 16px;
  --max: 1080px;
  --shadow: 0 6px 24px rgba(11, 20, 73, 0.10);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--blue);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: "wght" 450;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 800; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-variation-settings: "wght" 800; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; }
h3 svg, h2 svg { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; margin-right: 0.3em; }
h2 { font-size: 1.6rem; margin-top: 0; }
h3 { font-size: 1.2rem; }
@media (min-width: 768px) { h1 { font-size: 2.9rem; } h2 { font-size: 2rem; } h3 { font-size: 1.3rem; } }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
strong, b { font-variation-settings: "wght" 800; font-weight: 800; }
.lead { font-size: 1.2em; font-variation-settings: "wght" 600; }
.small { font-size: 0.9em; color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: 2.2rem 0; }
@media (min-width: 768px) { section { padding: 3.2rem 0; } }
.band { background: var(--off); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy a { color: var(--yellow); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-sky { background: var(--sky-light); }
.band-yellow { background: var(--yellow); color: var(--navy); }
.band-yellow a { color: var(--navy); }

/* The one bold stroke: a yellow slash under section headings, echoing the kit and badge. */
.slash { position: relative; display: inline-block; padding-bottom: 0.3em; }
.slash::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 0.42rem; background: var(--yellow); transform: skewX(-24deg); border-radius: 2px; }
.band-navy .slash::after { background: var(--yellow); }

/* Header and navigation */
.top { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-variation-settings: "wght" 800; font-weight: 800; line-height: 1.05; font-size: 1.05rem; flex: 1; min-width: 0; }
.brand img { width: 44px; height: auto; flex: none; }
.brand span small { display: block; color: var(--yellow); font-size: 0.78em; font-variation-settings: "wght" 700; }
.menu-btn { appearance: none; border: 2px solid var(--yellow); background: transparent; color: var(--yellow); font: inherit; font-variation-settings: "wght" 800; font-weight: 800; padding: 10px 14px; border-radius: 12px; min-height: 48px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn[aria-expanded="true"] { background: var(--yellow); color: var(--navy); }
.nav { display: none; background: var(--navy-2); color: var(--white); border-top: 1px solid rgba(255,255,255,0.12); }
.nav.open { display: block; }
.nav .wrap { display: grid; gap: 4px 24px; padding-top: 12px; padding-bottom: 18px; }
@media (min-width: 640px) { .nav .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .nav .wrap { grid-template-columns: repeat(4, 1fr); } }
.nav h3 { color: var(--yellow); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 12px 0 4px; }
.nav a { display: block; color: var(--white); text-decoration: none; padding: 10px 8px; border-radius: 10px; min-height: 44px; font-variation-settings: "wght" 700; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.10); color: var(--white); }
.nav a[aria-current="page"]::before { content: "▸ "; color: var(--yellow); }
.quick { display: none; gap: 4px; }
@media (min-width: 960px) { .quick { display: flex; } }
.quick a { color: var(--white); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-variation-settings: "wght" 700; white-space: nowrap; }
.quick a:hover, .quick a[aria-current="page"] { background: rgba(255,255,255,0.12); color: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 14px; font: inherit; font-size: 1.05rem; font-variation-settings: "wght" 800; font-weight: 800; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.btn-primary { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn.btn-primary:hover { background: #ffe83a; color: var(--navy); }
.btn.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.btn-outline:hover { background: var(--navy); color: var(--white); }
.band-navy .btn.btn-outline { color: var(--white); border-color: var(--white); }
.band-navy .btn.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 0.4rem; }
.btn-row .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .btn-row .btn { flex: 0 1 auto; } }

/* Home hero: text on navy, Virgil standing on a yellow wedge (the one bold stroke, echoing the badge) */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 0; }
.hero-text { padding: 2rem 0 1.2rem; }
.hero h1 { color: var(--white); margin-bottom: 0.2em; }
.hero .club-line { color: var(--yellow); font-size: 1.35rem; font-variation-settings: "wght" 800; font-weight: 800; margin: 0 0 0.6em; }
.hero .club-line span { display: block; }
.hero p.intro { max-width: 36ch; font-size: 1.1rem; margin-bottom: 0.4em; }
.hero .btn-outline { color: var(--white); border-color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 320px; margin: 0 calc(-1 * var(--gutter)); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: var(--yellow); clip-path: polygon(0 100%, 100% 18%, 100% 100%); }
.hero-art img { position: relative; width: min(60vw, 280px); height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25)); }
@media (min-width: 768px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .hero-text { padding: 3.4rem 0 3rem; }
  .hero-art { margin: 0; min-height: 440px; }
  .hero-art::before { left: -12%; right: -60vw; clip-path: polygon(0 100%, 22% 0, 100% 0, 100% 100%); }
  .hero-art img { width: min(30vw, 350px); }
  .hero .club-line { font-size: 1.7rem; }
  .hero .club-line span { display: inline; }
  .hero .club-line span + span::before { content: " "; }
}

/* Panels and cards */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 0 0 1rem; }
.panel-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.panel-navy a { color: var(--yellow); }
.panel-yellow { background: var(--yellow); color: var(--navy); border-color: var(--yellow); box-shadow: none; }
.panel-plain { box-shadow: none; }
.callout { border-left: 8px solid var(--yellow); background: var(--white); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0; box-shadow: var(--shadow); }
.band-navy .callout { background: rgba(255,255,255,0.06); box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Doors: the big choices on the home page and the section landings */
.doors { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .doors { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.door { display: flex; flex-direction: column; gap: 8px; background: var(--navy); color: var(--white); text-decoration: none; border-radius: var(--radius); padding: 16px 14px 18px; min-height: 150px; box-shadow: var(--shadow); transition: transform 0.12s ease; position: relative; overflow: hidden; }
.door:hover { transform: translateY(-2px); color: var(--white); }
.door:focus-visible { box-shadow: var(--focus); }
.door .ico { width: 44px; height: 44px; background: var(--yellow); color: var(--navy); border-radius: 12px; display: grid; place-items: center; }
.door .ico svg { width: 26px; height: 26px; }
.door strong { font-size: 1.15rem; line-height: 1.15; color: var(--yellow); }
.door span { font-size: 0.92rem; color: rgba(255,255,255,0.88); line-height: 1.35; }
.door-light { background: var(--white); color: var(--navy); border: 2px solid var(--line); }
.door-light:hover { color: var(--navy); border-color: var(--blue); }
.door-light strong { color: var(--navy); }
.door-light span { color: var(--muted); }
.door-light .ico { background: var(--navy); color: var(--yellow); }

/* Virgil speaks */
.virgil-says { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; margin: 1rem 0; }
.virgil-says img { width: 96px; }
.bubble { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 14px 16px; position: relative; }
.bubble::before { content: ""; position: absolute; left: -14px; top: 28px; border: 7px solid transparent; border-right-color: var(--navy); }
.bubble::after { content: ""; position: absolute; left: -9px; top: 29px; border: 6px solid transparent; border-right-color: var(--white); }
.bubble p:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .virgil-says { grid-template-columns: 150px 1fr; gap: 22px; } .virgil-says img { width: 150px; } }

/* Photos */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--off); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.contain { background: var(--navy); }
.photo.contain img { object-fit: contain; }
.photo-strip { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }
.photo-strip .photo { aspect-ratio: 4 / 3; }
.photo-tall { aspect-ratio: 3 / 4; max-width: 420px; width: 100%; margin: 0 auto; }
figure { margin: 0; }
figcaption { font-size: 0.9em; color: var(--muted); padding: 6px 2px 0; }

/* Event tiles */
.tile { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tile .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.tile-body { padding: 14px 16px 18px; }
.tile-body h3 { margin-bottom: 0.2em; }
.tile-body .when { color: var(--muted); font-variation-settings: "wght" 700; margin-bottom: 0.5em; display: block; }
.tile-more { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); padding: 0 16px 16px; }
.tile-more .photo { aspect-ratio: 1; }
video { width: 100%; background: #000; border-radius: 12px; }
.video-wrap { padding: 0 16px 16px; }
.video-wrap p { margin: 6px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--white); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-variation-settings: "wght" 800; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: var(--off); }
@media (max-width: 639px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; background: var(--white); }
  table.stack td { border: none; padding: 6px 14px; background: transparent !important; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 0.8em; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  table.stack td.year { font-size: 1.15rem; font-variation-settings: "wght" 800; }
  table.stack td.year::before { display: none; }
}

/* Lists with ticks */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 0.6em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 0.45em; width: 5px; height: 10px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 44px; margin-bottom: 0.8em; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-variation-settings: "wght" 800; }

/* Placeholders for facts Marc still has to supply */
.tbc { border: 2px dashed var(--sky); background: var(--sky-light); border-radius: 12px; padding: 12px 14px; margin: 1rem 0; }
.tbc::before { content: "To be confirmed"; display: inline-block; background: var(--blue); color: var(--white); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; font-variation-settings: "wght" 800; }
.tbc p:last-child { margin-bottom: 0; }

/* Forms */
form { margin: 0; }
.field { margin-bottom: 14px; }
.field label, .field .lbl { display: block; font-variation-settings: "wght" 800; margin-bottom: 4px; }
.field .hint { display: block; font-size: 0.88em; color: var(--muted); margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 50px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); box-shadow: none; outline: 3px solid var(--yellow); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.check input { width: 26px; height: 26px; flex: none; margin: 2px 0 0; accent-color: var(--blue); }
.check label { font-variation-settings: "wght" 600; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 48px; cursor: pointer; }
.radios input { accent-color: var(--blue); width: 22px; height: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9em; color: var(--muted); }
@media (max-width: 639px) { .form-block .btn { width: 100%; } }
.form-done { background: var(--sky-light); border: 2px solid var(--blue); border-radius: var(--radius); padding: 18px; }
.form-done h3 { margin-bottom: 0.3em; }
[hidden] { display: none !important; }

/* Game card (first version: the under 5s page; the library builds on it) */
.game { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.game h3 { font-size: 1.35rem; margin-bottom: 0.1em; }
.game .one { color: var(--muted); font-variation-settings: "wght" 600; margin-bottom: 0.8em; }
.game .diagram { max-width: 420px; margin: 0 auto 1rem; }
.game .diagram svg { width: 100%; height: auto; }
.game h4 { margin: 0.9em 0 0.3em; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }
.game .stage { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 0.8em; }
.game .stage b { background: var(--yellow); color: var(--navy); border-radius: 8px; padding: 2px 8px; white-space: nowrap; align-self: start; }
.video-box { background: var(--off); border-radius: 12px; padding: 12px; margin-top: 0.8em; }
.video-box button { display: flex; align-items: center; gap: 10px; width: 100%; font: inherit; font-variation-settings: "wght" 800; background: var(--navy); color: var(--white); border: none; border-radius: 12px; padding: 12px 14px; min-height: 52px; cursor: pointer; }
.video-box button svg { width: 26px; height: 26px; flex: none; }
.video-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin-top: 10px; }
.video-box p { margin: 8px 0 0; font-size: 0.9em; }

/* Theme tiles */
.themes { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .themes { grid-template-columns: repeat(4, 1fr); } }
.theme { display: block; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none; }
a.theme:hover { border-color: var(--blue); color: var(--ink); }
.theme strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.theme .count { display: inline-block; background: var(--yellow); color: var(--navy); border-radius: 8px; padding: 1px 8px; font-size: 0.85rem; font-variation-settings: "wght" 800; margin-top: 8px; }

/* Sponsors */
.sponsor { display: grid; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sponsor .logo { background: var(--white); border-radius: 12px; padding: 12px; display: grid; place-items: center; min-height: 120px; }
.sponsor .logo img { max-height: 110px; width: auto; }
.sponsor-open { border: 2px dashed var(--sky); background: var(--sky-light); border-radius: var(--radius); padding: 18px; }

/* Footer */
footer { background: var(--navy); color: var(--white); padding: 2.4rem 0 3rem; margin-top: 2rem; }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 768px) { footer .wrap { grid-template-columns: 1fr 1fr 1fr; } }
footer a { color: var(--yellow); }
footer .fbrand { display: flex; align-items: center; gap: 12px; font-variation-settings: "wght" 800; }
footer .fbrand img { width: 56px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0; }
footer li a { display: inline-block; padding: 6px 0; text-decoration: none; }
footer li a:hover { text-decoration: underline; }
footer .line { color: var(--yellow); font-variation-settings: "wght" 800; }
.build-note { font-size: 0.8em; color: rgba(255,255,255,0.6); margin-top: 8px; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.vis-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge-inline { width: 90px; margin: 0 auto 10px; }
.fb { display: inline-flex; align-items: center; gap: 8px; }
.fb svg { width: 22px; height: 22px; }

/* Print */
@media print {
  .top, .nav, footer, .btn, .btn-row, .menu-btn, .video-box, video, .skip { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  section { padding: 0.6rem 0; }
  .band, .band-navy, .band-sky, .band-yellow { background: #fff !important; color: #000 !important; }
  .band-navy h2, .band-navy h3 { color: #000; }
  .panel, .callout, .tile, .game { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .hero::before { display: none; }
  .hero { background: #fff; color: #000; }
  .hero h1 { color: #000; text-shadow: none; }
}

/* ---------- Stage 5: library, game pages, At home, certificates ---------- */
.tag { display: inline-block; background: var(--off); color: var(--navy); border-radius: 8px; padding: 2px 9px; font-size: 0.82rem; font-variation-settings: "wght" 700; margin: 0 4px 4px 0; text-decoration: none; }
.tag-navy { background: var(--navy); color: var(--white); }
.tag-yellow { background: var(--yellow); color: var(--navy); }
.tag-theme { background: var(--sky-light); color: var(--blue); }
a.tag-theme:hover { background: var(--blue); color: var(--white); }
.tag-habit { background: var(--navy); color: var(--yellow); }
.tag-ifa { background: #e9f6ee; color: var(--ok); }
.tag-yl { background: #fff4d6; color: #7a5a00; }
.tags { line-height: 1.9; }
ul.plain { list-style: none; padding: 0; }
.btn-small { min-height: 42px; padding: 8px 14px; font-size: 0.95rem; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--white); }
summary { cursor: pointer; font-variation-settings: "wght" 800; min-height: 32px; }
.legend-box { overflow-x: auto; padding-top: 8px; }
.legend-box svg { max-width: 100%; height: auto; }
.az { columns: 2; column-gap: 24px; list-style: none; padding: 0; margin-top: 8px; }
@media (min-width: 768px) { .az { columns: 4; } }
.az li { break-inside: avoid; margin-bottom: 4px; }

/* Filters */
.door-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.door-tab { flex: 1; font: inherit; font-variation-settings: "wght" 800; min-height: 52px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 14px; cursor: pointer; }
.door-tab.on { background: var(--navy); color: var(--yellow); }
.filters { background: var(--off); border-radius: var(--radius); padding: 12px 14px; }
.frow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.frow:last-child { margin-bottom: 0; }
.flabel { font-variation-settings: "wght" 800; font-size: 0.9rem; min-width: 100%; }
@media (min-width: 640px) { .flabel { min-width: 120px; } }
.fsel { display: inline-flex; flex-direction: column; gap: 2px; font-size: 0.85rem; font-variation-settings: "wght" 800; flex: 1 1 140px; }
.fsel select, .fsel input { font-size: 1rem; min-height: 46px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--white); font-variation-settings: "wght" 500; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.95rem; font-variation-settings: "wght" 700; min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.chip.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip-clear { border-style: dashed; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 8px; }
.results-head .count { margin: 0; font-variation-settings: "wght" 800; }
.results { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .results { grid-template-columns: repeat(3, 1fr); } }
.gcard { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); min-height: 120px; }
.gcard:hover { border-color: var(--blue); color: var(--ink); }
.gcard strong { font-size: 1.12rem; line-height: 1.2; }
.gcard .one { color: var(--muted); font-size: 0.95rem; }
.gcard .tags { margin-top: auto; line-height: 1.8; }

/* One game's page */
.game-page { box-shadow: none; border: none; padding: 0; margin: 0; }
.game-head { padding: 1.4rem 0 0.6rem; }
.game-head h1 { margin-bottom: 0.15em; }
.crumbs { margin-bottom: 4px; }
.game-body { display: grid; gap: 22px; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 900px) { .game-body { grid-template-columns: 2fr 1fr; align-items: start; } }
.game-side { background: var(--off); border-radius: var(--radius); padding: 16px; }
.game-side h4:first-child { margin-top: 0; }
.game-main .diagram { max-width: 560px; margin: 0 0 1rem; }
.threads { margin-top: 1rem; }
.threads h4 { margin-top: 0; }
.tweaks { margin-top: 1rem; }
.tweaks dl { margin: 0; }
.tweak { border-left: 6px solid var(--line); padding: 6px 12px; margin-bottom: 8px; border-radius: 0 10px 10px 0; background: var(--white); }
.tweak dt { font-variation-settings: "wght" 800; }
.tweak dd { margin: 0; }
.tweak.pick { border-left-color: var(--yellow); background: #fffbe0; }
.tweak.dim { opacity: 0.45; }
.year-pick { display: inline-block; }
.year-pick select { font-size: 1rem; min-height: 40px; padding: 4px 8px; border-radius: 8px; border: 2px solid var(--line); margin-left: 6px; width: auto; max-width: 110px; }
.best-box { background: var(--sky-light); border: 2px solid var(--sky); border-radius: var(--radius); padding: 14px 16px; margin-top: 1rem; }
.best-box h4 { margin-top: 0; }
.best-row { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; }
.best-row label { display: flex; flex-direction: column; font-size: 0.85rem; font-variation-settings: "wght" 800; gap: 2px; }
.best-row input { font-size: 1.1rem; min-height: 46px; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--line); width: 100%; }

/* At home planner */
.planner-form { margin-bottom: 1.4rem; }
.plan-head h3 { margin-bottom: 0.2em; }
.week { padding: 0; margin: 0 0 1.2rem; }
.week h4 { background: var(--navy); color: var(--yellow); display: inline-block; padding: 4px 12px; border-radius: 10px; margin: 0 0 8px; font-size: 1rem; }
.session { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.session-head { margin-bottom: 4px; }
.plan-game { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.plan-game:first-child { border-top: none; }
.plan-game.done a { text-decoration: line-through; color: var(--muted); }
.tick { position: relative; width: 30px; height: 30px; flex: none; }
.tick input { position: absolute; inset: 0; width: 30px; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.tick span { position: absolute; inset: 0; border: 2px solid var(--navy); border-radius: 8px; background: var(--white); }
.tick input:checked + span { background: var(--yellow); }
.tick input:checked + span::after { content: ""; position: absolute; left: 9px; top: 3px; width: 7px; height: 14px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tick input:focus-visible + span { box-shadow: var(--focus); }
.best-inline { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.best-inline label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-variation-settings: "wght" 800; }
.best-inline input { width: 70px; font-size: 1rem; min-height: 36px; padding: 4px 8px; border-radius: 8px; border: 2px solid var(--line); }
.plan-progress { font-variation-settings: "wght" 800; }

/* Certificate */
.kind-switch a.on { font-variation-settings: "wght" 800; text-decoration: none; }
.cert { background: var(--white); border: 8px solid var(--navy); border-radius: 18px; padding: 10px; margin-top: 1rem; }
.cert-inner { border: 3px solid var(--yellow); border-radius: 12px; padding: 24px 18px 24px; text-align: center; position: relative; }
.cert-badge { margin: 0 auto 8px; width: 110px; }
.cert-club { font-variation-settings: "wght" 800; color: var(--blue); margin: 0 0 4px; }
.cert-title { font-size: 2.2rem; margin: 0 0 8px; color: var(--navy); }
.cert-line { color: var(--muted); margin: 0 auto 6px; max-width: 34ch; }
.cert-name { font-size: 2.4rem; font-variation-settings: "wght" 900; color: var(--navy); margin: 8px 0; min-height: 1.2em; border-bottom: 3px solid var(--yellow); display: inline-block; padding: 0 20px 4px; }
.cert-motto { font-variation-settings: "wght" 800; color: var(--blue); margin: 12px 0 4px; font-size: 1.1rem; }
.cert-date { color: var(--muted); margin: 0; }
.cert-virgil { position: static; width: 120px; margin: 14px auto 0; }
@media (min-width: 640px) { .cert-inner { padding: 30px 30px 150px; min-height: 520px; } .cert-title { font-size: 2.8rem; } .cert-name { font-size: 3rem; } .cert-virgil { position: absolute; right: 12px; bottom: 8px; width: 150px; margin: 0; } }

@media print {
  .no-print, .game-side .video-box, .best-box button, .kind-switch, .filters, .door-tabs, .results-head { display: none !important; }
  .game-body { grid-template-columns: 2fr 1fr; gap: 14px; }
  .game-side { background: none; border: 1px solid #999; }
  .game-head { padding-top: 0; }
  .tweak.dim { display: none; }
  .tag { border: 1px solid #999; background: none !important; color: #000 !important; }
  .plan .session { break-inside: avoid; }
  .cert { border-color: #0b1449; page-break-inside: avoid; margin: 0; }
  .cert-inner { min-height: 60vh; padding: 30px 30px 150px; }
  .cert-virgil { position: absolute; right: 12px; bottom: 8px; width: 150px; margin: 0; }
  body.cert-page main > section { padding: 0; }
  @page { margin: 12mm; }
}

/* ---------- Stage 6: the coaches' tools ---------- */
a.tool { display: block; color: var(--ink); text-decoration: none; }
a.tool:hover { border-color: var(--blue); color: var(--ink); }
.faq { margin-bottom: 1.2rem; }
.faq h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.faq p { margin-bottom: 0.4em; }

/* Session */
.session { margin-top: 1rem; }
.s-head h2 { margin-bottom: 0.1em; }
.s-head p { color: var(--muted); }
.timings { margin: 0.8rem 0 1.2rem; font-size: 0.95rem; }
.timings td:first-child { white-space: nowrap; font-variation-settings: "wght" 800; }
.s-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--white); }
.s-block h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.s-time { display: inline-block; background: var(--navy); color: var(--yellow); border-radius: 8px; padding: 2px 10px; font-size: 0.85rem; margin-right: 6px; vertical-align: middle; }
.s-game h4 { margin: 0.4em 0 0.1em; font-size: 1.1rem; }
.s-game h5 { margin: 0.8em 0 0.2em; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }
.s-game ul { margin-bottom: 0.4em; }
.s-game .one { color: var(--muted); margin-bottom: 0.4em; }
.s-dia { max-width: 360px; width: 100%; height: auto; margin: 6px 0; border-radius: 10px; }
.s-two { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .s-two { grid-template-columns: 1fr 1fr; } }
.s-stations { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .s-stations { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.s-station { background: var(--off); border-radius: 12px; padding: 10px 14px; }
.s-station-title { margin: 0; color: var(--blue); }
.s-links { margin: 0.6em 0 0; }
.s-extras h3 { font-size: 1.05rem; margin: 0.2em 0 0.3em; }
.s-home { border: 2px solid var(--yellow); }
.s-home .qr { max-width: 150px; margin-top: 8px; }
.s-home .qr svg { width: 100%; height: auto; }
.s-url { overflow-wrap: anywhere; font-size: 0.9em; }

/* Match day planner */
.player-rows { display: grid; gap: 8px; margin: 8px 0 12px; }
.player-row { display: grid; grid-template-columns: 36px 1fr; gap: 6px 8px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.player-row .chips { grid-column: 1 / -1; }
.pnum { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-variation-settings: "wght" 800; }
.pname { font-size: 1rem; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--line); }
.chips-small .chip { min-height: 34px; padding: 4px 10px; font-size: 0.85rem; }
.chip-gk.on { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.check { padding: 4px 0; }
.rota td, .rota th { text-align: center; padding: 8px 6px; font-size: 0.9rem; }
.rota td:first-child, .rota th:first-child { text-align: left; }
.rota .cell-on { background: var(--sky-light); font-variation-settings: "wght" 800; }
.rota .cell-gk { background: var(--yellow); font-variation-settings: "wght" 800; }
.rota .cell-f { color: var(--muted); font-size: 0.8rem; }
.rota tbody tr:nth-child(even) td { background: inherit; }
.grid-out { margin-top: 1.4rem; }

/* Focus card */
.chip-habit.on { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.fcard { background: var(--white); border: 6px solid var(--navy); border-radius: 18px; padding: 8px; margin-top: 1rem; }
.fcard-inner { border: 2px solid var(--yellow); border-radius: 12px; padding: 18px; }
.fcard-badge { width: 70px; margin-bottom: 6px; }
.fcard-title { margin-bottom: 0.1em; }
.fcard-meta { color: var(--muted); margin-bottom: 1em; }
.fcard-cols { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fcard-cols { grid-template-columns: 1fr 1fr; } }
.fcard-cols h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 0.3em; }
.pills { line-height: 2.2; }
.pill { display: inline-block; background: var(--sky-light); color: var(--navy); border-radius: 999px; padding: 4px 14px; margin: 0 6px 6px 0; font-variation-settings: "wght" 800; }
.pill-focus { background: var(--yellow); }
.fcard-moment { margin: 1em 0; }
.fcard-home { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 8px; }
@media (min-width: 640px) { .fcard-home { grid-template-columns: 1fr 140px; } }
.fcard-home h3 { font-size: 1rem; margin-bottom: 0.2em; }
.fcard-home .qr svg { width: 140px; height: 140px; }
.fcard-foot { margin: 12px 0 0; font-size: 0.9em; color: var(--muted); }

@media print {
  .session .s-block { break-inside: avoid; }
  .s-dia { max-width: 300px; }
  .players, .planner-form, .timings-note { display: none !important; }
  .fcard { border-width: 4px; }
  .rota .cell-on, .rota .cell-gk { background: #eee !important; }
}
