/* =========================================================
   Portsmouth United Volleyball Club — website styles
   Brand: Guidelines v1.2 (brand owner: Sio Tsvetanov)
   Colours, type and the sail-lines device follow the guidelines.
   Rule of thumb: Star Gold is never used as text on white/light.
   ========================================================= */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }

/* ---------- Brand tokens ---------- */
:root {
  --spinnaker: #003DA5;
  --spinnaker-dark: #00307F;
  --white: #FFFFFF;
  --navy: #0B1D3F;
  --gold: #FFB81C;
  --mist: #E8EEF8;
  --shingle: #5B6477;
  --ink: #0B1D3F;
  --line: #D3DCEB;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 29, 63, .10);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--spinnaker); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--spinnaker-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: .005em; margin: 0 0 .45em; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.05; }
h4 { font-size: 1.15rem; }

.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--spinnaker); margin-bottom: .9rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--shingle); max-width: 60ch; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #DCE4F2; }
.section--blue { background: var(--spinnaker); color: #E5ECF8; }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--navy .eyebrow, .section--blue .eyebrow { color: var(--gold); }
.section--navy .lead, .section--blue .lead { color: #C9D5EA; }
.section--navy a:not(.btn), .section--blue a:not(.btn) { color: var(--white); }

/* Sail lines graphic device (10–15% opacity) */
.sail-lines { position: relative; isolation: isolate; overflow: hidden; }
.sail-lines::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .12; pointer-events: none; }
.section--mist.sail-lines::before { background-image: url("../img/sail-lines-blue.svg"); opacity: .10; }

/* Gold rule */
.rule { width: 72px; height: 5px; background: var(--gold); border: 0; margin: 1.4rem 0; border-radius: 2px; }
.section--mist .rule, .section:not(.section--navy):not(.section--blue) .rule--blue { background: var(--spinnaker); }

/* Slogan */
.slogan { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.slogan .gold { color: var(--gold); }
/* On light grounds "One team." is Spinnaker Blue — gold is never text on white */
.on-light .slogan .gold, .slogan.on-light .gold { color: var(--spinnaker); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, background-color .15s, color .15s, border-color .15s; line-height: 1; will-change: transform; }
.btn:hover, .btn:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(11, 29, 63, .22); }
.btn:active { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(11, 29, 63, .18); transition-duration: .08s; }
.section--navy .btn:hover, .section--blue .btn:hover, .hero .btn:hover, .card--navy .btn:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #FFC847; color: var(--navy); }
.btn--blue { background: var(--spinnaker); color: var(--white); }
.btn--blue:hover { background: var(--spinnaker-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn--outline { border-color: var(--spinnaker); color: var(--spinnaker); }
.btn--outline:hover { background: var(--spinnaker); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Placeholders (must be replaced before launch) ---------- */
.tbc { background: #FFF4D6; color: #6B4A00; outline: 2px dashed #C98A00; outline-offset: 1px; border-radius: 4px; padding: 0 .3em; font-style: normal; font-weight: 600; }
.section--navy .tbc, .section--blue .tbc, .site-footer .tbc, .hero .tbc { background: rgba(255,184,28,.18); color: #FFE3A3; outline-color: var(--gold); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 200; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: flex-start; height: var(--header-h); gap: 20px; position: relative; }
.site-header .nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .95; font-size: 1.12rem; letter-spacing: .01em; }
.brand-name span { display: block; }
.brand-name span + span { font-weight: 600; font-size: .78rem; letter-spacing: .2em; color: var(--spinnaker); margin-top: 3px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--mist); color: var(--spinnaker); }
.nav a[aria-current="page"] { color: var(--spinnaker); box-shadow: inset 0 -3px 0 var(--spinnaker); border-radius: 0; }
.nav .nav-cta a { background: var(--spinnaker); color: var(--white); border-radius: 999px; padding: 10px 18px; margin-left: 6px; box-shadow: none; }
.nav .nav-cta a { transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, background-color .15s; }
.nav .nav-cta a:hover { background: var(--spinnaker-dark); color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(11, 29, 63, .22); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 1120px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy); padding: 20px var(--gutter) 40px; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; overflow-y: auto; visibility: hidden; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { color: var(--white); font-size: 1.6rem; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .nav a:hover { background: none; color: var(--gold); }
  .nav a[aria-current="page"] { color: var(--gold); box-shadow: none; }
  .nav .nav-cta a { margin: 24px 0 0; text-align: center; background: var(--gold); color: var(--navy); border: 0; padding: 16px; }
  .nav .nav-cta a:hover { background: #FFC847; color: var(--navy); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #DCE4F2; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .12; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 25% 50%, rgba(0,61,165,.55), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(28px, 6vw, 80px); padding-top: clamp(48px, 8vw, 100px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero-media { min-width: 0; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: .1em; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.hero h1 span { display: block; }
.hero h1 .sub { font-size: .36em; font-weight: 600; letter-spacing: .24em; margin-top: .45em; color: #DCE4F2; }
.hero .slogan { font-size: clamp(1.5rem, 3.2vw, 2.2rem); color: var(--white); }
.hero p { max-width: 54ch; color: #C9D5EA; font-size: 1.15rem; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-media { order: 2; width: 100%; max-width: 640px; justify-self: center; text-align: left; }
  .hero .rule { margin-left: auto; margin-right: auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #C9D5EA; position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .12; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.4rem); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lead { color: #C9D5EA; }

/* ---------- Strip / ticker ---------- */
.strip { background: var(--spinnaker); color: var(--white); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 1.05rem; text-align: center; }
.strip .star { color: var(--gold); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); position: relative; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card--navy { background: var(--navy); border-color: var(--navy); color: #C9D5EA; }
.card--navy h3, .card--navy h4 { color: var(--white); }
.card--blue { background: var(--spinnaker); border-color: var(--spinnaker); color: #E5ECF8; }
.card--blue h3 { color: var(--white); }
.card-num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--spinnaker); margin-bottom: .2em; }
.card--navy .card-num, .card--blue .card-num { color: var(--gold); }
.value-card { border-top: 5px solid var(--spinnaker); }
.value-card .icon { width: 44px; height: 44px; color: var(--spinnaker); margin-bottom: 14px; }

.meta { list-style: none; padding: 0; margin: 0 0 1.2em; }
.meta li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meta li:last-child { border-bottom: 0; }
.meta .k { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--shingle); min-width: 96px; padding-top: 2px; }
.card--navy .meta li { border-color: rgba(255,255,255,.14); }
.card--navy .meta .k { color: #9FB0CF; }

/* Match card */
.match { text-align: center; }
.match .comp { font-family: var(--font-display); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .9rem; color: var(--gold); }
.match .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; }
.match .team { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--white); font-size: 1.25rem; line-height: 1.05; }
.match .team img { width: 72px; height: 72px; margin: 0 auto 10px; }
.match .vs { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--gold); }
.match .opp-badge { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.35); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: rgba(255,255,255,.6); }

/* Sessions */
.session { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.session:last-child { border-bottom: 0; }
.session .day { background: var(--spinnaker); color: var(--white); border-radius: 10px; text-align: center; padding: 12px 8px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.session .day small { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .12em; margin-top: 6px; opacity: .85; }
.session h3 { font-size: 1.35rem; margin-bottom: .25em; }
.session p { margin: 0; color: var(--shingle); }
@media (max-width: 480px) { .session { grid-template-columns: 1fr; } .session .day { justify-self: start; padding: 10px 16px; } }

/* Tables (fixtures) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
table.fixtures { width: 100%; border-collapse: collapse; min-width: 720px; }
.fixtures th, .fixtures td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fixtures thead th { background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.fixtures tbody tr:nth-child(even) { background: #F7F9FD; }
.fixtures tbody tr:last-child td { border-bottom: 0; }
.fixtures .us { font-weight: 600; color: var(--spinnaker); }
.pill { display: inline-block; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.pill--home { background: var(--spinnaker); color: var(--white); }
.pill--away { background: var(--mist); color: var(--spinnaker); }
@media (max-width: 720px) {
  .table-wrap { border: 0; box-shadow: none; background: none; overflow: visible; }
  table.fixtures { min-width: 0; }
  .fixtures thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fixtures, .fixtures tbody, .fixtures tr, .fixtures td { display: block; width: 100%; }
  .fixtures tr { background: var(--white) !important; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 8px 4px; box-shadow: var(--shadow); }
  .fixtures td { border: 0; padding: 6px 14px; display: grid; grid-template-columns: 84px 1fr; gap: 10px; justify-items: start; align-items: start; }
  .fixtures td::before { content: attr(data-label); font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--shingle); padding-top: 3px; }
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 88px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 20px; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--spinnaker); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--shingle); }

/* Tiers */
.tier { display: flex; flex-direction: column; }
.tier .price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--navy); margin: .1em 0 .6em; }
.card--navy.tier .price { color: var(--white); }
.tier ul { padding-left: 1.1em; margin: 0 0 1.4em; flex: 1; }
.tier li { margin-bottom: .4em; }
.tier .badge { position: absolute; top: -12px; right: 20px; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }

/* Contact tiles */
.contact-tile { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.contact-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11,29,63,.16); color: inherit; }
.contact-tile .ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--spinnaker); display: grid; place-items: center; }
.contact-tile .ic svg { width: 24px; height: 24px; }
.contact-tile h3 { font-size: 1.3rem; margin-bottom: .2em; }
.contact-tile p { margin: 0; color: var(--shingle); overflow-wrap: anywhere; }

/* Quote / story */
.story { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; }
.big-slogan { font-size: clamp(2.8rem, 8vw, 6rem); color: var(--white); }
.big-slogan span { display: block; }

/* Photo placeholder slot */
.photo-slot { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--spinnaker); position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.85); padding: 24px; }
.photo-slot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .15; }
.photo-slot img.crest { width: clamp(120px, 40%, 200px); margin: 0 auto 16px; }
.photo-slot figcaption { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .rule { margin-left: auto; margin-right: auto; }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.note { background: var(--mist); border-left: 5px solid var(--spinnaker); border-radius: 0 10px 10px 0; padding: 16px 20px; color: var(--navy); }
.note p:last-child { margin-bottom: 0; }

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.head.center { margin-left: auto; margin-right: auto; }
.head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AEBBD4; position: relative; overflow: hidden; isolation: isolate; font-size: .98rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .10; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-top: clamp(48px, 7vw, 80px); padding-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; letter-spacing: .14em; font-weight: 700; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: #DCE4F2; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.footer-brand img { width: 88px; height: 88px; flex-shrink: 0; }
.footer-brand .brand-name { color: var(--white); font-size: 1.45rem; }
.footer-brand .brand-name span + span { color: #AEBBD4; font-size: .82rem; }
.site-footer .slogan { font-size: 1.5rem; color: var(--white); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .88rem; color: #8E9DBB; }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .top { grid-template-columns: 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Print */
@media print { .site-header, .nav, .site-footer::before, .hero::before, .btn-row { display: none !important; } .hero, .page-hero, .section--navy { background: none !important; color: #000 !important; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--spinnaker); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--shingle); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Kit swatches */
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kit figure { margin: 0; text-align: center; }
.kit .swatch { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; }
.kit .swatch svg { width: 58%; }
.kit figcaption { margin-top: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; }
.kit figcaption small { display: block; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--shingle); font-size: .88rem; }

/* Coach */
.coach { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; max-width: 860px; }
.coach-avatar { width: 140px; height: 140px; border-radius: 50%; background: var(--spinnaker); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; letter-spacing: .02em; border: 5px solid var(--white); box-shadow: 0 0 0 3px var(--gold); object-fit: cover; }
.coach h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: .3em; }
.coach .eyebrow { margin-bottom: .4rem; }
.coach p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .coach { grid-template-columns: 1fr; justify-items: start; } .coach-avatar { width: 112px; height: 112px; font-size: 2.6rem; } }

/* ---------- Homepage video slider ---------- */
.slider { position: relative; }
.slider-viewport { overflow: hidden; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); background: #081530; touch-action: pan-y; }
.slider-track { display: flex; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.slide { flex: 0 0 100%; margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #081530; }
.slide > iframe, .slide > video, .slide > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; background: #000; }
.slide-poster { position: absolute; inset: 0; display: grid; place-items: center; isolation: isolate; background: linear-gradient(135deg, var(--spinnaker) 0%, #062A6E 55%, var(--navy) 100%); background-size: cover; background-position: center; }
.slide-poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .14; }
.slide-poster.has-image::before { background: linear-gradient(180deg, rgba(11,29,63,0) 45%, rgba(11,29,63,.75) 100%); opacity: 1; }
.play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, background-color .15s; }
.play svg { width: 36px; height: 36px; margin-left: 5px; }
.play:hover, .play:focus-visible { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 36px rgba(0, 0, 0, .4); background: #FFC847; }
.play[disabled] { cursor: default; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); box-shadow: none; transform: none; border: 2px dashed rgba(255, 255, 255, .45); }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; background: linear-gradient(180deg, rgba(8, 21, 48, 0) 0%, rgba(8, 21, 48, .85) 100%); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; pointer-events: none; transition: opacity .2s; }
.slide-caption .tbc { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .82rem; margin-left: 6px; white-space: nowrap; }
.slide.is-playing .slide-caption { opacity: 0; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s, background-color .15s, box-shadow .22s; }
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover, .slider-btn:focus-visible { transform: translateY(-3px); border-color: var(--white); background: rgba(255, 255, 255, .1); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.slider-dots { display: flex; gap: 6px; }
.slider-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .35); transition: width .25s ease, background-color .2s; }
.slider-dots button[aria-current="true"]::before { width: 26px; background: var(--gold); }
.slider-dots button:hover::before { background: rgba(255, 255, 255, .7); }
.slider-dots button[aria-current="true"]:hover::before { background: var(--gold); }
.slider.is-single .slider-controls { display: none; }
@media (max-width: 480px) { .play { width: 68px; height: 68px; } .play svg { width: 30px; height: 30px; } .slide-caption { font-size: .95rem; padding: 28px 14px 12px; } }

/* Committee */
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.4vw, 28px); }
.person { flex: 1 1 300px; max-width: 370px; text-align: center; padding-top: 34px; border-top: 5px solid var(--spinnaker); }
.person-avatar { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: var(--spinnaker); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: .02em; border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--gold); object-fit: cover; }
.person .eyebrow { margin-bottom: .35rem; }
.person h3 { margin-bottom: .45em; }
.person p { color: var(--shingle); font-size: 1rem; }

