/* =====================================================================
   NORFOLK SQUASH — styles
   Colours and fonts are set in :root below.
   ===================================================================== */

:root {
  --green: #00943e;          /* logo green */
  --green-dark: #00702f;
  --green-deep: #04361c;
  --green-light: #e7f5ec;
  --volt: #d6f23a;           /* highlight accent */
  --ink: #0b100d;
  --ink-2: #131a16;
  --ink-3: #1d2621;
  --text: #1a201c;
  --muted: #5b6660;
  --line: #e2e8e3;
  --paper: #f4f7f4;
  --white: #ffffff;

  --cat-county: #00943e;
  --cat-seniors: #1f4fd1;
  --cat-juniors: #e0611b;
  --cat-squash-57: #7a3fd0;
  --cat-masters: #0f7c8c;
  --cat-coaching: #c2203a;
  --cat-social: #a87a00;

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

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(5, 30, 15, .25);
  --shadow-lg: 0 30px 60px -20px rgba(5, 30, 15, .45);
  --topbar-h: 38px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.02; margin: 0 0 .5em; letter-spacing: .005em; text-transform: uppercase; color: inherit; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--muted); }
.muted { color: var(--muted); }
/* Events / News page switches: hidden until the site confirms the page is on */
[data-requires] { display: none !important; }

