:root {
  --ink: #00224f;
  --navy: #003e84;
  --navy-soft: #006ac8;
  --brass: #ffcb05;
  --brass-light: #ffe36a;
  --ember: #006ac8;
  --cream: #fff8e1;
  --paper: #fbfaf4;
  --white: #ffffff;
  --muted: #5a6573;
  --line: rgba(0, 34, 79, 0.1);
  --shadow: 0 18px 50px rgba(0, 34, 79, 0.1);
  --radius: 18px;
  --max: 1180px;
  --header: 96px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Bebas Neue", "Oswald", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Banner */
.promo {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
}
.promo a { color: var(--brass-light); text-decoration: none; font-weight: 600; }
.promo a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: rgba(250, 247, 241, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img, .brand svg { width: 48px; height: 58px; object-fit: contain; }
.site-footer .footer-badge {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 0.25rem;
}
.brand-50 { min-width: 0; }
.brand-50 img {
  width: auto;
  height: 84px;
  max-width: 260px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}
.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ember); }

.nav-drop {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.nav-drop > a { display: inline-flex; align-items: center; gap: 0.28rem; }
.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.nav-drop-menu {
  display: block;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 13.5rem;
  padding: 0.35rem 0 0;
  z-index: 50;
}
.nav-drop-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  white-space: nowrap;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: none;
}
.nav-drop-menu a:first-child {
  border-radius: 14px 14px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}
.nav-drop-menu a:last-child {
  border-radius: 0 0 14px 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
  box-shadow: var(--shadow);
}
.nav-drop-menu a:hover { background: var(--cream); }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  visibility: visible;
  pointer-events: auto;
}
.nav-cta {
  background: var(--ink) !important;
  color: var(--cream) !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--navy) !important; color: var(--brass-light) !important; }