/* Affiliations band (site-wide, above footer) */
.affiliations { background: var(--white); border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 56px) 0; text-align: center; }
.affiliations .eyebrow { margin-bottom: 1.2rem; }
.affil-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.affil { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 0 1 420px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--navy); text-align: left; transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, border-color .15s; }
.affil:hover, .affil:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #B9C7E0; color: var(--navy); }
.affil-logo { flex-shrink: 0; width: 132px; height: 64px; display: flex; align-items: center; justify-content: center; }
.affil-logo:empty { display: none; }
.affil-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.affil-text strong { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; line-height: 1.1; }
.affil-text small { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--shingle); margin-top: 4px; }
.affil-note { margin: 16px 0 0; font-size: .9rem; }
.affil-note:empty { display: none; }
@media (max-width: 480px) { .affil { flex-basis: 100%; padding: 16px 18px; } .affil-logo { width: 96px; height: 52px; } }

/* Footer founded line */
.site-footer .founded { font-family: var(--font-display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; color: #8E9DBB; margin: .6em 0 0; }

/* Brand portal lock */
.lock-card { max-width: 560px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 48px); }
.lock-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--mist); color: var(--spinnaker); display: grid; place-items: center; }
.lock-icon svg { width: 34px; height: 34px; }
.lock-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.lock-card p { color: var(--shingle); }
.lock-card form { text-align: left; margin-top: 1.4rem; display: grid; gap: 10px; }
.lock-card label { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--navy); }
.pw-row { display: flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.pw-row:focus-within { border-color: var(--spinnaker); box-shadow: 0 0 0 3px rgba(0, 61, 165, .15); }
.pw-row input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: inherit; font-size: 1.05rem; color: var(--navy); background: transparent; outline: none; }
.pw-show { border: 0; background: var(--mist); color: var(--spinnaker); padding: 0 18px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; cursor: pointer; }
.pw-show:hover { background: #DCE5F4; }
.lock-card .btn { justify-content: center; margin-top: 6px; }
.pw-error { margin: 4px 0 0; color: #A4161A; font-weight: 600; text-align: center; }
.portal-bar { background: var(--mist); border-bottom: 1px solid var(--line); }
.portal-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--spinnaker); font-size: .95rem; }
.portal-bar .btn { padding: .6em 1.1em; font-size: .95rem; }

