/* Homepage v3 + month pages (Sep 2026 critique). Loaded only by
   templates/landing-v3.html and templates/calendar-month.html. */

/* ---- Sections ------------------------------------------------------- */
.race-search-body .v3-section {
    background: var(--rs-bg-card);
    border-top: 1px solid var(--rs-border);
    padding: 48px 32px 56px;
}
.race-search-body .v3-browse,
.race-search-body .v3-about { background: var(--rs-bg-elevated); }
.race-search-body .v3-inner { max-width: 1100px; margin: 0 auto; }
.race-search-body .v3-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.race-search-body .v3-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--rs-text);
    margin: 0;
}
.race-search-body .v3-lede {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--rs-text-secondary);
    margin: 8px 0 0;
    max-width: 52ch;
}
.race-search-body .v3-all,
.race-search-body .v3-more {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--rs-text);
    text-decoration: none;
    border-bottom: 2px solid var(--rs-accent);
    padding-bottom: 1px;
    white-space: nowrap;
}
.race-search-body .v3-more { display: inline-block; margin-top: 12px; }

/* ---- Plan ahead: month blocks ----------------------------------------- */
.race-search-body .v3-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
}
.race-search-body .v3-month h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rs-text);
}
.race-search-body .v3-month h3 a { color: var(--rs-text); text-decoration: none; }
.race-search-body .v3-month h3 a:hover { text-decoration: underline; }
.race-search-body .v3-month h3 span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rs-text-muted);
}