.menu-btn {
  display: flex;
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  height: 44px;
  padding: 0 0.85rem;
  cursor: pointer;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.6rem;
  flex-shrink: 0;
  z-index: 2;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 650;
}
.menu-btn .bars {
  width: 16px;
  height: 2px;
  background: var(--cream);
  box-shadow: 0 -5px 0 var(--cream), 0 5px 0 var(--cream);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero img.hero-bg-relay {
  object-position: center 40%;
}
.hero img.hero-bg-s7 {
  object-position: 58% 50%;
}
.hero:has(.hero-bg-house) {
  min-height: min(100vh, 1080px);
}
.hero img.hero-bg-house {
  object-position: center 42%;
}
.img-s7-finish {
  object-fit: cover;
  object-position: center 22%;
}
.img-s7-start {
  object-fit: cover;
  object-position: 55% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.82) 0%, rgba(8, 16, 28, 0.45) 48%, rgba(8, 16, 28, 0.2) 100%),
    linear-gradient(to top, rgba(8, 16, 28, 0.7), transparent 42%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 720px;
  min-width: 0;
}
.hero-50 {
  display: block;
  margin: 0 0 1.35rem;
}
.hero-50 img {
  width: min(14.25rem, 58vw);
  height: auto;
  display: block;
  opacity: 0.88;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  font-weight: 400;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 36rem;
  color: rgba(243, 238, 228, 0.9);
  margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.page-hero {
  min-height: 42vh;
}
.page-hero img.hero-bg {
  object-position: center top;
}
.page-hero .hero-copy { padding: 4.5rem 0 3rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #e6b400; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243, 238, 228, 0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--ink); color: var(--cream); }
.btn-navy:hover { background: var(--navy); }
.btn-line {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-row {
  margin-top: 1.75rem;
  text-align: center;
}
.card p.btn-row {
  margin-top: 1.75rem;
}

/* Sections */
section { padding: 4.5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.section-head h2,
.display {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin: 0;
  font-weight: 400;
}
.section-head p,
.sub {
  color: var(--muted);
  margin: 0.4rem 0 0;
}
.link-more {
  color: var(--ember);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* Timetable */
.timetable {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.session {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.session.next { border-color: var(--brass); }
.session.next::after {
  content: "Next up";
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}
.session .day {
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--navy);
}
.session .time {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0.35rem 0 0.6rem;
}
.session p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.session .where { margin-top: 0.85rem; color: var(--ink); font-weight: 500; }

.pace-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.chip {
  font-size: 0.75rem;
  background: var(--cream);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-weight: 600;
}

/* Offer */
.offer {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
}
.offer-copy { padding: 2.6rem; }
.offer h2 { color: var(--cream); }
.offer .price {
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.85;
  color: var(--brass-light);
  margin: 0.6rem 0 0.4rem;
}
.offer .price small {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  display: block;
  color: var(--cream);
  opacity: 0.8;
}
.offer img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.offer-lead {
  font-weight: 600;
  margin: 0 0 1rem;
}
.offer-points .offer-wide { grid-column: 1 / -1; }
.racing {
  margin-top: 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border-left: 6px solid var(--brass);
  box-shadow: var(--shadow);
}
.racing h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.racing p { margin: 0; color: var(--ink); font-weight: 600; }

/* Event cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
[data-live-reports].cards { margin-bottom: 2.2rem; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.steps {
  display: grid;
  gap: 1.1rem;
}
.steps .card-body p + p { margin-top: 0.75rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}
.card-body { padding: 1.15rem 1.2rem 1.3rem; }
.card time, .meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 650;
}
.card h2,
.card h3 {
  font-size: 1.2rem;
  margin: 0.35rem 0 0.4rem;
}
.card h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.card-body h2:not(:first-child) { margin-top: 1.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card p + p { margin-top: 0.7rem; }

.event-list { display: grid; gap: 0.75rem; }
.event-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}
.event-row .date {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.event-row h3 { margin: 0; font-size: 1.05rem; }
.event-row p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--cream);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 24px;
  height: min(460px, 52vw);
  object-fit: cover;
}
.split h2 { margin-bottom: 0.8rem; }
.s7-home-card {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  overflow: hidden;
  align-items: stretch;
}
.s7-home-card > img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  border-radius: 0;
}
.s7-home-card .card-body { padding: 1.3rem 1.5rem; }
.s7-home-card h2 { margin: 0.15rem 0 0.45rem; font-size: 1.7rem; }
.s7-map {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.s7-map-actions { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; }
.about-stack {
  display: grid;
  gap: 2.2rem;
}

/* Fees */
.fees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.fee {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.fee.featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.fee h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.fee .amount {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  margin: 0.4rem 0;
}
.fee ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.fee.featured ul { color: rgba(243,238,228,0.8); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.people { display: grid; gap: 0.8rem; }
.person {
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}
.person strong { display: block; }
.person span { color: var(--muted); font-size: 0.9rem; }
.person a { color: var(--ember); text-decoration: none; font-weight: 600; }

form {
  background: var(--white);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}
label { font-size: 0.85rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}
.calc-wrap { max-width: 42rem; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.calc-form .btn { justify-self: start; }
.calc-out {
  margin-top: 1.4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.calc-percent {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--navy);
  margin: 0;
}
.calc-percent span { font-size: 1.4rem; margin-left: 0.15rem; }
.calc-label { color: var(--muted); margin: 0.4rem 0 1rem; }
.calc-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.2rem;
  margin: 0;
}
.calc-facts dt { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.calc-facts dd { margin: 0.15rem 0 0; font-weight: 650; color: var(--navy); }
@media (max-width: 900px) {
  .calc-grid, .calc-facts { grid-template-columns: 1fr; }
}

/* Notice */
.notice {
  background: #fff4e8;
  border-left: 4px solid var(--ember);
  padding: 1rem 1.1rem;
  border-radius: 10px;
}
.notice strong { color: var(--ember); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.calc-custom { display: none; }
.calc-custom.is-on { display: block; }
.tabs button {
  background: transparent;
  border: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
}
.panel[hidden] { display: none; }

/* Club calendar */
.weekly-strip { margin-bottom: 3rem; }
.series-strip { margin-bottom: 3rem; }
.series-strip,
.club-cal,
#series,
#kent-gp,
#kfl,
#kent-league,
#kent-champs,
#track-and-field,
#open-races,
#report-2026,
#maps,
#child-protection { scroll-margin-top: calc(var(--header) + 1rem); }
.league-card {
  border-left: 6px solid var(--s, var(--brass));
}
.series-card { border-top: 5px solid var(--s, var(--brass)); }
.series-card .card-body,
.league-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.series-card .tag,
.league-card .tag { align-self: flex-start; }
.series-card h3,
.league-card h3 { margin-top: 0.55rem; }
.series-card .link-more,
.league-card .link-more {
  margin-top: auto;
  padding-top: 0.9rem;
  display: inline-block;
}
.series-note { margin-top: 1.2rem; }
.series-note .link-more { white-space: normal; }
.cal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.cal-filter {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
}
.cal-filter:hover { border-color: var(--navy); }
.cal-filter.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.cal-list-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin: 1.4rem 0 0.15rem;
}
.event-list .cal-list-title:first-child { margin-top: 0; }
.event-row { text-decoration: none; color: inherit; }
.event-row h3 a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.event-row h3 a:hover { color: var(--navy); }
.tag.series-kfl,
.series-card.series-kfl,
.league-card.series-kfl { --s: #ffcb05; }
.tag.series-kent-league,
.series-card.series-kent-league,
.league-card.series-kent-league { --s: #006ac8; }
.tag.series-kent-gp,
.series-card.series-kent-gp,
.league-card.series-kent-gp { --s: #e6b400; }
.tag.series-kent-champs,
.series-card.series-kent-champs,
.league-card.series-kent-champs { --s: #7a3ea8; }
.tag.series-track-and-field,
.series-card.series-track-and-field,
.league-card.series-track-and-field { --s: #c45c12; }
.tag.series-open-race,
.series-card.series-open-race,
.league-card.series-open-race { --s: #1b7a4a; }
.tag.series-home,
.tag.series-home-fixtures,
.series-card.series-home { --s: #be2d4a; }
.tag.series-kfl,
.tag.series-kent-league,
.tag.series-kent-gp,
.tag.series-kent-champs,
.tag.series-track-and-field,
.tag.series-open-race,
.tag.series-home,
.tag.series-home-fixtures {
  background: color-mix(in srgb, var(--s) 16%, white);
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer a { color: var(--brass-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: rgba(243,238,228,0.6);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.82rem;
  color: rgba(243,238,228,0.55);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.socials a { font-weight: 600; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.7rem 0 0.45rem;
}
.prose p { color: #2a3340; }
.prose ul {
  margin: 0.4rem 0 1.1rem;
  padding-left: 1.2rem;
  color: #2a3340;
}
.prose li { margin: 0.35rem 0; }
.prose img {
  width: 100%;
  border-radius: 18px;
  margin: 1.1rem 0 0.4rem;
}

.roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.4rem;
  align-items: start;
}
.map-card {
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background: var(--cream);
}
.map-card iframe { width: 100%; height: 320px; border: 0; }

[data-header] {
  min-height: calc(2.3rem + var(--header));
}
html.reports-pending [data-report-group="recent"],
html.reports-pending [data-home-reports] {
  visibility: hidden;
}
[data-report-group="further"] .card {
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

/* Reports archive */
.cards-compact {
  grid-template-columns: repeat(3, 1fr);
}
.cards-compact .card img {
  aspect-ratio: 4 / 3;
  object-position: center top;
}
.report-body {
  max-width: 48rem;
}
.report-standfirst {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.2rem;
}
.report-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.5rem;
}
.report-gallery:has(> :only-child) {
  grid-template-columns: 1fr;
}
.report-gallery:has(> :nth-child(2):last-child),
.report-gallery:has(> :nth-child(4):last-child) {
  grid-template-columns: 1fr 1fr;
}
.report-gallery a,
.report-photo a {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.report-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  margin: 0;
  max-height: none;
  border-radius: 12px;
}
.report-gallery:has(> :only-child) img {
  aspect-ratio: 16 / 9;
}
.report-photo {
  margin: 0 0 1.5rem;
}
.report-body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 22rem;
  height: auto;
  margin: 0.9rem auto;
  border-radius: 12px;
}
.report-photo img {
  margin: 0 auto;
}
.report-body p + .report-gallery,
.report-body p + .report-photo {
  margin-top: 1.2rem;
}
.report-body .table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}
.report-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.report-body th,
.report-body td {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.report-body table > tbody:first-child > tr:first-child td {
  font-weight: 650;
  color: var(--navy);
  font-size: 0.8rem;
}
.report-back { margin-top: 2rem; }
.page-back {
  margin: 0 0 1.2rem;
}
.page-back .link-more { font-size: 0.95rem; }

.data-table {
  overflow-x: auto;
  margin: 0 0 1.6rem;
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.gp-table table { font-size: 0.86rem; }
.gp-table .gp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  margin: 0 0 0.9rem;
}
.gp-month {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.gp-month select {
  font: inherit;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.bests-split {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.6rem;
  color: var(--navy);
}
.bests-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

@media (min-width: 901px) {
  .menu-btn { display: none; }
  .cards.series-cards {
    grid-template-columns: 1fr 1fr 1.1rem 1fr 1fr 1.1rem 1fr 1fr;
    column-gap: 0;
    row-gap: 1.1rem;
  }
  .cards.series-cards > .series-card:nth-child(3n + 1) { grid-column: 1 / 3; }
  .cards.series-cards > .series-card:nth-child(3n + 2) { grid-column: 4 / 6; }
  .cards.series-cards > .series-card:nth-child(3n + 3) { grid-column: 7 / 9; }
  .cards.series-cards > .series-card.series-home { grid-column: 2 / 8; }
}

@media (max-width: 900px) {
  .timetable, .cards, .cards-2, .cards-compact, .fees, .split, .offer, .contact-grid, .footer-grid, .roster {
    grid-template-columns: 1fr;
  }
  .event-row { grid-template-columns: 1fr; }
  .menu-btn { display: flex; }
  .header-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0;
  }
  .brand { min-width: 0; }
  .brand-50 img {
    height: 62px;
    max-width: min(220px, calc(100vw - 7.5rem));
  }
  body[data-page="home"] .hero-copy {
    padding-right: 0;
  }
  body[data-page="home"] .hero-copy .kicker,
  body[data-page="home"] .hero-copy h1,
  body[data-page="home"] .hero-copy .lead,
  body[data-page="home"] .hero-copy .hero-actions {
    padding-right: 0.4rem;
  }
  .hero-50 {
    display: flex;
    justify-content: center;
    position: relative;
    left: 0;
    width: auto;
    max-width: none;
    margin: 0 0 1.15rem;
    padding: 0.75rem 1rem 0.65rem;
    transform: none;
    background: transparent;
    isolation: isolate;
  }
  .hero-50::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    margin-left: -50vw;
    background: rgba(0, 34, 79, 0.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .hero-50 img {
    width: min(13.25rem, 68vw);
    margin-inline: auto;
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  }
  .nav {
    display: none;
    position: static;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 1.1rem;
    gap: 0.15rem;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.15rem; font-size: 1rem; }
  .nav-cta {
    text-align: center;
    margin-top: 0.4rem;
  }
  .nav .nav-drop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav .nav-drop > a {
    display: flex;
    width: 100%;
  }
  .nav .nav-drop-menu {
    display: flex;
    flex-direction: column;
    visibility: visible;
    pointer-events: auto;
    position: static;
    width: 100%;
    min-width: 0;
    padding: 0 0 0.15rem 0.85rem;
    background: transparent;
  }
  .nav-drop-menu a,
  .nav-drop-menu a:first-child,
  .nav-drop-menu a:last-child {
    padding: 0.5rem 0.15rem;
    white-space: normal;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.95rem;
  }
  .section-head { flex-direction: column; align-items: start; }
  .hero h1 { font-size: 2.7rem; max-width: 9ch; }
  .hero { min-height: 78vh; }
  .page-hero { min-height: 42vh; }
  .hero img.hero-bg-house { object-position: 64% 40%; }
  .hero p.lead { font-size: 1rem; padding-right: 0.5rem; max-width: 100%; }
  .hero-copy { padding-right: 0.4rem; }
  .s7-home-card { grid-template-columns: 1fr; }
  .promo {
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    line-height: 1.45;
    text-wrap: balance;
  }
  .kicker { max-width: 100%; white-space: normal; }
  .cards.series-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) and (min-width: 561px) {
  .cards.series-cards {
    grid-template-columns: 1fr 1fr 1.1rem 1fr 1fr;
    column-gap: 0;
    row-gap: 1.1rem;
  }
  .cards.series-cards > .series-card:nth-child(odd) { grid-column: 1 / 3; }
  .cards.series-cards > .series-card:nth-child(even) { grid-column: 4 / 6; }
  .cards.series-cards > .series-card.series-home { grid-column: 2 / 5; }
}

@media (max-width: 560px) {
  .cards.series-cards { grid-template-columns: 1fr; }
  .report-gallery,
  .report-gallery:has(> :nth-child(2):last-child),
  .report-gallery:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr 1fr;
  }
  .report-gallery:has(> :only-child) { grid-template-columns: 1fr; }
  .report-gallery img { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
