/* Location page (wimbledon-park-athletics.html). Builds on the house hero,
   pathway lanes, disciplines, map-led and edge-split patterns; only what those
   do not cover lives here. */

/* The closing band follows the full-bleed map here, not a padded section, so it
   needs its own gap above (the house rule is tuned tight for the home page). */
#trial.closing { padding-top: clamp(48px, 7vw, 96px); }

/* Type-led hero, two-line variant: the venue name is too long for one line, so
   it breaks after "Wimbledon" and is sized so that word fills the measure. */
/* "WIMBLEDON" fills the measure; the lede sits in the space beside "PARK." so the
   block reads as one square rather than a long line and a short one. */
.hero-type--place h1 { font-size: 15.3cqw; line-height: .84; white-space: normal; }
.hero-type--place .hero-type__top { position: relative; }
.hero-type--place .hero-type__aside { margin-top: clamp(20px, 3vw, 32px); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; font-weight: 500; }
.hero-type--place .hero-type__cols { grid-template-columns: 1fr; }
@media (min-width: 1100px) {
  .hero-type--place .hero-type__aside { position: absolute; right: 0; bottom: .6cqw; width: 44%; margin: 0; max-width: none; font-size: clamp(20px, 2.35cqw, 26px); line-height: 1.3; font-weight: 500; text-wrap: balance; }
  /* Buttons start on the lede's column, so the right-hand side reads lede, rule,
     actions and carries straight on into the text column of the section below. */
  .hero-type--place .hero-type__row { margin-left: min(56%, calc(100% - 480px)); flex-wrap: nowrap; gap: 12px; }
  .hero-type--place .hero-type__row .btn { white-space: nowrap; padding-inline: clamp(18px, 1.8vw, 26px); }
}
/* The hero ends on its buttons, so the statement rail below starts closer. */
.hero-type--place + .mission { padding-top: clamp(48px, 6vw, 80px); }
/* Pathway head: the house 16ch cap wraps "FOUNDATION TO" at this heading, so it is
   lifted here and the two lines hold as written. */
.hero-type--place ~ .pathlanes .pathlanes__head-left { max-width: none; }
.hero-type--place ~ .pathlanes .pathlanes__h .nowrap { white-space: nowrap; }
/* Space under the lead's button before the pathway section. */
.hero-type--place + .mission { padding-bottom: clamp(56px, 8vw, 104px); }
/* Placeholder cards: flagged, never ship. Swap for an <img> as photographs arrive. */
.statement-rail__card--todo { background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--bg) 14px 28px); }
.statement-rail__card--todo::after { display: none; }
.statement-rail__card--todo .statement-rail__quote { color: var(--fg); }
.statement-rail__todo {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink);
}
/* On this page the section starts at the page gutter, not the .wrap edge, so the
   photograph and the rail span the full width of the screen. */
.hero-type--place + .mission .mission__grid { padding-left: 0; }
/* Photograph held at 735px so the rail gets the rest of the width and shows more
   cards; cards keep a steady size rather than stretching with the rail. */
@media (min-width: 1000px) {
  .hero-type--place + .mission .mission__grid { grid-template-columns: minmax(0, min(calc(735px + var(--gutter)), 56%)) minmax(0, 1fr); }
  .hero-type--place + .mission .statement-rail__card { width: clamp(240px, 21vw, 340px); }
  .hero-type--place + .mission.is-expanded .mission__grid { grid-template-columns: minmax(0, 1fr); }
}
.hero-type--place { padding-top: clamp(32px, 5vw, 64px); }
.hero-type--place .crumbs { margin-bottom: clamp(28px, 4vw, 48px); }

.points__rule { display: block; width: 40px; height: 4px; background: var(--accent); margin-bottom: 20px; }

