/* Pacer Aquatics: site styles
   Brand: Pacer yellow + black (from the club crest), pool blue for swimming,
   rescue red for life saving. Display type is Barlow Condensed italic, which
   echoes the slanted PACER wordmark; body text is Heebo, as on pacerwaterpolo.com. */

:root {
  --ink: #0b0e12;
  --ink-2: #14181f;
  --ink-3: #20262f;
  --paper: #ffffff;
  --sand: #f4f4ee;
  --line: #e3e5e0;
  --line-dark: #2b323c;
  --text: #11151a;
  --muted: #59626c;
  --muted-inv: #aab3bd;

  --yellow: #f2e400;
  --yellow-ink: #1a1a00;
  --pool: #0a6fb5;
  --pool-deep: #07385d;
  --aqua: #2bb7e6;
  --rescue: #e0442b;

  --gold: #e3b622;
  --silver: #b8c0c8;
  --bronze: #c27c45;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r: 6px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; }
ul { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .92;
}
.h1 { font-size: clamp(48px, 8.5vw, 112px); }
.h2 { font-size: clamp(36px, 5.2vw, 64px); }
.h3 { font-size: clamp(26px, 3vw, 34px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 4px; background: var(--yellow); border-radius: 2px; }
.on-dark .eyebrow { color: var(--muted-inv); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: var(--muted-inv); }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 .08em; }
.on-dark .hl { background: none; color: var(--yellow); padding: 0; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--muted-inv); }