/* =========================================================
   v1.4 — Site search, loading intro, News, news slider
   ========================================================= */

/* ---------- Search (header) ---------- */
.site-search { position: static; }
.search-toggle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s, transform .22s cubic-bezier(.2,.8,.3,1); }
.search-toggle svg { width: 22px; height: 22px; }
.search-toggle:hover, .search-toggle:focus-visible { background: var(--mist); color: var(--spinnaker); transform: translateY(-2px); }
.search-panel { position: absolute; z-index: 5; top: 50%; right: var(--gutter); width: 44px; max-width: calc(100% - 2 * var(--gutter)); transform: translateY(-26px); opacity: 0; transition: width .32s cubic-bezier(.2,.8,.3,1), opacity .18s ease; }
.search-panel[hidden] { display: none; }
.search-panel.is-open { width: min(720px, calc(100% - 2 * var(--gutter) - 250px)); opacity: 1; }
.search-form { display: flex; align-items: center; height: 52px; background: var(--white); border: 2px solid var(--spinnaker); border-radius: 999px; box-shadow: 0 10px 30px rgba(11, 29, 63, .14); overflow: hidden; }
.search-icon { flex-shrink: 0; width: 48px; display: grid; place-items: center; color: var(--spinnaker); }
.search-icon svg { width: 20px; height: 20px; }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.05rem; color: var(--navy); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form input::placeholder { color: #8A93A6; }
.search-close { flex-shrink: 0; width: 48px; height: 100%; border: 0; background: transparent; color: var(--shingle); display: grid; place-items: center; cursor: pointer; }
.search-close svg { width: 20px; height: 20px; }
.search-close:hover, .search-close:focus-visible { color: var(--spinnaker); background: var(--mist); }
.search-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(11, 29, 63, .18); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.search-results:empty { display: none; }
.search-count, .search-hint { margin: 0; padding: 14px 20px 8px; font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--shingle); }
.search-hint { padding-bottom: 16px; letter-spacing: .04em; text-transform: none; font-family: var(--font-body); font-size: .95rem; font-weight: 400; }
.search-hint a { font-weight: 600; }
.search-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.search-list a { display: block; padding: 12px 12px; border-radius: 10px; text-decoration: none; color: var(--navy); }
.search-list a:hover, .search-list a:focus-visible { background: var(--mist); outline: none; }
.sr-page { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--spinnaker); }
.sr-head { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1.15; margin: 2px 0 4px; }
.sr-snip { display: block; color: var(--shingle); font-size: .94rem; line-height: 1.45; }
.sr-snip mark { background: #FFF1C9; color: var(--navy); border-radius: 3px; padding: 0 2px; }
@media (max-width: 1120px) {
  .search-panel.is-open { width: calc(100% - 2 * var(--gutter)); }
  .search-results { max-height: calc(100vh - var(--header-h) - 24px); }
}

/* ---------- Loading intro (homepage) ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--navy); display: grid; place-items: center; isolation: isolate; animation: pre-out .55s cubic-bezier(.7, 0, .3, 1) 2.1s forwards; }
.preloader::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .12; }
.preloader::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 45%, rgba(0, 61, 165, .55), transparent 70%); }
.preloader-inner { text-align: center; padding: 24px; }
.preloader-crest { width: clamp(120px, 24vw, 168px); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35)); animation: pre-crest .8s cubic-bezier(.2, .8, .3, 1.15) both; }
.preloader-bar { width: 180px; height: 4px; margin: 28px auto 18px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left center; animation: pre-bar 1.5s cubic-bezier(.4, 0, .2, 1) .35s forwards; }
.preloader-slogan { color: var(--white); font-size: clamp(1.2rem, 3vw, 1.5rem); margin: 0; opacity: 0; animation: pre-fade .6s ease .7s forwards; }
@keyframes pre-crest { from { opacity: 0; transform: scale(.7) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pre-bar { to { transform: scaleX(1); } }
@keyframes pre-fade { to { opacity: 1; } }
@keyframes pre-out { to { opacity: 0; visibility: hidden; transform: translateY(-2%); } }
.no-intro .preloader { display: none; }
@media (prefers-reduced-motion: reduce) { .preloader { display: none !important; } }
@media print { .preloader { display: none !important; } }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease; }
.news-card:hover, .news-card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 29, 63, .16); }
.news-card[hidden] { display: none; }
.news-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.news-card-link:hover { color: inherit; }
.news-card-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: var(--radius); }
.news-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.4rem; line-height: 1.05; margin: 8px 0 10px; }
.news-card p { color: var(--shingle); font-size: .98rem; margin-bottom: 16px; }
.news-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--spinnaker); }
.news-more svg { width: 16px; height: 16px; transition: transform .2s; }
.news-card:hover .news-more svg { transform: translateX(4px); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .88rem; color: var(--shingle); }
.news-cat { display: inline-block; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--spinnaker); text-decoration: none; }
a.news-cat:hover { background: var(--spinnaker); color: var(--white); }

.news-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: var(--white); background: linear-gradient(135deg, var(--spinnaker), #062A6E 60%, var(--navy)); }
.news-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .14; }
.news-cover--match-reports { background: linear-gradient(135deg, var(--navy), #10275A); }
.news-cover--team { background: linear-gradient(135deg, #0A2F7A, var(--navy)); }
.news-cover--training { background: linear-gradient(135deg, #0B4BC0, var(--spinnaker) 55%, #062A6E); }
.news-cover--partners { background: linear-gradient(135deg, var(--navy) 0%, #13306A 100%); }
.news-cover--partners .news-cover-icon { color: var(--gold); }
.news-cover-crest { width: 30%; max-width: 120px; height: auto; }
.news-cover-icon { width: 30%; max-width: 110px; height: auto; opacity: .95; }
.news-cover-label { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: rgba(255, 255, 255, .85); }

/* ---------- News listing ---------- */
.news-filters { display: none; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.js .news-filters { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s, background-color .15s, color .15s, box-shadow .22s; }
.chip:hover, .chip:focus-visible { transform: translateY(-2px); border-color: var(--spinnaker); box-shadow: 0 6px 14px rgba(11, 29, 63, .12); }
.chip[aria-pressed="true"] { background: var(--spinnaker); border-color: var(--spinnaker); color: var(--white); }
.chip-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--mist); color: var(--spinnaker); font-size: .8rem; letter-spacing: 0; }
.chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .2); color: var(--white); }
.news-empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--shingle); }
.news-empty[hidden] { display: none; }
.news-empty p { max-width: 52ch; margin: 0 auto 18px; font-size: 1.1rem; }