/* Numbered points: three short reasons, set on a hairline grid. */
.points { padding-block: clamp(64px, 9vw, 120px); }
.points--alt { background: var(--surface-2); }
.points__head { display: grid; gap: 18px clamp(32px, 6vw, 96px); margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .points__head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; } }
.points__h { text-transform: uppercase; font-size: clamp(34px, 4.6vw, 58px); line-height: .98; letter-spacing: -.03em; margin: 12px 0 0; text-wrap: balance; }
.points__lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--fg-2); margin: 0; max-width: 52ch; text-wrap: pretty; }
.points__grid { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--border); }
@media (min-width: 800px) { .points__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.points__item { padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
@media (min-width: 800px) {
  .points__item { border-bottom: 0; padding-right: clamp(20px, 3vw, 40px); }
  .points__item + .points__item { border-left: 1px solid var(--border); padding-left: clamp(20px, 3vw, 40px); }
}
.points__num { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--fg-muted); }
.points__num::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.points__item h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.15; margin: 4px 0 0; }
.points__item p { margin: 0; color: var(--fg-2); text-wrap: pretty; }
.points__cta { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Programmes page (high-performance.html) ---------- */
/* "THE / PROGRAMME.": the long word is the second line, so the cqw figure is
   retuned to fit "PROGRAMME." and the lede sits below the headline rather
   than beside it. */
.hero-type--programme h1 { font-size: 14.1cqw; }
/* Lede below the headline runs to two balanced lines, not three narrow ones. */
@media (min-width: 700px) {
  .hero-type--programme .hero-type__aside,
  .hero-type--stack .hero-type__aside { max-width: 56ch; text-wrap: balance; }
}
@media (min-width: 1100px) {
  .hero-type--programme .hero-type__aside,
  .hero-type--stack .hero-type__aside {
    /* Lede below the headline runs to two balanced lines, not three narrow ones. */
    position: static; width: auto; max-width: 56ch; text-wrap: balance;
    margin-top: clamp(20px, 2.4vw, 32px);
  }
}
.journey__h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; letter-spacing: -.01em;
  color: var(--fg); margin: clamp(28px, 3.4vw, 40px) 0 0; max-width: 34ch;
}
.journey__h + .tlist { margin-top: 16px; }
/* Ruled list heading: a coral line above it draws in with the scroll
   (--rule, 0 to 1, set by initScrollRules() in scripts/site.js). Full width
   without JS and under reduced motion. */
.journey__h--ruled { position: relative; max-width: none; padding-top: clamp(22px, 2.6vw, 30px); }
.journey__h--ruled::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--accent); transform-origin: left center;
}
.has-scroll-rules .journey__h--ruled::before { transform: scaleX(var(--rule, 0)); }


/* ---------- Training Pathway page (training-pathway.html) ---------- */
.pathlanes__note {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--fg-2);
  max-width: 58ch; margin: clamp(28px, 3.4vw, 44px) 0 0; text-wrap: pretty;
}
.pathlanes__note + .pathlanes__link { margin-top: 16px; }
/* The pathway band is ink in both themes, so the note takes light type, not --fg-2. */
.pathlanes .pathlanes__note { color: #D7D5CE; }
.closing__lede a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; font-weight: 600; }

/* ---------- Inside SpeedPro (inside-speedpro.html) ----------
   Three curated Instagram grids, one per theme, each under a split head. */