.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--volt); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.15em; }
.hl { color: var(--green); }
.hl-volt { color: var(--volt); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-volt { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.btn-volt:hover { background: #e6ff55; border-color: #e6ff55; color: var(--ink); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn-small { padding: .55em 1.05em; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-body); font-weight: 800; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 1em;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow-volt { color: var(--volt); }
.eyebrow-light { color: #9fe3b8; }

/* ---------- header ---------- */
#site-header { position: sticky; top: calc(var(--topbar-h) * -1); z-index: 100; }
.topbar { background: var(--ink); color: #c9d3cc; font-size: .82rem; height: var(--topbar-h); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.topbar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: var(--volt); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: var(--volt); }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { color: #fff; font-weight: 500; }
@media (max-width: 900px) { .topbar-links { display: none; } }
@media (max-width: 560px) { .topbar-inner > p:first-child { font-size: 0; } .topbar-inner > p:first-child a { font-size: .82rem; } .topbar-inner > p:first-child a::before { content: "Older results & docs: "; color: #c9d3cc; font-weight: 400; } }

.navbar { background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.is-scrolled .navbar { box-shadow: 0 8px 24px -16px rgba(0,0,0,.35); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height .2s ease; }
.is-scrolled .navbar-inner { height: 70px; }
.brand { display: block; flex: none; }
.brand img { height: 56px; width: auto; transition: height .2s ease; }
.is-scrolled .brand img { height: 46px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 10px 11px; font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none;
  border-radius: 8px; white-space: nowrap; position: relative;
}
.nav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform .2s ease; transform-origin: left; }
.nav-link:hover { color: var(--green-dark); }
.nav-link:hover::after, .is-active > .nav-link::after { transform: scaleX(1); }
.is-active > .nav-link { color: var(--green-dark); }
.nav-item:last-child .nav-link { background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; margin-left: 8px; }
.nav-item:last-child .nav-link::after { display: none; }
.nav-item:last-child .nav-link:hover { background: var(--green-dark); }
.has-sub > .nav-link { padding-right: 2px; }
.sub-toggle { background: none; border: 0; padding: 6px 6px 6px 2px; color: var(--muted); cursor: pointer; display: flex; border-radius: 6px; }
.sub-toggle .ico { transition: transform .2s ease; }
.sub-menu {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.sub-menu a:hover { background: var(--green-light); color: var(--green-dark); }
.sub-menu .sub-head a { font-weight: 700; color: var(--green-dark); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 6px; }
@media (min-width: 1121px) {
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.sub-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-toggle .ico, .has-sub.sub-open .sub-toggle .ico { transform: rotate(180deg); }
}

.menu-toggle { display: none; background: var(--ink); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.bars { display: grid; gap: 5px; width: 22px; }
.bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-open .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .bars span:nth-child(2) { opacity: 0; }
.nav-open .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; }
  .navbar-inner { height: 72px; }
  .brand img { height: 46px; }
  .navbar { backdrop-filter: none; background: #fff; } /* a backdrop-filter would trap the fixed menu inside the bar */
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, 72px); bottom: 0; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 16px 40px; transform: translateX(100%); transition: transform .28s ease, visibility .28s; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 6px; font-size: 1.15rem; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }
  .nav-link::after { display: none; }
  .nav-item:last-child { border: 0; margin-top: 18px; }
  .nav-item:last-child .nav-link { text-align: center; margin: 0; padding: 14px; }
  .sub-toggle { padding: 12px; }
  .sub-toggle .ico { width: 22px; height: 22px; }
  .sub-open .sub-toggle .ico { transform: rotate(180deg); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; width: 100%; display: none; min-width: 0; }
  .sub-open .sub-menu { display: block; }
  .sub-menu .sub-head a { border: 0; margin: 0; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,10,7,.92) 0%, rgba(4,10,7,.72) 40%, rgba(4,10,7,.15) 75%),
    linear-gradient(0deg, rgba(4,10,7,.95) 0%, rgba(4,10,7,0) 45%); }
.hero-inner { padding-top: 120px; padding-bottom: 150px; position: relative; }
.hero h1 { max-width: 13ch; margin-bottom: .3em; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero h1 .hl { color: var(--green); -webkit-text-stroke: 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; padding: 8px 14px; border-radius: 6px; margin-bottom: 22px; transform: skewX(-10deg); }
.hero-tag > span { transform: skewX(10deg); }
.hero .lead { color: #dbe5de; max-width: 40ch; font-size: 1.22rem; }
.hero-watermark { position: absolute; right: -2vw; bottom: 40px; font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 16vw, 15rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.12); text-transform: uppercase; pointer-events: none; z-index: -1; user-select: none; }
@media (max-width: 700px) { .hero-media img { object-position: 78% 35%; } .hero-inner { padding-top: 80px; } }
.hero-credit { position: absolute; right: 16px; bottom: 10px; font-size: .7rem; color: rgba(255,255,255,.55); margin: 0; }
.hero-credit a { color: inherit; }

/* quick links overlapping hero */
.quick { position: relative; z-index: 3; margin-top: -90px; padding-bottom: 90px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); overflow: hidden; border-top: 5px solid var(--green);
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-card:hover { transform: translateY(-6px); color: var(--text); }
.quick-card .qc-num { font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--green); letter-spacing: .1em; }
.quick-card h3 { font-size: 1.75rem; margin: 0; }
.quick-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.quick-card .qc-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--green-dark); }
.quick-card .qc-go .ico { transition: transform .2s ease; }
.quick-card:hover .qc-go .ico { transform: translateX(5px); }
.quick-card.is-dark { background: var(--ink); color: #fff; border-top-color: var(--volt); }
.quick-card.is-dark p { color: #b8c4bc; }
.quick-card.is-dark .qc-num, .quick-card.is-dark .qc-go { color: var(--volt); }
@media (max-width: 960px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quick-grid { grid-template-columns: 1fr; } .quick { margin-top: -60px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; padding: 110px 0 80px; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,10,7,.93) 0%, rgba(4,10,7,.75) 45%, rgba(4,10,7,.35) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green) 0 70%, var(--volt) 70% 100%); }
.page-hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); max-width: 16ch; }
.page-hero .lead { color: #d7e1da; max-width: 52ch; }
.breadcrumb { font-size: .85rem; color: #a9b7ae; margin-bottom: 18px; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--volt); }
@media (max-width: 600px) { .page-hero { padding: 70px 0 56px; } }

/* sticky in-page section nav */
.subnav { position: sticky; top: 84px; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 16px 13px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-on { color: var(--green-dark); border-bottom-color: var(--green); }
.is-scrolled ~ main .subnav, body:has(.is-scrolled) .subnav { top: 70px; }
@media (max-width: 1120px) { .subnav { top: 72px; } body:has(.is-scrolled) .subnav { top: 70px; } }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: #e6ece8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #b8c4bc; }
.section-green { background: var(--green); color: #fff; }
.section-green .lead { color: #e2f6ea; }
@media (max-width: 700px) { .section { padding: 68px 0; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head > div { max-width: 680px; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--green-dark); }
.link-arrow .ico { transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translateX(4px); }
.section-dark .link-arrow { color: var(--volt); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } }

.photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo.tall img { aspect-ratio: 4 / 5; }
.photo.wide img { aspect-ratio: 16 / 9; }
.photo-badge { position: absolute; left: 18px; bottom: 18px; background: var(--volt); color: var(--ink); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; padding: 8px 14px; border-radius: 6px; letter-spacing: .03em; }
.photo-stack { position: relative; padding: 0 0 40px 40px; }
.photo-stack::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; background: var(--green); border-radius: var(--radius); z-index: -1; }
.photo-stack { isolation: isolate; }
@media (max-width: 600px) { .photo-stack { padding: 0 0 20px 20px; } }

.checklist { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 50%; background: var(--green-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300943e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.section-dark .checklist li::before { background-color: rgba(214,242,58,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6f23a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .card-num { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--green-light); position: absolute; right: 22px; top: 18px; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-light); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 28px; height: 28px; }
.section-paper .card { border-color: transparent; }
.section-dark .card { background: var(--ink-2); border-color: var(--ink-3); color: #cfd8d2; }
.section-dark .card-icon { background: rgba(214,242,58,.12); color: var(--volt); }
.section-dark .card .card-num { color: var(--ink-3); }
.card .link-arrow { margin-top: 10px; }

/* image tiles (home "two games") */
.tile { position: relative; display: flex; align-items: flex-end; min-height: 460px; padding: 34px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4,10,7,.92) 10%, rgba(4,10,7,.15) 70%); }
.tile:hover img { transform: scale(1.06); }
.tile:hover { color: #fff; }
.tile h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .2em; }
.tile p { color: #d4ddd7; max-width: 40ch; }
.tile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tile-links span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.tile .tile-kicker { position: absolute; top: 24px; left: 28px; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .14em; color: var(--volt); text-transform: uppercase; }
@media (max-width: 600px) { .tile { min-height: 380px; padding: 24px; } }

/* stat / pill band */
.band { background: var(--green); color: #fff; overflow: hidden; }
.marquee { display: flex; gap: 48px; white-space: nowrap; padding: 20px 0; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; letter-spacing: .03em; animation: marquee 40s linear infinite; width: max-content; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgba(214,242,58,.25); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee, .hero-media img { animation: none; } html { scroll-behavior: auto; } }

/* ---------- tags / chips ---------- */
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 5px; background: var(--green-light); color: var(--green-dark); line-height: 1.3; white-space: nowrap; }
.tag.cat-county { background: #e2f4e8; color: var(--cat-county); }
.tag.cat-seniors { background: #e6ecfc; color: var(--cat-seniors); }
.tag.cat-juniors { background: #fdeee4; color: #b84a0d; }
.tag.cat-squash-57 { background: #f0e8fb; color: var(--cat-squash-57); }
.tag.cat-masters { background: #e0f2f4; color: var(--cat-masters); }
.tag.cat-coaching { background: #fbe6ea; color: var(--cat-coaching); }
.tag.cat-social { background: #faf1d6; color: #8a6400; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--volt); margin-left: 6px; white-space: nowrap; }
.status-cancelled, .status-postponed { background: #c2203a; color: #fff; }
.status-fully-booked { background: #5b6660; color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: .88rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- events ---------- */
.event-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) { .event-cards { grid-template-columns: 1fr; } }
.event-card { display: flex; gap: 20px; align-items: stretch; padding: 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.section-dark .event-card { background: var(--ink-2); border-color: var(--ink-3); color: #dfe7e2; }
.date-tile { flex: none; width: 86px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; text-align: center; border-bottom: 5px solid var(--green); }
.section-dark .date-tile { background: var(--green); border-bottom-color: var(--volt); }
.dt-day { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: .9; }
.dt-day small { font-size: 1.2rem; }
.dt-mon { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-top: 4px; color: var(--volt); }
.section-dark .dt-mon { color: #fff; }
.event-card.cat-juniors .date-tile { border-bottom-color: var(--cat-juniors); }
.event-card.cat-squash-57 .date-tile { border-bottom-color: var(--cat-squash-57); }
.event-card.cat-seniors .date-tile { border-bottom-color: var(--cat-seniors); }
.event-card.cat-coaching .date-tile { border-bottom-color: var(--cat-coaching); }
.event-body { min-width: 0; align-self: center; }
.event-meta { margin-bottom: 6px; }
.event-card h3 { font-size: 1.4rem; margin: 0 0 6px; }
.event-where { margin: 0; color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.section-dark .event-where { color: #9eaba3; }
.event-where .ico { color: var(--green); }

.table-title { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; margin: 8px 0 16px; }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; background: var(--green); color: #fff; border-radius: 999px; font-family: var(--font-body); font-size: .85rem; font-weight: 700; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.events-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.events-table th { text-align: left; background: var(--ink); color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding: 14px 18px; font-weight: 700; }
.events-table td { padding: 18px; border-top: 1px solid var(--line); vertical-align: top; }
.events-table tbody tr { transition: background .15s ease; box-shadow: inset 4px 0 0 transparent; }
.events-table tbody tr:hover { background: #f8fbf8; box-shadow: inset 4px 0 0 var(--green); }
.td-date { white-space: nowrap; }
.td-date strong, .td-event .ev-title { display: block; }
.td-date .muted { display: block; font-size: .85rem; }
.td-event .ev-title { font-size: 1.02rem; display: inline; }
.td-event > span:last-child { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; line-height: 1.5; }
.td-action { text-align: right; white-space: nowrap; }
.events-table tr[hidden] { display: none; }
@media (max-width: 860px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .events-table thead { display: none; }
  .events-table, .events-table tbody, .events-table tr, .events-table td { display: block; width: 100%; }
  .events-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 16px 18px; border-left: 5px solid var(--green); }
  .events-table tr.cat-juniors { border-left-color: var(--cat-juniors); }
  .events-table tr.cat-squash-57 { border-left-color: var(--cat-squash-57); }
  .events-table tr.cat-seniors { border-left-color: var(--cat-seniors); }
  .events-table tr.cat-coaching { border-left-color: var(--cat-coaching); }
  .events-table tr.cat-masters { border-left-color: var(--cat-masters); }
  .events-table tr.cat-social { border-left-color: var(--cat-social); }
  .events-table tbody tr:hover { box-shadow: none; }
  .events-table td { border: 0; padding: 4px 0; }
  .events-table td[data-label="Venue"]::before { content: "Venue: "; font-weight: 700; }
  .td-date { white-space: normal; color: var(--green-dark); }
  .td-action { text-align: left; padding-top: 10px !important; }
  .td-action:empty { display: none !important; }
}
details.past { margin-top: 36px; }
details.past summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; padding: 14px 0; list-style: none; }
details.past summary::-webkit-details-marker { display: none; }
details.past summary::before { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); font-family: var(--font-body); font-size: 1.2rem; }
details.past[open] summary::before { content: "–"; }
details.past summary .count { background: var(--muted); }
details.past .events-table { opacity: .85; }
.empty { padding: 26px; background: var(--paper); border-radius: var(--radius); color: var(--muted); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
@media (max-width: 1000px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-card.is-lead { grid-column: 1 / -1; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--text); }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-img-fallback { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 70% 30%, var(--green) 0, var(--green-deep) 60%, var(--ink) 100%); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.news-card h3 { font-size: 1.55rem; margin-bottom: .35em; }
.news-card.is-lead h3 { font-size: 2rem; }
.news-card p { color: var(--muted); font-size: .95rem; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-dark); font-size: .9rem; }

.article { display: grid; grid-template-columns: 380px 1fr; gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.article:first-of-type { padding-top: 8px; }
.article[hidden] { display: none; }
.article:not(:has(.article-img)) { grid-template-columns: 1fr; }
.article-img { border-radius: var(--radius); overflow: hidden; align-self: start; box-shadow: var(--shadow); }
.article-img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.article h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.article .lead { font-size: 1.1rem; }
.article-text { max-width: 68ch; }
.article-share { font-size: .85rem; margin: 0; }
.article.is-target .article-body h2 { color: var(--green-dark); }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; gap: 22px; } }

.loading { padding: 26px; color: var(--muted); }
.loading::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%; border: 3px solid var(--green-light); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- clubs ---------- */
.club-tools { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-bottom: 12px; }
.club-tools .filters { margin: 0; }
.club-search { flex: 1 1 320px; max-width: 460px; }
.club-search input { width: 100%; font: inherit; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.club-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,148,62,.15); }
.club-count { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.club-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .club-grid { grid-template-columns: 1fr; } }
.club-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; scroll-margin-top: 130px; }
.club-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.club-card[hidden] { display: none; }
.club-card.is-target { box-shadow: 0 0 0 3px var(--green), var(--shadow); }
.club-media { position: relative; aspect-ratio: 16 / 7; background: radial-gradient(circle at 80% 20%, var(--green) 0, var(--green-deep) 55%, var(--ink) 100%); overflow: hidden; }
.club-media img { width: 100%; height: 100%; object-fit: cover; }
.club-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 4rem; color: rgba(255,255,255,.9); letter-spacing: .04em; }
.club-town { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(11,16,13,.82); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.club-town .ico { color: var(--volt); }
.club-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.club-body h3 { font-size: 1.8rem; margin: 0; }
.club-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--text); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-orange { background: #fdeee4; color: #b84a0d; }
.badge-ink { background: var(--ink); color: var(--volt); }
.club-desc { margin: 0; color: var(--muted); }
.club-more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.club-more summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--green-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.club-more summary::-webkit-details-marker { display: none; }
.club-more summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.club-more[open] summary::after { content: "–"; }
.club-more dl { margin: 0 0 14px; display: grid; gap: 10px; }
.club-more dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: .94rem; }
.club-more dt { font-weight: 700; }
.club-more dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .club-more dl > div { grid-template-columns: 1fr; gap: 2px; } }
.club-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .94rem; }
.club-contact .ico { color: var(--green); margin-right: 6px; }
.club-contact a { word-break: break-word; }
.club-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; }
.club-social { font-size: .88rem; font-weight: 600; margin-left: 4px; }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 34px 38px; border-radius: var(--radius); background: var(--ink); color: #dfe7e2; position: relative; overflow: hidden; isolation: isolate; }
.callout::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(0,148,62,.35); z-index: -1; }
.callout h3 { color: #fff; font-size: 2rem; margin-bottom: .25em; }
.callout p { margin: 0; max-width: 60ch; }
.callout.is-green { background: var(--green); color: #eafaf0; }
.callout.is-green::after { border-color: rgba(214,242,58,.3); }
.callout.is-light { background: var(--green-light); color: var(--text); }
.callout.is-light h3 { color: var(--ink); }
.callout.is-light::after { border-color: rgba(0,148,62,.12); }
@media (max-width: 600px) { .callout { padding: 26px 22px; } }

.notice { border-left: 5px solid var(--volt); background: var(--paper); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice p:last-child { margin: 0; }

/* steps / pathway */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 30px; height: 3px; background: linear-gradient(90deg, var(--green), var(--volt)); }
.step { position: relative; text-align: center; padding: 0 14px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--ink); color: var(--volt); font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; position: relative; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--green); }
.section-dark .step::before { border-color: var(--ink); background: var(--green); color: #fff; box-shadow: 0 0 0 3px var(--volt); }
.step h3 { font-size: 1.35rem; margin-bottom: .3em; }
.step p { font-size: .93rem; color: var(--muted); }
.section-dark .step p { color: #9eaba3; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 30px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .step { text-align: left; padding: 0 0 0 86px; min-height: 62px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); color: var(--text); border-top: 6px solid var(--green); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfb; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,148,62,.15); background: #fff; }
.form-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.form-status { margin: 16px 0 0; padding: 14px 16px; background: var(--green-light); border-radius: 10px; font-size: .92rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px 18px; } }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--paper); }
.contact-list .ci { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; }
.contact-list strong { display: block; }
.contact-list a { word-break: break-word; }

/* ---------- footer ---------- */
#site-footer { background: var(--ink); color: #aab6ae; font-size: .95rem; }
.footer-cta { background: linear-gradient(110deg, var(--green-deep), var(--ink) 70%); border-bottom: 1px solid var(--ink-3); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .25em; }
.footer-cta p { margin: 0; max-width: 60ch; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }
.footer-logo img { height: 46px; width: auto; }
#site-footer h3 { color: #fff; font-size: 1.15rem; letter-spacing: .08em; margin-bottom: 1em; }
#site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
#site-footer a { color: #dfe7e2; text-decoration: none; }
#site-footer a:hover { color: var(--volt); }
#site-footer .btn-volt, #site-footer .btn-volt:hover { color: var(--ink); }
.footer-email { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-email .ico { color: var(--volt); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--ink-3); font-size: .85rem; }
.footer-base p { margin: 0; }
.footer-base p a { margin-left: 18px; }
.footer-base p a:first-child { margin-left: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.credits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.credits li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .88rem; }
.credits img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.credits div { padding: 14px 16px; }
.credits strong { display: block; font-size: .95rem; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