/* ---------- News post ---------- */
.post-wrap { max-width: 820px; }
.post-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin: 14px 0 12px; }
.post-hero .news-meta { color: #AEBBD4; }
.post-hero .news-cat { background: rgba(255, 255, 255, .12); color: var(--white); }
.post-hero a.news-cat:hover { background: var(--gold); color: var(--navy); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--gold); text-decoration: none; }
.back-link svg { width: 16px; height: 16px; transition: transform .2s; }
.back-link:hover { color: var(--white); }
.back-link:hover svg { transform: translateX(-3px); }
.post-section { padding-top: clamp(32px, 5vw, 56px); }
.post-cover { border-radius: var(--radius); margin-bottom: clamp(28px, 4vw, 40px); box-shadow: var(--shadow); }
.post-photo { margin: 0 0 clamp(28px, 4vw, 40px); border-radius: var(--radius); overflow: hidden; }
.post-photo img { width: 100%; height: auto; }
.post-body { font-size: 1.1rem; max-width: none; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.5em; }
.post-body ul { padding-left: 1.2em; }
.post-body li { margin-bottom: .5em; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-share-label { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--shingle); margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s, color .15s; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover, .share-btn:focus-visible { transform: translateY(-2px); border-color: var(--spinnaker); color: var(--spinnaker); }

/* ---------- Homepage news slider ---------- */
.news-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.news-home-head h2 { margin-bottom: 0; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--spinnaker); background: var(--white); color: var(--spinnaker); display: grid; place-items: center; cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.3,1), background-color .15s, color .15s, box-shadow .22s; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover, .carousel-btn:focus-visible { transform: translateY(-3px); background: var(--spinnaker); color: var(--white); box-shadow: 0 8px 18px rgba(11, 29, 63, .2); }
.carousel-btn .i-play { display: none; }
.carousel-btn[aria-pressed="true"] .i-pause { display: none; }
.carousel-btn[aria-pressed="true"] .i-play { display: block; }
.carousel { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.carousel-track { display: flex; gap: clamp(16px, 2.4vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px var(--gutter) 24px; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 calc((100% - 2 * clamp(16px, 2.4vw, 28px)) / 3); scroll-snap-align: start; }
@media (max-width: 960px) { .carousel-item { flex-basis: calc((100% - clamp(16px, 2.4vw, 28px)) / 2); } }
@media (max-width: 600px) { .carousel-item { flex-basis: 84%; } }
@media (min-width: 1181px) { .carousel { margin: 0; } .carousel-track { padding-left: 0; padding-right: 0; scroll-padding: 0; } }
.site-header .nav { transition: opacity .18s ease, visibility .18s; }
@media (min-width: 1121px) { .site-header.search-open .nav { opacity: 0; visibility: hidden; } }

/* ---------- People photos (auto-load with initials fallback) ---------- */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Author box (news posts) ---------- */
.author-box { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding: 20px 22px; background: var(--mist); border-radius: var(--radius); border-left: 5px solid var(--spinnaker); }
.author-photo { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; background: var(--spinnaker); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold); }
.author-text { display: flex; flex-direction: column; min-width: 0; }
.author-label { font-family: var(--font-display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--shingle); }
.author-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; color: var(--navy); margin: 2px 0; }
.author-title { color: var(--shingle); font-size: .95rem; }
.author-box + .post-share { margin-top: 24px; }

