/* Extracted verbatim from ~/workspace/ts-spaces/gran-fondo-qualifier-collector/index.html
   Block 1: lines 12-1981 (main stylesheet). Block 2: line 3450 (.sr-only rule).
   No rule has been added, removed or reordered. Do not edit by hand: re-extract on change. */
      :root {
        --bg: #eef7f7;
        --bg-soft: #ddeef2;
        --card: #ffffff;
        --ink: #213e4a;
        --ink-strong: #0a4a5e;
        --muted: #4e6570;
        --sunset-solid: #b84a1f;
        --line: #c8dde3;
        --line-strong: #9abeca;
        --accent: #0a4a5e;
        --accent-dark: #062f3d;
        --accent-soft: #ddeef2;
        --sky: #5fb0c9;
        --sunset: #e4572e;
        --sunset-text: #b84a1f;
        --red: #b84a1f;
        --header-bg: #0a4a5e;
        --header-ink: #eef7f7;
        --header-sub: #bfe0ea;
        --open-bg: #dff0e2; --open-ink: #1c6b32;
        --soon-bg: #fdeeda; --soon-ink: #9a4a12;
        --closed-bg: #e3edef; --closed-ink: #4a626e;
        --chip-bg: #ddeef2;
        --gravel-bg: #eae2cf; --gravel-ink: #6e5a30;
        --shadow: 0 1px 2px rgba(10,74,94,.06), 0 4px 14px rgba(10,74,94,.06);
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #0a2e3a;
          --bg-soft: #0f3a47;
          --card: #113845;
          --ink: #d3e6eb;
          --ink-strong: #eef7f7;
          --muted: #93b3bd;
          --sunset-solid: #b84a1f;
          --line: #1e4a58;
          --line-strong: #2f6375;
          --accent: #5fb0c9;
          --accent-dark: #9fd3e4;
          --accent-soft: #123f4d;
          --sky: #5fb0c9;
          --sunset: #e4572e;
          --sunset-text: #f5a37e;
          --red: #f5a37e;
          --header-bg: #062530;
          --header-ink: #eef7f7;
          --header-sub: #93b3bd;
          --open-bg: #173d24; --open-ink: #7ed491;
          --soon-bg: #4a341f; --soon-ink: #ffcf9e;
          --closed-bg: #1d3540; --closed-ink: #9fb8c0;
          --chip-bg: #143e4c;
          --gravel-bg: #403823; --gravel-ink: #e6d194;
          --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
        }
      }
      * { box-sizing: border-box; }
      /* Accessibility pass: one visible focus outline for every
         interactive element — links, buttons, filter chips, series
         toggle, sort buttons, nav links, carousel arrows and dots,
         compare toggles and checkboxes, share controls, hub links,
         menu button, form fields and entry controls. No outline is
         ever removed without this replacement. The outline color is
         the deep glacier accent: 9.75:1 against white and 8.95:1
         against the page background, where the sky blue alone
         measured only 2.46:1 and failed the 3:1 non-text minimum.
         Inside the dark header and the dark carousel panel the
         outline switches to sky (3.96:1 on the header, 5.76:1 on the
         carousel panel); in dark mode the accent itself is sky, so
         the same rules hold. */
      :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
      .chip:focus-visible, .series-btn:focus-visible, .hub-series-btn:focus-visible,
      .view-toggle button:focus-visible, .hub-view-toggle button:focus-visible,
      nav.main a:focus-visible, .wc-arrow:focus-visible, .menu-toggle:focus-visible,
      .btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
      header.site :focus-visible, .worlds-carousel :focus-visible { outline-color: var(--sky); }
      .wc-dot:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
      .compare-toggle:focus-within, .rt-check:focus-within, .check-row:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
      input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
      .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Barlow", system-ui, sans-serif;
        font-size: 17px;
        line-height: 1.5;
      }
      h1, h2, h3, .cond { font-family: "Barlow Condensed", "Barlow", sans-serif; }
      a { color: var(--accent); }
      button, select, input { font: inherit; }
      button, [role="button"], select, input:not([type="checkbox"], [type="radio"]) { min-height: 2.25rem; }
      .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

      /* ---------- header ---------- */
      header.site {
        border-bottom: 3px solid var(--sky);
        background: var(--header-bg);
        color: var(--header-ink);
        position: sticky; top: 0; z-index: 40;
      }
      .header-in { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
      /* The header shares the page's 1160px wrap, so its content sits
         on the same grid as every page section: the lockup and nav
         left edge align with each page lead block's left edge, and the
         language selector's right edge aligns with the right edge of
         the cards below it. The full nav row — ten items including
         Submit your event — plus the language selector still fits on
         one line inside it: the row needs about 887px of the 1120px
         content width, verified by measurement. */
      header.site .wrap { max-width: 1280px; }
      .header-brand-row { display: flex; align-items: center; }
      .header-nav-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: nowrap; width: 100%; }
      .brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--header-ink); }
      .brand .name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 30px; letter-spacing: .4px; text-transform: uppercase; line-height: 1; }
      .brand .name em { font-style: normal; color: var(--sky); }
      .brand .sub { font-size: 12.5px; color: var(--header-sub); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
      /* ---------- home icon: visible in the header on every page view, 44px tap target ---------- */
      .home-link {
        display: inline-flex; align-items: center; justify-content: center; gap: 7px;
        width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: none;
        border-radius: 8px; border: 1.5px solid var(--sky);
        background: rgba(95,176,201,.18); color: var(--header-ink);
        text-decoration: none; cursor: pointer;
      }
      .home-link:hover { background: rgba(95,176,201,.38); }
      .home-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
      .home-link svg { width: 24px; height: 24px; display: block; flex: none; }
      .home-link .home-text { font-weight: 700; font-size: 14.5px; line-height: 1; }
      /* Home link inside the standalone page bars (light background) */
      .home-link--bar {
        width: auto; padding: 0 14px 0 10px;
        background: var(--accent); border-color: var(--accent); color: #fff;
      }
      @media (prefers-color-scheme: dark) { .home-link--bar { color: #062f3d; } }
      .home-link--bar:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
      @media (prefers-color-scheme: dark) { .home-link--bar:hover { color: #062f3d; } }
      .how-standalone-bar, .results-standalone-bar, .worlds-standalone-bar, .alerts-standalone-bar, .standalone-bar { align-items: center; gap: 10px; flex-wrap: wrap; }
      body.how-only .how-standalone-bar { display: flex; }
      .results-standalone-bar, .worlds-standalone-bar, .alerts-standalone-bar, .standalone-bar { display: flex; }
      nav.main { margin-left: 0; flex: 1 1 auto; min-width: 0; display: flex; gap: 1px; flex-wrap: wrap; align-items: center; }
      nav.main a {
        color: var(--header-ink); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap;
        padding: 9px 5px; border-radius: 6px; min-height: 36px; display: inline-flex; align-items: center;
      }
      nav.main a:hover { background: rgba(95,176,201,.28); }
      /* Home icon as the first item of the nav row, just before Calendar:
         keep its own bordered 44px square, not the plain text-link styling. */
      nav.main a.home-link {
        width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: 0 0 44px;
        padding: 0; margin-right: 3px; align-self: center; justify-content: center;
        border-radius: 8px; border: 1.5px solid var(--sky);
        background: rgba(95,176,201,.18); color: var(--header-ink);
      }
      nav.main a.home-link:hover { background: rgba(95,176,201,.38); }
      .mocknote {
        background: var(--soon-bg); color: var(--soon-ink);
        font-size: 13.5px; font-weight: 600; text-align: center; padding: 6px 14px;
      }

      /* ---------- hero ---------- */
      .hero { padding-top: 16px; padding-bottom: 4px; }
      .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.hero-left { display: flex; flex-direction: column; min-height: 0;}
      .hero h1 { font-size: clamp(42px, 6vw, 64px); line-height: .98; margin: 0 0 14px; color: var(--ink-strong); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
      .hero h1 .hl { color: var(--red); }
      .hero p.lede { font-size: 15.5px; line-height: 1.5; color: var(--ink); margin: 0 0 10px; max-width: none; }
      .hero p.lede strong { color: var(--ink-strong); }
      .hero .tag { font-weight: 600; color: var(--muted); margin: 0 0 20px; font-size: 16px; }
      .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
      .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        min-height: 46px; padding: 10px 20px; border-radius: 7px; font-weight: 700; font-size: 16px;
        text-decoration: none; cursor: pointer; border: 1.5px solid var(--accent);
      }
      .btn-solid { background: var(--accent); color: #fff; }
      @media (prefers-color-scheme: dark) { .btn-solid { color: #062f3d; } }
      .btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
      /* Secondary button: same height, padding, radius and typography as
         .btn-solid (both share the .btn base) — only the color treatment
         differs, so paired buttons always read as a matched set. */
      .btn-ghost { background: var(--card); color: var(--accent); border-color: var(--accent); }
      .btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-dark); color: var(--accent-dark); }
      .btn-small { min-height: 38px; padding: 6px 14px; font-size: 14.5px; border-width: 1px; }
      .profile-card {
        border: 1px solid var(--line); border-radius: 10px; background: var(--card);
        box-shadow: var(--shadow); padding: 12px 14px 6px;
      }
      .profile-card svg { max-height: 108px; }
      .profile-card .pc-head, .profile-section .pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
      .profile-card .pc-title, .profile-section .pc-title { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-strong); }
      .profile-card .pc-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
      .profile-stats { display: flex; gap: 16px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 7px; flex-wrap: wrap; }
      .profile-stats div b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 20px; color: var(--ink-strong); line-height: 1; }
      .profile-stats div span { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
      .profile-variants { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 7px; display: flex; flex-direction: column; gap: 4px; }
      .profile-variants .pv-head { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
      .pv-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; align-items: baseline; line-height: 1.3; }
      .pv-row .pv-label { font-weight: 700; color: var(--ink-strong); white-space: nowrap; }
      .pv-row .pv-detail { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
      .pv-row .pv-detail small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; line-height: 1.25; }
      /* Short-course rows carry the same dark label as every other row —
         the short course is distinguished by its text, never by color. */
      .pv-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 2px; line-height: 1.35; }
      /* ---------- language selector (mockup placeholder) ---------- */
      .lang-switch { display: flex; align-items: center; flex: none; margin-left: auto; }
      .lang-switch select {
        background: rgba(255,255,255,.1); color: var(--header-ink); border: 1px solid var(--sky);
        border-radius: 7px; padding: 8px 5px; font-weight: 700; font-size: 13.5px; min-height: 44px; cursor: pointer; max-width: 130px;
      }
      .lang-switch select option { color: #213e4a; background: #fff; }
      .lang-note { width: 100%; font-size: 12.5px; color: var(--header-sub); font-weight: 600; min-height: 1.2em; }
      .lang-note:empty { display: none; }
      /* ---------- phone drop-down menu control ----------
         Hidden on desktop, where the full nav row is always visible.
         On phones it sits in the brand row (see the 700px rules below)
         and opens the drop-down panel. The "Home" text beside the home
         icon is likewise phone-panel only; desktop keeps the icon alone. */
      .menu-toggle { display: none; }
      nav.main a.home-link .home-text { display: none; }
      /* Phone: the brand row carries the full settled lockup (unchanged)
         plus a clearly labeled Menu control — there is NO slider row.
         The nav row becomes a drop-down panel, hidden until the Menu
         control opens it, listing every nav item in the settled order
         (Home, Calendar, How Worlds qualification works,
         Results, Entry alerts, Contact, About, Submit your event) plus the
         language selector, each a 44px+ target, stacked vertically so
         nothing scrolls sideways and the page never gains horizontal
         overflow. The panel closes on selection, on an outside tap and
         on Escape (see the menu script). Desktop is untouched. */
      @media (max-width: 700px) {
        .header-in { gap: 6px; padding-top: 10px; padding-bottom: 8px; }
        .header-brand-row { min-width: 0; align-items: center; }
        /* Full settled lockup on phone, exactly as desktop carries it:
           the GRAN FONDO CALENDAR wordmark with "Road to the Worlds" beneath it.
           Stacked in a column so neither line can clip or be dropped at
           narrow widths — the wordmark scales down slightly instead
           (28px, then 25px under 380px, see the 620px rules below). */
        .brand { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
        .brand .name { font-size: 28px; line-height: 1; }
        .brand .sub { display: block; font-size: 11.5px; letter-spacing: .06em; white-space: nowrap; line-height: 1.25; }
        .menu-toggle {
          display: inline-flex; align-items: center; justify-content: center; gap: 8px;
          margin-left: auto; flex: none; min-height: 48px; padding: 10px 16px;
          border-radius: 8px; border: 1.5px solid var(--sky); cursor: pointer;
          background: rgba(95,176,201,.18); color: var(--header-ink);
          font-weight: 700; font-size: 16px; line-height: 1;
        }
        .menu-toggle:hover { background: rgba(95,176,201,.38); }
        .menu-toggle:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
        .menu-toggle svg { width: 22px; height: 22px; display: block; flex: none; }
        .menu-toggle .icon-close { display: none; }
        .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
        .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
        /* Drop-down panel: hidden until the header carries .nav-open */
        .header-nav-row { display: none; }
        header.site.nav-open .header-nav-row {
          display: flex; flex-direction: column; align-items: stretch; gap: 10px;
          width: 100%; padding: 10px 0 6px; margin-top: 2px;
          border-top: 1px solid rgba(95,176,201,.4);
          max-height: calc(100vh - 96px); overflow-y: auto; -webkit-overflow-scrolling: touch;
        }
        .header-nav-row nav.main {
          display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
          gap: 2px; flex: none; width: 100%; min-width: 0; overflow: visible;
        }
        .header-nav-row nav.main a {
          flex: none; width: 100%; min-height: 48px; padding: 12px 10px;
          justify-content: flex-start; text-align: left; font-size: 16px; white-space: normal;
        }
        .header-nav-row nav.main a.home-link {
          flex: none; width: 100%; height: auto; min-width: 0; min-height: 48px;
          margin-right: 0; padding: 10px; justify-content: flex-start; gap: 9px;
        }
        .header-nav-row nav.main a.home-link .home-text { display: inline; }
        .header-nav-row .lang-switch { flex: none; width: 100%; margin-left: 0; }
        .header-nav-row .lang-switch select { width: 100%; max-width: none; min-height: 48px; font-size: 15px; }
      }
      /* ---------- hero photo carousel ---------- */
      .worlds-carousel { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-strong); background: #062f3d; height: auto; align-self: end; display: flex; flex-direction: column; }
      /* Slide geometry is fixed by the carousel, never by a slide's content:
         every slide occupies the SAME single grid cell in the viewport and
         stretches to it, so all slides — the featured slide and the
         entries-open slides — render at exactly the same total
         width and height, with the same fixed photo band (312px / 336px
         below) and the same panel height (.wc-body flexes to fill the rest
         of the slide). Inactive slides are visibility:hidden, not
         display:none, precisely so they still take part in sizing the cell:
         the cell is as tall as the tallest slide's natural content, and
         every slide fills it, so the slides size the carousel by the
         tallest slide's natural content height. The carousel takes exactly
         that height (height: auto) and no longer stretches to the hero
         row; instead it is anchored to the row's bottom (align-self: end),
         the same line the hero ad's bottom is pinned to, so the card
         bottom and the ad bottom stay on one line in either sizing
         direction, whether the carousel or the left column is the taller
         side. Content differences between slides can never stretch or
         shrink a slide again. */
      .wc-viewport { position: relative; overflow: hidden; touch-action: pan-y; flex: 1 1 auto; display: grid; grid-template-rows: 1fr; }
      .wc-slide { display: flex; flex-direction: column; justify-content: flex-start; grid-area: 1 / 1; visibility: hidden; pointer-events: none; text-decoration: none; color: #fff; position: relative; background: #062f3d; }
      .wc-slide.is-active { visibility: visible; pointer-events: auto; }
      .wc-slide:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
      /* Photo: shorter clear band, extended tail behind the title + stats.
         The photo is absolutely positioned and 312px tall in total, but only
         its top ~90px stays clear — that is the visible photo the reader
         sees, smaller than the old 210px band. From there it fades HEAVILY
         into the deep-glacier panel color across the whole title-and-stats
         zone, so the slide heading and the distance / climbing / date stats
         sit over the heavily faded tail of the photo. Identical geometry,
         focal logic and fade on both slides, so nothing jumps on the flip
         and the riders stay visible in the clear top part. */
      .wc-photo { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 312px; object-fit: cover; object-position: center 38%; z-index: 0; }
      /* Focal points keep the riders in the clear top part of each photo */
      .wc-slide[data-wc-slide="1"] .wc-photo { object-position: 42% 26%; }
      .wc-slide[data-wc-slide="2"] .wc-photo { object-position: 50% 34%; }
      /* Heavy melt fade across the title-and-stats zone: clear at the top,
         then rapidly to near-solid panel color, fully solid well before
         the course rows so the rows below sit on the solid panel. */
      .wc-shade { position: absolute; top: 0; left: 0; right: 0; height: 312px; z-index: 1; background: linear-gradient(180deg, rgba(6,47,61,0) 0%, rgba(6,47,61,0) 29%, rgba(6,47,61,.52) 41%, rgba(6,47,61,.87) 57%, rgba(6,47,61,.97) 74%, rgba(6,47,61,.97) 100%); pointer-events: none; }
      /* Text block: pushed down so the title starts inside the heavy fade.
         Transparent over the title + stats (they read over the faded photo
         tail), then a solid panel from just above the course rows down, so
         the rows, note and credit always sit on solid deep glacier. */
      .wc-body { position: relative; z-index: 2; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; margin-top: 110px; background: linear-gradient(180deg, rgba(6,47,61,0) 0, rgba(6,47,61,0) 104px, rgba(6,47,61,.97) 138px, rgba(6,47,61,.97) 100%); padding: 10px 18px 54px; }
      .wc-top { display: flex; justify-content: flex-start; align-items: center; gap: 10px; flex-wrap: wrap; }
      .wc-title { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
      /* Open Worlds CTA: a plain text link on the solid panel, never over the photo.
         It sits in its own row below the course rows, where the panel background is
         fully solid, on both slides. No label sits over the photo. */
      .wc-cta-row { display: flex; justify-content: flex-end; border-top: 1px solid rgba(255,255,255,.18); padding-top: 10px; }
      .wc-open { flex: none; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: transparent; color: #fff; padding: 2px 0; text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 4px; }
      .wc-slide:hover .wc-open { text-decoration-color: #fff; }
      .wc-stats { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.35); padding-top: 12px; }
      .wc-stats > span { display: block; flex: 1 1 0; min-width: 96px; }
      .wc-stats > span > b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 21px; line-height: 1.1; color: #fff; }
      .wc-stats > span > span { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #d7ecf2; margin-top: 3px; line-height: 1.3; }
      .wc-rows { display: flex; flex-direction: column; }
      .wc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; align-items: baseline; line-height: 1.4; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.18); }
      .wc-row:first-child { border-top: none; padding-top: 0; }
      .wc-row:last-child { padding-bottom: 0; }
      .wc-row .wc-label { font-weight: 700; white-space: nowrap; color: #fff; }
      /* Short-course rows on the slides use the same white label as the
         other rows — distinguished by text, not color. */
      .wc-row .wc-detail { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
      .wc-row .wc-detail small { display: block; color: #d7ecf2; font-weight: 600; font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
      .wc-top, .wc-stats { text-shadow: 0 1px 10px rgba(6,47,61,.95), 0 0 3px rgba(6,47,61,.9); }
      .wc-note { font-size: 13px; color: #e6f2f5; margin: 0; line-height: 1.45; }
      .wc-credit { font-size: 11px; color: #b9d8e1; line-height: 1.35; }
      /* Visually hidden live region announcing the current slide
         ("Slide 2 of 3: …") to assistive technology on every change. */
      .wc-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
      .wc-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 6px; pointer-events: none; }
      .wc-dots { display: flex; gap: 8px; pointer-events: auto; }
      .wc-dot { width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
      .wc-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); border: 1.5px solid rgba(255,255,255,.85); display: block; }
      .wc-dot[aria-current="true"]::before { background: #fff; width: 12px; height: 12px; }
      .wc-arrows { display: flex; gap: 6px; pointer-events: auto; }
      .wc-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); background: rgba(6,47,61,.72); color: #fff; font-size: 19px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
      .wc-arrow:hover { background: rgba(6,47,61,.95); }
      @media (max-width: 620px) {
        .wc-photo { height: 336px; }
        .wc-shade { height: 336px; }
        .wc-body { margin-top: 112px; background: linear-gradient(180deg, rgba(6,47,61,0) 0, rgba(6,47,61,0) 118px, rgba(6,47,61,.97) 152px, rgba(6,47,61,.97) 100%); padding: 10px 14px 56px; gap: 10px; }
        .wc-stats { gap: 10px; padding-top: 10px; }
        .wc-stats > span { min-width: 0; }
        .wc-stats > span > b { font-size: 19px; }
        .wc-row { padding: 7px 0; }
        .wc-row .wc-label { white-space: normal; }
      }
      @media (prefers-reduced-motion: reduce) { .wc-slide { transition: none; } }
      .freshness { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-left: 4px solid var(--sky); background: var(--card); border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; font-size: 14.5px; box-shadow: var(--shadow); }
      .freshness .fresh-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; margin-top: 6px; }
      .fee-tiers { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 5px; line-height: 1.45; }
      .freshness strong { color: var(--ink-strong); }
      /* ---------- ad placeholders: exactly one per page view, fixed reserved height ---------- */
      .ad-slot {
        border: 1.5px dashed var(--line-strong); background: var(--bg-soft); border-radius: 10px;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        text-align: center; color: var(--muted); padding: 10px 14px;
      }
      .ad-slot .ad-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
      .ad-slot .ad-sub { font-size: 12.5px; font-weight: 600; }
      .ad-slot--leaderboard { height: 110px; }
/* In-feed ad card (item 121, mobile only): same size as a race card. */
.ad-slot--infeed{ min-height: 300px; }
      /* Race page box ad: 250px is the fallback / stacked height. On the
         two-column race page layout its top offset and height are synced
         in script (syncRaceAdHeight) so its top edge aligns exactly with
         the top edge of the who-rides table beside it and
         its bottom edge with the table's bottom edge — the ad exactly
         matches the table's vertical span, for whichever race is
         rendered. */
      .ad-slot--box { height: 250px; margin-bottom: 16px; }
      /* Item 109 amendment 2: hero ad stretches to fill the left column, from the 16px spacing under the buttons to the featured card bottom line. Below 960px the layout stacks and the ad is 250px (see the media rule). */
.ad-slot--hero { flex: 1 1 auto; width: 100%; margin-top: 16px; min-height: 0; }
      @media (max-width: 960px) {
        .hero-left { height: auto; }
        .ad-slot--hero { flex: none; height: 250px; }
      }

      /* ---------- sections ---------- */
      section.block { padding-top: 40px; padding-bottom: 6px; }
      .sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
      .sec-head h2, .sec-head h1 { font-size: clamp(30px, 4vw, 40px); margin: 0; text-transform: uppercase; color: var(--ink-strong); font-weight: 700; line-height: 1; }
      .sec-head .sec-note { color: var(--muted); font-size: 15.5px; }
      /* Free-listing label beside the Submit your event heading: a solid
         sunset pill so the free listing is drawn attention to at the top
         of the page, sitting naturally next to the title in the header
         row (wraps under it at narrow widths via .sec-head's flex-wrap). */
      .sec-head .free-listing {
        display: inline-flex; align-items: center; align-self: center; flex: none;
        background: var(--sunset-solid); color: #fff;
        font-family: "Barlow", sans-serif; font-size: 16.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
        padding: 7px 15px; border-radius: 999px; white-space: nowrap;
      }
      .sec-intro { color: var(--ink); max-width: none; margin: 4px 0 18px; }
      .sec-intro--wide { max-width: none; }
      .freshness--bottom { margin: 0; }
      .freshness-wrap { padding-top: 28px; padding-bottom: 6px; }

      /* ---------- filter bar ---------- */
      .filterbar {
        border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
        padding: 14px 16px 8px; margin-bottom: 20px;
      }
      .filter-row, .hub-filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
      .filter-row .flabel, .view-row .flabel, .hub-filter-row .flabel, .hub-view-row .flabel {
        font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14px;
        text-transform: uppercase; letter-spacing: .07em; color: var(--muted); width: 86px; flex: none;
      }
      /* Cards / Table view toggle: sits with the filter controls, as the
         last row of the filter bar. Cards is the desktop default view;
         a fresh phone-width visit lands in Table instead. */
      .view-row, .hub-view-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
      .view-toggle, .hub-view-toggle { display: inline-flex; border: 1.5px solid var(--accent); border-radius: 8px; overflow: hidden; background: var(--card); }
      .view-toggle button, .hub-view-toggle button { border: none; background: transparent; color: var(--ink-strong); font-weight: 700; font-size: 15px; padding: 9px 22px; cursor: pointer; min-height: 44px; }
      .view-toggle button + button, .hub-view-toggle button + button { border-left: 1.5px solid var(--accent); }
      .view-toggle button:hover, .hub-view-toggle button:hover { background: var(--accent-soft); }
      .view-toggle button[aria-pressed="true"], .hub-view-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
      .view-toggle button[aria-pressed="true"]:hover, .hub-view-toggle button[aria-pressed="true"]:hover { background: var(--accent-dark); }
      @media (prefers-color-scheme: dark) { .view-toggle button[aria-pressed="true"], .hub-view-toggle button[aria-pressed="true"] { color: #062f3d; } }
      #raceGrid[hidden], #raceTableWrap[hidden], #raceCompactWrap[hidden], #hubGrid[hidden], #hubTableWrap[hidden] { display: none !important; }
      .chip {
        border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
        border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14.5px; cursor: pointer; min-height: 36px;
      }
      .chip:hover { border-color: var(--accent); color: var(--accent); }
      .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
      @media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { color: #062f3d; } }
      .series-toggle { display: flex; gap: 0; border: 1.5px solid var(--accent); border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: var(--card); }
      .series-btn, .hub-series-btn { flex: 1; border: none; background: transparent; color: var(--ink-strong); font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; padding: 12px 14px 10px; cursor: pointer; min-height: 56px; line-height: 1.05; }
      .series-btn span, .hub-series-btn span { display: block; font-family: "Barlow", sans-serif; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
      .series-btn[aria-pressed="true"], .hub-series-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
      .series-btn[aria-pressed="true"] span, .hub-series-btn[aria-pressed="true"] span { color: var(--header-sub); }
      @media (prefers-color-scheme: dark) { .series-btn[aria-pressed="true"], .hub-series-btn[aria-pressed="true"] { color: #062f3d; } .series-btn[aria-pressed="true"] span, .hub-series-btn[aria-pressed="true"] span { color: #0f3a47; } }
      .series-note { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
      .series-note strong { color: var(--ink-strong); }
      /* Calendar explainer sits below the filter panel: with the note
         gone from between them, the discipline tabs close up to the
         panel at the standard 16px gap, and the panel's gap down to
         the note is 16px rather than its old 20px above the results.
         Scoped to the calendar so the hub toolbar keeps its spacing. */
      #calendar .series-toggle { margin-bottom: 16px; }
      #calendar .filterbar { margin-bottom: 16px; }
      /* Item 96: hero-to-lens gap matches the standard 16px gap —
         12px here plus the hero's 4px bottom padding. Lens-to-tabs
         gap aligned to the same 16px standard. */
      #calendar { padding-top: 12px; }
      #calendar .lens-toggle { margin-bottom: 16px; }
      /* All-events selector (item 59): the lens row above the
         discipline tabs — same box and button treatment as the
         series toggle it precedes, one step larger. */
      .lens-toggle { display: flex; gap: 0; border: 1.5px solid var(--accent); border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: var(--card); }
      .lens-btn { flex: 1; border: none; background: transparent; color: var(--ink-strong); font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 27px; text-transform: uppercase; letter-spacing: .03em; padding: 13px 14px 11px; cursor: pointer; min-height: 60px; line-height: 1.05; }
      .lens-btn span { display: block; font-family: "Barlow", sans-serif; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
      .lens-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
      .lens-btn[aria-pressed="true"] span { color: var(--header-sub); }
      @media (prefers-color-scheme: dark) { .lens-btn[aria-pressed="true"] { color: #062f3d; } .lens-btn[aria-pressed="true"] span { color: #0f3a47; } }
      .lens-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
      /* Listing batching (item 59): the Show more row under the
         listing, centred, shown only while more of the filtered
         set is unrendered. */
      .show-more-row { display: flex; justify-content: center; margin: 18px 0 4px; }
      .show-more-row[hidden] { display: none; }
      @media (max-width: 700px) {
        #calendar .series-toggle { flex-wrap: wrap; }
        #calendar .series-btn { flex: 1 1 26%; }
        .lens-btn { font-size: 22px; min-height: 60px; padding: 12px 10px; }
      }
      .disc-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; margin-top: 7px; }
      /* Discipline pill differentiation: Road keeps the teal treatment
         above; Gravel gets a muted warm sand/khaki — a different hue
         family from the teal, from the orange Featured badge and from
         every status pill (green open, amber soon, grey closed). Only
         the pill changes; cards are never tinted by discipline. */
      .disc-label.is-gravel { background: var(--gravel-bg); color: var(--gravel-ink); }
      .paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
      .path-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); padding: 18px 20px; }
      .path-card .p-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
      .path-card h3 { font-size: 25px; margin: 4px 0 6px; color: var(--ink-strong); line-height: 1.05; }
      .path-card p { margin: 0 0 8px; font-size: 15px; }
      .path-card p:last-child { margin-bottom: 0; }
      .path-card .p-facts { font-size: 14px; color: var(--muted); font-weight: 600; }
      .result-count { font-size: 14.5px; color: var(--muted); font-weight: 600; margin: 2px 0 14px; }
      .search-row .result-count { margin: 0 0 0 auto; text-align: right; }
      /* Calendar + hub search: slim row at the top of the filter bar */
      .search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
      .search-row .flabel { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); width: 86px; flex: none; }
      .search-row input[type="search"] { flex: 1 1 220px; min-height: 44px; padding: 9px 12px; font-size: 15px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink); }
      /* Climbing classification help: a small "?" button immediately
         after the CLIMBING label in the calendar filter bar, opening a
         compact popover (click to open and close, closes on an outside
         click — never hover-only, so it works on touch). Calendar row
         only; the hub toolbar's climbing row is unchanged. */
      .filter-row[data-group="climb"] { position: relative; }
      .help-btn {
        flex: none; width: 30px; height: 30px; min-height: 30px; padding: 0; margin-left: -2px;
        border-radius: 50%; border: 1.5px solid var(--accent); background: var(--card); color: var(--accent);
        font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
      }
      .help-btn:hover { background: var(--accent-soft); }
      .climb-pop {
        position: absolute; top: calc(100% + 4px); left: 0; z-index: 35;
        width: min(330px, calc(100vw - 32px));
        background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px;
        box-shadow: 0 10px 30px rgba(6,47,61,.18); padding: 14px 16px 10px;
      }
      .climb-pop[hidden] { display: none !important; }
      .climb-pop h3 { font-size: 21px; margin: 0 0 2px; color: var(--ink-strong); line-height: 1.1; }
      .climb-pop .cp-sub { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
      .climb-pop ul { list-style: none; margin: 0; padding: 0; }
      .climb-pop li { font-size: 15px; line-height: 1.4; padding: 6px 0; border-top: 1px solid var(--line); }
      .climb-pop li b { color: var(--ink-strong); }
      /* Rider results: Worlds qualification marker */
      .pill-qualified { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 9px; }
      @media (prefers-color-scheme: dark) { .pill-qualified { color: #062f3d; } }
      .rider-qualified-line { font-size: 14.5px; font-weight: 700; color: var(--ink-strong); margin: 2px 0 6px; }
      /* Share panel WhatsApp / Telegram: compact links in the same row,
         panel keeps its existing max-width and single-row footprint */
      .share-apps { display: inline-flex; gap: 6px; align-items: stretch; flex: none; }
      .share-apps a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--card); color: var(--accent); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
      .share-apps a:hover { background: var(--accent-soft); border-color: var(--accent); }
      .no-results { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 26px; text-align: center; color: var(--muted); font-weight: 600; }
      .no-results strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; color: var(--ink-strong); margin-bottom: 4px; }
      .no-results p { margin: 0 0 14px; }
      /* Entries closing line on cards whose entries are open and which
         carry a closing date; the Closing soon marker appears when the
         date falls within 30 days of the page's last-checked date. */
      .closing-line { font-size: 14.5px; font-weight: 700; color: var(--ink-strong); margin: 10px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
      .closing-soon { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--soon-bg); color: var(--soon-ink); border-radius: 999px; padding: 3px 9px; }
      /* Worked example note inside the How page's top-25% step */
      .step .example-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
      .step .example-note strong { color: var(--ink-strong); }
      /* Worlds spotlight countdown */
      .worlds-countdown { font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 700; color: var(--ink-strong); margin: 0 0 12px; line-height: 1.15; }
      .worlds-countdown span { color: var(--red); }
      .worlds-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

      /* ---------- race cards ---------- */
      .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
      .card {
        border: 1px solid var(--line); border-radius: 10px; background: var(--card);
        box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column;
        min-width: 0;
      }
      .card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
      /* The title block must be allowed to shrink (flex items otherwise
         refuse to go below their content width); when even the longest
         unbreakable word plus the status badge cannot fit one line —
         the championship cards on a phone, whose badge reads WORLD
         CHAMPIONSHIPS — the badge wraps under the title instead of
         pushing past the card's right edge and widening the page. */
      .card .top > div { min-width: 0; }
      .card h3 { font-size: 24px; line-height: 1.05; margin: 0; color: var(--ink-strong); font-weight: 700; }
      .card .place { color: var(--muted); font-weight: 600; font-size: 15px; margin-top: 3px; }
      /* Location link: town + country opens a Google Maps search in a new
         tab. Subtle — inherits the place line's color, pin in sunset red,
         underline only on hover/focus. Only the place text is the link. */
      .loc-link { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; font-weight: inherit; padding: 4px 2px 4px 0; border-radius: 4px; }
      .loc-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
      .loc-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
      .loc-link .loc-pin { width: 15px; height: 15px; flex: none; color: var(--red); }
      /* Race name link: the event name itself opens that race's full page,
         rendered from that race's own record. Inherits the name's current
         styling everywhere; accent color + underline on hover/focus. */
      .race-name-link { color: inherit; text-decoration: none; border-radius: 4px; }
      .race-name-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
      .race-name-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
      table.races .rt-race a.race-name-link { color: inherit; }
      table.races .rt-race a.race-name-link:hover { color: var(--accent); }
      table.compare thead th a.race-name-link { color: inherit; }
      table.compare thead th a.race-name-link:hover { color: var(--accent); }
      .badge {
        flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
        padding: 4px 10px; border-radius: 999px; white-space: nowrap;
      }
      .badge.open { background: var(--open-bg); color: var(--open-ink); }
      .badge.soon { background: var(--soon-bg); color: var(--soon-ink); }
      .badge.closed { background: var(--closed-bg); color: var(--closed-ink); }
      .badge.confirmed { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--sky); }
      .badge.unconfirmed { background: var(--closed-bg); color: var(--closed-ink); border: 1.5px dashed var(--line-strong); }
      .badge.champ { background: var(--ink-strong); color: var(--bg); border: 1px solid var(--ink-strong); }
      .badge.soldout { background: var(--closed-bg); color: var(--closed-ink); border: 1px solid var(--line-strong); }
      /* ---------- featured slot (house pick) ----------
         One featured race at a time, flagged on its record. The label is
         always "FEATURED" for a house pick — never "Sponsored". Sunset
         pill, distinct from every status badge, same mark on the card,
         in the table and on the race page. */
      .featured-badge {
        flex: none; display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
        text-transform: uppercase; background: var(--sunset-solid); color: #fff;
        border-radius: 999px; padding: 3px 9px; white-space: nowrap; vertical-align: middle;
      }
      .card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
      /* Event logo (register item 38, settled design from the item 37
         mockup): the organizer's own dark-background logo on a Deep
         Glacier panel in the card header's right area, under the
         Featured badge. No text sits on or behind it; a race with no
         logo, or a logo that failed the verification check, renders
         no panel and the card is exactly as before. */
      .logo-panel { background: var(--header-bg); border-radius: 8px; padding: 9px 10px 7px; margin-top: 2px; }
      .logo-panel img { display: block; width: 104px; height: auto; max-height: 104px; object-fit: contain; }
      /* Geo preview: mockup-only control proving the client-side fill.
         Changing it reloads the page with ?country=XX, exactly the
         signal the live slot fill reads, so pin, badges and
         hero slide all re-fill for that country. */
      /* No featured chip on the race page itself: featured labeling
         (and "Sponsored" when the slot is paid) lives only on the
         listing surfaces where the placement sits — the calendar pin,
         the cards and the hero slide — never on the race page. */
      /* Featured hero slide: same panel geometry as the other hero slides;
         its photo focal point keeps the riders in the clear top band. */
      .wc-slide[data-wc-slide="0"] .wc-photo { object-position: 50% 30%; }
      .wc-featured-tag {
        flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
        background: var(--sunset-solid); color: #fff; border-radius: 999px; padding: 4px 10px;
      }
      .wc-featured-title { display: block; }
      .champ-marker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--ink-strong); color: var(--bg); border-radius: 999px; padding: 3px 9px; margin-top: 7px; margin-left: 6px; vertical-align: middle; }
      /* Championship distinction: a full-width band across the very top
         of a championship card — plain Deep Glacier blue (#0a4a5e, the
         site's header/accent blue in both color schemes), white text,
         a star + WORLD CHAMPIONSHIPS. No rainbow stripes, no UCI-style
         branding. The card keeps its 18px padding, so the band bleeds
         to the card edges with negative margins and takes the card's
         top corner radius (inside its 2px championship border). */
      .champ-band {
        display: flex; align-items: center; gap: 8px;
        margin: -18px -18px 14px; padding: 8px 18px;
        background: #0a4a5e; color: #fff;
        border-radius: 8px 8px 0 0;
        font-family: "Barlow Condensed", sans-serif; font-weight: 700;
        font-size: 16px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
      }
      .champ-band svg { width: 15px; height: 15px; flex: none; fill: #fff; }
      /* Cards tighten to 16px padding on phones (see the 620px rules),
         so the band's bleed follows the padding it sits in. */
      @media (max-width: 620px) { .champ-band { margin: -16px -16px 14px; } }
      /* Table-view miniature of the same mark: a glacier star before
         the championship race name. */
      .rt-star { width: 14px; height: 14px; flex: none; fill: #0a4a5e; vertical-align: -2px; margin-right: 5px; }
      @media (prefers-color-scheme: dark) { .rt-star { fill: var(--sky); } }
      .card.is-championship { border: 2px solid var(--ink-strong); }
      table.races tbody tr.is-championship { background: var(--accent-soft); }
      table.races .rt-champ { display: block; margin-top: 4px; }
      .lifecycle { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
      .lc-step { border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: 13.5px; line-height: 1.25; white-space: nowrap; }
      .lc-arrow { font-size: 13px; }
      .lc-step.lc-unconfirmed { color: var(--closed-ink); border: 1.5px dashed var(--line-strong); background: var(--closed-bg); }
      .lc-step.lc-confirmed { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--sky); }
      .lc-step.lc-open { background: var(--open-bg); color: var(--open-ink); border: 1px solid var(--open-bg); }
      .lc-arrow { align-self: center; color: var(--muted); font-weight: 700; }
      .date-tbd { font-weight: 600 !important; color: var(--muted) !important; font-style: italic; }
      /* ---------- race data not confirmed (presumed return) ----------
         A race that ran in the past year but has not yet announced its
         next edition is presumed to return: its card, table row, compare
         column and race page are pre-filled from the previous edition
         and marked in this one way everywhere — the previous edition's
         figures in gray (var(--muted)) instead of the confirmed black
         (var(--ink-strong)), a dashed gray "Race data not confirmed"
         tag, and a banner stating which edition the details come from.
         When the organizer publishes the new edition the record's
         lifecycle flips to confirmed and every gray treatment lifts at
         once, because all of it keys off .is-unconfirmed / the tag and
         banner helpers in the script — never off hand-set colors. */
      .unconfirmed-tag {
        display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
        text-transform: uppercase; background: var(--closed-bg); color: var(--closed-ink);
        border: 1.5px dashed var(--line-strong); border-radius: 999px; padding: 3px 9px;
        white-space: nowrap; vertical-align: middle;
      }
      .unconfirmed-banner {
        border: 1.5px dashed var(--line-strong); background: var(--bg-soft); border-radius: 8px;
        padding: 10px 12px; margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--muted);
      }
      .unconfirmed-banner strong {
        display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
        text-transform: uppercase; color: var(--closed-ink); margin-bottom: 2px;
      }
      .unconfirmed-banner[hidden] { display: none !important; }
      /* Cards: the whole data body grays — heading, spec values and
         course figures — while the place line, buttons and compare
         toggle keep their normal treatment so the card stays usable. */
      .card.is-unconfirmed { border-style: dashed; }
      .card.is-unconfirmed h3 { color: var(--muted); }
      .card.is-unconfirmed .spec dd { color: var(--muted); }
      .card.is-unconfirmed .course-row .c-label,
      .card.is-unconfirmed .course-row .c-dist { color: var(--muted); }
      .card.is-unconfirmed .courses { background: transparent; }
      /* Calendar table: the row's figures gray the same way, and the
         race name itself grays (its hover still accents, like every
         race-name link). */
      table.races tbody tr.is-unconfirmed td b,
      table.races tbody tr.is-unconfirmed .rt-race { color: var(--muted); }
      table.races tbody tr.is-unconfirmed { background: var(--bg-soft); }
      @media (max-width: 620px) { table.races tbody tr.is-unconfirmed { background: var(--bg-soft); } }
      /* Compare table: an unconfirmed race's header and figures gray,
         and its Status row carries the tag (rendered by the script). */
      table.compare thead th.is-unconfirmed { color: var(--muted); }
      table.compare td.is-unconfirmed-data, table.compare td.is-unconfirmed-data b { color: var(--muted); }
      /* Race page: the banner sits between the head and the body; the
         course table's figures, the key-fact values and the profile
         figures gray, while headings, labels and the entry / calendar
         actions keep their normal treatment. */
      .racepage .unconfirmed-banner { margin: 16px 24px 0; }
      @media (max-width: 620px) { .racepage .unconfirmed-banner { margin: 14px 16px 0; } }
      .racepage.is-unconfirmed table.who td b,
      .racepage.is-unconfirmed .fact .fv,
      .racepage.is-unconfirmed .profile-stats div b { color: var(--muted); }
      .racepage.is-unconfirmed .rp-place .rp-date { font-style: italic; }
      /* Calendar legend line: the tag shown at full size beside the
         explanation, directly under the series note. */
      .unconfirmed-legend { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
      .unconfirmed-legend .unconfirmed-tag { flex: none; margin-top: 1px; }
      .spec { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 12px 0 12px; padding: 6px 0; }
      .spec .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 15px; line-height: 1.4; }
      .spec .row dt { color: var(--muted); font-weight: 600; line-height: 1.4; }
      .spec .row dd { margin: 0; font-weight: 700; color: var(--ink-strong); text-align: right; font-variant-numeric: tabular-nums; line-height: 1.4; min-width: 0; overflow-wrap: break-word; }
      /* The term never shrinks: a squeezed dt clipped its own text
         ("Date" measured 9px truncated in audit). The value carries
         min-width: 0 + break-word above, so it takes the squeeze and
         wraps instead. */
      .spec .row dt { flex: none; }
      .card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
      .card .actions .btn { flex: 1; }
      .src { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
      .tt-yes { color: var(--accent); }
      .courses { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); padding: 12px 12px; margin: 0 0 8px; }
      .courses .course-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; line-height: 1.4; }
      .qualifying-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.4; font-weight: 500; }
      /* Race cards carry no photos by the owner's decision: no photos and no
         credit lines on any card, so every card has the identical uniform
         structure. The one graphic a card may carry is the event's own
         logo on its Deep Glacier panel (register item 38). Photos live
         on the hero carousel and the race pages. */
      .rp-course-note { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
      .course-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--line); line-height: 1.4; }
      .course-row:first-of-type { border-top: none; }
      .course-row .c-label { font-weight: 700; color: var(--ink-strong); font-size: 14.5px; }
      .course-row .c-label span { font-weight: 600; color: var(--muted); }
      .course-row .c-dist { font-weight: 700; color: var(--ink-strong); text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
      .course-row .c-who { grid-column: 1 / -1; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.35; }
      /* Short-course card rows use the same dark label and figures as the
         Full and TT rows (set on .c-label / .c-dist above) — no color
         highlight; the "only" note in the row text does the work. */
      .course-row.is-tt { background: transparent; }
      .cutoff-note { border: 1px solid var(--line); border-left: 4px solid var(--sunset); background: var(--card); border-radius: 8px; padding: 16px 18px; margin-top: 18px; box-shadow: var(--shadow); }
      .cutoff-note h3 { margin: 0 0 6px; font-size: 22px; color: var(--ink-strong); }
      .cutoff-note p { margin: 0; font-size: 15.5px; max-width: none; }
      .who-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0 14px; }
      table.who { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14.5px; background: var(--card); }
      table.who th, table.who td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
      table.who thead th { background: var(--bg-soft); color: var(--ink-strong); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
      table.who tr:last-child td { border-bottom: none; }
      table.who td b { color: var(--ink-strong); }
      /* Course name download link (register item 71): where a
         course name in the who-table links to its download, it
         takes the page's in-content link treatment — the accent
         link colour with an underline, darkening on hover, like
         the start-format fact link — and keeps the cell's bold
         weight. */
      .racepage-body table.who td b a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
      .racepage-body table.who td b a:hover { color: var(--accent-dark); }
      /* Race page who-table: eight columns (Type added beside Course,
         register item 48; Date and Entry fee added earlier) on a fixed
         layout — the Who rides it column stays the widest text column,
         and the Type column takes its room from small trims across the
         others, so the table gains no dead space. */
      .racepage-body table.who { table-layout: fixed; }
      .racepage-body table.who th:nth-child(1), .racepage-body table.who td:nth-child(1) { width: 12%; }
      .racepage-body table.who th:nth-child(2), .racepage-body table.who td:nth-child(2) { width: 12%; }
      .racepage-body table.who th:nth-child(3), .racepage-body table.who td:nth-child(3) { width: 13%; }
      .racepage-body table.who th:nth-child(4), .racepage-body table.who td:nth-child(4) { width: 11%; }
      .racepage-body table.who th:nth-child(5), .racepage-body table.who td:nth-child(5) { width: 12%; }
      .racepage-body table.who th:nth-child(6), .racepage-body table.who td:nth-child(6) { width: 18%; }
      /* With the Date column added, the elevation pair ("2,342 m ·
         7,683 ft") no longer fits its fixed column on one line: let
         it wrap inside this table's cells instead of overflowing
         into Who rides it. Other .elev-val uses keep nowrap. */
      .racepage-body table.who td .elev-val { white-space: normal; }
      .racepage-body table.who th:nth-child(7), .racepage-body table.who td:nth-child(7) { width: 9%; }
      .racepage-body table.who th:nth-child(8), .racepage-body table.who td:nth-child(8) { width: 13%; }
      /* "Also qualifies for:" line under the course table: rendered
         only where the record holds verified other-championship names
         (r.otherChampionships); hidden on every other record, so no
         placeholder or empty line ever shows. */
      .racepage-body .also-qualifies { font-size: 14.5px; margin: 0 0 14px; }
      .racepage-body .also-qualifies b { color: var(--ink-strong); }
      /* Per-course date state: a course whose own date is expected
         takes the unconfirmed treatment on its date cell alone —
         grayed, italic, with the dashed "Expected date" tag — while
         the rest of its row (and every confirmed course's date)
         renders normally. Scoped to .course-date, never the row. */
      .racepage-body table.who td.course-date.is-expected { color: var(--muted); font-style: italic; }
      .racepage-body table.who td.course-date.is-expected b { color: var(--muted); }
      .racepage-body table.who td.course-date .unconfirmed-tag { margin-top: 4px; font-style: normal; }

      /* ---------- compare toggle on cards ---------- */
      .back-to-top { display: flex; justify-content: flex-end; margin: 14px 0 2px; }
      .back-to-top a { font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
      .back-to-top a:hover { border-color: var(--accent); background: var(--accent-soft); }
      .results-controls { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0 0 16px; align-items: end; }
      @media (max-width: 620px) { .results-controls { grid-template-columns: 1fr; } }
      .results-search label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
      .results-search input { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 14px; background: var(--card); color: var(--ink); min-height: 46px; }
      .results-meta { font-size: 14.5px; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
      .results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
      @media (max-width: 960px) { .results-grid { grid-template-columns: 1fr; } }
      .result-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); padding: 18px; }
      .result-card h3 { font-size: 23px; margin: 0; color: var(--ink-strong); line-height: 1.05; }
      .result-card .rc-place { color: var(--muted); font-weight: 600; font-size: 14.5px; margin-top: 3px; }
      .result-card .rc-provider { font-size: 13px; color: var(--muted); margin-top: 8px; }
      .result-card .rc-provider b { color: var(--ink-strong); }
      table.winners { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 14.5px; }
      table.winners th, table.winners td { padding: 8px 8px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
      table.winners thead th { border-top: none; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); }
      table.winners td b { color: var(--ink-strong); }
      table.winners td .w-time { display: block; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: 13px; }
      /* Podium lists (top 3 with times) in the archive tables and on the
         race page — one rendering style for both, from the same records. */
      .podium-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
      .podium-list li { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; line-height: 1.35; }
      .podium-list .p-place { font-weight: 800; color: var(--accent); min-width: 1.15em; font-variant-numeric: tabular-nums; }
      .podium-list .p-name { font-weight: 700; color: var(--ink-strong); }
      .podium-list .p-time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: 13px; }
      /* Age category filter row on the Results archive: chips in the same
         style as the calendar filters, 44px targets, wrapping — never a
         horizontal scroll, including on phones. */
      .results-age-row, .results-sex-row { margin: 0 0 14px; align-items: center; }
      .results-age-row .flabel, .results-sex-row .flabel { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-right: 2px; }
      .results-age-row .chip, .results-sex-row .chip { min-height: 44px; padding: 9px 15px; display: inline-flex; align-items: center; }
      /* Rider results view: shown when the unified search matches a rider
         name — every placing held for that rider across the archive,
         grouped by rider. Stacked lines, no table, so it holds up on a
         phone without horizontal scrolling. */
      .rider-results { margin: 0 0 18px; }
      .rider-results[hidden] { display: none !important; }
      .rider-results-head { font-size: 24px; margin: 0 0 4px; color: var(--ink-strong); text-transform: uppercase; line-height: 1.05; }
      /* Share these results: one control at the head of the rider results
         section, sharing the whole filtered result set — same share chain
         (native sheet, clipboard, visible fallback panel) as the other
         share buttons. */
      .rider-results-top { display: flex; gap: 8px 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
      .rider-share { align-items: flex-end; text-align: right; }
      @media (max-width: 620px) { .rider-share { align-items: stretch; text-align: left; width: 100%; } .rider-share .share-btn { width: 100%; } }
      .rider-results-note { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
      .rider-card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); padding: 14px 18px 10px; margin-bottom: 12px; }
      .rider-card h4 { margin: 0 0 2px; font-family: "Barlow Condensed", sans-serif; font-size: 21px; color: var(--ink-strong); line-height: 1.1; }
      .placing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
      .placing-list li { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
      .placing-list .placing-main b { color: var(--ink-strong); }
      .pill-podium { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--open-bg); color: var(--open-ink); border-radius: 999px; padding: 3px 9px; }
      .result-link { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
      .compare-toggle {
        display: flex; align-items: center; gap: 10px; margin-top: 14px; margin-bottom: 0; padding: 10px 12px;
        border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); cursor: pointer;
      }
      .compare-toggle input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); cursor: pointer; margin: 0; }
      .compare-toggle .ct-label { font-weight: 700; font-size: 14.5px; color: var(--ink-strong); line-height: 1.25; }
      .compare-toggle .ct-label small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); }
      .compare-toggle.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
      .compare-toggle.is-disabled { opacity: .55; cursor: not-allowed; }
      .compare-toggle.is-disabled input { cursor: not-allowed; }
      .card.is-compared { border-color: var(--accent); box-shadow: 0 0 0 2px var(--sky), var(--shadow); }
      .compare-bar {
        display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
        border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card);
        border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; box-shadow: var(--shadow);
      }
      /* Bottom compare bar: identical bar repeated at the very bottom
         of the cards/table so riders do not have to scroll back up.
         Same styling; only its spacing differs (gap above it instead
         of relying on the top bar's bottom margin). */
      .compare-bar--bottom { margin: 16px 0 16px; }
      .compare-bar strong { color: var(--ink-strong); }
      .compare-bar .cb-names { color: var(--muted); font-weight: 600; font-size: 14.5px; }
      .compare-bar .cb-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
      .compare-bar .cb-msg { flex-basis: 100%; font-size: 14px; font-weight: 600; color: var(--red); min-height: 1.2em; }
      .compare-bar .cb-msg:empty { display: none; }
      /* ---------- sticky compare bar (calendar) ----------
         Fixed to the bottom of the viewport, hidden until two or more
         races are ticked for comparison. It replaces the calendar's old
         static top and bottom compare bars (the hub keeps its own
         .compare-bar pair). Deep-glacier panel with a sky top border —
         the site's Alpine Glacier header treatment — overlaying the
         viewport bottom; body padding (toggled by script via
         .has-sticky-compare) keeps the page end reachable above it.
         Never shown in a standalone page view, where the calendar is
         hidden. */
      .sticky-compare {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
        background: var(--header-bg); color: var(--header-ink);
        border-top: 3px solid var(--sky);
        box-shadow: 0 -6px 24px rgba(6,47,61,.35);
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
      }
      .sticky-compare[hidden] { display: none !important; }
      body.how-only .sticky-compare, body.results-only .sticky-compare, body.alerts-only .sticky-compare,
      body.contact-only .sticky-compare, body.submit-only .sticky-compare, body.about-only .sticky-compare,
      body.privacy-only .sticky-compare, body.terms-only .sticky-compare, body.cookies-only .sticky-compare,
      body.affiliate-only .sticky-compare, body.imprint-only .sticky-compare, body.hubs-only .sticky-compare,
      body.hub-only .sticky-compare, body.edition-only .sticky-compare, body.changes-only .sticky-compare,
      body.race-only .sticky-compare, body.compare-only .sticky-compare { display: none !important; }
      body.has-sticky-compare { padding-bottom: 86px; }
      .sticky-compare .sc-in { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
      .sticky-compare .sc-label { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; flex: none; }
      .sticky-compare .sc-label small { display: block; font-family: "Barlow", sans-serif; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--header-sub); margin-top: 1px; }
      .sticky-compare .sc-chips { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; align-items: center; }
      .sc-chip {
        display: inline-flex; align-items: center; gap: 2px; max-width: 100%;
        background: rgba(95,176,201,.18); border: 1px solid var(--sky); border-radius: 999px;
        padding: 3px 4px 3px 12px; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--header-ink);
      }
      .sc-chip-name { overflow-wrap: break-word; }
      .sc-chip-remove {
        flex: none; width: 32px; height: 32px; min-height: 32px; border: none; border-radius: 50%;
        background: transparent; color: var(--header-ink); font-size: 19px; font-weight: 700; line-height: 1;
        cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
      }
      .sc-chip-remove:hover { background: rgba(95,176,201,.45); }
      .sticky-compare :focus-visible { outline-color: var(--sky); }
      .sticky-compare .sc-actions { display: flex; gap: 8px; flex: none; margin-left: auto; }
      /* The compare button's white text sits on the palette's text-safe
         orange (--sunset-solid, 5.20:1 on white text) at rest as well as
         on hover: the bright --sunset fill measures 3.68:1 under white
         text and fails AA for this size (accessibility pass, 2026-11-19). */
      .sticky-compare .sc-compare-btn { background: var(--sunset-solid); border-color: var(--sunset-solid); color: #fff; }
      .sticky-compare .sc-compare-btn:hover { background: var(--sunset-solid); border-color: var(--sunset-solid); }
      .sticky-compare .sc-clear-btn { background: transparent; border-color: var(--sky); color: var(--header-ink); }
      .sticky-compare .sc-clear-btn:hover { background: rgba(95,176,201,.28); }
      .sticky-compare .sc-msg { flex-basis: 100%; font-size: 14px; font-weight: 600; color: #ffd9c7; min-height: 1.2em; }
      .sticky-compare .sc-msg:empty { display: none; }
      @media (max-width: 620px) {
        body.has-sticky-compare { padding-bottom: 132px; }
        .sticky-compare .sc-in { gap: 8px 10px; }
        .sticky-compare .sc-label small { display: inline; margin-left: 6px; }
        .sticky-compare .sc-chips { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
        .sc-chip { flex: none; }
        .sticky-compare .sc-actions { margin-left: auto; }
        .sticky-compare .sc-actions .btn { min-height: 44px; }
      }
      .compare-empty {
        border: 1px dashed var(--line-strong); border-radius: 10px; padding: 26px; text-align: center;
        color: var(--muted); font-weight: 600; background: var(--card);
      }
      .compare-empty strong { color: var(--ink-strong); display: block; font-size: 17px; margin-bottom: 4px; }

      /* ---------- compare ---------- */
      .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: var(--card); }
      table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15.5px; }
      table.compare th, table.compare td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
      table.compare thead th { font-family: "Barlow Condensed", sans-serif; font-size: 21px; text-transform: uppercase; color: var(--ink-strong); background: var(--bg-soft); }
      table.compare thead th small { display: block; font-family: "Barlow", sans-serif; font-size: 13px; text-transform: none; color: var(--muted); font-weight: 600; letter-spacing: 0; }
      table.compare tbody th { font-weight: 600; color: var(--muted); width: 150px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
      table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }
      table.compare td b { color: var(--ink-strong); }

      /* ---------- calendar compact view ----------
         The third calendar view (Anthony, 2026-11-20): the same
         filtered race set as Cards and Table, one race per row —
         date, race name and race type under a matching header row
         (Date / Race name / Race type) — and the name is the link
         to the race page. Colour alone carries the confirmation
         state, and it sits on the name only: a confirmed race's
         name in the site's open green (var(--open-ink)), an
         unconfirmed race's name in the muted grey every other
         surface grays unconfirmed data with (var(--muted)), a
         legible mid grey. Both key off the record's lifecycle via
         isUnconfirmed in the script, never off hand-set colours.
         The type is plain text in the plain ink, never lifecycle
         coloured. Dense rows, thin dividers, no dead space, in
         the spirit of the calendar list Anthony supplied. The
         one-line legend renders only inside this view's markup. */
      .compact-legend { font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
      .compact-legend .lg-confirmed { color: var(--open-ink); font-weight: 700; }
      .compact-legend .lg-unconfirmed { color: var(--muted); font-weight: 700; }
      .compact-list { border-top: 1px solid var(--line); }
      .compact-head { display: flex; align-items: center; gap: 16px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
      .compact-head .ch-date { flex: 0 0 168px; }
      .compact-head .ch-name { flex: 1 1 auto; min-width: 0; }
      .compact-head .ch-dist { flex: 0 0 300px; white-space: nowrap; }
      .compact-head .ch-type { flex: 0 0 120px; }
      .compact-row { display: flex; align-items: center; gap: 16px; min-height: 42px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
      .compact-date { flex: 0 0 168px; font-weight: 600; color: var(--ink); line-height: 1.35; }
      .compact-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 15.5px; line-height: 1.35; text-decoration: none; }
      .compact-name.is-confirmed { color: var(--open-ink); }
      .compact-name.is-unconfirmed { color: var(--muted); }
      .compact-name:hover { text-decoration: underline; }
      .compact-row .compact-dist { flex: 0 0 300px; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
      .compact-type { flex: 0 0 120px; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
      @media (max-width: 620px) {
        .compact-head { gap: 10px; padding: 6px 0; }
        .compact-head .ch-date { flex-basis: 118px; }
        .compact-head .ch-type { flex-basis: 100px; }
        .compact-row { gap: 10px; min-height: 40px; padding: 7px 0; }
        .compact-date { flex-basis: 118px; font-size: 14px; }
        .compact-name { font-size: 15px; }
        .compact-head .ch-dist, .compact-row .compact-dist { display: none; }
        .compact-type { flex-basis: 100px; font-size: 13.5px; }
      }

      /* ---------- calendar table view ----------
         Same filtered race set as the cards, one row per race, rendered
         from the same RACES data. Wrapper reuses .table-scroll. */
      table.races { border-collapse: collapse; width: 100%; min-width: 960px; font-size: 15px; }
      table.races th, table.races td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
      table.races thead th { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-strong); background: var(--bg-soft); white-space: nowrap; }
      table.races tbody tr:last-child td { border-bottom: none; }
      table.races tbody tr.is-compared { background: var(--accent-soft); }
      table.races td b { color: var(--ink-strong); }
      table.races .rt-race { font-weight: 700; color: var(--ink-strong); font-size: 15.5px; }
      table.races .rt-race a { color: var(--accent); }
      table.races .rt-short { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 3px; line-height: 1.4; }
      /* The table's Short line figures take the same dark ink as the Full
         figures (table.races td b above) — no red highlight. */
      /* Entry fee is the lowest-priority column for space: always present
         at full width and in the stacked layout, but the first to narrow
         and wrap when the table is squeezed — Date, Race, Type, Distance
         and Elevation never yield to it. */
      table.races th.rt-fee, table.races td.rt-fee { white-space: normal; max-width: 150px; overflow-wrap: break-word; }
      table.races .rt-cmp { text-align: center; }
      table.races .rt-check { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
      table.races .rt-check input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; margin: 0; }
      table.races .rt-check input[type="checkbox"]:disabled { cursor: not-allowed; }
      .race-table-note { margin: 10px 0 0; }
      /* Stacked-layout helpers: .rt-val wraps each cell's value so the
         phone layout can set it beside its column label (display:contents
         on wider screens, so the desktop table renders exactly as
         before); the compare label text and the sort row exist only for
         the phone layout, where the table header row is hidden. */
      .rt-val { display: contents; }
      .rt-check-label { display: none; }
      .table-sort-row { display: none; }
      /* Worlds-arrival notice: slim dismissible bar above the grid, shown
         only when the visitor arrives from the World Championships page's
         "See every qualifier for these Worlds" button (or a link carrying
         that year's qualifier scope). It is not a standing filter control:
         there is no Qualifies-for filter row anywhere on the calendar. */
      .worlds-filter-notice {
        display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
        border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card);
        border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; box-shadow: var(--shadow);
        font-weight: 700; color: var(--ink-strong); font-size: 15px;
      }
      .worlds-filter-notice[hidden] { display: none !important; }
      .worlds-filter-notice .btn { margin-left: auto; }
      /* Sortable table headers (Date / Distance / Elevation / Entry fee):
         the header itself is a real button with a 44px target. The active
         column carries aria-sort on its <th> and a visible arrow. */
      table.races thead th.th-sort { padding: 0; }
      .sort-btn {
        display: inline-flex; align-items: center; gap: 6px; width: 100%;
        min-width: 44px; min-height: 44px; padding: 11px 14px;
        background: transparent; border: none; cursor: pointer;
        font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; font-weight: inherit;
        text-align: left; white-space: nowrap; border-radius: 0;
      }
      .sort-btn:hover { color: var(--accent); background: var(--accent-soft); }
      .sort-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
      .sort-btn .sort-arrow { font-size: 13px; line-height: 1; color: var(--accent); min-width: 1em; }
      .sort-btn:not(.is-active) .sort-arrow::before { content: "↕"; opacity: .38; color: var(--muted); }
      /* Share this comparison: same button pattern as the race page share.
         Lives in one place only — a narrow cell at the far right of the
         compare table's header row, to the right of the last race column.
         There is no end-of-table share button and none in the compare bar. */
      .btn:disabled { opacity: .55; cursor: not-allowed; }
      .compare-share-end { align-items: flex-start; text-align: left; margin-top: 14px; }
      .compare-top-feedback { margin: 0; align-items: flex-end; text-align: right; }
      .compare-top-feedback .share-status { min-height: 0; display: block; }
      .compare-top-feedback .share-panel { justify-content: flex-end; }
      .share-btn-top { min-height: 44px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
      table.compare thead th.cmp-share-cell { vertical-align: middle; width: 1%; white-space: nowrap; text-align: right; padding-left: 4px; padding-right: 12px; }
      .compare-share-end .share-helper { max-width: 21em; }
      /* Share fallback panel: revealed under a share button only when the
         native share sheet and the clipboard both fail (as happens in
         embedded previews). The link stays visible in a selectable field
         in a selectable field, so the share can always be completed
         by hand — no silent dead ends. */
      .share-panel { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin-top: 8px; width: 100%; max-width: 34em; }
      .share-panel[hidden] { display: none !important; }
      .share-panel input {
        flex: 1 1 150px; min-height: 44px; padding: 9px 12px; font-size: 14px;
        border: 1px solid var(--line-strong); border-radius: 7px;
        background: var(--card); color: var(--ink);
      }
      .share-panel .btn { flex: none; }
      .share-block--top .share-panel { justify-content: flex-end; }
      @media (max-width: 700px) { .share-block--top .share-panel { justify-content: flex-start; } }

      /* ---------- how it works ---------- */
      .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
      .step { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); padding: 20px; }
      .step .num {
        font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 15px; color: #fff;
        background: var(--sunset-solid); width: 30px; height: 30px; border-radius: 50%;
        display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
      }
      .step h2 { font-size: 22px; margin: 0 0 6px; color: var(--ink-strong); }
      .step p { margin: 0; font-size: 15.5px; }
      /* How page only: selectable age groups as an explainer. This selector
         lives on this guide page alone — the calendar, cards and compare
         table carry no age selector and no personalization. */
      .age-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
      .age-strip .alabel { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; width: 100%; }
      .age-strip .age-hint { width: 100%; font-size: 14px; color: var(--muted); margin: 2px 0 4px; }
      /* Key rule note inside the selector block, directly under the group
         buttons: the fixed-age-group rule readers need at the exact point
         they pick their group. Same note styling as .sex-note below,
         slightly emphasized. */
      .age-strip .age-fixed-note {
        width: 100%; margin: 6px 0 0; padding: 12px 14px;
        border: 1px solid var(--line); border-left: 4px solid var(--sunset);
        background: var(--card); border-radius: 8px; box-shadow: var(--shadow);
        font-size: 15.5px; line-height: 1.45; color: var(--ink);
      }
      .age-strip .age-fixed-note strong { color: var(--ink-strong); }
      .age-strip button.grp {
        border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 16px;
        font-weight: 700; font-variant-numeric: tabular-nums; background: var(--card); font-size: 15px; color: var(--ink);
        cursor: pointer; min-height: 44px;
      }
      .age-strip button.grp:hover { border-color: var(--accent); color: var(--accent); }
      .age-strip button.grp[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
      @media (prefers-color-scheme: dark) { .age-strip button.grp[aria-pressed="true"] { color: #062f3d; } }
      .age-detail { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 8px; padding: 16px 18px; margin-top: 14px; box-shadow: var(--shadow); }
      .age-detail h4 { margin: 0 0 6px; font-size: 21px; color: var(--ink-strong); }
      .age-detail h4 span { color: var(--red); }
      .age-detail p { margin: 0 0 8px; font-size: 15.5px; max-width: none; }
      .age-detail p:last-of-type { margin-bottom: 0; }
      .age-detail .age-facts { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0; }
      .age-detail .age-facts div { min-width: 150px; }
      .age-detail .age-facts b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 20px; color: var(--ink-strong); line-height: 1.1; }
      .age-detail .age-facts span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
      .sex-note { border: 1px solid var(--line); border-left: 4px solid var(--sunset); background: var(--card); border-radius: 8px; padding: 14px 18px; margin-top: 14px; box-shadow: var(--shadow); font-size: 15.5px; }
      .sex-note strong { color: var(--ink-strong); }
      .sex-note p { margin: 0; max-width: none; }
      /* --- How Worlds qualification works: separate page, not homepage scroll --- */
      .page-flag { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
      .page-flag .pf-tag { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 10px; margin-top: 1px; }
      @media (prefers-color-scheme: dark) { .page-flag .pf-tag { color: #062f3d; } }
      .page-flag .pf-text { flex: 1 1 320px; font-size: 14.5px; line-height: 1.45; }
      .page-flag .pf-text strong { color: var(--ink-strong); }
      .page-flag .pf-text code { font-size: 13.5px; font-weight: 700; color: var(--ink-strong); }
      .how-standalone-bar { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; }
      body.how-only .how-standalone-bar { display: flex; }
      body.how-only main > *:not(#how) { display: none !important; }
      /* How is a separate page view: hidden from homepage scroll by default */
      #how { display: none; }
      body.how-only #how { display: block; padding-top: 22px; }
      .cmp-mobile-race { display: none; }
      /* --- Results archive: separate page view, not homepage scroll --- */
      #results { display: none; }
      body.results-only #results { display: block; padding-top: 22px; }
      body.results-only main > *:not(#results) { display: none !important; }
      .results-standalone-bar { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; }
      .results-entry { padding-top: 28px !important; }
      .results-entry-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow); }
      .results-entry-card .re-text { flex: 1 1 420px; }
      .results-entry-card h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 4px; text-transform: uppercase; color: var(--ink-strong); line-height: 1; }
      .results-entry-card p { margin: 0; font-size: 15.5px; max-width: 52em; }
      .results-entry-card p + p { margin-top: 4px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
      .results-entry-card code { font-size: 13px; font-weight: 700; color: var(--ink-strong); }
      /* --- World Championships: a major section of the merged How
         Worlds qualification works page (further down #how), not its own page
         view. Anchored as #worlds so every link that pointed at the old
         World Championships page lands here. --- */
      .merged-worlds { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--line-strong); scroll-margin-top: 96px; }
      /* Each Worlds spotlight card is its own link target (the hero
         slides land on their own card), so each clears the sticky
         header the same way the section itself does. */
      #worlds-road, #worlds-gravel { scroll-margin-top: 96px; }
      .worlds-jump { margin: 0 0 16px; font-size: 16.5px; }
      .worlds-jump a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 1px; }
      .worlds-jump a:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
      /* --- Entry Alerts: separate page view, not homepage scroll --- */
      #alerts { display: none; }
      body.alerts-only #alerts { display: block; padding-top: 22px; }
      body.alerts-only main > *:not(#alerts) { display: none !important; }
      .alerts-standalone-bar { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; }
      .edition-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
      @media (prefers-color-scheme: dark) { .edition-tag { color: #062f3d; } }
      .nextup-card { border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--card); padding: 22px 24px; margin-top: 22px; box-shadow: var(--shadow); }
      .nextup-card h3 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 4px; text-transform: uppercase; line-height: 1; color: var(--ink-strong); }
      .nextup-card p { margin: 0 0 8px; font-size: 15.5px; max-width: none; }
      .nextup-fields { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
      .nextup-fields div { min-width: 170px; border-top: 1px solid var(--line); padding-top: 8px; }
      .nextup-fields b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 20px; color: var(--ink-strong); line-height: 1.1; }
      .nextup-fields span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
      .future-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 22px 24px; margin-top: 22px; box-shadow: var(--shadow); }
      .future-card h3 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 4px; text-transform: uppercase; line-height: 1; color: var(--ink-strong); }
      .future-card > p { margin: 0 0 8px; font-size: 15.5px; max-width: none; }
      .future-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 14px; }
      @media (max-width: 620px) { .future-grid { grid-template-columns: 1fr; } }
      .future-grid h4 { font-family: "Barlow Condensed", sans-serif; font-size: 19px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-strong); line-height: 1.1; }
      .future-list { list-style: none; margin: 0; padding: 0; }
      .future-list li { display: flex; gap: 14px; align-items: baseline; border-top: 1px solid var(--line); padding: 8px 2px; font-size: 15.5px; }
      .future-list li b { font-family: "Barlow Condensed", sans-serif; font-size: 19px; color: var(--ink-strong); line-height: 1; min-width: 44px; flex: none; font-variant-numeric: tabular-nums; }
      .future-list li span { font-weight: 600; color: var(--ink); }
      .future-list li.is-tba span { color: var(--muted); font-style: italic; font-weight: 600; }
      .future-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }
      .past-strip { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 10px; padding: 18px 20px; margin-top: 22px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
      .past-strip .ps-text { flex: 1 1 420px; }
      .past-strip h3 { font-size: clamp(22px, 2.8vw, 28px); margin: 0 0 4px; text-transform: uppercase; line-height: 1; color: var(--ink-strong); }
      .past-strip p { margin: 0; font-size: 15px; }
      /* --- Contact + legal pages: separate page views, same pattern as How / Results / Worlds --- */
      #contact, #privacy, #terms, #cookie-policy, #affiliate-disclosure, #legal-notice, #about, #submit { display: none; }
      body.contact-only #contact, body.privacy-only #privacy, body.terms-only #terms, body.cookies-only #cookie-policy, body.affiliate-only #affiliate-disclosure, body.imprint-only #legal-notice, body.about-only #about, body.submit-only #submit { display: block; padding-top: 22px; }
      body.contact-only main > *:not(#contact), body.privacy-only main > *:not(#privacy), body.terms-only main > *:not(#terms), body.cookies-only main > *:not(#cookie-policy), body.affiliate-only main > *:not(#affiliate-disclosure), body.imprint-only main > *:not(#legal-notice), body.about-only main > *:not(#about), body.submit-only main > *:not(#submit) { display: none !important; }
      .standalone-bar { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; }
      /* --- Race page: separate page view, not homepage scroll --- */
      #race-page { display: none; }
      body.race-only #race-page { display: block; padding-top: 22px; }
      /* The race card (.racepage) now lives on #race-page itself, so the
         22px gap above it is a margin, not padding inside the card
         (.racepage-head already carries its own 22px top padding). The
         not-found section has no .racepage class, so it keeps the
         padding-top above. */
      body.race-only #race-page.racepage { padding-top: 0; margin-top: 22px; }
      body.race-only main > *:not(#race-page) { display: none !important; }
      body.race-only .cookie-banner { display: none !important; }
      /* --- Compare: separate page view, not homepage scroll --- */
      #compare { display: none; }
      body.compare-only #compare { display: block; padding-top: 22px; }
      body.compare-only main > *:not(#compare) { display: none !important; }
      body.compare-only .cookie-banner { display: none !important; }
      /* --- Hub pages, per-edition results pages, latest changes: back-door page views, same standalone pattern. Reached from search engines, shared links, the footer and one slim browse line — never from new homepage sections. --- */
      #hub-index, #hub, #edition-page, #changes { display: none; }
      body.hubs-only #hub-index, body.hub-only #hub, body.edition-only #edition-page, body.changes-only #changes { display: block; padding-top: 22px; }
      body.hubs-only main > *:not(#hub-index), body.hub-only main > *:not(#hub), body.edition-only main > *:not(#edition-page), body.changes-only main > *:not(#changes) { display: none !important; }
      body.hubs-only .cookie-banner, body.hub-only .cookie-banner, body.edition-only .cookie-banner, body.changes-only .cookie-banner { display: none !important; }
      /* Homepage browse line: the homepage's only footprint for these pages — one slim text line in the page-end zone, beside the freshness strip. */
      .browse-line { padding-top: 14px; padding-bottom: 2px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--muted); }
      .browse-line a { font-weight: 700; }
      .hub-group { margin-bottom: 22px; }
      /* Slim back link at the top of the back-door pages (hub, hub index,
         edition, changes): one small text line under the standalone bar,
         above the H1 — the return route is never only at the bottom. */
      .page-back { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; }
      .hub-group h3 { font-size: 21px; margin: 0 0 6px; color: var(--ink-strong); }
      .hub-links { list-style: none; margin: 0; padding: 0; }
      .hub-links li { border-top: 1px solid var(--line); padding: 8px 2px; font-size: 15.5px; }
      .hub-links .hub-count { color: var(--muted); font-weight: 600; font-size: 13.5px; margin-left: 6px; white-space: nowrap; }
      .rp-breadcrumb { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-top: 6px; }
      .rp-breadcrumb a { font-weight: 700; }
      .winners-edition-links { font-size: 14px; margin: 2px 0 10px; font-weight: 600; }
      .edition-link { font-weight: 800; }
      .changes-list { list-style: none; margin: 0; padding: 0; }
      .changes-list li { border-top: 1px solid var(--line); padding: 10px 2px; font-size: 15.5px; }
      .changes-list .chg-date { display: inline-block; min-width: 108px; font-weight: 800; color: var(--ink-strong); }
      .edition-coverage { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--ink-strong); }
      table.who.who--fit { min-width: 0; width: 100%; }
      table.who.who--fit th, table.who.who--fit td { padding: 7px 8px; }
      @media (max-width: 620px) { .changes-list .chg-date { display: block; min-width: 0; } }
      .contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 22px; }
      .contact-form label { display: block; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
      .contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 14px; background: var(--card); color: var(--ink); min-height: 46px; font: inherit; }
      .contact-form textarea { min-height: 130px; resize: vertical; }
      .contact-form .form-msg { min-height: 1.4em; }
      .legal-body { max-width: none; }
      .legal-body h2 { font-size: 23px; margin: 22px 0 6px; color: var(--ink-strong); line-height: 1.1; }
      .legal-body h2:first-of-type { margin-top: 6px; }
      .legal-body p { margin: 0 0 10px; font-size: 15.5px; }
      .legal-body ul { margin: 0 0 10px; padding-left: 22px; font-size: 15.5px; }
      .legal-body li { margin-bottom: 4px; }
      .draft-note { border: 1px solid var(--line); border-left: 4px solid var(--sunset); background: var(--card); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; margin: 0 0 18px; box-shadow: var(--shadow); }
      .draft-note strong { color: var(--ink-strong); }
      .footer-legal { display: flex; gap: 4px 14px; flex-wrap: wrap; margin: 10px 0 4px; }
      .footer-legal a { font-weight: 700; font-size: 14.5px; padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }
      /* --- Cookie consent banner mock (design placeholder, main page only) --- */
      .cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 860px; margin: 0 auto; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 8px 30px rgba(6,47,61,.28); padding: 14px 16px; }
      .cookie-banner[hidden] { display: none !important; }
      .cookie-banner .cb-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
      .cookie-banner .cb-text { flex: 1 1 340px; font-size: 14.5px; line-height: 1.45; }
      .cookie-banner .cb-text strong { color: var(--ink-strong); display: block; font-size: 15.5px; margin-bottom: 2px; }
      .cookie-banner .cb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
      .cookie-banner .cb-manage { flex-basis: 100%; font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
      .cookie-banner .cb-manage[hidden] { display: none !important; }
      body.how-only .cookie-banner, body.results-only .cookie-banner, body.alerts-only .cookie-banner, body.about-only .cookie-banner, body.contact-only .cookie-banner, body.submit-only .cookie-banner, body.privacy-only .cookie-banner, body.terms-only .cookie-banner, body.cookies-only .cookie-banner, body.affiliate-only .cookie-banner, body.imprint-only .cookie-banner { display: none !important; }
      @media (max-width: 620px) { .cookie-banner { position: static; margin: 0 8px 16px; padding: 12px; } .cookie-banner .cb-actions .btn { flex: 1; } .contact-form { padding: 16px; } }

      /* ---------- worlds spotlight ---------- */
      .worlds {
        border: 2px solid var(--ink-strong); border-radius: 12px; background: var(--card);
        padding: 26px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; box-shadow: var(--shadow);
      }
      .rainbow { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #0a4a5e 0%, #5fb0c9 58%, #e4572e 100%); margin-bottom: 18px; }
      .worlds h3 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 4px; text-transform: uppercase; line-height: 1; color: var(--ink-strong); }
      /* Second spotlight card stacked below the first (gravel below road):
         same card, same components, an 18px gap matching the paths row. */
      .worlds--stacked { margin-top: 18px; }
      .worlds .wplace { font-weight: 700; color: var(--accent); font-size: 18px; margin-bottom: 10px; }
      .worlds p { margin: 0 0 14px; font-size: 16px; }
      .worlds-events { display: flex; flex-direction: column; gap: 10px; }
      .wevent { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--bg-soft); }
      .wevent .wt { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 19px; text-transform: uppercase; color: var(--ink-strong); display: flex; justify-content: space-between; gap: 8px; }
      .wevent .wt time { color: var(--red); }
      .wevent .wd { font-size: 14.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

      /* ---------- race page ---------- */
      .racepage { border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
      .racepage-head { padding: 22px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: start; }
      .racepage-head h3 { font-size: 34px; margin: 0; text-transform: uppercase; line-height: 1; color: var(--ink-strong); overflow-wrap: break-word; }
      .racepage-head h3 .rp-disc { display: inline-block; font-family: "Barlow", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; margin-left: 10px; vertical-align: middle; white-space: nowrap; }
      .racepage-head h3 .rp-disc.is-gravel { background: var(--gravel-bg); color: var(--gravel-ink); }
      .racepage-head .rp-place { color: var(--muted); font-weight: 600; margin-top: 4px; overflow-wrap: break-word; }
      .racepage-head .rp-series { color: var(--muted); font-weight: 600; margin-top: 2px; overflow-wrap: break-word; }
      .rp-head-main { min-width: 0; }
      /* Event logo on the race page (register item 38): the same Deep
         Glacier panel set INTO the header band as a middle column at
         the band's full height — 150px wide, the logo at about 126px.
         The band's height is fixed by the title block and the action
         stack, exactly as without a logo: the logo fits the existing
         layout, the layout never grows for the logo. Rendered by
         renderRacePage only where the record carries a logo. */
      .racepage-head.has-logo { grid-template-columns: minmax(0, 1fr) 150px auto; align-items: stretch; }
      .logo-panel-band { background: var(--header-bg); border-radius: 10px; padding: 12px; display: flex; align-items: center; justify-content: center; }
      .logo-panel-band[hidden] { display: none !important; }
      .logo-panel-band img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: contain; }
      .racepage-body { display: grid; grid-template-columns: 1.5fr .5fr; gap: 24px; padding: 18px 24px 24px; }
      /* Key facts: full-width section directly below .racepage-body, so the
         facts grid widens past the right column (ad + alerts) and flows
         into the space under the Get alerts box — no dead column beside
         running text. Same 2-column grid, same column gap as the body
         above, same .fact hairline rhythm: every row's separators align
         across both columns. The course profile summary does not close
         this section — it sits directly under the elevation profile,
         above the key facts. */
      .racepage-facts { padding: 0 24px 22px; }
      /* Top-aligned columns: both columns of the facts grid start at
         the same height — the right column's first fact
         sits level with the left column's first fact (Start format),
         with no offset or dead space at the top of either column, and
         every fact follows from there with the standard .fact spacing.
         align-items: start keeps each fact top-anchored to its row. */
      .racepage-facts .factgrid { gap: 0 24px; align-items: start; }
      .factgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
      .fact { border-top: 1px solid var(--line); padding: 10px 0; }
      .fact .fk { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
      .fact .fv { font-weight: 700; color: var(--ink-strong); font-size: 16.5px; margin-top: 2px; }
      .fact .fv small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }
      /* The Entry fee value carries the compact entry button (below,
         .rp-entry-btn--small) beside it — no separate text-link style. */
      .fact .fv a.aff-link { font-weight: 700; }
      .fact .fv .aff-tag { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
      .racepage-body .airport-fact { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--card); margin-top: 16px; }
      .stay-box { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 16px; background: var(--bg-soft); margin-top: 16px; }
      .stay-box h4 { font-family: "Barlow Condensed", sans-serif; font-size: 20px; text-transform: uppercase; margin: 0 0 6px; color: var(--ink-strong); }
      .stay-box p { font-size: 14.5px; margin: 0 0 12px; color: var(--ink); }
      .stay-box .aff { font-size: 12px; color: var(--muted); margin-top: 10px; }
      .racepage .src { padding: 0 24px 18px; margin-top: 0; }
      /* Share this race: one button by the title at the top, one at the
         foot of the page. Native share sheet where available, copy-link
         fallback elsewhere — see the script at the foot of the page. */
      .rp-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
      /* The header's right column holds, in order: Share this race,
         Enter this race (rendered only where the record carries an
         entryUrl and its entries are open — standard 29 as amended),
         the organizer link icon row (globe, Instagram, Facebook —
         each shown only where the record holds the link, register
         item 44). Nothing else lives in this stack — no
         entry-status pill (the entry area and facts carry status), no
         featured pill (featured labeling lives only on the listing
         surfaces) and no Add to calendar (that control sits beside the
         date line). */
      .rp-head-side .share-block--top { align-items: flex-end; }
      /* Organizer entry button: the primary action of the race page
         header's right column, directly below Share this race and
         directly above the organizer link icon row. Solid
         sunset — the site's highlight color — full column width and
         52px tall, so it is the most prominent element in the column
         on desktop and in the stacked phone header alike. It links
         OUT to the organizer (new tab, noopener only — never an
         affiliate link, so no sponsored rel). */
      .rp-entry-btn {
        align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        min-height: 52px; padding: 12px 22px; border-radius: 8px;
        background: var(--sunset-solid); border: 1.5px solid var(--sunset-solid); color: #fff;
        font-weight: 800; font-size: 17.5px; line-height: 1.2; text-align: center; text-decoration: none;
      }
      .rp-entry-btn:hover { background: #c7431f; border-color: #c7431f; color: #fff; }
      .rp-entry-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
      .rp-entry-btn[hidden] { display: none !important; }
      /* Entries-close countdown: directly under the Enter button in the
         header stack, right-aligned with it. Rendered by renderRacePage
         only where entries are open and a parseable closing date is
         within 30 days (review item 4, approved 2026-11-17); the text
         colour is the palette's text-safe orange. */
      .rp-entry-countdown { align-self: stretch; text-align: right; font-size: 14.5px; font-weight: 700; color: var(--sunset-text); margin: -4px 0 0; line-height: 1.3; }
      .rp-entry-countdown[hidden] { display: none !important; }
      /* Compact variant of the same sunset entry button, sitting beside
         the Entry fee value in the key facts: identical color and
         treatment (background, border, weight, hover), smaller box. */
      .rp-entry-btn--small { min-height: 38px; padding: 7px 14px; font-size: 14.5px; border-radius: 7px; margin-left: 10px; vertical-align: middle; white-space: nowrap; }
      /* Organizer link icons (register item 44): the third element in
         the header stack, directly below Enter this race — a row of
         icon buttons in the ghost treatment where the "Organizer's
         event page" text button sat: a globe to the race's official
         event page, an Instagram icon and a Facebook icon to the
         event's own profiles (all new tab). renderRacePage shows each
         icon ONLY where the record holds that link, and hides the
         whole row where no organizer link is held at all, so the
         stack never carries a placeholder or a gap for a missing
         icon. */
      .rp-social-row { align-self: stretch; display: flex; gap: 10px; justify-content: flex-end; }
      .rp-social-row[hidden] { display: none !important; }
      .rp-social-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 38px; height: 38px; border-radius: 7px; text-decoration: none;
        background: var(--card); color: var(--accent); border: 1.5px solid var(--accent);
      }
      .rp-social-btn svg { width: 20px; height: 20px; flex: none; }
      .rp-social-btn:hover { background: var(--accent-soft); border-color: var(--accent-dark); color: var(--accent-dark); }
      .rp-social-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
      .rp-social-btn[hidden] { display: none !important; }
      /* Who-rides table distance cells stack their units: kilometres
         on the first line, miles underneath on a second line. */
      .dist-sub { display: block; font-weight: 600; color: var(--muted); font-size: 13.5px; margin-top: 1px; }
      /* Elevation values never wrap: the full "X m · Y ft" value stays
         on a single line wherever the meters · feet pattern renders. */
      .elev-val { white-space: nowrap; }
      .share-block { display: flex; flex-direction: column; gap: 5px; }
      .share-block--top { align-items: flex-end; text-align: right; }
      .share-btn { gap: 8px; white-space: nowrap; }
      .share-btn svg { width: 18px; height: 18px; flex: none; }
      .share-helper { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.35; max-width: 27em; }
      .share-block--top .share-helper { max-width: 24em; }
      .share-status { font-size: 13.5px; font-weight: 700; color: var(--open-ink); line-height: 1.3; min-height: 1.2em; }
      .share-status:empty { min-height: 0; }
      .share-footer { margin: 2px 24px 18px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--bg-soft); display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
      /* Last year in numbers: near the foot of the race page, directly
         above the share band (the last section before the source line). Rendered only for
         races that carry edition stats — no empty block otherwise. Its
         table reuses the .who table inside .who-table-wrap; on a
         phone the edition table reflows to fit (see the 620px rules
         below) instead of scrolling sideways. */
      .edition-numbers { padding: 4px 24px 20px; }
      .edition-numbers[hidden] { display: none !important; }
      .edition-numbers h4 { font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; margin: 0 0 4px; color: var(--ink-strong); line-height: 1.05; }
      .edition-headline { font-size: 16.5px; font-weight: 700; color: var(--ink-strong); margin: 0 0 6px; }
      .edition-headline .sample-tag { margin-left: 8px; vertical-align: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--soon-bg); color: var(--soon-ink); border-radius: 999px; padding: 3px 8px; }
      .edition-note { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
      .edition-history { margin: 10px 0 0; }
      .edition-history[hidden] { display: none !important; }
      .edition-history p { font-size: 13.5px; color: var(--muted); margin: 0 0 2px; line-height: 1.45; }
      .edition-history p b { color: var(--ink-strong); }
      table.edition-table td, table.edition-table th { font-variant-numeric: tabular-nums; }
      @media (max-width: 620px) { .edition-numbers { padding-left: 16px; padding-right: 16px; } }
      /* Phone: the edition table REFLOWS to fit — no sideways scroll at
         page level or inside its wrapper. The shared .who min-width is
         dropped for this table only, cells tighten, and the long
         "Men — starters" style headers wrap; the figures are short
         numbers, so five columns fit a phone width honestly. */
      @media (max-width: 620px) {
        .edition-numbers { min-width: 0; }
        .edition-numbers .who-table-wrap { overflow-x: visible; max-width: 100%; }
        table.who.edition-table { min-width: 0; width: 100%; font-size: 12.5px; }
        table.who.edition-table th, table.who.edition-table td { padding: 6px 6px; }
        table.who.edition-table thead th { font-size: 11px; letter-spacing: .02em; white-space: normal; }
      }
      .share-footer-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 3px; }
      .share-footer-text strong { font-family: "Barlow Condensed", sans-serif; font-size: 21px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-strong); line-height: 1.1; }
      .share-footer-text span { font-size: 14.5px; color: var(--ink); line-height: 1.4; }
      .share-footer .share-block { align-items: flex-end; text-align: right; }
      /* Add to calendar: sits beside the date and location line in the
         header's main column — one button opening a small menu with
         exactly two choices, Google Calendar and iCalendar (.ics
         download), both generated in the browser from the same race
         record the page renders (see the script at the foot of the
         page). The label and its menu are separate stacked elements,
         so they can never overlap. */
      .rp-meta { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 4px; }
      .rp-meta .rp-place { margin-top: 0; }
      .cal-menu-wrap { position: relative; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
      .cal-menu-btn { gap: 7px; white-space: nowrap; }
      .cal-menu-btn svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
      .cal-menu-btn .cal-caret { font-size: 12px; line-height: 1; }
      .cal-menu {
        position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px;
        display: flex; flex-direction: column; padding: 6px;
        background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px;
        box-shadow: 0 10px 28px rgba(6,47,61,.22);
      }
      .cal-menu[hidden] { display: none !important; }
      .cal-menu a, .cal-menu button {
        display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; width: 100%; min-height: 44px;
        padding: 9px 12px; border: none; border-radius: 7px; background: transparent;
        color: var(--ink-strong); font-weight: 700; font-size: 15px; text-align: left;
        text-decoration: none; cursor: pointer; line-height: 1.3; white-space: nowrap;
      }
      .cal-menu a:hover, .cal-menu button:hover { background: var(--accent-soft); color: var(--accent-dark); }
      .cal-menu a:focus-visible, .cal-menu button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
      .cal-menu .cal-menu-sub { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: normal; }
      .cal-status { font-size: 13.5px; font-weight: 700; color: var(--open-ink); line-height: 1.3; }
      .cal-status:empty { display: none; }
      @media (max-width: 860px) {
        .racepage-head { grid-template-columns: 1fr; }
        .racepage-head.has-logo { grid-template-columns: 1fr; }
        .logo-panel-band { width: 150px; }
        .rp-head-side { align-items: flex-start; }
        .rp-head-side .share-block--top { align-items: flex-start; }
      }
      @media (max-width: 620px) {
        .rp-head-side { align-items: stretch; }
        .rp-head-side .share-block--top { align-items: flex-start; }
        .share-block--top { align-items: flex-start; text-align: left; }
        .share-block--top .share-helper { max-width: none; }
        .share-footer { margin-left: 16px; margin-right: 16px; padding: 14px 16px; }
        .share-footer .share-block { align-items: stretch; text-align: left; width: 100%; }
        .share-footer .share-btn { width: 100%; }
      }
      /* Course downloads (GPX): one button per course, in the course area
         directly under the who-rides-what table, beside the distance facts.
         Card treatment matches the elevation profile card (.profile-card)
         directly below it. */
      .gpx-downloads { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 2px 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); padding: 12px 14px 10px; }
      .gpx-downloads:empty { display: none !important; }
      .gpx-downloads .gpx-label { flex-basis: 100%; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-strong); }
      .gpx-downloads .gpx-note { flex-basis: 100%; font-size: 12.5px; color: var(--muted); font-weight: 600; }
      /* Elevation profiles on the race page: the whole section — the
         heading, the course switch chips below it, and the selected
         course's profile — sits in ONE contained card (.profile-section,
         the .profile-card chrome). One body per course inside the card,
         switched by the chips. Register item 74. */
      .profile-section { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); padding: 12px 14px 6px; margin-bottom: 16px; }
      .profile-switch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 4px; }
      .course-profile[hidden] { display: none !important; }
      .profile-section .pc-head { flex-wrap: wrap; }
      .course-profile svg.elev-svg { width: 100%; height: auto; max-height: none; display: block; }
      .course-profile .sample-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--soon-bg); color: var(--soon-ink); border-radius: 999px; padding: 3px 8px; }
      .pc-qual { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
      .pc-qual.is-qual { color: var(--red); }
      .profile-nodata { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 4px 0 2px; }
      /* "Plan this race" affiliate module: on the race page directly
         above the Past podiums section — never between the key facts and
         the Enter button, and separate from the page's single ad
         placeholder. All five boxes are placeholders in this mockup; no
         real affiliate URLs. */
      .plan-module { padding: 4px 24px 20px; }
      .plan-module h4 { font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; margin: 0 0 4px; color: var(--ink-strong); line-height: 1.05; }
      .plan-module .plan-intro { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; }
      .plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; }
      .plan-box { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
      .plan-box .pb-title { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-strong); line-height: 1.1; }
      .plan-box p { font-size: 14px; margin: 0; line-height: 1.45; flex: 1; }
      .plan-box .btn { align-self: flex-start; margin-top: 4px; }
      .plan-box .pb-aff { font-size: 11.5px; color: var(--muted); font-weight: 600; }
      .plan-disclosure { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 12px 0 0; }
      @media (max-width: 620px) { .plan-module { padding-left: 16px; padding-right: 16px; } .plan-grid { grid-template-columns: 1fr; } }

      /* ---------- entry alerts: slim homepage strip + its own page ---------- */
      /* Homepage strip: same slim entry-card pattern as Results / How. The
         signup itself lives only on the Entry Alerts page view (#alerts). */
      .alerts-entry { padding-top: 28px !important; }
      .alerts-entry-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow); }
      .alerts-entry-card .ae-text { flex: 1 1 420px; }
      .alerts-entry-card h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 4px; text-transform: uppercase; color: var(--ink-strong); line-height: 1; }
      .alerts-entry-card p { margin: 0; font-size: 15.5px; max-width: 52em; }
      .alerts-entry-card p + p { margin-top: 4px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
      .alerts-entry-card code { font-size: 13px; font-weight: 700; color: var(--ink-strong); }
      /* Entry Alerts page form: same card treatment as the Contact form.
         Its one ad slot sits after the intro, never inside or beside the form. */
      .alerts-form { display: flex; flex-direction: column; gap: 16px; max-width: none; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 22px; }
      .alerts-form label { display: block; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
      .alerts-form input[type="email"] { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 14px; background: var(--card); color: var(--ink); min-height: 46px; font: inherit; }
      /* Form section panels: every section heading sits INSIDE its teal
         panel as a heading at the top — never straddling the panel edge
         the way a fieldset legend does. All three panels share this. */
      .alerts-form .form-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); padding: 16px; margin: 0; display: flex; flex-direction: column; }
      .alerts-form .panel-head { font-family: "Barlow", sans-serif; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; padding: 0; line-height: 1.3; }
      .check-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; cursor: pointer; border-radius: 6px; }
      .check-row input[type="radio"], .check-row input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); cursor: pointer; margin: 2px 0 0; }
      .check-row .cr-text { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.35; text-transform: none; letter-spacing: 0; }
      .check-row .cr-text small { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
      /* .alerts-form label sets display:block, which used to override the
         flex row above and leave the label text running straight onto the
         checkbox with no gap. This rule restores the flex row and its gap
         for every check row in the form (alert types + race picker). */
      .alerts-form label.check-row { display: flex; gap: 12px; text-transform: none; letter-spacing: 0; margin-bottom: 0; }
      .race-picker[hidden] { display: none !important; }
      .race-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
      .race-picker .check-row { align-items: center; padding: 10px 8px; }
      .race-picker .check-row input[type="checkbox"] { margin-top: 0; }
      @media (max-width: 620px) { .race-picker-grid { grid-template-columns: 1fr; } .alerts-form { padding: 16px; } }
      .alerts-privacy { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
      .alerts-privacy strong { color: var(--ink-strong); }
      .alerts-mock-note { font-size: 13.5px; color: var(--muted); font-weight: 600; margin: 0; }
      .form-msg { font-size: 14.5px; font-weight: 600; min-height: 1.4em; }
      /* Entry Alerts: full-width signup panel with two internal columns on
         desktop. Left column: email, Which qualifiers?, then Pick your
         races directly under it (the continuation of that choice). Right
         column: Email me when, then Subscribe + privacy note under it.
         The columns stretch to the same height and the teal panels grow
         to fill their column, so neither column ends in a large empty
         area — with the race picker hidden the heights still roughly
         match (taller scope buttons + subscribe block balance the three
         alert-type boxes). On narrow screens the columns stack in DOM
         order: email, which qualifiers, pick your races, email me when,
         subscribe. */
      .alerts-form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-items: stretch; }
      .alerts-form-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
      .alerts-form .form-panel--grow { flex: 1 1 auto; }
      .alerts-form .scope-seg { grid-template-columns: 1fr 1fr; background: transparent; border: none; border-radius: 0; padding: 0; margin-bottom: 0; flex: 1 1 auto; }
      .alerts-form .scope-seg .seg-text { height: 100%; min-height: 62px; }
      .alerts-form .race-picker-grid { grid-template-columns: 1fr; }
      .alerts-subscribe { display: flex; flex-direction: column; gap: 8px; flex: none; }
      .alerts-subscribe .btn { width: 100%; }
      .alerts-subscribe .form-msg:empty { display: none; }
      .alerts-footline { font-size: 14.5px; color: var(--muted); margin: 16px 0 0; }
      @media (max-width: 860px) { .alerts-form-cols { grid-template-columns: 1fr; } .alerts-form .form-panel--grow { flex: none; } .alerts-form .scope-seg .seg-text { min-height: 54px; } }
      /* Race-page alerts box: an inline email signup scoped to this one
         race — the visitor signs up here, without leaving the race page.
         Submitting swaps the form for the same double opt-in confirmation
         message as the Entry Alerts page. That page stays the place for
         multi-race scopes and alert types. */
      .race-alert-box { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px; background: var(--card); margin-top: 16px; }
      .race-alert-box h4 { font-family: "Barlow Condensed", sans-serif; font-size: 20px; text-transform: uppercase; margin: 0 0 6px; color: var(--ink-strong); }
      .race-alert-box p { font-size: 14.5px; margin: 0 0 12px; color: var(--ink); }
      .race-alert-form { display: flex; flex-direction: column; gap: 10px; }
      .race-alert-form[hidden] { display: none !important; }
      .race-alert-form label { display: block; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
      .race-alert-form input[type="email"] { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 14px; background: var(--card); color: var(--ink); min-height: 46px; font: inherit; }
      .race-alert-form .btn { width: 100%; }
      .race-alert-form .form-msg:empty { display: none; }
      .race-alert-box .race-alert-done { font-weight: 600; margin-bottom: 0; }
      .race-alert-box .race-alert-done[hidden] { display: none !important; }
      /* Sample alert mock on the Entry Alerts page: shows the email format.
         Its button opens this site's race page — alerts never link straight
         to an organizer. */
      .sample-alert { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-left: 4px solid var(--sunset); background: var(--card); border-radius: 10px; padding: 16px 18px; margin-top: 18px; box-shadow: var(--shadow); max-width: none; }
      .sample-alert .sa-tag { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--soon-bg); color: var(--soon-ink); border-radius: 999px; padding: 4px 10px; }
      .sample-alert .sa-body { flex: 1 1 300px; }
      .sample-alert .sa-title { font-family: "Barlow Condensed", sans-serif; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-strong); line-height: 1.1; display: block; }
      .sample-alert p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; }
      /* Entry Alerts page redesign: subheads, what-you-get cards, email card,
         segmented scope control, toggle types, recent alerts list. */
      .alerts-subhead { font-family: "Barlow Condensed", sans-serif; font-size: clamp(24px, 3vw, 30px); margin: 28px 0 4px; text-transform: uppercase; color: var(--ink-strong); line-height: 1.05; }
      .alerts-subnote { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
      .alert-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
      @media (max-width: 960px) { .alert-cards { grid-template-columns: 1fr 1fr; } }
      @media (max-width: 620px) { .alert-cards { grid-template-columns: 1fr; } }
      .alert-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
      .alert-card .ac-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
      .alert-card h3 { font-size: 23px; margin: 0; color: var(--ink-strong); line-height: 1.05; }
      .alert-card p { margin: 0; font-size: 15px; }
      .alert-card .ac-subject { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; color: var(--ink); }
      .alert-card .ac-subject span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
      .alert-card .ac-subject strong { color: var(--ink-strong); font-weight: 700; }
      .email-card { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0; overflow: hidden; margin-top: 0; }
      .email-card .email-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 12px 18px; }
      .email-card .email-from { font-size: 14px; font-weight: 600; color: var(--muted); }
      .email-card .email-from strong { color: var(--ink-strong); }
      .email-card .email-subject { padding: 14px 18px 0; font-size: 15px; color: var(--muted); font-weight: 600; }
      .email-card .email-subject strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-strong); line-height: 1.1; margin-top: 2px; }
      .email-card .sa-body { padding: 6px 18px 0; }
      .email-card .email-unsub { font-size: 13px; color: var(--muted); }
      .email-card .email-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 18px 16px; }
      .email-card .email-note { font-size: 13.5px; color: var(--muted); font-weight: 600; flex: 1 1 260px; }
      .form-head h3 { font-size: 25px; margin: 0 0 4px; color: var(--ink-strong); line-height: 1.05; }
      .form-head p { margin: 0; font-size: 15px; color: var(--muted); }
      .scope-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin-bottom: 6px; }
      @media (max-width: 620px) { .scope-seg { grid-template-columns: 1fr 1fr; } }
      .scope-seg .seg { position: relative; display: block; margin: 0; text-transform: none; letter-spacing: 0; }
      .scope-seg .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
      .scope-seg .seg-text { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; padding: 8px 6px; border-radius: 7px; font-weight: 700; font-size: 15px; color: var(--ink-strong); cursor: pointer; text-align: center; border: 1.5px solid transparent; line-height: 1.25; }
      .scope-seg .seg-text small { font-size: 12px; color: var(--muted); font-weight: 600; }
      .scope-seg .seg:hover .seg-text { border-color: var(--line-strong); }
      .scope-seg .seg input:checked + .seg-text { background: var(--accent); border-color: var(--accent); color: #fff; }
      .scope-seg .seg input:checked + .seg-text small { color: var(--header-sub); }
      @media (prefers-color-scheme: dark) { .scope-seg .seg input:checked + .seg-text { color: #062f3d; } .scope-seg .seg input:checked + .seg-text small { color: #0f3a47; } }
      .scope-seg .seg input:focus-visible + .seg-text { outline: 3px solid var(--accent); outline-offset: 2px; }
      .toggle-rows { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
      .toggle-list .check-row { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--card); margin-bottom: 0; min-height: 54px; align-items: center; gap: 12px; flex: 1 1 auto; }
      .toggle-list .check-row input[type="checkbox"] { margin-top: 0; }
      .toggle-list .check-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
      .freq-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 0; }
      .freq-line .fresh-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; margin-top: 6px; }
      .freq-line strong { color: var(--ink-strong); }
      .recent-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
      .recent-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
      .recent-row:first-child { border-top: none; }
      .recent-row .ra-date { flex: none; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); min-width: 118px; }
      .recent-row .ra-body { flex: 1 1 300px; }
      .recent-row .ra-body strong { display: block; color: var(--ink-strong); font-size: 16px; line-height: 1.3; }
      .recent-row .ra-body span { font-size: 14px; color: var(--muted); font-weight: 600; }
      .recent-row .ra-link { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
      .recent-row button.ra-link { background: none; border: none; padding: 10px 2px; min-height: 44px; color: var(--accent); cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; }
      .recent-row button.ra-link:hover { text-decoration: underline; }
      /* Two-column zone under the full-width cards: signup left, proof right.
         DOM order is form first, so the mobile stack is form, sample alert,
         recent alerts with no reordering needed. */
      .alerts-cols { display: grid; grid-template-columns: 1.08fr .92fr; gap: 26px; align-items: start; margin-top: 6px; }
      .alerts-cols .alerts-subhead { margin-top: 22px; }
      .alerts-cols .alerts-col > .alerts-subhead:first-child { margin-top: 6px; }
      .alerts-col--proof .recent-row { padding: 12px 14px; }
      .alerts-col--proof .recent-row .ra-date { min-width: 104px; }
      .alerts-col--proof .recent-row .ra-body { flex-basis: 240px; }
      @media (max-width: 960px) {
        .alerts-cols { grid-template-columns: 1fr; gap: 4px; }
        .alerts-col--proof .recent-row { padding: 14px 18px; }
        .alerts-col--proof .recent-row .ra-date { min-width: 118px; }
      }

      /* ---------- submit your event: separate page view (/submit-your-event) ----------
         The form IS the race record rendered as a form: same fields and
         fixed value sets as the data schema, in panel sections like the
         Entry Alerts page. Its one slim ad slot (110px leaderboard)
         sits directly after the intro. */
      .submit-steps { grid-template-columns: repeat(3, 1fr); }
      .submit-form { display: flex; flex-direction: column; gap: 16px; max-width: none; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 22px; }
      .submit-form .form-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
      .submit-form .panel-head { font-family: "Barlow", sans-serif; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0; padding: 0; line-height: 1.3; }
      .submit-form .f-label { display: block; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
      .submit-form[hidden] { display: none !important; }
      .submit-form label.check-row { display: flex; gap: 12px; text-transform: none; letter-spacing: 0; margin-bottom: 0; }
      .submit-form input:not([type="checkbox"]):not([type="radio"]), .submit-form select, .submit-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 14px; background: var(--card); color: var(--ink); min-height: 46px; font: inherit; }
      .submit-form textarea { min-height: 84px; resize: vertical; }
      .submit-form .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
      /* "This submission is" card: the two kind options sit side by side
         in two columns for the card's visual balance; they stack again
         on phones (see the 620px rules below). Layout only — the update
         race picker below the options works exactly as before. */
      .submit-form .kind-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
      .submit-form .field-note { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.45; margin: 0; align-self: center; }
      .submit-form .field-note strong { color: var(--ink-strong); }
      /* Submit form race picker: type-to-search results under the field */
      .submit-race-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
      .submit-race-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; text-align: left; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); min-height: 46px; }
      .submit-race-result:hover { border-color: var(--accent); background: var(--accent-soft); }
      .submit-race-result .srr-name { font-weight: 700; color: var(--ink-strong); }
      .submit-race-result .srr-place { color: var(--muted); font-weight: 600; font-size: 14px; }
      .submit-race-result .srr-series { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 9px; }
      .submit-race-chosen { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 15.5px; }
      .submit-race-chosen strong { color: var(--ink-strong); }
      /* Submit form type-to-select suggestion box (register item 51;
         standard 53): the page's own suggestion list for the Country
         and fee Currency inputs — one shared box, positioned under
         the field being typed in at that field's width, styled to the
         form and shown only while typing. */
      .suggest-box { position: absolute; z-index: 45; background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; max-height: 264px; overflow-y: auto; }
      .suggest-box[hidden] { display: none !important; }
      .suggest-item { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; background: transparent; padding: 9px 10px; cursor: pointer; font: inherit; font-size: 15px; color: var(--ink); }
      .suggest-item:hover, .suggest-item.is-active { background: var(--accent-soft); }
      /* Submit form Route panel: one sub-block per course */
      .route-block { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
      /* Submit form Courses panel: repeatable course rows + quick-add row */
      .submit-form .course-rows { display: flex; flex-direction: column; gap: 12px; }
      .submit-form .course-add-row { display: flex; gap: 10px; flex-wrap: wrap; }
      .submit-form .course-row .course-remove { align-self: flex-start; }
      .submit-form .course-row .course-remove[hidden] { display: none !important; }
      .submit-form .fee-remove[hidden] { display: none !important; }
      .route-block[hidden] { display: none !important; }
      .route-block .rb-head { font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-strong); }
      /* Submit form: entry-fee inclusions checkbox grid */
      .submit-form .inclusions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
      @media (max-width: 620px) { .submit-form .inclusions-grid { grid-template-columns: 1fr; } }
      .submit-cond[hidden] { display: none !important; }
      .fee-rows { display: flex; flex-direction: column; gap: 10px; }
      .fee-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .8fr) auto; gap: 10px; align-items: end; }
      .fee-row .fee-remove { white-space: nowrap; }
      .submit-success { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 10px; padding: 22px 24px; box-shadow: var(--shadow); }
      .submit-success[hidden] { display: none !important; }
      .submit-success h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 6px; text-transform: uppercase; color: var(--ink-strong); line-height: 1.05; }
      .submit-success p { margin: 0; font-size: 16px; max-width: 56em; }
      /* Submit form all-at-once feedback (register item 89): a summary
         box at the top of the form lists every outstanding problem;
         each offending field carries a red border and a red note
         directly under it — colour plus words, never colour alone. */
      .submit-summary { border: 1.5px solid var(--red); border-radius: 10px; background: var(--card); padding: 14px 16px; }
      .submit-summary[hidden] { display: none !important; }
      .submit-summary .summary-head { font-family: "Barlow", sans-serif; font-weight: 700; font-size: 15px; color: var(--red); margin: 0 0 8px; }
      .submit-summary ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
      .submit-summary li { font-size: 14.5px; line-height: 1.45; }
      .submit-summary a { font-weight: 700; }
      .submit-form input:not([type="checkbox"]):not([type="radio"])[aria-invalid="true"], .submit-form select[aria-invalid="true"], .submit-form textarea[aria-invalid="true"] { border-color: var(--red); }
      .submit-form input[type="checkbox"][aria-invalid="true"] { outline: 3px solid var(--red); outline-offset: 2px; }
      .submit-form .field-error { font-size: 13.5px; font-weight: 600; color: var(--red); line-height: 1.45; margin: 6px 0 0; }
      @media (max-width: 620px) {
        .submit-form { padding: 16px; }
        .submit-form .field-grid { grid-template-columns: 1fr; }
        .submit-form .kind-options { grid-template-columns: 1fr; }
        .fee-row { grid-template-columns: 1fr 1fr; }
        .fee-row .fee-cat { grid-column: 1 / -1; }
      }

      /* ---------- footer ---------- */
      footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 26px 0 40px; background: var(--bg-soft); }
      footer.site p { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
      footer.site .fineprint { font-size: 12.5px; }
      footer.site .fname { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 20px; color: var(--ink-strong); letter-spacing: .04em; margin-bottom: 2px; }
      footer.site .fname-sub { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

      /* ---------- responsive ---------- */
      /* Comfortable tap targets everywhere */
      .chip { min-height: 44px; padding: 10px 16px; }
      nav.main a { min-height: 44px; padding: 10px 5px; }
      /* Desktop: the full nav — now including Submit your event as the
         last item, after About — plus the language selector fits on
         ONE row inside the header's 1160px wrap, which the header now
         shares with the page. The row needs about 887px of the 1120px
         content width, verified by measurement, and the tighter link
         padding and 13.5px size above buy the rest of the room;
         nowrap here holds the row to a single line at desktop widths.
         The phone panel (700px rules above) is a separate column
         layout and is untouched. */
      @media (min-width: 701px) {
        nav.main { flex-wrap: nowrap; }
        .header-nav-row { align-items: center; }
      }
      .compare-toggle { min-height: 48px; }
      .compare-toggle input[type="checkbox"] { width: 24px; height: 24px; }
      .back-to-top a { min-height: 44px; padding: 10px 16px; }
      .btn { min-height: 48px; }
      .btn-small { min-height: 44px; padding: 10px 14px; }
      html, body { overflow-x: hidden; max-width: 100%; }
      .wrap { max-width: 1280px; width: 100%; }
      img, svg { max-width: 100%; }
      @media (max-width: 960px) {
        .grid, .steps { grid-template-columns: repeat(2, 1fr); }
        .hero-grid, .worlds, .racepage-body, .paths { grid-template-columns: 1fr; }
        .racepage-body > div { min-width: 0; }
      }
      @media (max-width: 700px) {
        /* Compare table stacks — no horizontal scrolling, race name on every value */
        .table-scroll { overflow-x: visible; border: none; box-shadow: none; background: transparent; }
        table.compare { min-width: 0; display: block; font-size: 15px; }
        table.compare thead { display: none; }
        /* …except the share cell: the compact Share button stays visible
           at the top of the stacked table on mobile too, right-aligned. */
        table.compare thead.has-share { display: block; }
        table.compare thead.has-share tr { display: block; }
        table.compare thead.has-share th { display: none; }
        table.compare thead.has-share th.cmp-share-cell { display: block; width: 100% !important; background: transparent; padding: 2px 2px 10px; text-align: right; }
        table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: 100% !important; }
        table.compare tbody tr { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 6px 0 10px; box-shadow: var(--shadow); overflow: hidden; }
        table.compare tbody th { background: var(--bg-soft); padding: 10px 14px 6px; border-bottom: none; font-size: 12.5px; }
        table.compare tbody td { border-bottom: none; padding: 8px 14px 2px; }
        /* Calendar table stacks into ONE compact block per race — not the
           compare table's stacking: here each block is already one race,
           so the race name appears exactly once, as the block heading (its
           Race cell), with the labeled Compare control beside it, and the
           remaining fields follow as tight label-and-value rows with no
           name repeated. The header row is hidden at this width, so
           sorting moves to the .table-sort-row the renderer prints above
           the blocks. No horizontal scrolling. */
        table.races { min-width: 0; display: block; font-size: 15px; }
        table.races thead { display: none; }
        table.races tbody { display: block; }
        table.races tbody tr { display: flex; flex-wrap: wrap; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 10px 14px 12px; box-shadow: var(--shadow); overflow: hidden; }
        table.races tbody tr.is-compared { background: var(--accent-soft); }
        table.races td { display: flex; align-items: baseline; gap: 10px; width: 100% !important; min-width: 0; border-bottom: none; padding: 3px 0; line-height: 1.35; }
        table.races td::before { content: attr(data-label); flex: 0 0 84px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
        table.races td .rt-val { display: block; flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
        table.races td.rt-fee { max-width: none; }
        /* Heading row of the block: the Race cell is the heading (no
           column label), the Compare cell sits beside it as a labeled
           pill — never a bare checkbox. Championship rows have no compare
           control, so their placeholder cell drops out entirely. */
        table.races td.rt-race-cell { order: -2; flex: 1 1 50%; width: auto !important; display: block; padding: 1px 0 7px; }
        table.races td.rt-race-cell::before { display: none; }
        table.races td.rt-race-cell .rt-race { font-size: 17.5px; line-height: 1.25; }
        table.races td.rt-cmp { order: -1; flex: 0 0 auto; width: auto !important; display: block; padding: 0 0 7px 10px; text-align: right; }
        table.races td.rt-cmp::before { display: none; }
        table.races tr.is-championship td.rt-cmp { display: none; }
        table.races .rt-check { min-height: 40px; gap: 7px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-soft); padding: 5px 12px 5px 8px; }
        table.races .rt-check-label { display: inline; font-size: 13.5px; font-weight: 700; color: var(--ink-strong); }
        table.races .rt-check input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 2px solid var(--accent); border-radius: 5px; background: var(--card); display: inline-grid; place-content: center; cursor: pointer; }
        table.races .rt-check input[type="checkbox"]::after { content: ""; width: 10px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
        table.races .rt-check input[type="checkbox"]:checked { background: var(--accent); }
        table.races .rt-check input[type="checkbox"]:checked::after { opacity: 1; }
        table.races .rt-check input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
        @media (prefers-color-scheme: dark) {
          table.races .rt-check input[type="checkbox"]:checked::after { border-color: #062f3d; }
        }
        /* Sort row: the phone replacement for the hidden header row —
           same Date / Distance / Elevation sorts, same data-sort-key
           wiring, so the existing delegated handlers drive it. */
        .table-sort-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
        .table-sort-row .tsr-label { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
        .table-sort-row .sort-btn { width: auto; min-height: 40px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; white-space: nowrap; }
        .table-sort-row .sort-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
        .table-sort-row .sort-btn.is-active .sort-arrow { color: #fff; }
        @media (prefers-color-scheme: dark) {
          .table-sort-row .sort-btn.is-active { color: #062f3d; }
          .table-sort-row .sort-btn.is-active .sort-arrow { color: #062f3d; }
        }
        .cmp-mobile-race { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
        .who-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
        table.who { min-width: 0; font-size: 13.5px; }
        table.who th, table.who td { padding: 8px 8px; overflow-wrap: break-word; }
        /* The race page course table carries seven columns (Course name /
           Date / Distance / Elevation / Who rides it / Entry fee /
           Qualifies for): at phone width it lays out fixed within the
           wrap, so every column stays on screen and the text wraps —
           no sideways scroll and nothing clipped. */
        .racepage-body table.who { table-layout: fixed; font-size: 12.5px; }
        .racepage-body table.who th, .racepage-body table.who td { padding: 6px 5px; }
        .racepage-body table.who thead th { font-size: 10px; letter-spacing: 0; }
        .racepage-body table.who th:nth-child(1) { width: 13%; }
        .racepage-body table.who th:nth-child(2) { width: 17%; }
        .racepage-body table.who th:nth-child(3) { width: 13%; }
        .racepage-body table.who th:nth-child(4) { width: 13%; }
        .racepage-body table.who th:nth-child(5) { width: 20%; }
        .racepage-body table.who th:nth-child(6) { width: 10%; }
        .racepage-body table.who th:nth-child(7) { width: 14%; }
      }
      @media (max-width: 620px) {
        .grid, .steps, .factgrid { grid-template-columns: 1fr; }
        nav.main a { flex: 0 0 auto; justify-content: center; text-align: center; }
        nav.main a.home-link { flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; }
        /* The brand lockup is never dropped on phones: wordmark above,
           "Road to the Worlds" beneath it, both fully rendered. */
        .brand { flex-direction: column; align-items: flex-start; }
        .brand .sub { display: block; }
        .filter-row .flabel, .view-row .flabel, .hub-filter-row .flabel, .hub-view-row .flabel { width: 100%; }
        body { font-size: 16px; }
        .wrap { padding: 0 14px; }
        .hero { padding-top: 22px; }
        .hero h1 { font-size: 40px; }
        .card { padding: 16px; }
        .card h3 { font-size: 26px; }
        .spec .row { font-size: 15.5px; }
        .series-btn, .hub-series-btn { font-size: 22px; min-height: 60px; padding: 12px 10px; }
        .filterbar { padding: 12px 12px 6px; }
        .lifecycle { flex-direction: row; }
        .lc-arrow { transform: none; align-self: center; margin-left: 0; }
        .compare-bar { flex-direction: column; align-items: stretch; }
        .compare-bar .cb-actions { margin-left: 0; }
        .compare-bar .cb-actions .btn, .compare-bar .cb-actions a { flex: 1; }
        .results-entry-card, .alerts-entry-card { padding: 16px; }
        .results-entry-card .btn, .alerts-entry-card .btn { width: 100%; }
        .worlds { padding: 18px; }
        .racepage-head, .racepage-body, .racepage-facts { padding-left: 16px; padding-right: 16px; }
        .back-to-top { justify-content: stretch; }
        .back-to-top a { flex: 1; justify-content: center; }
      }
      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
      }
      /* Very narrow phones (360px and under): the wordmark scales down
         slightly rather than clipping, and the sub-line stays whole. */
      @media (max-width: 380px) {
        .brand .name { font-size: 25px; }
        .brand .sub { font-size: 11px; }
        .lang-switch select { max-width: 112px; }
      }

    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- WordPress additions (Gran Fondo Calendar child theme, stage 2) ----
   Everything above is the mockup stylesheet verbatim. The rules below are
   new: the Leaflet map tab (register item 102) and small WP-only states. */
#raceMap { height: 560px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); z-index: 1; }
#raceMapWrap { margin-bottom: 18px; }
#raceMapWrap .map-note { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.gfc-map-card { font-size: 14px; line-height: 1.45; }
.gfc-map-card .gfc-map-name { font-weight: 700; color: var(--ink-strong); display: block; margin-bottom: 2px; }
.gfc-map-card .gfc-map-meta { display: block; color: var(--muted); font-size: 13px; }
.gfc-map-list { margin: 6px 0 0; padding-left: 18px; }
.gfc-map-list li { margin-bottom: 4px; }
/* Item 102/118 - map legend + popup event types */
.gfc-map-legend{background:#fff;color:var(--ink-strong);border:1px solid var(--line);border-radius:8px;box-shadow:0 1px 5px rgba(0,0,0,.2);padding:8px 10px;max-width:210px;font-size:12px;line-height:1.4;}
.gfc-map-legend-title{font-weight:700;font-size:12px;margin-bottom:6px;}
.gfc-map-legend-row{display:flex;align-items:center;gap:8px;margin:5px 0;}
.gfc-map-legend-dot{flex:0 0 auto;border-radius:50%;}
.gfc-map-legend-dot.gfc-map-legend-small{width:12px;height:12px;background:rgba(110,204,57,0.6);box-shadow:0 0 0 4px rgba(181,226,140,0.6);}
.gfc-map-legend-dot.gfc-map-legend-medium{width:16px;height:16px;background:rgba(240,194,12,0.6);box-shadow:0 0 0 4px rgba(241,211,87,0.6);}
.gfc-map-legend-dot.gfc-map-legend-large{width:20px;height:20px;background:rgba(241,128,23,0.6);box-shadow:0 0 0 4px rgba(253,156,115,0.6);}
.gfc-map-legend-pin{flex:0 0 auto;width:14px;height:14px;background:#3388ff;border:2px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 1px 3px rgba(0,0,0,.3);}
.gfc-map-type{display:inline-block;font-family:"Barlow Semi Condensed",sans-serif;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.02em;color:var(--accent);background:var(--accent-soft);border-radius:3px;padding:2px 6px;line-height:1.4;}
.gfc-map-type.is-gravel{color:var(--gravel-ink);background:var(--gravel-bg);}
.gfc-map-qual{display:inline-block;font-size:11px;font-weight:700;color:#B84A1F;margin-left:6px;}
@media(max-width:600px){.gfc-map-legend{max-width:170px;padding:6px 8px;font-size:11px;}}
.gfc-load-error { color: var(--red); font-weight: 600; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.leaflet-container { font-family: "Barlow", system-ui, sans-serif; }

/* WP-only: classes the PHP templates use that the mockup stylesheet never defined. */
.hub-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.hub-toolbar #hubSearch { flex: 1 1 220px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font: inherit; background: var(--card); color: var(--ink); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.aff-disclosure { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.results-filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.results-filter-row .flabel { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); width: 86px; flex: none; }
.results-filter-row input[type="search"] { flex: 1 1 220px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font: inherit; background: var(--card); color: var(--ink); }
/* item 111 - live wp header to mockup proportions */
header.wp-block-template-part { border-bottom: 3px solid #5fb0c9; padding-top: 10px!important; padding-bottom: 8px!important; }
header.wp-block-template-part .wp-block-site-logo img, header.wp-block-template-part img.custom-logo { width: 240px !important; height: auto !important; }
header.wp-block-template-part .wp-block-group { padding-top: 0!important; padding-bottom: 0!important; }
.hero-left { display: flex !important; flex-direction: column !important; }
.ad-slot--hero { margin-top: 16px !important; }
/*109 pin ad*/@media(min-width:961px){.hero-left{position:relative;}}
@media(min-width:961px){.hero-left{min-height:640px;}}
/* Item 109 amendment 2 hero ad stretch desktop: the left column fills to the featured card bottom line. */
@media(min-width:961px){.hero-left{align-self:stretch;}.ad-slot--hero{height:auto;}}
/*109 gaps*/
#calendar>.wrap.hero{padding:16px 20px 4px!important;min-height:0!important;margin-bottom:0!important;}
.hero-grid{margin:0!important;}#calendar>.wrap+.wrap{margin-top:12px!important;}main{padding-top:0!important;}
/*115*/
.filter-row[data-group=search]{display:flex;align-items:center;gap:8px;}#resultCount{margin:0!important;flex:none;white-space:nowrap;}
/*109 stray empty paragraphs + block-gap margin (register item 109)*/
/* Two empty <p> elements are injected into the hero by the shortcode rendering (wpautop):
   one lands as a third item of .hero-grid, opening an implicit second row, and one lands
   after the grid inside .wrap.hero. Empty, but each carries the browser default 1em
   paragraph margins (~17px top and bottom), which inflated the hero by ~79px. Hide them. */
#calendar .hero-grid>*:nth-child(n+3){display:none;}
#calendar .wrap.hero>*:not(.hero-grid){display:none;}
/* The rendered homepage has no <main> element, so the block-gap margin does not sit on
   one: the shortcode wrapper .gfc-app sits directly under .wp-site-blocks (or under a
   wrapper div there), and WordPress gives .wp-site-blocks > * + * a 24px top margin.
   With #calendar's 12px top padding and the hero's 16px top padding that put the H1
   52px below the header. Zero the margin on .gfc-app and on any wrapper holding it,
   so the H1 sits 12px + 16px = 28px below the header, as in the mockup. */
.gfc-app{margin-top:0!important;}
.wp-site-blocks>*:has(.gfc-app){margin-top:0!important;}
/* 109 amendment: featured card grows up to the H1 line. Card top 235 -> 151 (H1 glyph top); bottom stays at the ad bottom. Photo enlarged 312 -> 396px and body pushed down 110 -> 194px so the taller card is filled by image. */
@media (min-width: 961px) {
	.worlds-carousel { align-self: stretch !important; margin-top: 11px !important; }
	.wc-photo { height: 396px !important; }
	.wc-shade { height: 396px !important; }
	.wc-body { margin-top: 194px !important; }
}
/* 122: lens panel standard 16px padding; count inline in the search row (no wrap, no box); chips smaller. */
.filterbar { padding: 16px 16px 16px !important; }
.filter-row[data-group="search"] { flex-wrap: nowrap !important; }
#resultCount { border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
.filterbar .view-row { margin-bottom: 0 !important; }
.chip { padding: 6px 12px !important; min-height: 36px !important; }
/* 111: header container, Step 12 */
header.wp-block-template-part .wp-block-group.alignwide{max-width:1280px!important;margin:0 auto!important;padding-left:20px!important;padding-right:20px!important;box-sizing:border-box!important;}
/* 111: mobile header, Step 12 */
@media (max-width: 700px) {
	header.wp-block-template-part .wp-block-site-logo img,header.wp-block-template-part img.custom-logo{width:120px!important;}
	header.wp-block-template-part .wp-block-group.alignwide>.wp-block-group:first-child>.wp-block-group{justify-content:flex-start!important;gap:12px!important;}
	header.wp-block-template-part .wp-block-group.alignwide p{font-size:11px!important;letter-spacing:1px!important;white-space:nowrap!important;}
}
@media(min-width:961px){.worlds-carousel{align-self:start!important;}}
/* 111: header rows left-aligned, one row, every width. */
header.wp-block-template-part .wp-block-group.is-layout-flex{justify-content:flex-start !important;flex-wrap:nowrap !important;}
header.wp-block-template-part .is-layout-flex.is-vertical{align-items:flex-start !important;}
header.wp-block-template-part .wp-block-group.alignwide>.wp-block-group:first-child{align-items:flex-start !important;}
/* 142: force light design in dark mode. */
@media (prefers-color-scheme: dark) {
	:root{--bg:#eef7f7;--bg-soft:#ddeef2;--card:#fff;--ink:#213e4a;--ink-strong:#0a4a5e;--muted:#4e6570;--line:#c8dde3;--line-strong:#9abeca;--accent:#0a4a5e;--accent-dark:#062f3d;--accent-soft:#ddeef2;--sunset-text:#b84a1f;--red:#b84a1f;--header-bg:#0a4a5e;--header-sub:#bfe0ea;--open-bg:#dff0e2;--open-ink:#1c6b32;--soon-bg:#fdeeda;--soon-ink:#9a4a12;--closed-bg:#e3edef;--closed-ink:#4a626e;--chip-bg:#ddeef2;--gravel-bg:#eae2cf;--gravel-ink:#6e5a30;}
	[aria-pressed="true"],.btn-solid,.pill-qualified,.edition-tag,.page-flag .pf-tag,.scope-seg .seg input:checked+.seg-text,.home-link--bar,.home-link--bar:hover{color:#eef7f7!important}
		[aria-pressed="true"] span,.scope-seg .seg input:checked+.seg-text small{color:#bfe0ea!important}
}
	/* 142: search row wraps at phone width. */
	@media (max-width: 700px){.filter-row[data-group="search"]{flex-wrap:wrap!important;}}
	@media (max-width:700px){#calendar input[type=search]{flex:1 1 100%!important;min-width:0!important}}
	@media (max-width:700px){#calSearch{flex:1 1 100%!important;min-width:0!important}}
	@media (max-width: 700px){.filterbar .filter-row[data-group="search"]{flex-wrap:wrap!important;}}
	/* 143: race header breadcrumb under title, logo band content-sized. */
	.rp-head-main{display:flex;flex-direction:column}
	.rp-head-main .page-back{order:1}
	.rp-head-main h3{order:2}
	.rp-head-main .rp-breadcrumb{order:3}
	.rp-head-main .rp-place{order:4}
	.rp-head-main .rp-series{order:5}
	.racepage-head.has-logo .logo-panel-band{align-self:center}



/* Item 155: map pins, status rings, single-discipline clusters and
 * the championship mark. Added by hand after the extracted
 * stylesheet: keep with the map rules if this file is re-extracted. */
.leaflet-div-icon.gfc-pin-icon{background:none;border:none;}
.gfc-pin{position:absolute;left:6px;top:5px;width:22px;height:22px;background:var(--accent);border:2px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 1px 4px rgba(0,0,0,.35);}
.gfc-pin--grey{opacity:.5;}
.gfc-pin__ring{position:absolute;left:-5px;top:-5px;width:32px;height:32px;border:3px solid var(--open-ink);border-radius:50%;box-sizing:border-box;}
.gfc-pin__ring--soon{border-color:var(--soon-ink);}
.marker-cluster.gfc-cluster-disc{background:transparent;}
.marker-cluster.gfc-cluster-disc div{color:#fff;}
.gfc-map-champ{color:#b84a1f;}
.gfc-map-legend-star{flex:0 0 auto;width:14px;color:#b84a1f;font-size:14px;line-height:1;text-align:center;}
.gfc-map-legend-pin--ringed{position:relative;}
.gfc-map-legend-ring{position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border:2px solid var(--open-ink);border-radius:50%;box-sizing:border-box;}
.gfc-map-legend-ring--soon{border-color:var(--soon-ink);}
.gfc-map-legend-pin--grey{opacity:.5;}




/* Item 156: in-feed ad card on mobile - the ad placeholder spans the
 * full inner width of the ad card (across both grid columns), so the
 * card carries no dead space. Desktop Cards view and the Table view
 * ad row are untouched. */
@media (max-width: 700px) {
  .card--ad { display: flex; flex-direction: column; }
  .card--ad > .ad-slot--infeed { grid-column: 1 / -1 !important; width: 100% !important; flex: 1 1 auto; }
}

























/* Item 165: view toggle on phones - all four view buttons (Cards, Table, Compact, Map) must fit and be tappable. The toggle buttons have fixed wide padding, so at phone width the four together are wider than the filter panel and the last button is pushed out of reach. Below 620px the toggle becomes full width with four equal flexible buttons and tighter padding; desktop is untouched. */@media (max-width: 620px) {
  .view-row .view-toggle,
	.view-row .hub-view-toggle {
    display: flex !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .view-row .view-toggle button,
	.view-row .hub-view-toggle button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 9px 2px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
}/* Item 165 (narrow phones): below 360px the four buttons wrap into two rows of two, so no label is squeezed. */
@media (max-width: 360px) {
  .view-row .view-toggle,
	.view-row .hub-view-toggle {
    flex-wrap: wrap !important;
  }
  .view-row .view-toggle button,
	.view-row .hub-view-toggle button {
    flex: 1 1 40% !important;
    font-size: 14px !important;
    padding: 9px 8px !important;
  }
}/* Item 159 (2026-11-24): hero "Browse the calendar" button on phones.
   The button is a plain <a href="#calendar"> inside the #calendar section
   itself, so the native anchor jump lands on the section top - the hero -
   which is a no-op from the top of the page. Below 960px the hero stacks
   and the calendar controls sit far below the fold, so the tap looked dead;
   on desktop the controls are already in view. The Item 159 script sends
   the tap to the calendar controls (.lens-toggle) at phone width only; this
   keeps those controls clear of the sticky header when they land at the
   top of the viewport. Desktop is untouched. */
@media (max-width: 960px) {
	.lens-toggle { scroll-margin-top: 120px; }
}
/* Item 165 (2026-11-24): minimizable map legend. The Legend header is a tap target (chevron button on the title row) that collapses only the legend body, leaving the header bar; tapping again re-expands it. Default state is expanded. The collapsed state is a class on the legend container (gfc-map.js re-applies it whenever it rebuilds the legend on a lens/filter change), so a minimized legend stays minimized across rebuilds. Nothing else about the legend changes. */
.gfc-map-legend-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.gfc-map-legend-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin: -8px -4px -8px 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.gfc-map-legend-toggle:hover,
.gfc-map-legend-toggle:focus-visible {
  background: var(--bg-soft);
}
.gfc-map-legend.is-collapsed .gfc-map-legend-body {
  display: none;
}
.gfc-map-legend.is-collapsed .gfc-map-legend-title {
  margin-bottom: 0;
}
/* Item 111 (2026-11-24) - live WordPress header. The mockup header CSS earlier in this file already styles header.site, .brand, nav.main and .menu-toggle; this one appended block only (a) makes the WordPress template-part wrapper itself the sticky band - the inner header.site is sticky in the mockup CSS, but its wrapper is only as tall as the header, so the wrapper must stick - and neutralises the earlier item-111 wrapper padding/border so the band has a single 3px sky border and a single set of inner padding, (b) pins the inner wrap to the spec's 1280px, and (c) stops any horizontal overflow from the header. No earlier block in this file was changed. */
header.wp-block-template-part:has(.gfc-site-header){position:sticky;top:0;z-index:40;margin:0;border-bottom:0;padding-top:0!important;padding-bottom:0!important}
header.wp-block-template-part:has(.gfc-site-header) .wp-block-html{margin:0}
header.site.gfc-site-header{max-width:1280px;width:100%;margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;box-sizing:border-box;overflow-x:clip}
header.site.gfc-site-header .header-in{max-width:100%}
.wp-block-template-part:has(.gfc-site-header){position:sticky;top:0;z-index:40;margin:0;border-bottom:0;padding-top:0!important;padding-bottom:0!important}
.wp-site-blocks>.wp-block-template-part:first-child{position:sticky;top:0;z-index:40}
/* Sticky fix (Item 111): the mockup CSS sets html,body{overflow-x:hidden}, which breaks position:sticky on the header; overflow-x:clip still clips horizontal overflow (no sideways scrolling) but does not make html/body a scroll container, so the sticky band works. */
html,body{overflow-x:clip}


/* Item 176 (2026-11-24): homepage dead space. Measured card gap in the rendered calendar grid is 18px (grid gap; 20px between white card faces, incl. 1px borders). The header-to-headline visual gap was ~35px. Cut the hero top padding to 0 so the visual gap is the 18px card gap, and give the other main pages the same treatment: main padding-top 9px with the first child's top margin removed, so their first heading/text also sits ~18px below the header band. */
#calendar>.wrap.hero{padding-top:0!important}
#calendar>.wrap.hero  .hero-left h1{margin-top:0!important}
main{padding-top:9px!important}
main>:first-child{margin-top:0!important;padding-top:0!important}
main>:first-child>:first-child{margin-top:0!important}
/* Item 156 (2026-11-24): mobile Table view ad row. At phone width table rows become flex cards (max-width:620px) and the ad row's single td had no flex basis, so the .ad-slot--infeed (JS line 1554) stayed content-width, about 60% of the row, leaving dead white. Force the ad cell and the slot to the row's full inner width. The 0.1.66 Cards-view fix (.card--ad) is untouched. */
@media (max-width:620px){
	table.races tbody tr.ad-row>td{display:block!important;width:100%!important;max-width:100%!important;padding:0!important;border:0!important}
	table.races tbody tr.ad-row .ad-slot--infeed{display:block!important;width:100%!important;max-width:100%!important}
}
/* Item 160 (2026-11-24): mobile lens tab row overflow. The three lens tabs are flex:1 with no min-width, so the long "World and National Championships" tab could not shrink and was cut off at the phone edge. Follow the discipline tabs' wrapping pattern: let the titles wrap inside the tab and let the tabs wrap two on the first row and one below (flex:1 0 45%; shrink 0 forces the wrap), each wide enough for its longest word. */
@media (max-width:620px){
	#calendar .lens-toggle{flex-wrap:wrap}
	#calendar .lens-toggle .lens-btn{flex:1 0 45%;min-width:0;padding:10px 6px 8px;font-size:19px;line-height:1.05}
	#calendar .lens-toggle .lens-btn span{font-size:11px;line-height:1.25}
}
/* Item 161 (2026-11-24): mobile filter pills cleanup. The Month, Region, Climbing, Entries and Distance groups wrapped raggedly: labels and chips had uneven gaps and padding across groups (including the JS-generated Month chips). Give every filter group the same left-aligned, even 8px gap and the same uniform chip padding and height at phone width. */
@media (max-width:620px){
	#calendar .filterbar .filter-row:not([data-group="search"]){display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;justify-content:flex-start;margin-bottom:10px}
	#calendar .filterbar .filter-row:not([data-group="search"]) .flabel{width:100%;margin:0;text-align:left}
	#calendar .filterbar .filter-row:not([data-group="search"]) .chip{flex:0 0 auto;margin:0!important;padding:6px 12px!important;min-height:36px!important;line-height:1.2}
}
/* Item 162 (2026-11-24): mobile sort buttons cleanup. Event date / Distance / Elevation wrapped two over one: the three nowrap pills together are wider than a phone. Give them the deliberate arrangement to Item 161's standard: the label on its own line, then one row of three equal-width, centred buttons. */
@media (max-width:620px){
	#calendar .table-sort-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;margin-bottom:10px}
	#calendar .table-sort-row .tsr-label{width:100%;margin:0;text-align:left}
	#calendar .table-sort-row .sort-btn{flex:1 1 0;min-width:0;padding:7px 4px;font-size:13px;white-space:nowrap;text-align:center;justify-content:center}
}
/* Item 164 (2026-11-24): mobile Compact view distance/elevation. On Compact view on phones the distance/elevation span was hidden (display:none), so rows showed only date, name and type. Show it as on desktop, as a meta line under the event name: let the row wrap and put the dist span on its own full-width line, indented under the name (date column 56px + 8px gap). */
@media (max-width:620px){
	#calendar .compact-list .compact-row{display:flex;flex-wrap:wrap;row-gap:2px}
	#calendar .compact-list .compact-row .compact-dist{display:block!important;flex:1 1 100%;order:3;margin:0 0 0 64px;font-size:13px;line-height:1.35;color:var(--muted)}
}
/* Item 171: one distinct colour per discipline, following the filter.
   Pills (.disc-label), the race-page pill (.rp-disc) and the map popup
   pill (.gfc-map-type) take a light tint of the discipline colour with
   discipline-coloured text. Road keeps the site accent and Gravel keeps
   its brown. Pins, single-discipline clusters and the legend take the
   same hex values from DISC_COLORS in gfc-map.js. */
.disc-label.is-road{background:var(--accent-soft);color:#0a4a5e}
.disc-label.is-gravel{background:var(--gravel-bg);color:var(--gravel-ink)}
.disc-label.is-tt{background:#e3f2f7;color:#2f7e9b}
.disc-label.is-mtb{background:#e2f1e9;color:#2e7d5b}
.disc-label.is-adventure{background:#fdeee7;color:#b84a1f}
.disc-label.is-licensed{background:#f6e7e9;color:#8a2f3c}
.disc-label.is-criteriums{background:#f9efe0;color:#8a5e14}
.disc-label.is-other{background:#e9edee;color:#5a6b76}
.disc-label.is-festivals{background:#e2f3f4;color:#0e6e72}
.racepage-head h3 .rp-disc.is-road{background:var(--accent-soft);color:#0a4a5e}
.racepage-head h3 .rp-disc.is-gravel{background:var(--gravel-bg);color:var(--gravel-ink)}
.racepage-head h3 .rp-disc.is-tt{background:#e3f2f7;color:#2f7e9b}
.racepage-head h3 .rp-disc.is-mtb{background:#e2f1e9;color:#2e7d5b}
.racepage-head h3 .rp-disc.is-adventure{background:#fdeee7;color:#b84a1f}
.racepage-head h3 .rp-disc.is-licensed{background:#f6e7e9;color:#8a2f3c}
.racepage-head h3 .rp-disc.is-criteriums{background:#f9efe0;color:#8a5e14}
.racepage-head h3 .rp-disc.is-other{background:#e9edee;color:#5a6b76}
.racepage-head h3 .rp-disc.is-festivals{background:#e2f3f4;color:#0e6e72}
.gfc-map-type.is-road{background:var(--accent-soft);color:#0a4a5e}
.gfc-map-type.is-gravel{background:var(--gravel-bg);color:var(--gravel-ink)}
.gfc-map-type.is-tt{background:#e3f2f7;color:#2f7e9b}
.gfc-map-type.is-mtb{background:#e2f1e9;color:#2e7d5b}
.gfc-map-type.is-adventure{background:#fdeee7;color:#b84a1f}
.gfc-map-type.is-licensed{background:#f6e7e9;color:#8a2f3c}
.gfc-map-type.is-criteriums{background:#f9efe0;color:#8a5e14}
.gfc-map-type.is-other{background:#e9edee;color:#5a6b76}
.gfc-map-type.is-festivals{background:#e2f3f4;color:#0e6e72}
/* Item 171: the pressed discipline button takes its discipline colour; the light hues (Time Trial, Criteriums, Festivals) take dark text. */
.series-btn[data-tab="road"][aria-pressed="true"],.hub-series-btn[data-tab="road"][aria-pressed="true"]{background:#0a4a5e;color:#fff}
.series-btn[data-tab="gravel"][aria-pressed="true"],.hub-series-btn[data-tab="gravel"][aria-pressed="true"]{background:#6e5a30;color:#fff}
.series-btn[data-tab="tt"][aria-pressed="true"],.hub-series-btn[data-tab="tt"][aria-pressed="true"]{background:#5fb0c9;color:#062f3d}
.series-btn[data-tab="mtb"][aria-pressed="true"],.hub-series-btn[data-tab="mtb"][aria-pressed="true"]{background:#2e7d5b;color:#fff}
.series-btn[data-tab="adventure"][aria-pressed="true"],.hub-series-btn[data-tab="adventure"][aria-pressed="true"]{background:#e4572e;color:#fff}
.series-btn[data-tab="licensed"][aria-pressed="true"],.hub-series-btn[data-tab="licensed"][aria-pressed="true"]{background:#8a2f3c;color:#fff}
.series-btn[data-tab="criteriums"][aria-pressed="true"],.hub-series-btn[data-tab="criteriums"][aria-pressed="true"]{background:#c98a2e;color:#062f3d}
.series-btn[data-tab="other"][aria-pressed="true"],.hub-series-btn[data-tab="other"][aria-pressed="true"]{background:#5a6b76;color:#fff}
.series-btn[data-tab="festivals"][aria-pressed="true"],.hub-series-btn[data-tab="festivals"][aria-pressed="true"]{background:#14919b;color:#062f3d}
.series-btn[data-tab="tt"][aria-pressed="true"] span,.hub-series-btn[data-tab="tt"][aria-pressed="true"] span,.series-btn[data-tab="criteriums"][aria-pressed="true"] span,.hub-series-btn[data-tab="criteriums"][aria-pressed="true"] span,.series-btn[data-tab="festivals"][aria-pressed="true"] span,.hub-series-btn[data-tab="festivals"][aria-pressed="true"] span{color:#062f3d}

/* Item 156 follow-up (2026-11-25): the 0.1.74 Table ad-row fix still left the placeholder at ~45% of the row on phones. At phone width table rows become flex cards, so force the ad cell and the slot to the row's full inner width. Also harden the lens titles for Item 160 so long tab titles wrap inside the tab instead of overflowing. */
@media (max-width:620px){
	#calendar tr.ad-row{display:flex}
	#calendar tr.ad-row td{display:block;flex:1 1 100%;width:100%;max-width:100%;min-width:0;padding:0;border:0}
	#calendar tr.ad-row .ad-slot--infeed{display:block;width:100%;max-width:100%}
	#calendar .lens-toggle .lens-btn span{white-space:normal;overflow-wrap:break-word}
}

/* Item 199 (2026-11-25): mobile only — halve the homepage hero ad height (250px -> 125px) and set the spacing above it and to the featured card below to the standard 18px card gap. Desktop unchanged. */
@media (max-width:620px){
	#calendar .ad-slot--hero{height:125px !important;min-height:125px !important;margin-top:18px !important}
	#calendar .hero-grid{gap:18px !important}
}

/* Item 197 (2026-11-25): more distinction between category colours — the 171 hues were too similar. Non-branded colours allowed; no repeats, no near-identical hues. Pins, legend and pills change together; Road keeps Deep Glacier #0A4A5E and Gravel keeps brown #6E5A30. Pills take the light tint with discipline-coloured text (same pattern as Item 171); pressed discipline buttons take the pin colour with white text for all seven, overriding the old dark-text exception for Time Trial, Criteriums and Festivals. */
.disc-label.is-tt{background:#E4EBFD;color:#1D4ED8}
.racepage-head h3 .rp-disc.is-tt{background:#E4EBFD;color:#1D4ED8}
.gfc-map-type.is-tt{background:#E4EBFD;color:#1D4ED8}
.series-btn[data-tab="tt"][aria-pressed="true"],.hub-series-btn[data-tab="tt"][aria-pressed="true"]{background:#2563EB;color:#fff}
.series-btn[data-tab="tt"][aria-pressed="true"] span,.hub-series-btn[data-tab="tt"][aria-pressed="true"] span{color:#fff}
.disc-label.is-mtb{background:#E3F3E6;color:#237A35}
.racepage-head h3 .rp-disc.is-mtb{background:#E3F3E6;color:#237A35}
.gfc-map-type.is-mtb{background:#E3F3E6;color:#237A35}
.series-btn[data-tab="mtb"][aria-pressed="true"],.hub-series-btn[data-tab="mtb"][aria-pressed="true"]{background:#2F9E44;color:#fff}
.series-btn[data-tab="mtb"][aria-pressed="true"] span,.hub-series-btn[data-tab="mtb"][aria-pressed="true"] span{color:#fff}
.disc-label.is-adventure{background:#FDEEDD;color:#C24E00}
.racepage-head h3 .rp-disc.is-adventure{background:#FDEEDD;color:#C24E00}
.gfc-map-type.is-adventure{background:#FDEEDD;color:#C24E00}
.series-btn[data-tab="adventure"][aria-pressed="true"],.hub-series-btn[data-tab="adventure"][aria-pressed="true"]{background:#F76707;color:#fff}
.series-btn[data-tab="adventure"][aria-pressed="true"] span,.hub-series-btn[data-tab="adventure"][aria-pressed="true"] span{color:#fff}
.disc-label.is-licensed{background:#EDE7FB;color:#5A34C7}
.racepage-head h3 .rp-disc.is-licensed{background:#EDE7FB;color:#5A34C7}
.gfc-map-type.is-licensed{background:#EDE7FB;color:#5A34C7}
.series-btn[data-tab="licensed"][aria-pressed="true"],.hub-series-btn[data-tab="licensed"][aria-pressed="true"]{background:#7048E8;color:#fff}
.series-btn[data-tab="licensed"][aria-pressed="true"] span,.hub-series-btn[data-tab="licensed"][aria-pressed="true"] span{color:#fff}
.disc-label.is-criteriums{background:#FCE8EF;color:#B03060}
.racepage-head h3 .rp-disc.is-criteriums{background:#FCE8EF;color:#B03060}
.gfc-map-type.is-criteriums{background:#FCE8EF;color:#B03060}
.series-btn[data-tab="criteriums"][aria-pressed="true"],.hub-series-btn[data-tab="criteriums"][aria-pressed="true"]{background:#E64980;color:#fff}
.series-btn[data-tab="criteriums"][aria-pressed="true"] span,.hub-series-btn[data-tab="criteriums"][aria-pressed="true"] span{color:#fff}
.disc-label.is-other{background:#E9ECEF;color:#343A40}
.racepage-head h3 .rp-disc.is-other{background:#E9ECEF;color:#343A40}
.gfc-map-type.is-other{background:#E9ECEF;color:#343A40}
.series-btn[data-tab="other"][aria-pressed="true"],.hub-series-btn[data-tab="other"][aria-pressed="true"]{background:#343A40;color:#fff}
.series-btn[data-tab="other"][aria-pressed="true"] span,.hub-series-btn[data-tab="other"][aria-pressed="true"] span{color:#fff}
.disc-label.is-festivals{background:#F9E6F3;color:#8F1A70}
.racepage-head h3 .rp-disc.is-festivals{background:#F9E6F3;color:#8F1A70}
.gfc-map-type.is-festivals{background:#F9E6F3;color:#8F1A70}
.series-btn[data-tab="festivals"][aria-pressed="true"],.hub-series-btn[data-tab="festivals"][aria-pressed="true"]{background:#C2259B;color:#fff}
.series-btn[data-tab="festivals"][aria-pressed="true"] span,.hub-series-btn[data-tab="festivals"][aria-pressed="true"] span{color:#fff}

/* Item 176 follow-up (2026-11-25): the Entry Alerts page still carries a ~46px dead band below the header band — body.alerts-only #alerts { padding-top: 22px } from the 2026-11-24 sweep, which never reached this page because its main's first child is the inline script. Cut it to 0. */
body.alerts-only #alerts{padding-top:0 !important}

/* Item 199 follow-up (2026-11-25): the 0.1.75 fix halved the ad height to 125px but the rendered gaps were still 54px above the ad and 46px below it — the cta-row margin, the ad margin-top and the featured slider's top spacing stack with the 18px hero-grid gap. At phone width zero all three so the 18px grid gap alone sets both gaps. Desktop unchanged. */
@media (max-width:620px){
	#calendar .cta-row{margin-bottom:0 !important}
	#calendar .ad-slot--hero{margin-top:0 !important}
	#calendar .worlds-carousel{margin-top:0 !important}
}

/* Item 199 follow-up 2 (2026-11-25): root cause found by a layout probe of the served page — wpautop leaves a stray empty <p> as hero-left's last flex child (after the ad); its default 1em top+bottom margins add ~28px below the ad at phone width, on top of the 18px grid gap (28+18=46px measured). The 109 hiding rules cover stray <p>s at grid level only, not inside hero-left. Hide any non-content paragraph inside hero-left at phone width, and restore the ad's 18px top margin (cta-row stays 0) so the above gap is exactly 18px. Desktop unchanged. */
@media (max-width:620px){
	#calendar .hero-left>p:not(.lede):not(.tag){display:none !important}
	#calendar .ad-slot--hero{margin-top:18px !important}
}

/* Item 197 follow-up (2026-11-25): Anthony — the Other grey #343A40 reads too close to Road's dark teal. Other becomes yellow: pin #EAB308, pill tint #FCF0C8 with dark amber text #7A5B00, pressed filter button yellow with dark text (white is unreadable on yellow). */
.disc-label.is-other{background:#FCF0C8;color:#7A5B00}
.racepage-head h3 .rp-disc.is-other{background:#FCF0C8;color:#7A5B00}
.gfc-map-type.is-other{background:#FCF0C8;color:#7A5B00}
.series-btn[data-tab="other"][aria-pressed="true"],.hub-series-btn[data-tab="other"][aria-pressed="true"]{background:#EAB308;color:#3A2E00}
.series-btn[data-tab="other"][aria-pressed="true"] span,.hub-series-btn[data-tab="other"][aria-pressed="true"] span{color:#3A2E00}

/* Item 201 (2026-11-25): the in-feed ad's label and text run together ("ADVERTISEMENTPlaceholder") — the label span sits inline inside .ad-slot--infeed. Put the label on its own line, as the hero ad renders it. */
.ad-slot--infeed .ad-label{display:block}

/* Item 202 (2026-11-25): at phone width the Compact view's header labels overlap — the fixed 118px/100px flex bases leave the name label a box narrower than its uppercase text, which spills unclipped over "RACE TYPE". Give the three visible labels their natural widths at phone width and let the row wrap rather than overlap. */
@media (max-width:620px){
	.compact-head{flex-wrap:wrap}
	.compact-head .ch-date{flex:0 0 auto}
	.compact-head .ch-name{flex:1 1 auto;white-space:nowrap}
	.compact-head .ch-type{flex:0 0 auto}
}

/* Item 203 (2026-11-25): phone content width — three stacked side paddings squeeze the content (WordPress global padding ~29px/side on .gfc-app + .wrap 14px + hero wrap 20px): at 390px the cards get ~303px and the hero ~291px. Zero the global padding at phone width and cut the wrap padding to 12px, so the total gutter is ~12px/side and cards run ~366px. Desktop untouched. */
@media (max-width:620px){
	.gfc-app.has-global-padding{padding-left:0 !important;padding-right:0 !important}
	.wrap{padding-left:12px;padding-right:12px}
	#calendar>.wrap.hero{padding-left:12px !important;padding-right:12px !important}
}

/* Item 176 (2026-11-25): homepage block spacing — every vertical gap between homepage blocks becomes the 18px event-card gap (Anthony's settled scope, homepage only, desktop + phone). Measured live 2026-11-25: hero-grid bottom to lens-toggle top was 51px (live pixel reading), grid to freshness content 45px, freshness to results card 63px, results to alerts card 45px, lens to series 16px, series to filterbar 16px, filterbar to grid 17px. Root cause for the oversize bands: wpautop stray empty <p> elements (after the hero grid, after the controls grid, and trailing each entry wrap) whose default margins stack with the 28px entry-wrap padding-tops. Hide the strays everywhere in #calendar, zero the freshness wrap's bottom padding, and set each boundary to sum to 18px. */
#calendar p:empty{display:none !important}
#calendar>.wrap.hero{padding-bottom:6px !important}
#calendar .lens-toggle{margin-bottom:18px !important}
#calendar .series-toggle{margin-bottom:18px !important}
#seriesNote{margin-top:18px !important;margin-bottom:18px !important}
#calendar .freshness-wrap{padding-top:18px !important;padding-bottom:0 !important}
#calendar .results-entry{padding-top:6px !important}
#calendar .alerts-entry{padding-top:6px !important}
#calendar>.wrap:last-child{margin-top:18px !important}

/* Item 183 (2026-11-25): Entry Alerts page rebuilt to the mockup design —
   white card, pale panels with small-caps labels, scope tiles, boxed
   alert-type rows, Deep Glacier submit; two columns on desktop, stacked
   on phones. Presentation only: form 4's fields and wording unchanged. */
body.alerts-only .alerts-card{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--ink-strong);border-radius:12px;box-shadow:var(--shadow);padding:26px 28px;margin-top:18px}
body.alerts-only .alerts-note{margin:14px 0 0;color:var(--muted);font-size:14px}
body.alerts-only .fluent_form_4 .ff-el-group{margin:0}
body.alerts-only .fluent_form_4 .ff-el-section-break{background:var(--accent-soft);border-radius:10px 10px 0 0;padding:14px 16px 4px;margin-top:18px}
body.alerts-only .fluent_form_4 .ff-el-section-break .ff-el-section-title{font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:0}
body.alerts-only .fluent_form_4 .ff-el-section-break hr,
body.alerts-only .fluent_form_4 .ff-section_break_desk{display:none}
body.alerts-only .fluent_form_4 .ff-el-section-break + .ff-el-group{background:var(--accent-soft);border-radius:0 0 10px 10px;padding:8px 16px 16px}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="email"]) .ff-el-input--label label{text-transform:uppercase;font-size:12.5px;letter-spacing:.08em;font-weight:700;color:var(--muted)}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="email"]) .ff-el-form-control{background:#fff;border:1px solid var(--line-strong);border-radius:8px;padding:12px 14px}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox"]) .ff-el-input--content{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox"]) .ff-el-form-check,
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-form-check{margin:0}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox"]) .ff-el-form-check-label{display:block;position:relative;text-align:center;border:1px solid var(--line-strong);border-radius:10px;padding:14px 10px;cursor:pointer;margin:0}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox"]) input[data-name="checkbox"]{position:absolute;opacity:0;pointer-events:none}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox"]) .ff-el-form-check-label:has(input:checked){background:var(--accent);border-color:var(--accent);color:#fff}
body.alerts-only .fluent_form_4 .ff-el-form-check-label strong{display:block;font-size:15px}
body.alerts-only .fluent_form_4 .ff-el-form-check-label small{display:block;font-size:12.5px;opacity:.78;margin-top:2px}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-input--content{display:grid;gap:10px}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-form-check-label{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;cursor:pointer;margin:0}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox_1"]) input[data-name="checkbox_1"]{width:18px;height:18px;margin-top:2px;flex:0 0 auto}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-form-check-label strong{color:var(--ink-strong)}
body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-form-check-label small{color:var(--muted);opacity:1}
body.alerts-only .fluent_form_4 .ff-btn-submit{background:var(--accent) !important;border-color:var(--accent) !important;color:#fff !important;width:100%;border-radius:8px;padding:14px;font-weight:700}
body.alerts-only .fluent_form_4 .ff-btn-submit:hover{background:var(--accent-dark) !important;border-color:var(--accent-dark) !important}
body.alerts-only .fluent_form_4 .ff_submit_btn_wrapper{margin-top:18px}
@media (min-width:900px){
  body.alerts-only .alerts-note{margin-left:calc(50% + 12px)}
  body.alerts-only .fluent_form_4{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}
  body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="email"]){grid-column:1;grid-row:1}
  body.alerts-only .fluent_form_4 .ff-el-group[data-name="section_break-4_1"]{grid-column:1;grid-row:2}
  body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox"]){grid-column:1;grid-row:3}
  body.alerts-only .fluent_form_4 .ff-el-group[data-name="section_break-4_2"]{grid-column:1;grid-row:4}
  body.alerts-only .fluent_form_4 .ff-el-group:has([data-name="picked_events"]){grid-column:1;grid-row:5}
  body.alerts-only .fluent_form_4 .ff-el-group[data-name="section_break-4_3"]{grid-column:2;grid-row:1;margin-top:0}
  body.alerts-only .fluent_form_4 .ff-el-group:has(input[data-name="checkbox_1"]){grid-column:2;grid-row:2 / span 3}
  body.alerts-only .fluent_form_4 .ff_submit_btn_wrapper{grid-column:2;grid-row:5}
}

/* Item 183 fix (2026-11-25): Fluent Forms wraps the fields in a fieldset
   inside the form, so the fieldset is the two-column grid container. */
@media (min-width:900px){
  body.alerts-only .fluent_form_4{display:block}
  body.alerts-only .fluent_form_4>fieldset{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;border:0;padding:0;margin:0;min-width:0}
}

/* Item 176 hero ad (2026-11-25): on desktop the hero ad's bottom aligns with
   the featured card's bottom, with the standard 18px gap below the buttons.
   The left column's forced min-height comes off, both columns stretch to the
   grid row, and the ad flex-fills the column from 18px below the buttons to
   the row's bottom, so its height is set by the alignment, not a fixed size.
   Phone width keeps the item 199 sizing. */
@media (min-width:621px){
  #calendar .hero-left{min-height:0!important}
  #calendar .worlds-carousel{align-self:stretch!important}
  #calendar .ad-slot--hero{flex:1 1 auto!important;height:auto!important;min-height:0!important;margin-top:18px!important}
}

/* Item 176 hero ad, second pass (2026-11-25): the gap above the ad is the
   buttons row's bottom margin plus the ad's top margin (flex margins do not
   collapse), and an empty wpautop paragraph sits under the ad in the left
   column taking space at desktop widths. Zero the buttons row's bottom
   margin so the ad's 18px top margin is the whole gap, and hide the stray
   paragraph at desktop widths too (the phone rule from item 199 widened). */
@media (min-width:621px){
  #calendar .hero-left .cta-row{margin-bottom:0!important}
  #calendar .hero-left>p:not(.lede):not(.tag){display:none!important}
}

/* Item 178 (2026-11-25): Submit page to the mockup — free-listing pill, ad slot
   spacing, How-it-works step cards, the form in one white card with pale panels,
   two-column fields, small-caps labels, course repeater as white cards, Deep
   Glacier submit. Scoped to the Submit page (body.submit-only). */
body.submit-only .free-listing{background:var(--sunset-solid,#E4572E);color:#fff;font-weight:700;font-size:14px;padding:5px 13px;border-radius:999px;white-space:nowrap}
body.submit-only .ad-slot--leaderboard{margin-bottom:18px}
body.submit-only .alerts-subhead{font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:26px;letter-spacing:.02em;color:var(--ink-strong);margin:26px 0 14px;text-transform:uppercase}
body.submit-only .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}
body.submit-only .step{border:1px solid var(--line);border-radius:10px;background:var(--card);box-shadow:var(--shadow);padding:16px 18px}
body.submit-only .step{display:grid;grid-template-columns:30px 1fr;gap:8px 12px;align-content:start}
body.submit-only .step .num{font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:15px;color:#fff;background:var(--sunset-solid,#E4572E);width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;grid-column:1;grid-row:1}
body.submit-only .step h2{grid-column:2;grid-row:1;align-self:center}
body.submit-only .step p{grid-column:1/-1;grid-row:2}
body.submit-only .step h2{font-size:22px;margin:0 0 6px;color:var(--ink-strong)}
body.submit-only .step p{margin:0;font-size:15.5px}
body.submit-only .submit-card{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:22px}
body.submit-only .fluent_form_3 fieldset{border:0;padding:0;margin:0;min-width:0}
body.submit-only .submit-panel{background:var(--bg-soft);border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 18px;display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
body.submit-only .submit-panel .ff-el-group{margin:0;min-width:0}
body.submit-only .submit-panel .ff-el-section-break{grid-column:1/-1}
body.submit-only .submit-panel .ff-el-section-break .ff-el-section-title{font-weight:700;font-size:13.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0}
body.submit-only .submit-panel .ff-el-section-break hr,body.submit-only .submit-panel .ff-section_break_desk{display:none}
body.submit-only .fluent_form_3 .ff-el-input--label label{font-weight:700;font-size:13.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
body.submit-only .fluent_form_3 .ff-el-input--label{margin-bottom:6px}
body.submit-only .fluent_form_3 .ff-el-form-control{background:#fff!important;border:1px solid var(--line);border-radius:6px}
body.submit-only .submit-panel .ff-el-group:has(input[data-name="input_radio"]),
body.submit-only .submit-panel .ff-el-group:has(> .ff-el-input--content textarea),
body.submit-only .submit-panel .ff-el-repeater,
body.submit-only .submit-panel .ff-custom_html,
body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_1"]),
body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_2"]),
body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox"]){grid-column:1/-1}
body.submit-only .submit-panel .ff-el-group:has(input[data-name="input_radio"]) .ff-el-input--content{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}
body.submit-only .ff-el-form-check-label .opt-name{font-weight:600;font-size:15.5px;color:var(--ink);display:inline}
body.submit-only .ff-el-form-check-label .opt-desc{display:block;font-size:13px;color:var(--muted);margin-top:3px;line-height:1.45}
body.submit-only .fluent_form_3 input[type="radio"],body.submit-only .fluent_form_3 input[type="checkbox"]{accent-color:var(--accent);width:18px;height:18px}
body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-input--content,
body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_2"]) .ff-el-input--content{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-form-check,
body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_2"]) .ff-el-form-check{background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 12px}
body.submit-only .ff_repeater_table{display:block;width:100%}
body.submit-only .ff_repeater_table thead{display:none}
body.submit-only .ff_repeater_table tbody{display:block}
body.submit-only .ff_repeater_table tr{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 14px}
body.submit-only .ff_repeater_table td{display:block;padding:0;border:0;min-width:0}
body.submit-only .ff_repeater_table td::before{content:attr(data-label);display:block;font-weight:700;font-size:13.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}
body.submit-only .ff_repeater_table td[data-label=""]::before,body.submit-only .ff_repeater_table td:not([data-label])::before{display:none}
body.submit-only .fluent_form_3 .ff_submit_btn_wrapper{margin-top:2px}
body.submit-only .fluent_form_3 .ff-btn-submit{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-weight:600;font-size:16px;padding:13px 30px;border-radius:8px}
body.submit-only .fluent_form_3 .ff-btn-submit:hover{background:var(--accent-dark)!important;border-color:var(--accent-dark)!important}
@media (max-width:899px){
  body.submit-only .steps{grid-template-columns:1fr}
  body.submit-only .submit-panel{grid-template-columns:1fr}
  body.submit-only .submit-panel .ff-el-group:has(input[data-name="input_radio"]) .ff-el-input--content{grid-template-columns:1fr}
  body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_1"]) .ff-el-input--content,
  body.submit-only .submit-panel .ff-el-group:has(input[data-name="checkbox_2"]) .ff-el-input--content{grid-template-columns:1fr}
  body.submit-only .ff_repeater_table tr{grid-template-columns:1fr}
  body.submit-only .submit-card{padding:14px}
}

/* Items 179 + 180 (2026-11-25): About and Contact pages to their mockups.
   About: the ad slot sits under the H1 and the text body takes the mockup's
   .legal-body hierarchy (smaller condensed section headings). Contact: the
   Fluent Forms form (ID 5) becomes the mockup's white card (max-width 640px)
   with small-caps labels and a full-width Deep Glacier submit. */
body.about-only .ad-slot--leaderboard{margin-bottom:18px}
body.about-only .legal-body{max-width:none}
body.about-only .legal-body h2{font-family:"Barlow Condensed",sans-serif;font-weight:700;font-size:23px;margin:22px 0 6px;color:var(--ink-strong);line-height:1.1}
body.about-only .legal-body h2:first-of-type{margin-top:6px}
body.about-only .legal-body p{margin:0 0 10px;font-size:15.5px}
body.contact-only .ad-slot--leaderboard{margin-bottom:18px}
body.contact-only div.fluentform_wrapper_5{max-width:640px;width:100%;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
body.contact-only form.fluent_form_5{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:22px;width:100%}
body.contact-only .fluent_form_5 fieldset{border:0;padding:0;margin:0;min-width:0}
body.contact-only .fluent_form_5 .ff-el-group{margin-bottom:14px}
body.contact-only .fluent_form_5 .ff-el-input--label label{font-weight:700;font-size:13.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
body.contact-only .fluent_form_5 .ff-el-input--label{margin-bottom:6px}
body.contact-only .fluent_form_5 .ff-el-form-control{width:100%;font:inherit;background:#fff!important;border:1px solid var(--line-strong);border-radius:8px;padding:11px 14px;min-height:46px}
body.contact-only .fluent_form_5 textarea.ff-el-form-control{min-height:130px}
body.contact-only .fluent_form_5 .ff_submit_btn_wrapper{margin-top:2px}
body.contact-only .fluent_form_5 .ff-btn-submit{width:100%;background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-weight:600;font-size:16px;padding:13px 30px;border-radius:8px}
body.contact-only .fluent_form_5 .ff-btn-submit:hover{background:var(--accent-dark)!important;border-color:var(--accent-dark)!important}
body.contact-only .contact-cols{display:flex;gap:22px;align-items:stretch}
body.contact-only .contact-main{flex:0 1 640px;min-width:0}
body.contact-only .contact-side{flex:1 1 auto;min-width:0;display:grid}
body.contact-only .contact-side .ad-slot{margin:0;height:100%}
@media (max-width:899px){
  body.contact-only .contact-cols{flex-direction:column}
  body.contact-only .contact-side .ad-slot{min-height:250px}
}
@media (max-width:620px){
  body.contact-only .fluent_form_5{padding:16px}
}