/* ---- Race rows (shared with month pages) ------------------------------ */
.race-search-body .cal-list { list-style: none; margin: 0; padding: 0; }
.race-search-body .cal-list--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}
.race-search-body .cal-row { border-bottom: 1px solid var(--rs-border); }
.race-search-body .cal-row-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 8px 10px 0;
    color: var(--rs-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 120ms ease;
}
.race-search-body .cal-row-link:hover { background: var(--rs-bg-elevated); }
.race-search-body .cal-row-link:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; }
.race-search-body .cal-tile {
    flex: 0 0 48px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    background: var(--rs-bg-card);
    font-family: var(--font-body);
    line-height: 1;
}
.race-search-body .cal-tile--partner { border-color: var(--rs-accent); border-width: 2px; }
.race-search-body .cal-tile-mon {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rs-text-muted);
}
.race-search-body .cal-tile-day {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}
.race-search-body .cal-row-body { flex: 1; min-width: 0; }
.race-search-body .cal-row-name {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
.race-search-body .cal-row-meta {
    display: block;
    margin-top: 3px;
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--rs-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.race-search-body .cal-row-go { color: var(--rs-text-muted); font-size: 1.4rem; }
.race-search-body .cal-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 1px;
    background: var(--rs-bg-elevated);
    color: var(--rs-text-secondary);
}
.race-search-body .cal-tag--trail { background: #e5f1e3; color: #2f5d27; }
.race-search-body .cal-tag--ultra { background: #f7e3dc; color: #8a3316; }
.race-search-body .cal-tag--tri,
.race-search-body .cal-tag--aquathon,
.race-search-body .cal-tag--aquabike,
.race-search-body .cal-tag--duathlon,
.race-search-body .cal-tag--multisport { background: #e1edf7; color: #1f4f7a; }

/* ---- Browse ----------------------------------------------------------- */
.race-search-body .v3-browse h2 { margin-bottom: 24px; }
.race-search-body .v3-browse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.race-search-body .v3-browse h3 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rs-text-muted);
    margin: 0 0 6px;
}
.race-search-body .v3-browse ul { list-style: none; margin: 0; padding: 0; }
.race-search-body .v3-browse li { border-bottom: 1px solid var(--rs-border); }
.race-search-body .v3-browse li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    color: var(--rs-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}
.race-search-body .v3-browse li a:hover span:first-child { text-decoration: underline; }
.race-search-body .v3-n { color: var(--rs-text-muted); font-variant-numeric: tabular-nums; }

/* ---- Articles, sign-up, about ----------------------------------------- */
.race-search-body .v3-articles .landing-guide-cards { margin-top: 24px; margin-bottom: 0; }
/* ---- parkrun band (links to /parkrun) ---- */
.race-search-body .v3-parkrun {
    background: var(--rs-accent);
    color: var(--rs-accent-text);
    padding: 40px 32px;
}
.race-search-body .v3-parkrun-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
}
.race-search-body .v3-parkrun h2 {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800;
    line-height: 1.05; letter-spacing: -0.025em; margin: 0; color: var(--rs-accent-text);
}
.race-search-body .v3-parkrun-copy p { margin: 8px 0 0; font-size: 1rem; color: rgba(22, 22, 22, 0.8); max-width: 44ch; }
.race-search-body .v3-parkrun-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; flex: 0 1 480px; }
.race-search-body .v3-parkrun-form input {
    flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px; box-sizing: border-box;
    font: inherit; font-size: 1.02rem; color: var(--rs-text);
    background: #fff; border: 2px solid #161616; border-radius: 12px;
}
.race-search-body .v3-parkrun-form input::placeholder { color: #6b6b6b; }
.race-search-body .v3-parkrun-form input:focus { outline: 3px solid #161616; outline-offset: 2px; }
.race-search-body .v3-parkrun-form button {
    height: 52px; padding: 0 24px; border: 0; border-radius: 12px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 1rem; background: #161616; color: var(--rs-accent);
}
.race-search-body .v3-parkrun-form button:hover { background: #333; }
.race-search-body .v3-parkrun-form button:focus-visible { outline: 3px solid #161616; outline-offset: 2px; }
.race-search-body a.v3-parkrun-near {
    flex: 1 1 100%; display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700; font-size: 0.95rem; color: var(--rs-accent-text);
    text-decoration: underline; text-decoration-color: rgba(22, 22, 22, 0.4); text-underline-offset: 3px;
}
.race-search-body a.v3-parkrun-near:hover { text-decoration-color: #161616; }

.race-search-body .v3-signup {
    background: var(--rs-text);
    color: #fff;
    padding: 24px 32px;
}
.race-search-body .v3-signup-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.race-search-body .v3-signup p { margin: 0; font-family: var(--font-body); font-size: 1rem; color: rgba(255,255,255,0.85); }
.race-search-body .v3-signup strong { color: #fff; }
.race-search-body .v3-signup-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--rs-accent);
    color: #111;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
}
.race-search-body .v3-about p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--rs-text-secondary);
    max-width: 70ch;
    margin: 16px 0 0;
}
.race-search-body .v3-faq { margin-top: 32px; max-width: 80ch; }
.race-search-body .v3-faq details { border-top: 1px solid var(--rs-border); }
.race-search-body .v3-faq details:last-child { border-bottom: 1px solid var(--rs-border); }
.race-search-body .v3-faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rs-text);
}
.race-search-body .v3-faq summary::-webkit-details-marker { display: none; }
.race-search-body .v3-faq summary::after { content: '+'; color: var(--rs-text-muted); font-weight: 400; }
.race-search-body .v3-faq details[open] summary::after { content: '\2212'; }
.race-search-body .v3-faq details p { margin: 0 0 16px; }

/* ---- Hero proof line (hero copy B) ------------------------------------ */
.race-search-body.home-v3 .hero-proof {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    margin: -4px 0 16px;
}