/* =========================================================
   v1.6 — ticker, value-card hover, match days
   ========================================================= */

/* ---------- Homepage ticker (slow, continuous, right to left) ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; padding: 18px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 1.05rem; white-space: nowrap; }
.marquee-group .star { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group .star:last-child { display: none; }
}

/* ---------- Value cards: colour change + lift on hover ---------- */
.value-card { transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, background-color .25s ease, border-color .25s ease, color .25s ease; }
.value-card h3, .value-card p, .value-card .icon { transition: color .25s ease; }
.value-card:hover { transform: translateY(-8px); background: var(--spinnaker); border-color: var(--spinnaker); border-top-color: var(--gold); box-shadow: 0 22px 44px rgba(0, 61, 165, .28); }
.value-card:hover h3 { color: var(--white); }
.value-card:hover p { color: #E5ECF8; }
.value-card:hover .icon { color: var(--gold); }

/* ---------- Match days (fixtures) ---------- */
.matchdays { display: grid; gap: 16px; }
.matchday { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px clamp(16px, 2.4vw, 26px); box-shadow: var(--shadow); transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, opacity .2s; }
.matchday:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11, 29, 63, .14); }
.matchday[hidden] { display: none; }
.matchday.is-next { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(255, 184, 28, .18), var(--shadow); }
.matchday.is-past { opacity: .72; }
.md-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy); color: var(--white); border-radius: 12px; padding: 12px 6px; text-align: center; font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.matchday[data-venue-type="home"] .md-date { background: var(--spinnaker); }
.md-dow { font-weight: 600; letter-spacing: .16em; font-size: .78rem; opacity: .85; }
.md-day { font-weight: 800; font-size: 2.4rem; margin: 4px 0 2px; }
.md-mon { font-weight: 600; letter-spacing: .08em; font-size: .8rem; opacity: .85; }
.md-venue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.md-next { font-family: var(--font-display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; background: var(--gold); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.md-matches { list-style: none; margin: 0; padding: 0; }
.md-match { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.md-time { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--spinnaker); }
.md-teams { font-weight: 500; color: var(--navy); }
.md-teams .us { font-weight: 700; color: var(--spinnaker); }
.md-teams .v { color: var(--shingle); font-size: .9em; margin: 0 2px; }
.md-code { display: block; font-size: .78rem; color: var(--shingle); letter-spacing: .04em; margin-top: 2px; }
.md-result { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--shingle); min-width: 56px; text-align: center; }
.md-result.win { color: #0E7A3A; }
.md-result.loss { color: #A4161A; }
.md-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; text-decoration: none; color: var(--spinnaker); padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; white-space: nowrap; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s; }
.md-link svg { width: 14px; height: 14px; }
.md-link:hover, .md-link:focus-visible { transform: translateY(-2px); border-color: var(--spinnaker); }
@media (max-width: 720px) {
  .matchday { grid-template-columns: 1fr; }
  .md-date { flex-direction: row; gap: 8px; justify-content: flex-start; padding: 10px 14px; justify-self: start; }
  .md-day { font-size: 1.4rem; margin: 0; }
  .md-match { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .md-link { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- Sunday match days ---------- */
.sunday-card h3 { margin-bottom: .6em; }
.sunday-dates { list-style: none; margin: 0; padding: 0; }
.sunday-dates li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.sunday-dates li.is-past { opacity: .6; }
.sd-dow { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; background: var(--mist); color: var(--spinnaker); padding: 4px 10px; border-radius: 999px; }

/* =========================================================
   v1.7 — saved games, opponent logos, fact bubbles, footer icons
   ========================================================= */

/* ---------- Header: saved games link ---------- */
.saved-link { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); text-decoration: none; transition: background-color .15s, color .15s, transform .22s cubic-bezier(.2,.8,.3,1); }
.saved-link svg { width: 21px; height: 21px; }
.saved-link:hover, .saved-link:focus-visible { background: var(--mist); color: var(--spinnaker); transform: translateY(-2px); }
.saved-link[aria-current="page"] { color: var(--spinnaker); }
.saved-link.has-saved svg { fill: var(--spinnaker); stroke: var(--spinnaker); }
.saved-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: .72rem; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--white); }
.saved-count[hidden] { display: none; }
.saved-link.pulse { animation: saved-pulse .5s ease; }
@keyframes saved-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.site-header.search-open .saved-link { visibility: hidden; }

/* ---------- Save toggles ---------- */
.save-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; cursor: pointer; white-space: nowrap; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s, background-color .15s, color .15s; }
.save-btn svg { width: 15px; height: 15px; }
.save-btn:hover, .save-btn:focus-visible { transform: translateY(-2px); border-color: var(--spinnaker); color: var(--spinnaker); }
.save-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.save-btn--sm { padding: 6px 10px; font-size: .75rem; margin-left: auto; }
.md-match { grid-template-columns: 64px minmax(0, 1fr) auto auto auto; }
@media (max-width: 720px) {
  .md-match { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .md-link { grid-column: 2 / 3; }
  .md-match .save-btn { grid-column: 3 / 4; justify-self: end; }
}
.sunday-dates li { gap: 10px; }

/* ---------- Opponent logos ---------- */
.opp { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.opp-logo { width: 22px; height: 27px; object-fit: contain; }
.match .opp-badge.has-logo { background: var(--white); border: 0; padding: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.match .opp-badge.has-logo img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.match .opp-badge svg { width: 60%; height: 60%; }

/* ---------- Committee fact bubbles ---------- */
.fact-wrap { position: relative; width: max-content; margin: 0 auto 16px; }
.fact-trigger { position: relative; display: block; padding: 0; border: 0; background: none; border-radius: 50%; cursor: help; }
.fact-trigger .person-avatar { margin: 0; transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s; }
.fact-trigger:hover .person-avatar, .fact-trigger:focus-visible .person-avatar, .fact-wrap.is-open .person-avatar { transform: scale(1.05); box-shadow: 0 0 0 3px var(--gold), 0 10px 24px rgba(0, 61, 165, .3); }
.fact-hint { position: absolute; right: -2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; border: 2px solid var(--white); }
.fact-hint svg { width: 14px; height: 14px; }
.fact-bubble { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 16px); width: min(260px, 80vw); padding: 14px 16px; border-radius: 16px; background: var(--navy); color: #E5ECF8; font-size: .94rem; line-height: 1.45; text-align: left; box-shadow: 0 18px 40px rgba(11, 29, 63, .3); opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.92); transform-origin: 50% 100%; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.3,1.2), visibility .18s; pointer-events: none; }
.fact-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 16px; height: 16px; background: var(--navy); transform: translate(-50%, -8px) rotate(45deg); border-radius: 3px; }
.fact-bubble strong { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-size: .85rem; margin-bottom: 4px; }
.fact-bubble .tbc { background: rgba(255,184,28,.18); color: #FFE3A3; outline-color: var(--gold); }
.fact-trigger:hover + .fact-bubble, .fact-trigger:focus-visible + .fact-bubble, .fact-wrap.is-open .fact-bubble { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }

/* ---------- Footer: icon labels, handle links ---------- */
.follow-item { display: flex; align-items: center; gap: 10px; }
.follow-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--gold); display: grid; place-items: center; }
.follow-icon svg { width: 18px; height: 18px; }
.follow-item a { overflow-wrap: anywhere; }

/* ---------- Saved games page ---------- */
.saved-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.saved-toolbar[hidden] { display: none; }
.saved-summary { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--shingle); }
.saved-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.saved-actions .btn svg { width: 18px; height: 18px; }
.saved-list { display: grid; gap: 14px; }
.saved-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); transition: transform .22s cubic-bezier(.2,.8,.3,1), opacity .2s; }
.saved-item.is-past { opacity: .7; }
.saved-item h3 { font-size: 1.3rem; margin: 6px 0 6px; }
.saved-item h3 .opp-logo { display: inline-block; vertical-align: -5px; margin-right: 4px; }
.saved-item .md-date { padding: 12px 6px; }
.saved-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--shingle); font-size: .95rem; align-items: center; }
.saved-comp { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--spinnaker); }
.saved-item-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.saved-remove { border: 2px solid var(--line); background: var(--white); color: var(--shingle); border-radius: 999px; padding: 8px 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s, color .15s; }
.saved-remove:hover, .saved-remove:focus-visible { transform: translateY(-2px); border-color: #A4161A; color: #A4161A; }
.saved-played { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; background: var(--mist); color: var(--shingle); padding: 3px 8px; border-radius: 999px; }
.saved-empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }
.saved-empty[hidden] { display: none; }
.saved-empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--mist); color: var(--spinnaker); display: grid; place-items: center; }
.saved-empty-icon svg { width: 32px; height: 32px; }
.saved-empty p { max-width: 50ch; margin: 0 auto 20px; color: var(--shingle); }
.saved-note { margin-top: 28px; font-size: .9rem; color: var(--shingle); }
@media (max-width: 640px) {
  .saved-item { grid-template-columns: 1fr; }
  .saved-item .md-date { flex-direction: row; gap: 8px; justify-self: start; padding: 8px 12px; }
  .saved-item .md-day { font-size: 1.4rem; margin: 0; }
  .saved-item-actions { flex-direction: row; flex-wrap: wrap; }
}
.fact-wrap.flip .fact-bubble { bottom: auto; top: calc(100% + 16px); transform: translate(-50%, -8px) scale(.92); transform-origin: 50% 0; }
.fact-wrap.flip .fact-bubble::after { top: auto; bottom: 100%; transform: translate(-50%, 8px) rotate(45deg); }
.fact-wrap.flip .fact-trigger:hover + .fact-bubble, .fact-wrap.flip .fact-trigger:focus-visible + .fact-bubble, .fact-wrap.flip.is-open .fact-bubble { transform: translate(-50%, 0) scale(1); }

