/*
 * 2drivesafe.com — Steer Driver Training.
 * Design language from the brand's printed material (Course Development/Brand Assets: the C2
 * design sample, cover families, icon family and certificate sample): red #D42B22 on ink and
 * night black, warm paper, Montserrat display type with one word in red, letter-spaced kickers,
 * numbered step lists, the red arcs artwork. Light by default; dusk when the device is dark.
 * Montserrat and Source Sans 3 are served from assets/fonts/ (fonts.css, linked in _layout.php).
 */
:root {
  --red:#D42B22; --red-d:#b52119; --night:#0b0b0c; --night-2:#141316; --ink:#141414;
  --bg:#ffffff; --fg:#141414; --fg-2:#3a3a3a; --muted:#6b6b6b; --accent:#b52119;
  --warm:#f6f4f1; --warm-2:#efebe5; --line:#e4dfd8; --err:#b42318; --ok:#1b6e3a;
  --head:"Montserrat", "Avenir Next", "Avenir", "Segoe UI", Roboto, system-ui, sans-serif;
  --body:"Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --wide:77rem; --read:44rem; --r:10px; --r-sm:6px;
  --shadow:0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#100d10; --fg:#f3f0f3; --fg-2:#d6d1d6; --muted:#a9a2a9; --accent:#ff5a63;
          --warm:#18141a; --warm-2:#1f1a21; --line:#2e2730; --err:#ff8a80; --ok:#7dd99a;
          --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }
body { margin:0; background:var(--bg); color:var(--fg); font:1.0625rem/1.65 var(--body); overflow-x:clip; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
img { max-width:100%; }
.wrap { max-width:var(--read); margin:0 auto; padding:0 1.25rem; }
.wide { max-width:var(--wide); margin:0 auto; padding:0 1.25rem; }
@media (min-width: 48rem) { .wide { padding:0 2rem; } }
.skip { position:absolute; left:-999px; } .skip:focus { left:1rem; top:1rem; background:var(--bg); color:var(--fg); padding:.6rem .9rem; z-index:50; border-radius:var(--r-sm); }

h1, h2, h3, h4, .btn, .kicker, summary, legend, label, .fhead, table.fees th, .tn, .facts strong, .journey .n { font-family:var(--head); }
h1 { font-size:clamp(2.1rem, 4.5vw, 3rem); font-weight:800; line-height:1.08; letter-spacing:-.02em; margin:0 0 1rem; }
h2 { font-size:clamp(1.6rem, 3.2vw, 2.4rem); font-weight:800; line-height:1.12; letter-spacing:-.015em; margin:0 0 1rem; }
h2 span, h1 span { color:var(--red); }
h3 { font-size:1.15rem; font-weight:700; line-height:1.3; margin:1.5rem 0 .4rem; }
p { margin:0 0 1rem; }
.kicker { font-size:.72rem; font-weight:700; letter-spacing:.26em; text-transform:uppercase; color:var(--muted); margin:0 0 .9rem; }
.kicker::before { content:""; display:inline-block; width:1.6rem; height:3px; border-radius:2px; background:var(--red); vertical-align:middle; margin:-.15rem .7rem 0 0; }
.lead { font-size:clamp(1.15rem, 2vw, 1.35rem); line-height:1.5; }
.lead-sm { font-size:1.2rem; line-height:1.55; color:var(--fg-2); max-width:44rem; }
.body-lg { font-size:1.2rem; color:var(--fg-2); }
.small { font-size:.92rem; color:var(--muted); }
.when { font-size:1.05rem; }
a { color:var(--accent); text-underline-offset:.18em; text-decoration-thickness:1px; }
a:hover { text-decoration-thickness:2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; border-radius:2px; }
.ic { width:28px; height:28px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ic .a { stroke:var(--red); } .ic .af { fill:var(--red); stroke:none; }

/* ── Header: sticky night bar ─────────────────────────────────────────── */
.top { position:sticky; top:0; z-index:30; background:rgba(11,11,12,.92); -webkit-backdrop-filter:saturate(1.4) blur(12px); backdrop-filter:saturate(1.4) blur(12px); border-bottom:1px solid rgba(255,255,255,.08); color:#fff; }
.topwrap { max-width:var(--wide); margin:0 auto; padding:.55rem 1.25rem; display:flex; align-items:center; gap:1.5rem; min-height:4.25rem; }
@media (min-width: 48rem) { .topwrap { padding:.55rem 2rem; } }
.brand { display:inline-flex; align-items:center; gap:.8rem; color:#fff; text-decoration:none; min-height:44px; margin-right:auto; }
.brand .stw { font-size:1.25rem; }
.brand .name { font-family:var(--head); font-weight:800; font-size:1.1rem; letter-spacing:.01em; padding-left:.8rem; border-left:2px solid var(--red); line-height:1.15; }
.nav { list-style:none; display:flex; gap:.25rem; margin:0; padding:0; font-family:var(--head); font-size:.86rem; font-weight:600; }
.nav a { display:block; color:#d9d5d9; text-decoration:none; padding:.55rem .75rem; border-radius:999px; line-height:1.2; }
.nav a:hover { color:#fff; background:rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color:#fff; background:rgba(212,43,34,.18); box-shadow:inset 0 0 0 1px rgba(212,43,34,.45); }
.top a:focus-visible, .top summary:focus-visible { outline-color:#fff; }
.top-cta { flex:none; }
.menu { display:none; position:relative; }
.menu summary { list-style:none; cursor:pointer; color:#fff; font-size:.85rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:.55rem 1rem; min-height:44px; display:flex; align-items:center; gap:.5rem; }
.menu summary::-webkit-details-marker { display:none; }
.menu summary::after { content:""; width:14px; height:10px; background:linear-gradient(#fff,#fff) 0 0/100% 2px no-repeat, linear-gradient(#fff,#fff) 0 4px/100% 2px no-repeat, linear-gradient(#fff,#fff) 0 8px/100% 2px no-repeat; }
.menu[open] summary { background:rgba(255,255,255,.08); }
.menu nav { position:absolute; right:0; top:calc(100% + .6rem); width:min(18rem, calc(100vw - 2.5rem)); background:var(--night-2); border:1px solid rgba(255,255,255,.1); border-radius:var(--r); box-shadow:0 20px 50px rgba(0,0,0,.5); padding:.5rem; }
.menu-list { list-style:none; margin:0; padding:0; }
.menu-list a { display:block; color:#eee; text-decoration:none; padding:.8rem 1rem; border-radius:var(--r-sm); font-family:var(--head); font-weight:600; font-size:.95rem; }
.menu-list a:hover, .menu-list a[aria-current="page"] { background:rgba(255,255,255,.07); color:#fff; }
.menu-list a[aria-current="page"] { box-shadow:inset 3px 0 0 var(--red); }
@media (max-width: 62rem) { .nav-desk { display:none; } .menu { display:block; } }
@media (max-width: 30rem) { .top .top-cta { display:none; } .brand .stw { font-size:1.05rem; } .topwrap { gap:1rem; } }

/* ── Launch strip above the header (before booking opens) ─────────────── */
.announce { margin:0; background:var(--red); color:#fff; font-size:.9rem; line-height:1.3; }
.announce a { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.3rem .9rem; padding:.6rem 1.25rem; color:#fff; text-decoration:none; min-height:40px; }
.announce b { font-family:var(--head); font-weight:800; letter-spacing:.01em; }
.announce span:not(.announce-dot)::before { content:"·"; margin-right:.9rem; opacity:.7; }
.announce em { font-style:normal; font-family:var(--head); font-weight:700; display:inline-flex; align-items:center; gap:.35rem; border-bottom:1.5px solid rgba(255,255,255,.65); padding-bottom:.05rem; }
.announce .ic { width:15px; height:15px; stroke:#fff; stroke-width:2.4; transition:transform .15s; }
.announce a:hover .ic { transform:translateX(3px); }
.announce a:focus-visible { outline:3px solid #fff; outline-offset:-4px; }
.announce-dot { width:.5rem; height:.5rem; border-radius:50%; background:#fff; }
@media (max-width: 30rem) { .announce span:not(.announce-dot) { display:none; } }

/* ── Band above the footer on inner pages (before booking opens) ──────── */
.precta { background:var(--warm); border-top:1px solid var(--line); padding:clamp(2.5rem, 5vw, 3.75rem) 0; }
.precta .wide { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem 3rem; }
.precta .kicker { margin-bottom:.6rem; }
.precta-h { font:800 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--head); letter-spacing:-.02em; margin:0; max-width:40rem; }
.precta-h span { color:var(--red); }
.fbadge { display:inline-flex; align-items:center; gap:.75rem; margin:1.25rem 0 0; padding:.7rem 1.1rem .7rem .85rem; border:1px solid rgba(255,255,255,.16); border-radius:12px; color:#bdb7bd; line-height:1.3; font-size:.88rem; }
.fbadge .ic { width:28px; height:28px; color:#fff; }
.fbadge b { display:block; color:#fff; font-family:var(--head); font-size:.92rem; }
.fcontact li { display:flex; align-items:center; gap:.65rem; color:#d6d1d6; min-height:36px; }
.fcontact .ic { width:18px; height:18px; color:#8f888f; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; background:var(--red); color:#fff; border:2px solid var(--red); border-radius:999px; padding:.7rem 1.45rem; font-size:.95rem; font-weight:700; letter-spacing:.01em; text-decoration:none; cursor:pointer; min-height:44px; transition:background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background:var(--red-d); border-color:var(--red-d); box-shadow:0 6px 18px rgba(212,43,34,.28); }
.btn:active { transform:translateY(1px); }
.btn .ic { width:18px; height:18px; stroke:currentColor; stroke-width:2.2; transition:transform .15s; } .btn:hover .ic { transform:translateX(3px); }
.btn-sm { padding:.5rem 1.1rem; font-size:.85rem; }
.btn-lg { padding:.9rem 1.75rem; font-size:1rem; min-height:52px; }
.btn-block { display:flex; width:100%; }
.btn.secondary { background:transparent; color:var(--accent); border-color:currentColor; box-shadow:none; }
.btn.secondary:hover { background:rgba(212,43,34,.07); }
.btn-ghost { background:transparent; color:#fff; border-color:rgba(255,255,255,.4); }
.btn-ghost:hover { background:rgba(255,255,255,.08); border-color:#fff; box-shadow:none; }
.btn + .btn { margin-left:.6rem; }
form .btn { margin-top:1.5rem; }
.actions { display:flex; flex-wrap:wrap; gap:.75rem; margin:2rem 0 0; } .actions .btn + .btn { margin:0; }
@media (max-width: 30rem) { .actions .btn { flex:1 1 100%; } .btn + .btn { margin:.75rem 0 0; } p > .btn { display:flex; width:100%; } }
.more { display:inline-flex; align-items:center; gap:.45rem; font-family:var(--head); font-weight:700; text-decoration:none; color:var(--fg); border-bottom:2px solid var(--red); padding-bottom:.15rem; }
.more .ic { width:18px; height:18px; stroke-width:2.2; color:var(--red); transition:transform .15s; } .more:hover .ic { transform:translateX(3px); }

/* ── Home: hero ───────────────────────────────────────────────────────── */
.home-main { display:block; }
.hero { position:relative; background:var(--night) url("img/hero-arcs.jpg") right bottom / auto 125% no-repeat; color:#fff; overflow:hidden; isolation:isolate; }
.hero::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(60rem 30rem at 85% 100%, rgba(212,43,34,.16), transparent 60%), linear-gradient(90deg, rgba(11,11,12,.97) 0%, rgba(11,11,12,.82) 48%, rgba(11,11,12,.15) 100%); }
.hero-in { display:grid; gap:3rem; padding-top:clamp(3.5rem, 9vw, 7rem); padding-bottom:clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 62rem) { .hero-in { grid-template-columns:minmax(0, 1.25fr) minmax(0, .75fr); align-items:end; } }
.hero h1 { font-size:clamp(2.9rem, 8vw, 5.4rem); line-height:.98; letter-spacing:-.03em; margin:0 0 1.5rem; color:#fff; }
.hero h1 span { display:block; color:var(--red); }
.hero .kicker { color:#bdb8bd; }
.hero .lead { color:#f1eef1; max-width:34rem; margin:0; }
.facts { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.1); border-radius:var(--r); overflow:hidden; }
.facts li { background:rgba(11,11,12,.72); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); padding:1.25rem 1.25rem 1.1rem; }
.facts strong { display:block; font-size:2.4rem; font-weight:800; line-height:1; color:#fff; letter-spacing:-.02em; }
.facts strong::after { content:""; display:block; width:1.2rem; height:3px; border-radius:2px; background:var(--red); margin:.7rem 0 .55rem; }
.facts span { display:block; color:#cfcacf; font-size:.95rem; line-height:1.35; }
.hero-foot { border-top:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.35); color:#cfcacf; font-size:.95rem; }
.hero-foot .wide { padding-top:1rem; padding-bottom:1rem; }
.hero-foot strong { color:#fff; }

/* ── Home: bands ──────────────────────────────────────────────────────── */
.band { padding:clamp(3.5rem, 8vw, 6rem) 0; }
.band-warm { background:var(--warm); }
.band-night { background:var(--night); color:#f1eef1; position:relative; isolation:isolate; overflow:hidden; }
.band-night::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(50rem 26rem at 100% 0%, rgba(212,43,34,.14), transparent 60%); }
.band-night h2, .band-night h3 { color:#fff; } .band-night .kicker { color:#a9a2a9; }
.intro { max-width:48rem; margin-bottom:2.5rem; }
.intro h2 { margin-bottom:1rem; }
.sub { font-size:1.25rem; margin:3rem 0 1rem; }

.pair { display:grid; gap:1.25rem; margin-top:1.5rem; }
@media (min-width: 48rem) { .pair { grid-template-columns:1fr 1fr; } }
.panel { border-radius:var(--r); padding:1.75rem 1.75rem 1.5rem; }
.panel h3 { margin:0 0 .75rem; font-size:1.3rem; }
.panel p:last-child, .panel ul:last-child { margin-bottom:0; }
.panel-dark { background:var(--ink); color:#e9e6e9; } .panel-dark h3 { color:#fff; }
@media (prefers-color-scheme: dark) { .panel-dark { background:#000; border:1px solid var(--line); } }
.panel-line { border:1px solid var(--line); background:var(--bg); }
.panel-glass { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); }
.dots { list-style:none; padding:0; margin:0; }
.dots li { position:relative; padding-left:1.4rem; margin:.6rem 0; }
.dots li::before { content:""; position:absolute; left:0; top:.6em; width:.5rem; height:.5rem; border-radius:50%; background:var(--red); }
.callout { margin-top:1.5rem; border-radius:var(--r-sm); border-left:4px solid var(--red); background:rgba(255,255,255,.05); padding:1.1rem 1.4rem; }
.callout .kicker { color:var(--red); margin-bottom:.35rem; } .callout .kicker::before { display:none; }
.callout p:last-child { margin:0; font-size:1.1rem; }
.band:not(.band-night) .callout { background:var(--warm); }

/* The step-by-step list (C2 "What is involved?"). */
.journey { list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.journey li { display:grid; grid-template-columns:3rem 2.5rem minmax(0, 1fr); gap:.25rem 1rem; align-items:start; padding:1.25rem 0; border-bottom:1px solid var(--line); }
.journey .n { font-weight:800; font-size:1.35rem; color:var(--red); line-height:1.4; letter-spacing:-.01em; }
.journey li:last-child .n { color:var(--fg); }
.journey .ic { width:30px; height:30px; margin-top:.1rem; }
.journey h3 { margin:0 0 .15rem; font-size:1.08rem; }
.journey p { margin:0; color:var(--muted); font-size:1rem; }
.journey .time { grid-column:3; font-family:var(--head); font-size:.82rem; font-weight:600; color:var(--fg-2); }
@media (min-width: 48rem) {
  .journey li { grid-template-columns:3.5rem 2.75rem minmax(0, 1fr) 13rem; padding:1.35rem .75rem; border-radius:var(--r-sm); transition:background .15s; }
  .journey li:hover { background:var(--bg); }
  .journey .time { grid-column:auto; text-align:right; padding-top:.2rem; }
}
.note { color:var(--fg-2); max-width:48rem; margin:2rem 0 1.25rem; }

/* Completion gates. */
.gates { list-style:none; margin:0; padding:0; display:grid; gap:1rem; }
@media (min-width: 40rem) { .gates { grid-template-columns:repeat(2, 1fr); } }
@media (min-width: 64rem) { .gates { grid-template-columns:repeat(4, 1fr); } }
.gates li { background:var(--warm); border:1px solid var(--line); border-radius:var(--r); padding:1.5rem 1.4rem; }
.gates .ic { width:40px; height:40px; margin-bottom:1rem; stroke-width:1.5; }
.gates p { margin:0; font-size:1.02rem; }
.pull { margin:3rem 0 0; padding:0; border:0; max-width:52rem; }
.pull p { font-family:var(--head); font-weight:800; font-size:clamp(1.35rem, 2.8vw, 2rem); line-height:1.25; letter-spacing:-.01em; margin:0; }
.pull p::before { content:""; display:block; width:3rem; height:4px; border-radius:2px; background:var(--red); margin-bottom:1.25rem; }

/* Towns. */
.townlist { list-style:none; margin:0; padding:0; display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr)); }
.townlist a, .townlist div { display:flex; flex-direction:column; justify-content:space-between; gap:2.5rem; min-height:9rem; padding:1.4rem; border-radius:var(--r); text-decoration:none; color:#fff; background:var(--night) url("img/hero-arcs.jpg") right bottom / auto 160% no-repeat; position:relative; isolation:isolate; overflow:hidden; }
.townlist a::before, .townlist div::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(135deg, rgba(11,11,12,.95), rgba(11,11,12,.55)); transition:opacity .2s; }
.townlist a:hover::before { opacity:.85; }
.townlist div { background:var(--warm); color:var(--fg); border:1px solid var(--line); } .townlist div::before { display:none; }
.tn { font-weight:800; font-size:1.45rem; letter-spacing:-.01em; }
.ts { display:inline-flex; align-items:center; gap:.4rem; font-size:.9rem; font-weight:600; color:#d9d5d9; }
.townlist div .ts { color:var(--muted); }
.ts .ic { width:16px; height:16px; color:var(--red); stroke-width:2.2; }

/* Register. */
.split { display:grid; gap:2.5rem; align-items:start; }
@media (min-width: 56rem) { .split { grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr); gap:4rem; } }
.formcard { background:var(--bg); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); padding:1.75rem 1.75rem 2rem; }
.formcard label:first-of-type { margin-top:0; }

/* ── Locations: town cards beside the map (home and the Locations page) ─ */
.h-loc { display:grid; gap:2.5rem 4rem; align-items:center; }
.h-loc-map { display:flex; justify-content:center; }
.nzmap { width:100%; max-width:24rem; height:auto; overflow:visible; }
.nz-dots { fill:none; stroke:var(--muted); stroke-opacity:.42; stroke-width:2.6; stroke-linecap:round; }
.nz-core { fill:var(--red); }
.nz-halo { fill:var(--red); opacity:.2; transform-box:fill-box; transform-origin:center; animation:nz-pulse 2.6s ease-out infinite; }
@keyframes nz-pulse { 0% { transform:scale(.6); opacity:.4; } 100% { transform:scale(1.9); opacity:0; } }
.nzmap text { font:800 9.5px var(--head); fill:var(--fg); letter-spacing:.01em; }
@media (prefers-reduced-motion: reduce) { .nz-halo { animation:none; } }
.x-towns { list-style:none; margin:2rem 0; padding:0; display:grid; gap:.75rem; }
.x-towns a { display:flex; gap:1rem; align-items:center; padding:1.1rem 1.3rem; border-radius:16px; text-decoration:none; color:var(--fg); background:var(--bg); border:1px solid var(--line); transition:border-color .2s, transform .2s; }
.x-towns a:hover { border-color:var(--red); transform:translateX(4px); }
.x-towns b { display:block; font:800 1.15rem var(--head); color:var(--fg); }
.x-towns span { font-size:.92rem; color:var(--muted); line-height:1.4; }
.x-towns a .ic { color:var(--red); }
.x-towns a.x-soon { background:transparent; border-style:dashed; }
.x-towns a > .ic:last-child { margin-left:auto; width:20px; height:20px; color:var(--red); stroke-width:2.2; }
.x-towns { max-width:30rem; }
@media (min-width: 62rem) { .h-loc { grid-template-columns:1.1fr .9fr; } }
.loc-lead { font-size:1.18rem; line-height:1.6; color:var(--fg-2); margin:0; max-width:34rem; }
.aboutfacts { margin:0; display:grid; gap:.9rem; }
.aboutfacts div { display:grid; gap:.1rem; }
.aboutfacts dt { font-size:.82rem; color:var(--muted); }
.aboutfacts dd { margin:0; font-family:var(--head); font-weight:700; font-size:.98rem; line-height:1.35; }
/* ── Inner pages: title band, body, side column ──────────────────────── */
main.inner { display:block; }
.phead { position:relative; isolation:isolate; overflow:hidden; color:#fff; background:var(--night); border-bottom:1px solid rgba(255,255,255,.06); }
.phead::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(42rem 22rem at 92% 120%, rgba(212,43,34,.22), transparent 62%), linear-gradient(90deg, rgba(11,11,12,.98) 0%, rgba(11,11,12,.88) 50%, rgba(11,11,12,.35) 100%), url("img/hero-arcs.jpg") right center / auto 170% no-repeat; }
.phead-in { display:grid; gap:2rem; padding-top:clamp(2rem, 5vw, 3.25rem); padding-bottom:clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 56rem) { .phead-in.has-aside { grid-template-columns:minmax(0, 1fr) auto; align-items:end; } }
.phead h1 { font-size:clamp(2.3rem, 5.4vw, 3.75rem); line-height:1.02; letter-spacing:-.03em; margin:0; max-width:46rem; color:#fff; }
.phead h1 span { color:var(--red); }
.phead .kicker { color:#bdb8bd; margin-top:1.75rem; }
.phead .lead { color:#e9e5e9; max-width:42rem; margin:1.25rem 0 0; }
.phead .actions { margin-top:1.75rem; }
.phead .meta { display:inline-flex; align-items:center; gap:.5rem; margin:1.1rem 0 0; color:#cfcacf; font-size:.95rem; }
.phead .meta .ic { width:18px; height:18px; color:#cfcacf; }
.phead .step { color:#bdb8bd; margin:1.75rem 0 .75rem; }
.crumbs ol { list-style:none; display:flex; flex-wrap:wrap; gap:.35rem; margin:0; padding:0; font-size:.85rem; color:#a9a2a9; }
.crumbs li + li::before { content:"/"; margin-right:.35rem; color:#5d575d; }
.crumbs a { color:#d6d1d6; text-decoration:none; } .crumbs a:hover { color:#fff; text-decoration:underline; }
.crumbs [aria-current] { color:#fff; }
.phead-aside .portrait { width:clamp(9rem, 18vw, 13.75rem); height:auto; aspect-ratio:1; object-fit:cover; border-radius:50%; border:4px solid rgba(255,255,255,.12); box-shadow:0 0 0 2px var(--red), 0 24px 60px rgba(0,0,0,.5); display:block; }
.tracker { list-style:none; display:flex; gap:.5rem; margin:0 0 1.5rem; padding:0; font-family:var(--head); font-size:.85rem; font-weight:700; color:#8f888f; }
.tracker li { display:flex; align-items:center; gap:.5rem; padding-right:.5rem; }
.tracker li + li::before { content:""; width:2.5rem; height:2px; background:rgba(255,255,255,.18); margin-right:.5rem; }
.tracker span { display:inline-flex; align-items:center; justify-content:center; width:1.75rem; height:1.75rem; border-radius:50%; border:2px solid rgba(255,255,255,.25); font-size:.8rem; }
.tracker .here { color:#fff; } .tracker .here span { background:var(--red); border-color:var(--red); color:#fff; }
.tracker .done { color:#d6d1d6; } .tracker .done span { border-color:#d6d1d6; }

.pbody { padding-top:clamp(2.25rem, 5vw, 3.5rem); padding-bottom:clamp(2.5rem, 6vw, 4.5rem); }
.pbody + .pbody { padding-top:0; }
.has-side { display:grid; gap:2.5rem; }
@media (min-width: 62rem) { .has-side { grid-template-columns:minmax(0, 1fr) 19rem; gap:4rem; } .side { position:sticky; top:6rem; align-self:start; } }
.main-col { min-width:0; }
.main-col > h2:first-child, .prose > h2:first-child { margin-top:0; }
.prose { max-width:var(--read); font-size:1.1rem; line-height:1.72; }
.prose p { color:var(--fg-2); }
.prose h2, .main-col > h2 { font-size:clamp(1.45rem, 2.6vw, 1.85rem); margin:3rem 0 .9rem; scroll-margin-top:6rem; }
.prose h2::before, .main-col > h2::before { content:""; display:block; width:2rem; height:4px; border-radius:2px; background:var(--red); margin-bottom:.85rem; }
.prose h3 { font-size:1.2rem; margin:2rem 0 .5rem; scroll-margin-top:6rem; }
.prose ul, .prose ol { padding-left:1.25rem; } .prose li { margin:.35rem 0; }
.endcta { margin-top:3rem; padding-top:2rem; border-top:1px solid var(--line); }
.side { display:grid; gap:1rem; align-content:start; }
.sidecard { background:var(--warm); border:1px solid var(--line); border-radius:var(--r); padding:1.35rem 1.4rem; }
.sidecard .fhead, .toc .fhead { color:var(--muted); margin-bottom:.85rem; }
.toc { border-left:2px solid var(--line); padding:.25rem 0 .25rem 1.25rem; }
.toc ol { list-style:none; margin:0; padding:0; counter-reset:t; }
.toc li { margin:0; counter-increment:t; }
.toc a { display:flex; gap:.6rem; color:var(--fg-2); text-decoration:none; padding:.4rem 0; font-size:.95rem; line-height:1.35; }
.toc a::before { content:counter(t, decimal-leading-zero); font-family:var(--head); font-weight:800; font-size:.75rem; color:var(--red); padding-top:.15rem; }
.toc a:hover { color:var(--fg); text-decoration:underline; }
@media (max-width: 61.99rem) { .toc { display:none; } }
.contact { list-style:none; margin:0; padding:0; display:grid; gap:.75rem; }
.contact li { display:flex; gap:.7rem; align-items:flex-start; margin:0; line-height:1.4; }
.contact .ic { width:22px; height:22px; margin-top:.05rem; }
.contact a { color:var(--fg); font-weight:600; word-break:break-word; }
.people { list-style:none; margin:0; padding:0; }
.people a { display:flex; align-items:center; gap:.85rem; padding:.55rem 0; text-decoration:none; color:var(--fg); font-family:var(--head); font-weight:700; }
.people li + li a { border-top:1px solid var(--line); }
.people .ic { width:18px; height:18px; margin-left:auto; color:var(--red); stroke-width:2.2; transition:transform .15s; } .people a:hover .ic { transform:translateX(3px); }
.face { border-radius:50%; object-fit:cover; flex:none; display:block; }
.face-ini { display:inline-flex; align-items:center; justify-content:center; background:var(--ink); color:#fff; font-family:var(--head); font-weight:800; letter-spacing:.02em; box-shadow:inset 0 -3px 0 var(--red); }
.face-44 { width:44px; height:44px; font-size:.9rem; } .face-96 { width:96px; height:96px; font-size:1.6rem; }
img.face[width="44"] { width:44px; height:44px; } img.face[width="96"] { width:96px; height:96px; }
@media (prefers-color-scheme: dark) { .face-ini { background:#000; border:1px solid var(--line); } }
.empty, .notyet { display:flex; gap:1rem; align-items:flex-start; background:var(--warm); border:1px dashed #d3ccc2; border-radius:var(--r); padding:1.5rem 1.6rem; max-width:var(--read); }
.empty p, .notyet p { margin:0; font-size:1.05rem; } .empty .ic, .notyet .ic { width:32px; height:32px; }
@media (prefers-color-scheme: dark) { .empty, .notyet { border-color:var(--line); } }
.body-lg { max-width:var(--read); }

/* Course runs. */
.runs { display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.runs-2 { grid-template-columns:repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.run { display:flex; flex-direction:column; background:var(--bg); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; margin:0; transition:transform .2s, box-shadow .2s; }
.run:hover { transform:translateY(-2px); box-shadow:0 2px 4px rgba(20,20,20,.05), 0 18px 40px rgba(20,20,20,.09); }
.run-head { position:relative; padding:1.35rem 1.5rem 1.1rem; background:var(--ink); color:#fff; border-bottom:3px solid var(--red); }
@media (prefers-color-scheme: dark) { .run-head { background:#000; } }
.run-head h3 { margin:.35rem 0 0; font-size:1.2rem; color:#fff; padding-right:5.5rem; }
.run-town { display:flex; align-items:center; gap:.4rem; margin:0; font-family:var(--head); font-size:.72rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:#bdb8bd; }
.run-town .ic { width:16px; height:16px; color:#bdb8bd; } .run-town .ic .a { stroke:var(--red); }
.badge { display:inline-flex; align-items:center; font-family:var(--head); font-size:.75rem; font-weight:700; border-radius:999px; padding:.3rem .7rem; background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.2); white-space:nowrap; }
.run-head .badge { position:absolute; right:1.25rem; top:1.25rem; }
.badge.low { background:var(--red); border-color:var(--red); } .badge.full { background:transparent; color:#bdb8bd; }
.sess { list-style:none; margin:0; padding:.6rem 1.5rem; flex:1; }
.sess li { display:flex; gap:.9rem; align-items:flex-start; padding:.75rem 0; margin:0; }
.sess li + li { border-top:1px dashed var(--line); }
.sess .ic { width:26px; height:26px; margin-top:.1rem; }
.sess b { display:block; font-family:var(--head); font-size:.95rem; }
.sess span { display:block; color:var(--muted); font-size:.92rem; line-height:1.35; }
.sess time { display:block; font-size:.98rem; font-weight:600; margin-top:.15rem; }
.run-trainer { display:flex; gap:.6rem; align-items:center; margin:0; padding:.75rem 1.5rem; border-top:1px solid var(--line); font-size:.95rem; }
.run-trainer .ic { width:20px; height:20px; color:var(--muted); }
.run-foot { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; padding:1rem 1.5rem 1.25rem; border-top:1px solid var(--line); background:var(--warm); }
.price { margin:0; display:flex; flex-direction:column; line-height:1.1; }
.price strong { font-family:var(--head); font-size:1.6rem; font-weight:800; letter-spacing:-.02em; }
.price span { font-size:.82rem; color:var(--muted); margin-top:.2rem; }
.price-lg strong { font-size:2.75rem; }
.filter { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem 1rem; background:var(--warm); border:1px solid var(--line); border-radius:999px; padding:.5rem .5rem .5rem 1.25rem; margin:0 0 2rem; max-width:34rem; }
.filter label { margin:0; } .filter select { flex:1; min-width:10rem; width:auto; border-radius:999px; min-height:44px; padding:.5rem 1rem; }
.filter .btn { margin:0; } .filter .ic { width:22px; height:22px; }
@media (max-width: 30rem) { .filter { border-radius:var(--r); padding:1rem; } .filter .btn { flex:1 1 100%; } }

/* Fees. */
.prices { display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.pricecard { background:var(--bg); border:1px solid var(--line); border-top:4px solid var(--red); border-radius:var(--r); box-shadow:var(--shadow); padding:1.5rem 1.6rem 1.25rem; }
.pricecard .run-town { color:var(--muted); } .pricecard .run-town .ic { color:var(--muted); }
.pricecard h3 { margin:.4rem 0 1.25rem; }
.extras { margin:1.25rem 0 0; border-top:1px solid var(--line); }
.extras div { display:flex; justify-content:space-between; gap:1rem; padding:.7rem 0; border-bottom:1px dashed var(--line); }
.extras div:last-child { border-bottom:0; }
.extras dt { color:var(--fg-2); } .extras dd { margin:0; font-family:var(--head); font-weight:700; white-space:nowrap; }
.note-strong { display:flex; align-items:center; gap:.6rem; font-family:var(--head); font-weight:700; margin:1.5rem 0 0; }
.note-strong .ic { width:24px; height:24px; }

/* Questions and answers. */
.qas { display:grid; gap:.75rem; max-width:var(--read); }
.qa { margin:0; background:var(--bg); border:1px solid var(--line); border-radius:var(--r); transition:border-color .15s, box-shadow .15s; scroll-margin-top:6rem; }
.qa[open] { border-color:#d3ccc2; box-shadow:var(--shadow); }
.qa > summary { padding:1.05rem 1.25rem; font-family:var(--head); font-size:1.05rem; line-height:1.35; justify-content:space-between; }
.qa > summary::before { display:none; }
main .qa > summary::after { content:"+"; display:inline-flex; align-items:center; justify-content:center; width:1.9rem; height:1.9rem; flex:none; border-radius:50%; background:var(--warm-2); color:var(--red); font-weight:800; font-size:1.15rem; transition:transform .2s; }
main .qa[open] > summary::after { content:"\2212"; background:var(--red); color:#fff; }
.qa > div { padding:0 1.25rem 1rem; color:var(--fg-2); }
.qa-doc { max-width:none; margin:1.25rem 0 0; }
.qa-doc > div h3 { font-size:1.05rem; margin:1.25rem 0 .3rem; }

/* Trainers. */
.trainers { list-style:none; margin:0; padding:0; display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.trainers a { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:.4rem; padding:1.6rem; border:1px solid var(--line); border-radius:var(--r); background:var(--bg); box-shadow:var(--shadow); text-decoration:none; color:var(--fg); height:100%; transition:transform .2s, box-shadow .2s; }
.trainers a:hover { transform:translateY(-2px); }
.trainers .face { margin-bottom:.75rem; box-shadow:0 0 0 3px var(--bg), 0 0 0 5px var(--red); }
.tname { font-family:var(--head); font-weight:800; font-size:1.2rem; }
.ttowns { display:flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.95rem; } .ttowns .ic { width:16px; height:16px; }
.tgo { position:absolute; right:1.4rem; top:1.6rem; color:var(--red); } .tgo .ic { width:20px; height:20px; stroke-width:2.2; }
.chips { list-style:none; display:flex; flex-wrap:wrap; gap:.5rem; margin:1.25rem 0 0; padding:0; }
.chips a, .chips span { display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .95rem; border-radius:999px; border:1px solid rgba(255,255,255,.25); color:#fff; text-decoration:none; font-family:var(--head); font-weight:700; font-size:.9rem; min-height:40px; }
.chips a:hover { border-color:var(--red); background:rgba(212,43,34,.15); }
.chips .ic { width:16px; height:16px; color:#fff; }

/* Certificate check. */
.result { display:flex; gap:1rem; align-items:flex-start; border-radius:var(--r); padding:1.35rem 1.5rem; margin:1.5rem 0 0; background:var(--warm); border:1px solid var(--line); }
.result > .ic { width:40px; height:40px; }
.result p:last-child { margin-bottom:0; }
.result-valid { border-color:rgba(27,110,58,.35); background:rgba(27,110,58,.06); } .result-valid > .ic .a { stroke:var(--ok); }
.result-gone, .result-none { border-color:rgba(180,35,24,.3); background:rgba(180,35,24,.05); }
.verify .formcard .btn { margin-top:.5rem; }

/* Booking. */
.pair-top { margin-top:0; }
.pair-top .card { margin:0; }
.card h2 { display:flex; align-items:center; gap:.6rem; font-size:1.25rem; }
.card h2 .ic { width:26px; height:26px; }
.bookform { display:grid; gap:1.25rem; margin-top:1.5rem; }
.bookform > .btn { justify-self:start; margin-top:.5rem; }
.bookform .formcard h2 { display:flex; align-items:center; gap:.75rem; font-size:1.3rem; margin:0 0 .75rem; }
.fnum { display:inline-flex; align-items:center; justify-content:center; width:2rem; height:2rem; border-radius:50%; background:var(--red); color:#fff; font-size:.95rem; flex:none; }
.fgrid { display:grid; gap:0 1.25rem; }
@media (min-width: 40rem) { .fgrid { grid-template-columns:1fr 1fr; } }
.summary .run-town { color:var(--fg); margin-bottom:.25rem; } .summary .run-town .ic { color:var(--muted); }
.summary .sess { padding:0; } .summary .price { padding-top:1rem; border-top:1px solid var(--line); }
.paygrid { display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); max-width:48rem; }
.paycard { position:relative; display:flex; flex-direction:column; gap:.35rem; padding:1.6rem 1.6rem 1.5rem; border:1px solid var(--line); border-radius:var(--r); background:var(--bg); box-shadow:var(--shadow); text-decoration:none; color:var(--fg); transition:transform .2s, border-color .2s, box-shadow .2s; }
.paycard:hover { transform:translateY(-2px); border-color:var(--red); }
.paycard > .ic { width:40px; height:40px; margin-bottom:.75rem; }
.pay-t { font-family:var(--head); font-weight:800; font-size:1.15rem; }
.pay-s { font-family:var(--head); font-weight:800; font-size:2rem; letter-spacing:-.02em; }
.pay-go { position:absolute; right:1.5rem; top:1.6rem; width:2.5rem; height:2.5rem; border-radius:50%; background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center; }
.pay-go .ic { width:18px; height:18px; stroke-width:2.2; }
.callout-light { background:var(--warm); max-width:48rem; margin-top:2rem; }

/* ── Shared components (inner pages, booking) ─────────────────────────── */
.card { background:var(--warm); border:1px solid var(--line); border-radius:var(--r); padding:1.4rem 1.5rem 1.6rem; margin:1.75rem 0; }
.card h2 { margin-top:0; }
.towns { display:flex; flex-wrap:wrap; gap:.5rem; padding:0 !important; list-style:none; }
.towns a { display:inline-flex; align-items:center; padding:.5rem 1.1rem; border:1.5px solid var(--line); border-radius:999px; min-height:44px; text-decoration:none; color:var(--fg); font-family:var(--head); font-weight:700; font-size:.95rem; background:var(--bg); }
.towns a:hover { border-color:var(--red); color:var(--accent); }
.steps { padding-left:1.25rem; } .steps li { margin:.4rem 0; }

/* Forms */
label { display:block; font-weight:700; font-size:.92rem; margin:1.15rem 0 .4rem; letter-spacing:.005em; } .opt { font-weight:400; color:var(--muted); font-family:var(--body); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea { width:100%; font:inherit; padding:.75rem .9rem; border:1px solid #cfc8bf; border-radius:var(--r-sm); background:var(--bg); color:var(--fg); min-height:48px; transition:border-color .15s, box-shadow .15s; }
@media (prefers-color-scheme: dark) { input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea { border-color:#40363f; background:#0c0a0c; } }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--red); box-shadow:0 0 0 4px rgba(212,43,34,.14); }
label.check { font-weight:400; font-family:var(--body); font-size:1rem; display:flex; gap:.7rem; align-items:flex-start; letter-spacing:0; } label.check input { width:1.25rem; height:1.25rem; margin-top:.2rem; accent-color:var(--red); flex:none; }
textarea { resize:vertical; }
.err { color:var(--err); margin:.35rem 0 0; font-weight:600; font-size:.95rem; } .ok { color:var(--ok); font-weight:600; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.terms { max-height:24rem; overflow:auto; border:1px solid var(--line); border-radius:var(--r-sm); padding:.25rem 1.1rem; background:var(--bg); margin-bottom:.5rem; }
.terms h3 { font-size:1.02rem; margin:1rem 0 .25rem; }
details { margin-top:1rem; } summary { cursor:pointer; font-weight:700; min-height:44px; display:flex; align-items:center; gap:.6rem; color:var(--fg); list-style:none; }
summary::-webkit-details-marker { display:none; }
main summary::before { content:"+"; display:inline-flex; align-items:center; justify-content:center; width:1.5rem; height:1.5rem; border-radius:50%; background:var(--warm-2); color:var(--red); font-weight:800; flex:none; }
main details[open] > summary::before { content:"\2212"; }
.step { color:var(--muted); font-family:var(--head); font-size:.72rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; margin:2rem 0 -1.25rem; }
h1 + .step, .step:first-child { margin-top:1.5rem; }
fieldset.date { border:0; padding:0; margin:1.15rem 0 0; } fieldset.date legend { font-weight:700; padding:0; font-size:.92rem; }
.hint { color:var(--muted); margin:.1rem 0 .35rem; font-size:.95rem; }
.dateparts { display:flex; gap:.75rem; } .dateparts label { font-weight:400; font-family:var(--body); margin:0 0 .25rem; font-size:.92rem; }
.dateparts div { width:4.75rem; } .dateparts div:last-child { width:6.75rem; }
[aria-invalid="true"] { border-color:var(--err) !important; border-width:2px !important; }
.errsum { border:2px solid var(--err); border-radius:var(--r-sm); padding:.6rem 1.1rem; margin:1.5rem 0 0; } .errsum p { font-weight:700; margin:.4rem 0; } .errsum ul { margin:.25rem 0 .5rem; padding-left:1.2rem; } .errsum a { color:var(--err); font-weight:600; }
#form:focus { outline:none; }
table.fees { width:100%; border-collapse:collapse; margin:1.25rem 0; } table.fees th, table.fees td { border-bottom:1px solid var(--line); padding:.75rem .5rem; text-align:left; vertical-align:top; }
table.fees th { font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
@media (max-width: 40rem) { table.fees thead { display:none; } table.fees td { display:block; border:0; padding:.2rem 0; } table.fees tr { display:block; border-bottom:1px solid var(--line); padding:.6rem 0; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background:var(--night); color:#a9a3a9; margin-top:0; font-size:.95rem; border-top:3px solid var(--red); }

.footwrap { max-width:var(--wide); margin:0 auto; padding:0 1.25rem; }
@media (min-width: 48rem) { .footwrap { padding:0 2rem; } }
.foot > .footwrap { display:grid; gap:2.25rem; padding-top:3.5rem; padding-bottom:3rem; }
@media (min-width: 48rem) { .foot > .footwrap { grid-template-columns:1.6fr 1fr 1fr 1fr; } }
.fbrand .fwm { font-size:1.6rem; margin:0 0 1.25rem; }
.fbrand p { max-width:24rem; line-height:1.6; } .foot strong { color:#fff; }
.fhead { color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; margin:0 0 1rem; }
.fcol ul { list-style:none; margin:0; padding:0; } .fcol li { margin:0; }
.fcol a { color:#d6d1d6; text-decoration:none; display:inline-block; padding:.35rem 0; min-height:36px; }
.fcol a:hover { color:#fff; text-decoration:underline; }
.footbar { border-top:1px solid rgba(255,255,255,.08); font-size:.85rem; }
.footbar .footwrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem 1.5rem; padding-top:1.1rem; padding-bottom:1.4rem; }
.footbar a { color:#d6d1d6; margin-left:1.25rem; text-decoration:none; } .footbar a:first-child { margin-left:0; } .footbar a:hover { color:#fff; }
.foot a:focus-visible { outline-color:#fff; }

/* Analytics consent bar (site.js). */
.consent { position:fixed; left:1rem; right:1rem; bottom:1rem; max-width:40rem; margin:0 auto; background:var(--night-2); color:#fff; border:1px solid rgba(255,255,255,.12); border-radius:var(--r); box-shadow:0 20px 50px rgba(0,0,0,.45); padding:1.1rem 1.25rem; z-index:40; }
.consent p { margin:0 0 .75rem; }
.consent .btn.secondary { color:#fff; border-color:rgba(255,255,255,.5); }

/* ── Photos (assets/img/photos; steer_photo() in _layout.php) ─────────────── */
/* Home hero: the photo fills the band; a dark gradient keeps the words readable. */
.hero.has-photo { background:var(--night); }
.hero-photo { position:absolute; inset:0; z-index:-2; }
.hero-photo img, .band-photo img, .phead-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.hero-photo img { object-position:62% 50%; }
.hero.has-photo::before { background:linear-gradient(180deg, rgba(11,11,12,.62) 0%, rgba(11,11,12,.72) 45%, rgba(11,11,12,.94) 100%); }
@media (min-width: 62rem) {
  .hero.has-photo .hero-in { min-height:clamp(32rem, 74vh, 44rem); }
  .hero.has-photo::before { background:radial-gradient(60rem 30rem at 85% 110%, rgba(212,43,34,.18), transparent 60%), linear-gradient(90deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.86) 34%, rgba(11,11,12,.38) 64%, rgba(11,11,12,.2) 100%), linear-gradient(0deg, rgba(11,11,12,.55) 0%, transparent 35%); }
}

/* The three parts of the course with a trainer, as pictures. */
.stages { list-style:none; margin:0 0 3rem; padding:0; display:grid; gap:1.25rem; }
@media (min-width: 48rem) { .stages { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
.stages li { margin:0; background:var(--bg); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; box-shadow:0 1px 2px rgba(20,20,20,.04), 0 12px 30px rgba(20,20,20,.07); }
.stages picture { display:block; aspect-ratio:3 / 2; overflow:hidden; background:var(--night); }
.stages img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.stages li:hover img { transform:scale(1.03); }
.stages p { margin:0; padding:1rem 1.25rem 1.2rem; border-top:3px solid var(--red); color:var(--fg-2); font-size:.98rem; line-height:1.4; }
.stages strong { display:block; font-family:var(--head); font-size:1.08rem; font-weight:800; color:var(--fg); margin-bottom:.15rem; }

/* Dark band with a photo behind it (the certificate section). */
.band-photo { position:absolute; inset:0; z-index:-2; }
.band-photo img { object-position:50% 40%; }
.band-night.has-photo::before { background:radial-gradient(50rem 26rem at 100% 0%, rgba(212,43,34,.12), transparent 60%), linear-gradient(180deg, rgba(11,11,12,.62) 0%, rgba(11,11,12,.5) 30%, rgba(11,11,12,.78) 70%, rgba(11,11,12,.92) 100%); }
.band-night.has-photo .intro h2 { text-shadow:0 2px 18px rgba(0,0,0,.55); }
.band-night.has-photo .panel-glass { background:rgba(11,11,12,.55); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.band-night.has-photo .callout { background:rgba(11,11,12,.55); }

/* A photo under the words of a split section (Register your interest). */
.split-photo { display:block; margin-top:2rem; }
.split-photo img { display:block; width:100%; aspect-ratio:3 / 2; object-fit:cover; border-radius:var(--r); box-shadow:0 18px 40px rgba(20,20,20,.14); }
@media (max-width: 47.99rem) { .split-photo { margin:1.5rem 0 .5rem; } }

/* Inner page headers with a photo. */
.phead.has-photo::before { background:radial-gradient(42rem 22rem at 92% 120%, rgba(212,43,34,.2), transparent 62%), linear-gradient(180deg, rgba(11,11,12,.8), rgba(11,11,12,.88)); }
.phead-photo { position:absolute; inset:0; z-index:-2; }
.phead-photo img { object-position:70% 45%; }
@media (min-width: 48rem) {
  .phead.has-photo::before { background:radial-gradient(42rem 22rem at 92% 120%, rgba(212,43,34,.2), transparent 62%), linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.86) 42%, rgba(11,11,12,.42) 78%, rgba(11,11,12,.3) 100%); }
  .phead.has-photo .phead-in { padding-top:clamp(2.5rem, 6vw, 4rem); padding-bottom:clamp(3rem, 7vw, 5rem); }
}

/* Home hero, photo version: one column of words over the photo, the four facts in a strip below. */
.hero.has-photo .hero-in { grid-template-columns:minmax(0, 1fr); align-content:center; }
.hero.has-photo .hero-copy { max-width:38rem; }
.hero-strip { padding-bottom:1.5rem; }
.hero-strip .facts { grid-template-columns:repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .hero-strip .facts { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
.hero-strip .facts li { background:rgba(11,11,12,.66); }
@media (min-width: 62rem) {
  .hero.has-photo .hero-in { min-height:clamp(26rem, 58vh, 36rem); padding-bottom:2.5rem; }
  .hero.has-photo::before { background:radial-gradient(60rem 30rem at 85% 110%, rgba(212,43,34,.16), transparent 60%), linear-gradient(90deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.8) 32%, rgba(11,11,12,.22) 60%, rgba(11,11,12,.05) 100%), linear-gradient(0deg, rgba(11,11,12,.8) 0%, rgba(11,11,12,.2) 30%, transparent 50%); }
}
/* Per-photo framing in the wide, short page headers (keep faces in view). */
.phead-photo img[src*="/keys-"] { object-position:60% 22%; }
.phead-photo img[src*="/classroom-"] { object-position:65% 30%; }
.phead-photo img[src*="/practical-"] { object-position:60% 40%; }
.phead-photo img[src*="/online-"] { object-position:60% 40%; }
/* Phones and tablets: frame the hero on the learner driver, lighter at the top. */
@media (max-width: 61.99rem) {
  .hero-photo img { object-position:86% 35%; }
  .hero.has-photo::before { background:linear-gradient(180deg, rgba(11,11,12,.5) 0%, rgba(11,11,12,.66) 38%, rgba(11,11,12,.9) 72%, rgba(11,11,12,.96) 100%); }
}
/* Phones: the photo sits above the words, clear and uncovered, fading into the dark band. */
@media (max-width: 47.99rem) {
  .hero-photo { position:relative; inset:auto; z-index:0; display:block; aspect-ratio:4 / 3; }
  .hero-photo img { object-position:78% 40%; }
  .hero-photo::after { content:""; position:absolute; inset:auto 0 0 0; height:45%; background:linear-gradient(180deg, transparent, var(--night)); }
  .hero.has-photo::before { background:none; }
  .hero.has-photo .hero-in { padding-top:1.25rem; }
}

/* The Steer Driver Training wordmark (logo C, 18 Nov 2026): bold STEER over a red dashed centre line, DRIVER TRAINING beneath. Text, so it is sharp at any size; size it with font-size on .stw. */
.stw { display:inline-flex; flex-direction:column; align-items:flex-start; line-height:1; color:#fff; font-family:"Montserrat", "Avenir Next", "Segoe UI", sans-serif; }
.stw-top { display:inline-flex; flex-direction:column; gap:.2em; }
.stw-n { font-weight:800; font-size:1.6em; letter-spacing:.04em; }
.stw-r { display:block; height:.2em; min-height:3px; border-radius:2px; background:repeating-linear-gradient(90deg, #D42B22 0 .78em, transparent .78em 1.12em); }
.stw-s { font-weight:500; font-size:.5em; letter-spacing:.34em; margin-top:.5em; color:#bdb7bd; white-space:nowrap; }
.stw.ink { color:#111214; } .stw.ink .stw-s { color:#5a5560; }