/* ---- Month page -------------------------------------------------------- */
.race-search-body .month-hero { padding: 40px 32px 8px; background: var(--rs-bg-card); }
.race-search-body .month-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    color: var(--rs-text);
}
.race-search-body .month-nav { display: flex; gap: 16px; font-family: var(--font-body); font-size: 0.92rem; margin: 12px 0 0; }
.race-search-body .month-nav a { color: var(--rs-text); font-weight: 600; }
.race-search-body .month-states { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.race-search-body .month-states a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--rs-border);
    border-radius: 999px;
    color: var(--rs-text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
}
.race-search-body .month-states a[aria-current="page"] { background: var(--rs-text); border-color: var(--rs-text); color: #fff; }
.race-search-body .month-list-section { padding-top: 8px; }

/* ---- Mobile ----------------------------------------------------------- */
@media (max-width: 760px) {
    .race-search-body .v3-section { padding: 36px 16px 40px; }
    .race-search-body .v3-head { flex-direction: column; align-items: flex-start; }
    .race-search-body .v3-months,
    .race-search-body .cal-list--2col,
    .race-search-body .v3-browse-grid { grid-template-columns: 1fr; gap: 28px; }
    .race-search-body .cal-list--2col { gap: 0; }
    .race-search-body .v3-signup { padding: 20px 16px; }
    .race-search-body .v3-parkrun { padding: 32px 16px; }
    .race-search-body .v3-signup-inner { flex-direction: column; align-items: flex-start; }
    .race-search-body .month-hero { padding: 28px 16px 4px; }
    /* The hero is a fixed height with bottom-pinned content; the taller pills
       and the proof line pushed content out of it. Let it grow on phones. */
    .race-search-body.home-v3 .search-hero.landing-hero { height: auto; min-height: 0; max-height: none; }
    .race-search-body.home-v3 .landing-hero .hero-content { position: relative; transform: none; padding: 44px 16px 28px; }
    .race-search-body.home-v3 .landing-hero .hero-state-pills a { min-height: 44px; min-width: 48px; padding: 0 12px; justify-content: center; }
    .race-search-body .cal-row-meta { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .race-search-body .cal-row-link { transition: none; }
}

/* ---- Ad slots (homepage v3, month/weekend pages) --------------------- */
.race-search-body .v3-months .v3-ad--plan { order: 99; align-self: start; min-height: 250px; margin: 0; }
.race-search-body .v3-months .v3-ad--row { grid-column: 1 / -1; min-height: 120px; }
.race-search-body .cal-tail-ad,
.race-search-body .v3-ad-tail { max-width: 1100px; margin: 0 auto; padding: 24px 32px; }
.race-search-body .cal-row-ad { list-style: none; border-bottom: 1px solid var(--rs-border); padding: 12px 0; }

/* ---- Month/weekend page layout ---------------------------------------- */
.race-search-body.cal-page .cal-hero .hero-state-links a[aria-current="page"] { background: var(--rs-accent); color: #111; border-color: var(--rs-accent); }
.race-search-body .cal-strip {
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    max-width: 1100px; margin: 0 auto; padding: 20px 32px 4px; scrollbar-width: none;
}
.race-search-body .cal-strip::-webkit-scrollbar { display: none; }
.race-search-body .cal-strip a {
    flex: none; display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 10px 16px;
    border: 1px solid var(--rs-border); border-radius: 999px; background: var(--rs-bg-card);
    color: var(--rs-text); text-decoration: none; font-family: var(--font-body); font-size: 0.92rem;
}
.race-search-body .cal-strip a span { color: var(--rs-text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.race-search-body .cal-strip a[aria-current="page"] { background: var(--rs-text); border-color: var(--rs-text); color: #fff; }
.race-search-body .cal-strip a[aria-current="page"] span { color: rgba(255,255,255,0.7); }
.race-search-body .cal-list-section { border-top: 0; padding-top: 8px; }
.race-search-body .cal-start { color: var(--rs-text); font-variant-numeric: tabular-nums; }
.race-search-body .month-nav { margin-top: 32px; }
.race-search-body .cal-about { border-top: 1px solid var(--rs-border); }
.race-search-body .cal-about a { color: var(--rs-text); font-weight: 600; }

@media (max-width: 760px) {
    .race-search-body .v3-months .v3-ad--plan { order: 3; min-height: 280px; }
    .race-search-body .cal-strip { padding: 16px 16px 4px; }
    .race-search-body .cal-tail-ad,
    .race-search-body .v3-ad-tail { padding: 16px; }
}

/* ---- Month/weekend pages: standouts strip + compact list (26 Sep 2026) ----
   Spacing on a 4px scale: 4 / 8 / 12 / 16 / 24 / 32 / 48. Rows are dense
   (~72px desktop) because the task is scanning 100+ races by date; images
   are recognition cues in the list and only get size in the 4 standouts. */
.race-search-body .cal-standouts { padding: 32px 32px 8px; background: var(--rs-bg-card); }
.race-search-body .cal-standouts h2 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
    letter-spacing: -0.02em; margin: 0 0 16px; color: var(--rs-text);
}
.race-search-body .cal-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.race-search-body .cal-cards--feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.race-search-body .cal-card-link {
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid var(--rs-border); border-radius: 12px; overflow: hidden;
    background: var(--rs-bg-card); color: var(--rs-text); text-decoration: none;
    transition: box-shadow 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.race-search-body .cal-card-link:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.race-search-body .cal-card-link:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; }
.race-search-body .cal-card-img { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--rs-bg-elevated); overflow: hidden; }
.race-search-body .cal-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.race-search-body .cal-card-img img.fit-contain { object-fit: contain; padding: 8px; }
.race-search-body .cal-card-flag {
    position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 4px;
    background: var(--rs-accent); color: #111; font: 700 0.64rem/1.6 var(--font-body);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.race-search-body .cal-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.race-search-body .cal-card-when { font: 600 0.74rem/1.3 var(--font-body); color: var(--rs-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.race-search-body .cal-card-when strong { color: var(--rs-text); }
.race-search-body .cal-card-name { font: 700 0.95rem/1.3 var(--font-body); }
.race-search-body .cal-card-body .cal-row-meta { white-space: normal; font-size: 0.8rem; }
.race-search-body .cal-card-dists { font: 500 0.8rem/1.3 var(--font-body); color: var(--rs-text-secondary); }

/* Compact list rows */
.race-search-body .cal-list-section { padding-top: 16px; }
/* Day headings and rows are siblings in .cal-days (.journey-content) since
   20 Oct 2026, so Journey can place ads inside a long day. */
.race-search-body .month-day-h { scroll-margin-top: calc(var(--header-h, 70px) + 8px); }
/* Sticky day heading sits under the fixed site header (--header-h is
   measured by the page script; 70px desktop fallback); the next day's heading
   slides over it. */
/* Day headings match the hub month headings (race-search.css .month-header): the
   display face at 1.35rem, sentence case. Specificity beats `.v3-section h2`,
   which had been turning them into 48px uppercase page titles (20 Oct 2026). */
.race-search-body .v3-section h2.month-day-h {
    display: flex; justify-content: space-between; align-items: baseline;
    position: sticky; top: var(--header-h, 70px); z-index: 2; margin: 28px 0 0;
    padding: 12px 0 10px; background: var(--rs-bg); border-bottom: 2px solid var(--rs-border);
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.2;
    letter-spacing: -0.01em; text-transform: none; color: var(--rs-text);
}
.race-search-body .v3-section h2.month-day-h:first-child { margin-top: 0; }
.race-search-body .cal-day + .cal-day { margin-top: 24px; }
.race-search-body .month-day-h span { font: 500 0.8rem/1.3 var(--font-body); letter-spacing: 0; color: var(--rs-text-muted); }
.race-search-body .cal-items { list-style: none; margin: 0; padding: 0; }
.race-search-body .cal-item { border-bottom: 1px solid var(--rs-border); }
.race-search-body .cal-item-link {
    display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 14rem) 16px;
    align-items: center; gap: 18px; min-height: 88px; padding: 12px 4px;
    color: var(--rs-text); text-decoration: none; border-radius: 8px;
}
.race-search-body .cal-item-link:has(.cal-item-time) { grid-template-columns: 3.5rem 128px minmax(0, 1fr) minmax(0, 14rem) 16px; }
.race-search-body .cal-item-link:hover { background: var(--rs-bg-elevated); }
.race-search-body .cal-item-link:hover .cal-item-name { text-decoration: underline; text-underline-offset: 3px; }
.race-search-body .cal-item-link:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; }
.race-search-body .cal-item-time { font: 800 1rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.race-search-body .cal-item-img {
    display: block; width: 128px; height: 64px; border-radius: 6px; overflow: hidden;
    background: var(--rs-bg-elevated);
}
.race-search-body .cal-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.race-search-body .cal-item-img img.fit-contain { object-fit: contain; padding: 2px; }
.race-search-body .cal-item-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.race-search-body .cal-item-name { font: 600 0.98rem/1.3 var(--font-body); }
.race-search-body .cal-item-partner {
    display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; vertical-align: 2px;
    background: #fff4c2; color: #6b5200; font: 700 0.62rem/1.6 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
}
.race-search-body .cal-item-meta { font: 400 0.84rem/1.3 var(--font-body); color: var(--rs-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-search-body .cal-item-dists { font: 500 0.84rem/1.3 var(--font-body); color: var(--rs-text-secondary); text-align: right; }
.race-search-body .cal-row-ad { list-style: none; border-bottom: 1px solid var(--rs-border); padding: 12px 0; min-height: 100px; }

@media (max-width: 1000px) {
    .race-search-body .cal-cards--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .race-search-body .cal-standouts { padding: 24px 0 4px; }
    .race-search-body .cal-standouts h2 { padding: 0 16px; font-size: 1.3rem; }
    /* Phones: the 4 standouts scroll sideways, ~1.6 cards visible. */
    .race-search-body .cal-cards--feature {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px;
        gap: 12px; scrollbar-width: none;
    }
    .race-search-body .cal-cards--feature::-webkit-scrollbar { display: none; }
    .race-search-body .cal-cards--feature .cal-card { flex: 0 0 62%; scroll-snap-align: start; }
    .race-search-body .cal-item-link { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; min-height: 76px; padding: 12px 0; }
    .race-search-body .cal-item-link:has(.cal-item-time) { grid-template-columns: 3rem 104px minmax(0, 1fr); }
    .race-search-body .cal-item-img { width: 104px; height: 52px; }
    .race-search-body .cal-item-dists { grid-column: 2 / -1; text-align: left; margin-top: -8px; }
    .race-search-body .cal-item-link:has(.cal-item-time) .cal-item-dists { grid-column: 3 / -1; }
    .race-search-body .cal-item .cal-row-go { display: none; }
    .race-search-body .cal-item-meta { white-space: normal; }
    .race-search-body .cal-item-dists:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .race-search-body .cal-card-link { transition: none; }
}

/* ---- Review fixes (26 Sep 2026) ---------------------------------------- */
/* Tap targets >= 44px on phones */
@media (max-width: 760px) {
    .race-search-body.cal-page .cal-hero .hero-state-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; }
    .race-search-body .month-nav a,
    .race-search-body .v3-more,
    .race-search-body .v3-all { min-height: 44px; display: inline-flex; align-items: center; }
    /* Homepage: H1 outranks section H2s; hero ends earlier so a month peeks in. */
    .race-search-body.home-v3 .landing-hero .hero-title { font-size: 2.15rem; }
    .race-search-body.home-v3 .landing-hero .hero-content { padding-top: 28px; padding-bottom: 20px; }
    .race-search-body.home-v3 .hero-proof { display: none; }
    .race-search-body .v3-section h2:not(.month-day-h) { font-size: 1.75rem; }
}
.race-search-body.home-v3 .landing-hero .hero-state-label { color: rgba(255, 255, 255, 0.75); }
/* Background rotation (style.css body::before) is invisible at 3% but composites every frame on iOS. */
.race-search-body.home-v3::before { animation: none; }
.race-search-body .cal-item-time.tbc { font-weight: 600; font-size: 0.8rem; color: var(--rs-text-muted); }
.race-search-body .cal-links { margin-top: 24px; }
.race-search-body .cal-links h3 { font: 700 0.72rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rs-text-muted); margin: 0 0 6px; }
.race-search-body .cal-links p { margin: 0; line-height: 2; }
.race-search-body .cal-about h2 { font-size: 1.5rem; margin-bottom: 4px; }
.race-search-body .cal-card-body .cal-card-flag { position: static; align-self: flex-start; }
/* Jump-to-day control + floating return button on long lists (phones) */
.race-search-body .cal-jump { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-body); }
.race-search-body .cal-jump label { font-size: 0.85rem; font-weight: 600; color: var(--rs-text-secondary); }
.race-search-body .cal-jump select {
    min-height: 44px; padding: 0 12px; border: 1px solid var(--rs-border); border-radius: 8px;
    background: var(--rs-bg-card); color: var(--rs-text); font: 500 0.95rem var(--font-body); max-width: 100%;
}
.race-search-body .cal-jump-fab { display: none; }
@media (max-width: 760px) {
    .race-search-body .cal-jump { flex-direction: column; align-items: stretch; gap: 6px; }
    .race-search-body .cal-jump-fab {
        display: inline-flex; align-items: center; position: fixed; right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; min-height: 44px; padding: 0 16px;
        border-radius: 999px; background: var(--rs-text); color: #fff; text-decoration: none;
        font: 600 0.85rem var(--font-body); box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
}

/* "Training for one of these?" under Plan your next race (admin preview) */

/* Month/weekend list beside Journey's sidebar from 1100px (20 Oct 2026):
   list ~740px, sidebar 320px (templates/partials/journey_rail.html). */
@media (min-width: 1100px) {
    .race-search-body .cal-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 40px;
    }
}
.race-search-body .cal-list-col { min-width: 0; }

/* What's On story on the month pages (whats_on_content.py, 24 Oct 2026): the monthly
   email's "Read the rest" lands here, above the month's races. Desktop: the story at a
   reading width with its races beside it; below 1000px they stack. */
.cal-story { padding: 28px 0 8px; }
.cal-story-inner { display: grid; grid-template-columns: minmax(0, 68ch) minmax(260px, 340px); gap: 32px 56px; align-items: start; justify-content: space-between; }
.cal-story-kicker { margin: 0 0 6px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rs-text-secondary); }
.cal-story h2 { margin: 0 0 16px; font-family: var(--font-display, Georgia, serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; color: var(--rs-text); }
.cal-story h2::after { display: none; }
.cal-story-img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; margin: 0 0 18px; border-radius: 12px; background: var(--rs-bg-elevated, #f3efe6); }
.cal-story-text p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.7; color: var(--rs-text); }
.cal-story-text .cal-story-kicker { font-size: 0.8rem; line-height: 1.4; color: var(--rs-text-secondary); }
.cal-story-sign { font-size: 0.95rem !important; color: var(--rs-text-secondary) !important; }
.cal-story-races { display: grid; gap: 16px; position: sticky; top: 90px; }
.cal-story-race { display: grid; gap: 4px; color: var(--rs-text); text-decoration: none; }
.cal-story-race-img { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 10px; background: var(--rs-bg-elevated, #f3efe6); }
.cal-story-race-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cal-story-race-img img.is-logo { object-fit: contain; }
.cal-story-race-when { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rs-text-secondary); }
.cal-story-race-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; text-decoration: underline; text-decoration-color: var(--rs-accent); text-underline-offset: 3px; }
.cal-story-race:hover .cal-story-race-name { text-decoration-thickness: 2px; }
@media (max-width: 999px) {
    .cal-story-inner { grid-template-columns: minmax(0, 1fr); }
    .cal-story-races { position: static; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--rs-border); padding-top: 18px; }
    .cal-story-races > .cal-story-kicker { grid-column: 1 / -1; margin: 0; }
}