/* =========================================================
   v1.8 — Brand portal: intro, name, greeting, media kit, photography
   ========================================================= */
.portal-intro .intro-label { color: #C9D5EA; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 14px; opacity: 0; animation: pre-fade .5s ease .45s forwards; }
body.portal-intro-on { overflow: hidden; }

.hello .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.hello h1 .name { color: var(--gold); }
.hello-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hello-actions .btn--ghost { background: transparent; }
.hello-actions .btn--ghost svg { width: 16px; height: 16px; }
.change-name { color: #C9D5EA; font-size: .95rem; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--white); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--gold); }
@media (max-width: 760px) { .hello .wrap { grid-template-columns: 1fr; } .hello-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }

.portal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .portal-grid { grid-template-columns: 1fr; } }
.pcard { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s; }
a.pcard:hover, a.pcard:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 29, 63, .16); color: inherit; }
.pcard .pic { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--spinnaker); display: grid; place-items: center; }
.pcard .pic svg { width: 24px; height: 24px; }
.pcard h3 { font-size: 1.25rem; margin: 4px 0 0; }
.pcard p { margin: 0; color: var(--shingle); font-size: .95rem; }
.pcard .pill { align-self: flex-start; margin-top: auto; }
.pcard.is-new { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 184, 28, .18), var(--shadow); }
.newbadge { position: absolute; top: -11px; right: 16px; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pill--ready { background: #DDF3E5; color: #0E6B34; }

.kit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .kit-grid { grid-template-columns: 1fr; } }
.kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kit-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.kit-list .ki { width: 40px; height: 40px; border-radius: 10px; background: var(--mist); color: var(--spinnaker); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .06em; }
.kit-list strong { display: block; color: var(--navy); }
.kit-list .d { display: block; color: var(--shingle); font-size: .9rem; overflow-wrap: anywhere; }
.kit-list .dl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--spinnaker); border: 2px solid var(--line); border-radius: 999px; padding: 7px 12px; text-decoration: none; white-space: nowrap; transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s; }
.kit-list .dl svg { width: 14px; height: 14px; }
.kit-list .dl:hover, .kit-list .dl:focus-visible { transform: translateY(-2px); border-color: var(--spinnaker); }
@media (max-width: 480px) { .kit-list li { grid-template-columns: 40px minmax(0, 1fr); } .kit-list .dl { grid-column: 2; justify-self: start; } }
.facts { background: var(--navy); color: #DCE4F2; border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow); }
.facts h3 { color: var(--white); margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9FB0CF; padding-top: 3px; }
.facts dd { margin: 0; }
.facts .boiler { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; color: #C9D5EA; }
.facts .btn { margin-top: 18px; }
.facts .btn svg { width: 18px; height: 18px; }

.photo-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ptile { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; isolation: isolate; display: grid; place-items: center; color: rgba(255, 255, 255, .9); background: linear-gradient(135deg, #0B4BC0, var(--spinnaker) 50%, #062A6E); }
.ptile[hidden] { display: none; }
.ptile.alt { background: linear-gradient(135deg, var(--navy), #13306A); }
.ptile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sail-lines.svg") repeat 0 0 / 480px 96px; opacity: .14; }
.ptile > svg { width: 34px; height: 34px; opacity: .85; }
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.ptile .cap { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.ptile .cap a { color: var(--white); background: rgba(11, 29, 63, .55); padding: 5px 9px; border-radius: 999px; text-decoration: none; }
.ptile .cap .soon { opacity: .75; letter-spacing: .06em; }
.credit { margin-top: 16px; color: var(--shingle); font-size: .92rem; }

.scrim { position: fixed; inset: 0; z-index: 1500; background: rgba(11, 29, 63, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: pre-fade .25s ease both; opacity: 0; }
.scrim[hidden] { display: none; }
.name-card { width: min(460px, 100%); background: var(--white); border-radius: 20px; padding: 34px 30px 26px; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); animation: name-pop .35s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes name-pop { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.name-card img { width: 72px; height: 72px; margin: 0 auto 14px; }
.name-card h2 { font-size: 2rem; margin-bottom: 6px; }
.name-card p { color: var(--shingle); margin-bottom: 18px; }
.name-card form { text-align: left; display: grid; gap: 10px; }
.name-card label { font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.name-card input { height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; font: inherit; font-size: 1.1rem; color: var(--navy); outline: none; transition: border-color .15s, box-shadow .15s; }
.name-card input:focus { border-color: var(--spinnaker); box-shadow: 0 0 0 3px rgba(0, 61, 165, .15); }
.name-card .btn { justify-content: center; margin-top: 6px; }
.skip-name { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--shingle); font: inherit; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.skip-name:hover { color: var(--spinnaker); }
.name-card .fine { font-size: .82rem; color: var(--shingle); margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { .scrim, .name-card { animation: none; opacity: 1; } }
[data-hello]:focus, [data-hello]:focus-visible { outline: none; }

/* =========================================================
   v2.1 — per-game scores, set strips and game report buttons
   ========================================================= */
.md-match { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "time teams final actions" ". sets sets sets"; align-items: center; gap: 10px 18px; padding: 14px 0; }
.md-match .md-time { grid-area: time; }
.md-match .md-teams { grid-area: teams; }
.md-final { grid-area: final; display: flex; align-items: center; gap: 10px; }
.mm-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.md-match .sets { grid-area: sets; }
.final-label { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--shingle); }
.final-score { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--navy); min-width: 84px; text-align: center; background: var(--mist); border-radius: 10px; padding: 6px 10px; }
.final-score i { font-style: normal; color: var(--shingle); margin: 0 4px; }
.md-final.is-win .final-score { background: #DDF3E5; color: #0E6B34; }
.md-final.is-loss .final-score { background: #F1F3F7; color: var(--navy); }
.wl { font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .1em; padding: 4px 8px; border-radius: 999px; background: #0E7A3A; color: #fff; }
.is-loss .wl { background: var(--shingle); }
.sets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.set { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: .88rem; color: var(--navy); background: var(--white); font-variant-numeric: tabular-nums; }
.set b { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--shingle); }
.set.muted { opacity: .55; }
.set.won { border-color: #9ED7B3; background: #F1FAF4; }

/* Game report button: greyed until the report is published, then a solid blue link */
.report-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--spinnaker); background: var(--spinnaker); color: var(--white); font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; text-decoration: none; white-space: nowrap; transition: transform .22s cubic-bezier(.2,.8,.3,1), background-color .15s, border-color .15s; }
.report-btn svg { width: 15px; height: 15px; flex: none; }
.report-btn:hover, .report-btn:focus-visible { transform: translateY(-2px); background: var(--navy); border-color: var(--navy); color: var(--white); }
.report-btn.is-pending { background: var(--white); color: var(--shingle); border-color: var(--line); cursor: default; }
.report-btn.is-pending:hover { transform: none; background: var(--white); border-color: var(--line); color: var(--shingle); }
.report-btn--sm { padding: 6px 10px; font-size: .75rem; }

/* Played match days stay fully readable (so scores are clear); the date badge greys out instead */
.matchday.is-past { opacity: 1; }
.matchday.is-past .md-date { background: var(--shingle); }

/* Sunday (Hampshire VA) dates */
.sunday-dates li { flex-wrap: wrap; }
.sd-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sd-actions .save-btn--sm { margin-left: 0; }
.sunday-dates li.is-past { opacity: 1; }
.sunday-dates li.is-past .sd-dow, .sunday-dates li.is-past .sd-date { opacity: .6; }

/* Saved games */
.saved-item.is-past { opacity: 1; }
.saved-item.is-past .md-date { background: var(--shingle); }
.saved-item-actions .report-btn { justify-content: center; }

@media (max-width: 1100px) {
  .md-match { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "time teams final" ". sets sets" ". actions actions"; }
}
@media (max-width: 720px) {
  .md-match { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "time teams" ". final" "sets sets" "actions actions"; row-gap: 10px; column-gap: 12px; }
  .final-score { font-size: 1.5rem; min-width: 70px; }
  .sets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .set { flex-direction: column; gap: 2px; padding: 5px 2px; text-align: center; justify-content: center; }
  .mm-actions > * { flex: 1 1 0; justify-content: center; }
  .sd-actions { margin-left: 0; width: 100%; }
  .sd-actions > * { flex: 1 1 0; justify-content: center; }
}

/* =========================================================
   v2.2 — membership fees card (Join page)
   ========================================================= */
.fees-sub { margin: -.2em 0 1em; color: #C9D5EA; font-size: .98rem; }
.fee-list { list-style: none; margin: 0; padding: 0; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 18px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.fee-name { font-weight: 600; color: var(--white); font-size: 1.05rem; line-height: 1.3; }
.fee-name small { display: block; margin-top: 3px; font-weight: 400; font-size: .86rem; color: #9FB0CF; }
.fee-price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--gold); white-space: nowrap; text-align: right; }
.fee-price span { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: #C9D5EA; margin-left: 2px; }
.fee-row--free .fee-price { font-size: 1.5rem; color: var(--white); }
.fee-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #C9D5EA; font-size: .93rem; line-height: 1.5; }
.fee-note svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fee-note strong { color: var(--white); }

/* =========================================================
   v2.4 — volleyball fact widget (Contact page)
   ========================================================= */
/* Volleyball fact widget (Contact page) */
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 44px); }
.contact-top .head { margin-bottom: 0; }
.vb-widget { position: relative; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.vb-ball { position: relative; z-index: 2; width: 88px; height: 88px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.vb-ball:focus-visible { outline: 3px solid var(--spinnaker); outline-offset: 6px; }
.vb-hop { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
.vb-orb { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 6px 10px rgba(11, 29, 63, .2)); }
.vb-orb img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.vb-ball:not(.is-jumping) .vb-panels { animation: vb-roll 6.4s ease-in-out infinite; }
.vb-ball:not(.is-jumping) .vb-hop { animation: vb-idle 3.2s ease-in-out infinite; }
.vb-ball:hover:not(.is-jumping) .vb-hop { animation: none; transform: translateY(-6px); transition: transform .2s; }
.vb-ball:hover:not(.is-jumping) .vb-panels { animation: none; transform: rotate(-14deg); transition: transform .25s; }
.vb-ball.is-jumping .vb-hop { animation: vb-jump .9s cubic-bezier(.3, .7, .4, 1) both; }
.vb-ball.is-jumping .vb-panels { animation: vb-spin .9s cubic-bezier(.3, .7, .4, 1) both; }
.vb-shadow { width: 76px; height: 12px; margin-top: 6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 29, 63, .28), rgba(11, 29, 63, 0)); }
.vb-ball.is-jumping + .vb-shadow { animation: vb-shadow .9s cubic-bezier(.3, .7, .4, 1) both; }
.vb-hint { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--spinnaker); }
@keyframes vb-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes vb-roll { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
@keyframes vb-jump {
  0% { transform: translateY(0) scale(1, 1); }
  12% { transform: translateY(0) scale(1.1, .88); }
  45% { transform: translateY(-78px) scale(.97, 1.04); }
  62% { transform: translateY(-84px) scale(1, 1); }
  86% { transform: translateY(0) scale(1.07, .92); }
  94% { transform: translateY(-6px) scale(.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes vb-spin { 0%, 12% { transform: rotate(0); } 86%, 100% { transform: rotate(360deg); } }
@keyframes vb-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 12% { transform: scale(1.15); } 55% { transform: scale(.45); opacity: .45; } 86% { transform: scale(1.12); opacity: 1; } }

.vb-bubble { position: absolute; z-index: 3; left: 50%; bottom: 148px; width: 340px; max-width: calc(100vw - 32px); transform: translateX(-50%); background: var(--navy); color: #DCE5F4; border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 18px 40px rgba(11, 29, 63, .28); text-align: left; }
.vb-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.vb-bubble[hidden] { display: none; }
.vb-bubble.pop { animation: vb-pop .38s cubic-bezier(.2, 1.4, .4, 1) both; }
.vb-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.vb-tag b { font-weight: 800; background: var(--gold); color: var(--navy); padding: 2px 7px; border-radius: 999px; letter-spacing: .1em; }
.vb-fact { margin: 8px 0 10px; color: var(--white); font-size: 1rem; line-height: 1.45; }
.vb-more { display: block; font-size: .8rem; color: #9FB0CF; }
@keyframes vb-pop { 0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.7); } 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }

@media (max-width: 1080px) {
  .contact-top { grid-template-columns: 1fr; gap: 8px; }
  .vb-widget { height: auto; padding-top: 8px; }
  .vb-bubble { position: relative; left: auto; bottom: auto; transform: none; width: 100%; max-width: 420px; margin-bottom: 18px; }
  @keyframes vb-pop { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 100% { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .vb-ball .vb-hop, .vb-ball .vb-panels, .vb-ball + .vb-shadow, .vb-bubble.pop { animation: none !important; }
}