/* ---------- Lane rope motif ---------- */
.lane {
  height: 8px; border-radius: 99px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 26px, var(--ink) 26px 34px);
}
.lane--pool { background: repeating-linear-gradient(90deg, var(--aqua) 0 26px, #fff 26px 34px); }
.lane--rescue { background: repeating-linear-gradient(90deg, var(--rescue) 0 26px, #fff 26px 34px); }
.lane--thin { height: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff36a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(127,127,127,.12); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }
.link-arrow:hover { border-color: var(--ink); }
.on-dark .link-arrow:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid #000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: .9; }
.brand-text span:first-child { font-size: 25px; letter-spacing: .02em; }
.brand-text span:last-child { font-size: 14px; letter-spacing: .3em; color: var(--yellow); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.site-nav > ul > li { position: relative; display: flex; align-items: center; }
.site-nav a { text-decoration: none; }
.site-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: #e9ecef;
}
.site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current="page"], .site-nav > ul > li > a.is-section { color: var(--yellow); }
.tag-soon {
  font-family: var(--body); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  background: var(--ink-3); color: var(--muted-inv); padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
}
.submenu-toggle {
  background: none; border: 0; color: #e9ecef; cursor: pointer; padding: 6px 4px; margin-left: -10px; font-size: 13px;
}
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s ease;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.submenu a:hover { background: var(--sand); }
.submenu a small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.nav-cta { min-height: 42px; font-size: 16px; padding: 0 18px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: #fff; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; margin: 0 auto;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 18px; padding: 18px var(--gutter) 32px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
  .site-nav > ul > li > a { font-size: 26px; padding: 14px 0; flex: 1; }
  .submenu-toggle { margin: 0; font-size: 18px; padding: 14px 6px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; color: #fff; padding: 0 0 12px; display: none; width: 100%;
  }
  .has-menu.is-open .submenu { display: block; }
  .submenu a { padding: 8px 0 8px 14px; color: #e9ecef; }
  .submenu a small { color: var(--muted-inv); }
  .submenu a:hover { background: transparent; color: var(--yellow); }
  .nav-cta { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Water polo sub navigation (tabs) ---------- */
.subnav { background: var(--yellow); color: var(--ink); position: sticky; top: var(--header-h); z-index: 40; }
.subnav-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; min-height: 52px; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-label {
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 18px;
  padding-right: 14px; margin-right: 6px; border-right: 2px solid rgba(0,0,0,.2); white-space: nowrap;
}
.subnav a {
  white-space: nowrap; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: .05em; padding: 8px 14px; border-radius: 999px;
}
.subnav a:hover { background: rgba(0,0,0,.08); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--yellow); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #fff; }
.section--ink2 { background: var(--ink-2); color: #fff; }
.section--yellow { background: var(--yellow); color: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head > div { max-width: 720px; }
.section-head .lead { margin: 0; }

/* ---------- Home hero ---------- */
.hero-home { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-home .grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(86vh, 820px);
}
.hero-home .copy { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 5vw, 64px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-home .title { font-size: clamp(64px, 10.5vw, 150px); margin: 0 0 22px; }
.hero-home .title span { display: block; }
.hero-home .title .y { color: var(--yellow); }
.hero-home .lead { color: #c9d0d6; margin-bottom: 30px; }
.hero-home .disciplines { list-style: none; display: grid; gap: 10px; margin: 0 0 32px; max-width: 520px; }
.hero-home .disciplines a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 18px; border: 1px solid var(--line-dark); border-radius: 12px; transition: border-color .15s ease, background .15s ease;
}
.hero-home .disciplines a:hover { border-color: var(--yellow); background: rgba(242,228,0,.06); }
.hero-home .disciplines strong { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 26px; font-weight: 800; letter-spacing: .01em; }
.hero-home .disciplines .note { font-size: 14px; color: var(--muted-inv); }
.status { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.status--live { background: var(--yellow); color: var(--ink); }
.status--soon { background: transparent; border: 1px solid var(--muted-inv); color: var(--muted-inv); }
.hero-home .photo { position: relative; min-height: 360px; }
.hero-home .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-home .photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(11,14,18,0) 22%);
}
.hero-home .photo .caption {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; background: rgba(11,14,18,.78); color: #dfe4e8;
  font-size: 13px; padding: 6px 10px; border-radius: 6px;
}
.hero-home .lane { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; height: 10px; z-index: 3; }
@media (max-width: 900px) {
  .hero-home .grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-home .photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-home .photo::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(11,14,18,0) 35%); }
  .hero-home .copy { padding: 8px var(--gutter) 56px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,14,18,.92) 0%, rgba(11,14,18,.7) 45%, rgba(11,14,18,.15) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(56px, 8vw, 100px); }
.page-hero h1 { font-size: clamp(56px, 9vw, 124px); margin-bottom: 18px; }
.page-hero .lead { color: #d3d9de; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero--short .wrap { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(44px, 6vw, 72px); }
@media (max-width: 700px) {
  .page-hero .bg::after { background: linear-gradient(0deg, rgba(11,14,18,.95) 10%, rgba(11,14,18,.55) 100%); }
}

/* ---------- Discipline mosaic (home) ---------- */
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile {
  position: relative; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate;
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 32px);
  background: var(--ink);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,10,13,.9) 0%, rgba(8,10,13,.35) 55%, rgba(8,10,13,.1) 100%); }
a.tile:hover img { transform: scale(1.03); }
.tile--big { grid-row: span 2; min-height: 560px; }
.tile h3 { font-size: clamp(38px, 4.6vw, 64px); margin: 10px 0 8px; }
.tile p { color: #d8dde2; max-width: 46ch; margin-bottom: 14px; }
.tile .status { align-self: flex-start; }
.tile--soon h3 { font-size: clamp(32px, 3.4vw, 46px); }
.tile--swim::after, .tile--rescue::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; }
.tile--swim::after { background: repeating-linear-gradient(90deg, var(--aqua) 0 26px, #fff 26px 34px); }
.tile--rescue::after { background: repeating-linear-gradient(90deg, var(--rescue) 0 26px, #fff 26px 34px); }
.tile .arms { display: flex; flex-wrap: wrap; gap: 10px; }
.arm {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; background: rgba(11,14,18,.65);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 14px;
}
.arm:hover { border-color: var(--yellow); }
.arm img { position: static; width: auto; height: 30px; z-index: auto; transform: none !important; }
.arm span { font-size: 14px; color: #c9d0d6; line-height: 1.3; }
.arm strong { display: block; color: #fff; font-size: 16px; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr; }
  .tile--big { grid-row: auto; min-height: 480px; }
}

/* ---------- Pathway: a 25 m lane ---------- */
.pool-lane { position: relative; margin-top: 12px; }
.pool-lane .marks { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.pool-lane .lane { height: 10px; }
.stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 26px; counter-reset: stage; }
.stage { position: relative; padding-top: 18px; }
.stage::before {
  counter-increment: stage; content: counter(stage, decimal-leading-zero);
  position: absolute; top: -34px; left: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 14px;
  display: grid; place-items: center; border: 3px solid var(--paper);
}
.section--sand .stage::before { border-color: var(--sand); }
.stage h3 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 800; font-size: 25px; margin-bottom: 4px; }
.stage .age { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pool); margin-bottom: 8px; display: block; }
.stage p { font-size: 15px; color: var(--muted); margin: 0; }
.stage--elite h3 { color: var(--ink); }
.stage--elite { }
.stage--elite .age { color: #8a7f00; }
@media (max-width: 900px) {
  .pool-lane .marks, .pool-lane > .lane { display: none; }
  .stages { grid-template-columns: 1fr; gap: 0; border-left: 8px solid transparent; border-image: repeating-linear-gradient(180deg, var(--yellow) 0 26px, var(--ink) 26px 34px) 8; padding-left: 26px; margin-top: 0; }
  .stage { padding: 0 0 26px; }
  .stage::before { top: 0; left: -45px; }
}

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
.split .media { position: relative; }
.split .media img { border-radius: var(--r); width: 100%; object-fit: cover; }
.media-stack { display: grid; grid-template-columns: 1fr .7fr; gap: 14px; align-items: end; }
.media-stack img:first-child { aspect-ratio: 4 / 5; }
.media-stack img:last-child { aspect-ratio: 1; margin-bottom: 40px; }
@media (max-width: 860px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
}

/* ---------- Facts list ---------- */
.facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts .k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-size: 15px; padding-top: 2px; }
.on-dark .facts { border-color: var(--line-dark); }
.on-dark .facts li { border-color: var(--line-dark); }
.on-dark .facts .k { color: var(--muted-inv); }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Programme rows ---------- */
.programmes { display: grid; gap: 18px; }
.programme {
  display: grid; grid-template-columns: 280px 1fr auto; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; padding-right: 28px;
}
.programme img { border-radius: 10px; aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.programme h3 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 800; font-size: 32px; margin-bottom: 6px; }
.programme p { color: var(--muted); margin-bottom: 10px; }
.programme ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.programme li { font-size: 13px; font-weight: 500; background: var(--sand); border-radius: 99px; padding: 4px 10px; }
@media (max-width: 860px) {
  .programme { grid-template-columns: 1fr; padding: 14px 14px 22px; gap: 16px; }
  .programme > div, .programme > a { padding: 0 8px; }
  .programme .btn { justify-self: start; }
}

/* ---------- Squads table ---------- */
.squads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.squad { border-radius: var(--r); padding: 26px; background: var(--ink-2); color: #fff; }
.squad h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 30px; margin-bottom: 4px; }
.squad .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; list-style: none; }
.squad .chips li { font-family: var(--display); font-weight: 800; font-size: 22px; background: var(--yellow); color: var(--ink); border-radius: 8px; padding: 2px 12px; }
.squad--pre .chips li { background: #fff; }
.squad p { color: var(--muted-inv); margin: 0; }
@media (max-width: 700px) { .squads { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; list-style: none; }
.person { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.person .mono {
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--yellow);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px;
}
.person h3 { font-size: 17px; margin: 2px 0 2px; font-family: var(--body); font-weight: 700; }
.person p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.45; }
.on-dark .person { background: var(--ink-2); border-color: var(--line-dark); }
.on-dark .person .mono { background: var(--yellow); color: var(--ink); }
.on-dark .person p { color: var(--muted-inv); }
.coach-feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.coach-feature .person { grid-template-columns: 64px 1fr; padding: 24px; }
.coach-feature .person .mono { width: 64px; height: 64px; font-size: 24px; }
.coach-feature .person h3 { font-size: 20px; }
.coach-feature .person .role { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--yellow); margin-bottom: 8px; }
.coach-feature .person p.bio { font-size: 15px; }
@media (max-width: 760px) { .coach-feature { grid-template-columns: 1fr; } }

/* ---------- Values acrostic ---------- */
.acrostic { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-radius: var(--r); overflow: hidden; }
.acrostic li { background: var(--ink); color: #fff; padding: 22px 18px 24px; border-right: 1px solid var(--line-dark); }
.acrostic li:last-child { border-right: 0; }
.acrostic .letter { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 86px; line-height: .9; color: var(--yellow); display: block; }
.acrostic .word { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 18px; }
@media (max-width: 760px) {
  .acrostic { grid-template-columns: 1fr; }
  .acrostic li { display: flex; align-items: baseline; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 12px 18px; }
  .acrostic .letter { font-size: 48px; }
}

/* ---------- Trips / tours strip ---------- */
.trips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 14px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-color: var(--yellow) var(--ink-3); }
.trip { scroll-snap-align: start; margin: 0; background: var(--ink-2); border-radius: 12px; overflow: hidden; }
.trip img { aspect-ratio: 21 / 16; object-fit: cover; width: 100%; }
.trip figcaption { padding: 12px 14px 14px; font-size: 14px; color: var(--muted-inv); }
.trip figcaption strong { display: block; color: #fff; font-size: 16px; }
.trip .flag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }


/* ---------- Venues ---------- */
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.venue { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.venue img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.venue .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.venue h3 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 800; font-size: 30px; margin: 0; }
.venue .who { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pool); }
.venue address { font-style: normal; color: var(--muted); margin-bottom: 8px; }
.venue .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .venues { grid-template-columns: 1fr; } }

/* ---------- Scoreboard (results teaser) ---------- */
.scoreboard { display: grid; gap: 10px; list-style: none; }
.score-row {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 18px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 18px; color: #fff; text-decoration: none;
}
.score-row .yr { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--muted-inv); }
.score-row .ev strong { display: block; font-size: 17px; }
.score-row .ev span { font-size: 14px; color: var(--muted-inv); }

/* ---------- Medal badge ---------- */
.medal {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; font-size: 16px; padding: 5px 12px 5px 6px; border-radius: 99px; white-space: nowrap;
  background: var(--ink-3); color: #fff;
}
.medal i { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 13px; color: var(--ink); background: #fff; }
.medal--gold i { background: var(--gold); }
.medal--silver i { background: var(--silver); }
.medal--bronze i { background: var(--bronze); color: #fff; }
.medal--gold { box-shadow: inset 0 0 0 1px rgba(227,182,34,.6); }


.filters { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 99px; padding: 0 16px; min-height: 40px; cursor: pointer;
  font: 500 14px/1 var(--body);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

/* ---------- Gallery ---------- */
.masonry { columns: 4 260px; column-gap: 12px; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; position: relative; border-radius: 10px; overflow: hidden; background: var(--sand); }
.masonry button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.masonry button:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
.masonry img { width: 100%; transition: transform .4s ease, opacity .2s ease; }
.masonry figure:hover img { transform: scale(1.025); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: 13px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transition: opacity .2s ease; }
.masonry figure:hover figcaption, .masonry button:focus-visible + figcaption { opacity: 1; }
.masonry figure[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5,7,9,.94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 140px); max-width: min(1400px, 100%); width: auto; border-radius: 8px; }
.lightbox p { color: #dfe4e8; text-align: center; margin: 12px 0 0; font-size: 15px; }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 22px; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: var(--yellow); color: var(--ink); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- PDC (elite) theme ---------- */
.theme-pdc { background: var(--ink); color: #fff; }
.theme-pdc .section--sand { background: var(--ink-2); }
.theme-pdc .lead { color: var(--muted-inv); }
.theme-pdc .eyebrow { color: var(--muted-inv); }
.pdc-mark { height: clamp(54px, 7vw, 84px); width: auto; margin-bottom: 26px; }
.tests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.test { border: 1px solid var(--line-dark); border-radius: var(--r); padding: 24px; background: var(--ink-2); }
.test h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 28px; color: var(--yellow); margin-bottom: 10px; }
.test ul { list-style: none; display: grid; gap: 8px; }
.test li { padding-left: 18px; position: relative; color: #d6dce1; font-size: 15px; }
.test li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 3px; background: var(--yellow); }
@media (max-width: 760px) { .tests { grid-template-columns: 1fr; } }

.timetable-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--r); }
.timetable { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 14px; }
.timetable th, .timetable td { padding: 12px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
.timetable thead th { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--muted-inv); background: var(--ink-2); }
.timetable tbody th { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 24px; color: var(--yellow); white-space: nowrap; }
.timetable tbody tr:last-child th, .timetable tbody tr:last-child td { border-bottom: 0; }
.timetable td span { display: block; white-space: nowrap; }
.timetable .land { color: var(--muted-inv); }
.timetable .rest { color: #4c5560; }

.rules { list-style: none; counter-reset: rule; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: #d6dce1; font-size: 15px; }
.rules li::before { content: counter(rule, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--yellow); line-height: 1.1; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Coming soon pages ---------- */
.soon-hero { position: relative; overflow: hidden; color: #fff; background: var(--pool-deep); }
.soon-hero--rescue { background: #3a120b; }
.soon-hero .bg { position: absolute; inset: 0; }
.soon-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.soon-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,30,52,.95) 0%, rgba(4,30,52,.6) 55%, rgba(4,30,52,.2) 100%); }
.soon-hero--rescue .bg::after { background: linear-gradient(100deg, rgba(40,10,5,.95) 0%, rgba(40,10,5,.65) 55%, rgba(40,10,5,.25) 100%); }
.soon-hero .wrap { position: relative; padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(56px, 8vw, 110px); }
.soon-hero h1 { font-size: clamp(60px, 10vw, 132px); margin-bottom: 18px; }
.soon-hero .lead { color: #d5e3ee; }
.soon-stamp {
  display: inline-block; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .1em;
  font-size: 18px; border: 3px solid currentColor; padding: 4px 14px; border-radius: 6px; transform: rotate(-3deg); margin-bottom: 22px; color: var(--aqua);
}
.soon-hero--rescue .soon-stamp { color: #ff8a73; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); color: var(--text); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--body); color: var(--text); background: #fff;
  border: 1.5px solid #cfd4d9; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242,228,0,.6); }
.form .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form .fine { font-size: 13px; color: var(--muted); margin: 0; }
.form .done { background: #f3fbe9; border: 1px solid #bfe3a0; color: #24480e; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.form .done[hidden] { display: none; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 28px; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.contact-list .k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list a { font-weight: 500; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); color: var(--ink); position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.cta-band h2 { font-size: clamp(40px, 5.5vw, 72px); margin: 0 0 10px; }
.cta-band p { margin: 0; max-width: 56ch; font-size: 18px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .kids { position: absolute; right: -40px; bottom: -10px; width: 300px; opacity: .14; pointer-events: none; filter: grayscale(1); }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Community band ---------- */
.press { border-radius: var(--r); box-shadow: 0 20px 50px rgba(0,0,0,.18); transform: rotate(-1.2deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd5db; font-size: 15px; }
.site-footer .lane { border-radius: 0; height: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding: 56px 0 40px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted-inv); max-width: 34ch; }
.site-footer h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 16px; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #cfd5db; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; display: grid; gap: 10px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.socials a:hover { border-color: var(--yellow); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-base { border-top: 1px solid var(--line-dark); padding: 18px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #8c96a0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: scale(1.05); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid #d9dbd3; }
.faq details { border-bottom: 1px solid #d9dbd3; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: -4px 0 18px; max-width: 62ch; }
.theme-pdc .faq, .theme-pdc .faq details { border-color: var(--line-dark); }
.theme-pdc .faq details p { color: var(--muted-inv); }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.center { text-align: center; }
.callout { border-left: 6px solid var(--yellow); background: var(--sand); padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: 15px; }
.on-dark .callout, .theme-pdc .callout { background: var(--ink-2); color: #d6dce1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; display: grid; gap: 0; border-left: 6px solid transparent; border-image: repeating-linear-gradient(180deg, var(--yellow) 0 22px, var(--ink) 22px 30px) 6; padding-left: 24px; }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 0 0 26px; }
.timeline .yr { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 30px; line-height: 1; }
.timeline h3 { font-size: 18px; margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 460px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Lightbox figure ---------- */
.lightbox figure { margin: 0; display: grid; justify-items: center; }
.theme-pdc .section--sand .trip { background: var(--ink-3); }

/* ---------- Medals page ---------- */
.medal-sentence {
  font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.05; max-width: 22ch; margin: 0 0 26px; color: #e9edf0;
}
.medal-sentence b { color: var(--yellow); font-weight: 800; }

.medal-table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.medal-table { width: 100%; border-collapse: collapse; }
.medal-table th { text-align: left; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--muted); background: var(--sand); padding: 12px 18px; }
.medal-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.medal-table td.yr { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 28px; width: 90px; }
.medal-table td strong { display: block; font-size: 17px; }
.medal-table .sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.medal-table td .medal { background: var(--ink); }
.medal-table td.src { font-size: 13px; color: var(--muted); width: 160px; }
.medal-table td.src a { color: var(--muted); }
.medal-table tbody tr:hover { background: #fbfbf6; }
.medal-table-wrap .empty { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }
@media (max-width: 700px) {
  .medal-table thead { display: none; }
  .medal-table, .medal-table tbody, .medal-table tr, .medal-table td { display: block; width: auto !important; }
  .medal-table tr { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
  .medal-table tbody tr:first-child { border-top: 0; }
  .medal-table td { border: 0; padding: 0; }
  .medal-table td.yr { grid-row: span 2; font-size: 26px; }
  .medal-table td.src { grid-column: 2; }
}

/* ---------- Roster table (national team page) ---------- */
.on-dark .test strong { color: #fff; }
.feature-photo { margin: 0; }
.feature-photo img { border-radius: var(--r); width: 100%; }
.feature-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- National competitions list ---------- */
.chip--ghost { background: transparent; border-style: dashed; }
.natcomp-list .natcomp-list .natcomp-group { display: grid; gap: 10px; }
.natcomp { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.natcomp summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 230px 150px; gap: 16px; align-items: center; padding: 14px 18px;
}
.natcomp summary::-webkit-details-marker { display: none; }
.natcomp summary:hover { background: #fbfbf6; border-radius: var(--r); }
.nc-main strong { display: block; font-size: 17px; }
.nc-main .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.nc-kind { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.nc-kind--team { background: var(--ink); color: var(--yellow); }
.nc-kind--squad { background: var(--sand); color: var(--muted); border: 1px solid var(--line); }
.nc-result { font-size: 14px; color: var(--muted); }
.nc-result--gold, .nc-result--silver, .nc-result--bronze { font-weight: 700; color: var(--text); padding-left: 18px; position: relative; }
.nc-result--gold::before, .nc-result--silver::before, .nc-result--bronze::before { content: ""; position: absolute; left: 0; top: .3em; width: 12px; height: 12px; border-radius: 50%; }
.nc-result--gold::before { background: var(--gold); }
.nc-result--silver::before { background: var(--silver); }
.nc-result--bronze::before { background: var(--bronze); }
.nc-count { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; text-align: right; white-space: nowrap; }
.nc-count i { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 2px 3px 10px; transition: transform .15s ease; }
.natcomp[open] .nc-count i { transform: rotate(225deg); margin-bottom: -1px; }
.nc-body { padding: 0 18px 16px; border-top: 1px dashed var(--line); }
.nc-players { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.nc-players li { background: var(--sand); border-radius: 99px; padding: 5px 12px; font-weight: 500; font-size: 15px; }
.nc-players li span { color: var(--muted); font-weight: 400; font-size: 13px; }
.nc-body .src { font-size: 12px; color: var(--muted); margin: 0; }
.nc-body .src a { color: var(--muted); }
@media (max-width: 860px) {
  .natcomp summary { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .nc-main { grid-column: 1 / -1; }
  .nc-count { text-align: left; }
}

/* ---------- MVP vs selection table ---------- */
.corr-summary { font-size: clamp(17px, 1.6vw, 20px); max-width: 70ch; margin: 0 0 22px; }
.corr-summary b { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.corr-table td { vertical-align: top; font-size: 15px; }
.corr-table td:first-child { width: 230px; }
.corr-table td:nth-child(3), .corr-table td:nth-child(4) { width: 22%; }
.corr-table td b { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; display: block; }
.corr-table td b.zero { color: #b8bcc0; }
.corr-table .awards { list-style: none; display: grid; gap: 6px; }
.corr-table .aw { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 5px; padding: 2px 6px; margin-right: 4px; }
.corr-table .aw--mvp { background: var(--yellow); color: var(--ink); }
.corr-table .aw--best { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .corr-table thead { display: none; }
  .corr-table tr { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .corr-table td { display: block; width: auto !important; padding: 4px 0; border: 0; }
  .corr-table td:nth-child(3)::before { content: "National squad"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .corr-table td:nth-child(4)::before { content: "National team"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}


/* ---------- Classes that replaced inline styles ---------- */
.split--top { align-items: start; }
.media-stack img { object-fit: cover; }
.arm img.wordmark { height: 16px; }
.soon-hero .lane { border-radius: 0; }
.split > img { border-radius: var(--r); width: 100%; }
.contact-title { font-size: clamp(52px, 7vw, 92px); }
.band-text { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; margin: 0; max-width: 62ch; }
.band-text b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.25em; }
.timetable--dsa { min-width: 720px; }
.timetable--dsa tbody th { font: 600 17px/1.35 var(--body); font-style: normal; color: #fff; }

/* ---------- Guide page (water polo in Singapore) ---------- */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 70px); border-left: 4px solid var(--yellow); padding-left: 16px; }
.toc-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; display: grid; gap: 6px; }
.toc a { text-decoration: none; font-size: 15px; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 14px; scroll-margin-top: 140px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li, .prose dd { font-size: 17px; }
.answer { font-size: 19px !important; line-height: 1.6; background: var(--sand); border-left: 6px solid var(--yellow); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; }
.steps { padding-left: 22px; display: grid; gap: 10px; }
.tidy { padding-left: 20px; display: grid; gap: 8px; }
.defs dt { font-weight: 700; font-size: 18px; margin-top: 18px; }
.defs dd { margin: 4px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.data-table caption { text-align: left; font-weight: 700; padding: 12px 16px 4px; }
.data-table th { text-align: left; background: var(--sand); padding: 10px 14px; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--muted); }
.data-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.rank-table td:nth-child(3) { font-family: var(--display); font-weight: 800; font-size: 22px; }
.rank-table tr.is-pacer { background: #fffbd6; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- Proof and partners ---------- */
.reasons { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.reasons li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.reasons h3 { font-size: 20px; margin: 0 0 6px; }
.reasons p { margin: 0; color: var(--muted); }
.reasons a { font-weight: 500; }
.press-note { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.trial-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: ts; border-top: 6px solid var(--ink); }
.trial-steps li { counter-increment: ts; padding: 18px 18px 0 0; }
.trial-steps li::before { content: "Step " counter(ts); display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pool); margin-bottom: 6px; }
.trial-steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.trial-steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .trial-steps { grid-template-columns: 1fr 1fr; gap: 0 18px; } }
@media (max-width: 520px) { .trial-steps { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-home .btn-line { color: #fff; }
.faq--dark, .faq--dark details { border-color: var(--line-dark); }
.faq--dark summary { color: #fff; }
.faq--dark details p { color: var(--muted-inv); }

/* ---------- Mobile and emphasis pass ---------- */
/* Key facts: marker highlight on light backgrounds, yellow text on dark */
mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); color: inherit; padding: 0 .05em; font-weight: 700; }
.on-dark mark, .page-hero mark, .hero-home mark { background: none; color: var(--yellow); }
.hero-home .hero-actions { margin: 0 0 26px; }

/* Guide page: let the article column shrink so wide tables scroll inside their box */
.prose { min-width: 0; }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); } }

/* Bigger tap targets */
.site-footer ul a, .site-footer address a { display: inline-block; padding: 8px 0; }
.site-footer ul { gap: 0; }
.link-arrow { display: inline-block; padding: 9px 0 7px; }
.subnav a { padding: 12px 14px; }
.submenu a { padding: 12px; }

/* Readable labels */
.status, .trip .flag { font-size: 13px; }
.nc-kind, .corr-table .aw { font-size: 12px; }
.tag-soon { font-size: 11px; }

/* Collapsible event lists in the national-selection table */
.sel summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--pool); list-style: none; padding: 12px 0; }
.sel summary::-webkit-details-marker { display: none; }
.sel summary::after { content: " +"; }
.sel[open] summary::after { content: " \2212"; }

/* Sticky action bar on phones */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 14, 18, .96); border-top: 1px solid #000;
  }
  .mobile-cta .btn { min-height: 48px; font-size: 17px; padding: 0 12px; }
  .btn-wa { background: #25d366; color: #fff; }
  .wa-float { display: none; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.nav-open .mobile-cta { display: none; }

  /* Shorter home page on phones */
  .tile--big { min-height: 420px; }
  .tile { min-height: 220px; }
  
  /* Results table: medal badge already says the place */
  .medal-table td .medal + .sub { display: none; }
  .medal-table tr { padding: 12px 14px; }
}
@media (max-width: 520px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 26px; }
  .lead { font-size: 17px; }
}

@media (max-width: 760px) {
  .corr-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .corr-table td:nth-child(1), .corr-table td:nth-child(2) { grid-column: 1 / -1; }
}
.why-photo { margin-top: 32px; border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.reasons h3 { font-size: 21px; }
@media (max-width: 860px) { .why-photo { display: none; } }
.submenu-toggle { padding-left: 12px; padding-right: 12px; }

/* ---------- National competition years ---------- */
.natyear { margin-top: 14px; }
.natyear > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 0; min-height: 52px; }
.natyear > summary::-webkit-details-marker { display: none; }
.natyear > summary .display { font-size: 40px; line-height: 1; }
.natyear > summary .lane { flex: 1; height: 5px; }
.natyear-count { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; color: var(--muted); white-space: nowrap; }
.natyear-count::after { content: "+"; margin-left: 8px; font-size: 20px; color: var(--text); }
.natyear[open] .natyear-count::after { content: "\2212"; }
.natyear > .natcomp-group { padding-bottom: 8px; }

/* ---------- Phones first ---------- */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .brand img { width: 32px; }
  .brand-text span:first-child { font-size: 22px; }
  .subnav { position: static; }
  .hero-home .disciplines { display: none; }
  .page-hero h1 { font-size: clamp(42px, 12vw, 124px); }
  .page-hero .wrap { padding-top: 56px; padding-bottom: 44px; }
  .soon-hero h1 { font-size: clamp(44px, 12vw, 132px); }
  .soon-hero .wrap { padding-top: 56px; padding-bottom: 48px; }
  .tile--big { min-height: 380px; }
  .tile { min-height: 200px; }
  .programme img { aspect-ratio: 16 / 9; }
  .cta-band .kids { display: none; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .masonry figure { margin-bottom: 8px; }

  /* Medal table: two-line rows */
  .medal-table tr { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 12px 14px; }
  .medal-table td.yr { grid-column: 1; grid-row: 1 / span 2; font-size: 22px; }
  .medal-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .medal-table td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .medal-table td.src { grid-column: 2 / span 2; grid-row: 2; font-size: 12px; }
  .medal-table td strong { font-size: 15px; }
  .medal-table .sub { font-size: 13px; }
  .medal-table td .medal { font-size: 13px; padding: 3px 9px 3px 4px; }
  .medal-table td .medal i { width: 18px; height: 18px; font-size: 11px; }
}
@media (max-width: 600px) {
  .people { grid-template-columns: 1fr 1fr; gap: 8px; }
  .people .person { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .people .person .mono { width: 40px; height: 40px; font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 40px 0 28px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .cta-band .wrap { padding-top: 40px; padding-bottom: 40px; }
}

[hidden] { display: none !important; }
.show-more { margin-top: 14px; width: 100%; }
.on-dark .show-more, .theme-pdc .show-more { color: #fff; }
.brand { min-height: 44px; }

/* ---------- Who Pacer works with ---------- */
.works-with { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 18px; }
.works-with li { display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 15px; }
.works-with img { width: 100%; max-width: 200px; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.works-also { margin-top: 22px; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .works-with { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
}

/* ---------- Pacer in the news ---------- */
.news-list { list-style: none; padding: 0; border-top: 1px solid var(--line); margin-top: 18px; }
.news-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--muted); }
.news-src { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.news-list a { font-weight: 700; font-size: 18px; line-height: 1.3; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.news-list a + p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .news-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}