.feed { padding-block: clamp(40px, 5vw, 64px); }
#process.edge-split { padding-block: clamp(40px, 5vw, 64px); }
.feed--alt { background: var(--bg-alt); }
.feed__head { display: grid; gap: clamp(16px, 3vw, 48px); margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .feed__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; } }
.feed__rule { display: block; width: 56px; height: 4px; background: var(--accent); margin-bottom: clamp(18px, 2.4vw, 28px); }
.feed__h {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; margin: 14px 0 0;
}
.feed__p { font-size: 17px; line-height: 1.68; color: var(--fg-2); margin: 0 0 14px; max-width: 58ch; text-wrap: pretty; }
.feed__p:last-child { margin-bottom: 0; }
.igrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
@media (min-width: 760px) { .igrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .igrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.igrid__item {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface-2); color: #FBFAF7; text-decoration: none;
}
.igrid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.igrid__item:hover img, .igrid__item:focus-visible img { transform: scale(1.04); }
.igrid__item:hover { text-decoration: none; color: #FBFAF7; }
.igrid__over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: clamp(12px, 1.6vw, 18px);
  background: linear-gradient(to top, rgba(20,20,20,.82), rgba(20,20,20,0) 62%);
  opacity: 0; transition: opacity .3s ease;
}
.igrid__item:hover .igrid__over, .igrid__item:focus-visible .igrid__over { opacity: 1; }
@media (hover: none) { .igrid__over { opacity: 1; } }
.igrid__cap {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.igrid__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(251,250,247,.82); }
.igrid__view { display: none; }
@media (min-width: 760px) { .igrid__view { display: inline; } }
.igrid__view::after { content: " \2192"; color: var(--accent); }
.igrid__tag {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink);
  padding: 4px 9px; border-radius: var(--radius-pill);
}
.igrid__more a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  aspect-ratio: 4 / 5; padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-lg);
  background: #141414; color: #FBFAF7; text-decoration: none;
  transition: background .24s ease;
}
[data-theme="dark"] .igrid__more a { background: var(--surface-2); }
.igrid__more a:hover { background: #262624; color: #FBFAF7; text-decoration: none; }
.igrid__more-k { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,250,247,.72); }
.igrid__more-h { font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 2vw, 28px); line-height: 1.08; letter-spacing: -.02em; text-transform: uppercase; }
.igrid__more-go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.igrid__more-go svg { color: var(--accent); transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.igrid__more a:hover .igrid__more-go svg { transform: translateX(5px); }
.why { padding-block: clamp(40px, 5vw, 64px) 0; }
.why__grid { display: grid; gap: clamp(16px, 3vw, 48px); }
@media (min-width: 900px) { .why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
@media (prefers-reduced-motion: reduce) { .igrid__item img, .igrid__over { transition: none; } }
/* Post format (9 Oct 2026): the grid cards wear the SpeedPro Instagram artwork. */
.ipost {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(14px, 1.6vw, 20px);
  background: linear-gradient(to bottom, rgba(20,20,20,.62) 0%, rgba(20,20,20,.18) 20%, rgba(20,20,20,0) 34%, rgba(20,20,20,0) 46%, rgba(20,20,20,.88) 100%);
}
.ipost__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ipost__mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(13px, 1.1vw, 15px); letter-spacing: -.01em; color: #FBFAF7; }
.ipost__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #FBFAF7; }
.ipost__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ipost__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ipost__tag { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 4px 8px; border-radius: 3px; }
.ipost__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 2.1vw, 30px); line-height: 1; letter-spacing: -.03em; color: #FBFAF7; text-wrap: balance; }
.ipost__title .dot, .ipost__mark .dot { color: var(--accent); }
.ipost__mark, .ipost__label { text-shadow: 0 1px 3px rgba(0,0,0,.45); }
/* Held to two balanced lines, as on the post artwork. */
.ipost__sub { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(251,250,247,.86); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- 404 (404.html) ---------- */
.hero-type--404 { padding-bottom: clamp(72px, 10vw, 140px); }

/* ---------- Flagged image placeholder (apparel.html) ----------
   Stands in for a supplied photograph; never ships. Sized like the edge-split photos. */
.media-todo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; width: 100%;
  background: var(--bg-alt); border: 1px dashed var(--border-strong);
  color: var(--fg-muted); text-align: center; padding: 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.media-todo code { display: block; margin-top: 8px; font-size: 12px; font-weight: 400; }

/* Sprint and middle-distance pages: The focus sits between two ink bands (pathway above,
   what we coach below), so it takes the full bottom space instead of the home page's
   shortened one. */
.pathlanes + .edge-split-alt { padding-bottom: clamp(48px, 8vw, 104px); }

/* Training Pathway: How athletes progress runs straight into Why choose SpeedPro on the
   same paper ground, so the gap between them is halved rather than doubled. */
.pathlanes + .edge-split-alt:has(+ .points) { padding-bottom: clamp(24px, 3vw, 40px); }
.edge-split-alt + .points { padding-top: clamp(24px, 3vw, 40px); }
/* A points section straight into the closing band: the band is inset ink on paper, so
   its own top padding plus the points padding left a double gap. */
.points + .closing, .points + #trial.closing { padding-top: 0; }
.feed + .closing, .feed + #trial.closing { padding-top: 0; }
/* Coaching philosophy on Training Pathway: tighter top and bottom (9 Oct 2026). */
.disciplines + .points#philosophy { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 104px); }

/* Inside SpeedPro slider rows (9 Oct 2026): photos slide, the Instagram box is locked. */
/* Same column grid as before, so every photo card is exactly the size of the
   Instagram box: the slider spans all but the last column, with the grid's own gap. */
.igrid.has-slider { --gg: clamp(8px, 1.2vw, 16px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.islide { min-width: 0; list-style: none; grid-column: span 2; }
@media (min-width: 760px) { .igrid.has-slider { grid-template-columns: repeat(3, minmax(0, 1fr)); } .islide { grid-column: span 2; } }
@media (min-width: 1100px) { .igrid.has-slider { grid-template-columns: repeat(4, minmax(0, 1fr)); } .islide { grid-column: span 3; } }
.islide__track {
  --k: 2; --g: clamp(8px, 1.2vw, 16px);
  list-style: none; margin: 0; padding: 0; display: flex; gap: var(--g);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.islide__track::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .islide__track { --k: 2; } }
/* On phones the Instagram box takes a half-width cell beside nothing, so it spans the row. */
@media (max-width: 759px) { .igrid.has-slider .igrid__more { grid-column: span 2; } .igrid.has-slider .igrid__more a { aspect-ratio: auto; min-height: 160px; } }
@media (min-width: 1100px) { .islide__track { --k: 3; } }
.islide__track > li { flex: 0 0 calc((100% - var(--g) * (var(--k) - 1)) / var(--k)); scroll-snap-align: start; }
.islide__dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.islide__dots[hidden] { display: none; }
.islide__dot { width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.islide__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong, #C9C6BE); transition: width .3s cubic-bezier(.22,.61,.36,1), background .3s; }
.islide__dot.is-on::before { width: 22px; background: var(--accent); }
.islide__dot:focus-visible { outline: 2px solid var(--fg); outline-offset: -8px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .islide__dot::before { transition: none; } }
