/* lille.run — running-oriented skin on top of Quark 2 (loaded last). */

:root {
  --lr-red: #c8372d;
  --lr-red-strong: #a92c23;
  --lr-red-soft: #fbe9e6;
  --lr-navy: #13203a;
  --lr-navy-2: #1d2f52;
  --lr-sand: #faf6f1;
  --lr-green: #1f7a4d;
  --lr-green-soft: #e3f3ea;
  --lr-amber: #8a5a00;
  --lr-amber-soft: #fdf1d6;
  --lr-card: #ffffff;
  --lr-line: #ebe3da;
  --lr-ink: #1b2233;
  --lr-muted: #5d6678;
  --q2-accent: var(--lr-red);
  --q2-link: var(--lr-red-strong);
  --q2-focus-ring: color-mix(in oklab, var(--lr-red) 45%, transparent);
}
:root[data-theme='light'] { --q2-bg: var(--lr-sand); }
:root[data-theme='dark'] {
  --lr-red: #ef5a4c;
  --lr-red-strong: #ff7b6e;
  --lr-red-soft: #3a1d1d;
  --lr-sand: #0f1526;
  --lr-green: #5fd39a;
  --lr-green-soft: #12301f;
  --lr-amber: #f3c35b;
  --lr-amber-soft: #352a10;
  --lr-card: #161e33;
  --lr-line: #26314d;
  --lr-ink: #e9edf5;
  --lr-muted: #9aa6bd;
  --q2-bg: var(--lr-sand);
  --q2-accent: var(--lr-red);
  --q2-link: var(--lr-red-strong);
}

/* ---------- header ---------- */
.lr-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.lr-brand img { width: 34px; height: auto; }
.lr-wordmark { font-family: var(--q2-font-heading, inherit); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--lr-ink); }
.lr-wordmark span { color: var(--lr-red); }
#header .navbar-section a.active, #header .dropmenu > ul > li > a.active { background: var(--lr-red) !important; color: #fff !important; }

/* ---------- hero ---------- */
.lr-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(200, 55, 45, .55), transparent 60%),
    radial-gradient(700px 300px at -10% 110%, rgba(200, 55, 45, .35), transparent 60%),
    linear-gradient(160deg, var(--lr-navy) 0%, var(--lr-navy-2) 100%);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
:root[data-theme='dark'] .lr-hero { background:
    radial-gradient(1200px 400px at 85% -10%, rgba(239, 90, 76, .35), transparent 60%),
    linear-gradient(160deg, #0a1020 0%, #131c33 100%); }
.lr-hero-track { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; pointer-events: none; }
.lr-hero-track path { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; stroke-dasharray: 14 10; }
.lr-hero-track path:nth-child(2) { stroke: rgba(200, 55, 45, .75); stroke-width: 3; stroke-dasharray: none; }
.lr-hero-inner { position: relative; max-width: 980px; }
.lr-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #ffb3aa; margin: 0 0 .9rem; }
.lr-hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 1rem; max-width: 14ch; }
.lr-hero h1 span { color: #ff6b5e; font-style: italic; }
.lr-hero .lr-lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 58ch; margin: 0 0 1.6rem; }
.lr-hero-sm { padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); }
.lr-hero-sm h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: none; }
.lr-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.lr-btn { display: inline-flex; align-items: center; padding: .85rem 1.35rem; border-radius: 999px; font-weight: 700; text-decoration: none !important; transition: transform .15s ease, background .15s ease; }
.lr-btn:hover { transform: translateY(-1px); }
.lr-btn-primary { background: var(--lr-red); color: #fff !important; box-shadow: 0 8px 24px rgba(200, 55, 45, .35); }
.lr-btn-primary:hover { background: #d9463b; }
.lr-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff !important; }
.lr-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.lr-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding: 0; margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.lr-stats li { margin: 0; }
.lr-stats strong { display: block; font-size: 1.9rem; line-height: 1; color: #fff; font-family: var(--q2-font-heading, inherit); }

/* ---------- sections ---------- */
#body-wrapper .container { max-width: 1180px; }
.lr-section { margin: 0 0 3rem; }
.lr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.lr-section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.lr-section-head h2::before { display: none !important; }
.lr-more { font-weight: 700; color: var(--lr-red-strong); text-decoration: none; white-space: nowrap; }

/* ---------- race cards ---------- */
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.race-card { background: var(--lr-card); border: 1px solid var(--lr-line); border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.race-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(19, 32, 58, .10); border-color: color-mix(in oklab, var(--lr-red) 40%, var(--lr-line)); }
.race-card[hidden] { display: none; }
.race-link { display: flex; gap: 1rem; padding: 1rem; color: inherit !important; text-decoration: none !important; height: 100%; }
.race-badge { flex: 0 0 64px; height: 72px; border-radius: 12px; background: var(--lr-navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
:root[data-theme='dark'] .race-badge { background: #24345a; }
.race-badge.is-confirmed { background: var(--lr-red); }
.race-badge .d { font-size: 1.45rem; font-weight: 800; font-family: var(--q2-font-heading, inherit); letter-spacing: -.02em; }
.race-badge .d-tbc { opacity: .7; }
.race-badge .m { font-size: .72rem; font-weight: 700; letter-spacing: .08em; margin-top: .25rem; }
.race-badge .y { font-size: .62rem; opacity: .7; margin-top: .15rem; }
.race-body { min-width: 0; }
.race-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: .18rem .5rem; border-radius: 999px; background: var(--lr-red-soft); color: var(--lr-red-strong); }
.tag-trails, .tag-trails-urbains { background: var(--lr-green-soft); color: var(--lr-green); }
.tag-semi-marathons, .tag-marathons { background: #e6ecfb; color: #2a4aa8; }
:root[data-theme='dark'] .tag-semi-marathons, :root[data-theme='dark'] .tag-marathons { background: #1c2a4f; color: #9db4ff; }
.tag-courses-solidaires { background: #f6e6f4; color: #8a2f7c; }
:root[data-theme='dark'] .tag-courses-solidaires { background: #34182f; color: #f0a5e3; }
.tag-courses-de-nuit { background: #1d2340; color: #c9d3ff; }
.tag-tbc { background: var(--lr-amber-soft); color: var(--lr-amber); }
.race-name { font-size: 1.08rem; line-height: 1.25; margin: 0 0 .3rem; color: var(--lr-ink); }
.race-name::before { display: none !important; }
.race-meta { font-size: .86rem; color: var(--lr-muted); margin: 0 0 .5rem; }
.race-meta .where { font-weight: 700; color: var(--lr-ink); }
.race-dist { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.race-dist li { font-size: .74rem; padding: .12rem .45rem; border: 1px solid var(--lr-line); border-radius: 6px; margin: 0; color: var(--lr-muted); }

/* ---------- filters (events page) ---------- */
.lr-filters { background: var(--lr-card); border: 1px solid var(--lr-line); border-radius: 16px; padding: 1rem; margin: 0 0 1rem; display: grid; gap: .8rem; }
.lr-search input { width: 100%; margin: 0; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--lr-line); background: transparent; color: var(--lr-ink); cursor: pointer; width: auto; margin: 0; line-height: 1.2; }
.chip:hover { border-color: var(--lr-red); }
.chip.is-on { background: var(--lr-navy); border-color: var(--lr-navy); color: #fff; }
:root[data-theme='dark'] .chip.is-on { background: var(--lr-red); border-color: var(--lr-red); }
.lr-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; margin: 0; }
.lr-check input { margin: 0; }
.lr-count { font-weight: 700; color: var(--lr-muted); margin: 0 0 .8rem; }
.lr-empty { padding: 2rem; text-align: center; color: var(--lr-muted); }
.lr-after-grid { margin-top: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- start tiles (home) ---------- */
.lr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.lr-tile { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem; border-radius: 16px; background: var(--lr-card); border: 1px solid var(--lr-line); text-decoration: none !important; color: var(--lr-ink) !important; transition: transform .15s ease, box-shadow .15s ease; }
.lr-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(19, 32, 58, .10); }
.lr-tile .ico { font-size: 1.6rem; }
.lr-tile strong { font-size: 1.05rem; }
.lr-tile span:last-child { color: var(--lr-muted); font-size: .9rem; }
.lr-tile.t-map { border-top: 4px solid var(--lr-green); }
.lr-tile.t-plan { border-top: 4px solid var(--lr-red); }
.lr-tile.t-semi { border-top: 4px solid #2a4aa8; }
.lr-tile.t-pps { border-top: 4px solid #b7791f; }

/* ---------- category pages: race sections as cards ---------- */
.race-sections { display: grid; gap: 1rem; margin: 1.5rem 0; }
.race-section { background: var(--lr-card); border: 1px solid var(--lr-line); border-left: 5px solid var(--lr-red); border-radius: 14px; padding: 1.1rem 1.3rem .4rem; scroll-margin-top: 90px; }
.race-section:target { box-shadow: 0 0 0 3px color-mix(in oklab, var(--lr-red) 35%, transparent); }
.race-section h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.race-section h2::before { display: none !important; }
.race-section p.race-date { display: inline-block; background: var(--lr-red-soft); color: var(--lr-ink); padding: .35rem .7rem; border-radius: 10px; font-size: .95rem; }
.race-section ul { margin-bottom: .8rem; }
.tbc { display: inline-block; background: var(--lr-amber-soft); color: var(--lr-amber); font-weight: 700; padding: 0 .4rem; border-radius: 6px; font-size: .92em; }

/* ---------- content cards (all pages) ---------- */
.content-item { border-radius: 18px; }
.lr-home-content, .lr-after-grid { background: var(--lr-card); border: 1px solid var(--lr-line); }
.content-item a:not(.lr-btn):not(.race-link) { text-decoration-color: color-mix(in oklab, var(--lr-red) 45%, transparent); text-underline-offset: .18em; }
table { border-radius: 12px; overflow: hidden; }
thead th { background: var(--lr-navy); color: #fff; }

/* ---------- footer ---------- */
#footer { background: var(--lr-navy); color: rgba(255, 255, 255, .8); }
#footer a { color: #fff; }

@media (max-width: 600px) {
  .race-link { padding: .85rem; gap: .8rem; }
  .race-badge { flex-basis: 56px; height: 64px; }
  .lr-stats strong { font-size: 1.5rem; }
  .lr-section-head { flex-direction: column; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) { .race-card, .lr-tile, .lr-btn { transition: none; } }

/* ---------- fixes after first render ---------- */
.lr-hero h1 { hyphens: none; -webkit-hyphens: none; max-width: 17ch; }
.lr-hero .lr-lead { hyphens: none; }
.lr-stats { display: grid; grid-template-columns: repeat(4, max-content); gap: .4rem 2.4rem; }
.lr-stats li { color: rgba(255, 255, 255, .82) !important; list-style: none; padding: 0; }
.lr-stats li::before, .lr-stats li::marker, .race-dist li::before, .race-dist li::marker { content: none !important; display: none !important; }
.race-dist { list-style: none !important; padding-left: 0 !important; }
.race-dist li { list-style: none !important; padding-left: .45rem !important; }
#footer, #footer p, #footer .text-small { color: rgba(255, 255, 255, .78) !important; }
#footer a { color: #fff !important; font-weight: 600; }
.lr-filters .chips { display: flex !important; flex-wrap: wrap; gap: .4rem; box-shadow: none; border: 0; }
.lr-filters .chip { flex: 0 0 auto; border-radius: 999px !important; }
.lr-filters .lr-search input { padding-left: 2.6rem !important; }
@media (max-width: 600px) {
  .lr-stats { grid-template-columns: repeat(2, max-content); gap: .8rem 2rem; }
  .lr-cta .lr-btn { flex: 1 1 100%; justify-content: center; }
}
:root[data-theme='dark'] .race-badge.is-confirmed { background: var(--lr-red); }
.lr-search input::placeholder { color: var(--lr-muted); opacity: 1; }

/* ---------- small touches: countdown, J-N, month separators, sticky CTA ---------- */
.lr-next { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff !important; font-size: .9rem; text-decoration: none !important; }
.lr-next:hover { background: rgba(255, 255, 255, .16); }
.lr-next strong { color: #fff; }
.lr-pulse { width: .6rem; height: .6rem; border-radius: 50%; background: #ff6b5e; box-shadow: 0 0 0 0 rgba(255, 107, 94, .7); animation: lr-pulse 1.8s infinite; flex: none; }
@keyframes lr-pulse { 70% { box-shadow: 0 0 0 .55rem rgba(255, 107, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 94, 0); } }
.tag-soon { background: var(--lr-red); color: #fff; }
.month-sep { grid-column: 1 / -1; font-size: 1.15rem; margin: 1rem 0 0; padding-bottom: .4rem; border-bottom: 2px solid var(--lr-line); display: flex; align-items: center; gap: .6rem; }
.month-sep::before { display: none !important; }
.month-sep:first-child { margin-top: 0; }
.month-sep span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--lr-red); color: #fff; padding: .15rem .5rem; border-radius: 999px; }
.month-sep[hidden] { display: none; }
.lr-sticky { display: none; }
@media (max-width: 760px) {
  .lr-sticky { display: block; position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 50;
    text-align: center; padding: .9rem 1rem; border-radius: 999px; background: var(--lr-red); color: #fff !important; font-weight: 700;
    text-decoration: none !important; box-shadow: 0 10px 30px rgba(19, 32, 58, .35); transform: translateY(150%); transition: transform .25s ease; }
  .lr-sticky.is-on { transform: none; }
  .lr-sticky[hidden] { display: none; }
  #footer { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) { .lr-pulse { animation: none; } .lr-sticky { transition: none; } }
.lr-filters input[type="search"]::placeholder { color: var(--lr-muted) !important; opacity: 1 !important; }

/* ---------- photos ---------- */
.lr-hero-photo { background: var(--lr-navy); }
.lr-hero-bg, .lr-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lr-hero-bg img { object-fit: cover; object-position: 50% 60%; }
.lr-hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(19, 32, 58, .95) 0%, rgba(19, 32, 58, .82) 45%, rgba(19, 32, 58, .45) 100%),
              radial-gradient(900px 380px at 90% 0%, rgba(200, 55, 45, .45), transparent 60%); }
.lr-hero-photo .lr-hero-track, .lr-hero-photo .lr-hero-inner { z-index: 1; }
.lr-hero-credit { position: absolute; right: .8rem; bottom: .5rem; z-index: 2; margin: 0; font-size: .7rem; color: rgba(255, 255, 255, .6); }
.lr-hero-credit a { color: rgba(255, 255, 255, .8) !important; }
.lr-banner { margin: 0 0 -2.2rem; position: relative; border-radius: 18px; overflow: hidden; }
.lr-banner img { display: block; width: 100%; height: clamp(180px, 32vw, 380px); object-fit: cover; }
.lr-banner figcaption { position: absolute; right: .6rem; top: .6rem; font-size: .68rem; color: #fff; background: rgba(19, 32, 58, .6); padding: .15rem .5rem; border-radius: 999px; }
.lr-banner figcaption a { color: #fff !important; }
.content-item.has-banner { position: relative; margin-left: clamp(0rem, 3vw, 2.5rem); margin-right: clamp(0rem, 3vw, 2.5rem); }
@media (max-width: 600px) { .lr-banner { margin-bottom: -1rem; border-radius: 12px; } .lr-hero-credit { font-size: .6rem; } }
/* hero stacking: photo (0) < tint (1) < track + text (2) < credit (3) */
.lr-hero-photo .lr-hero-bg { z-index: 0; }
.lr-hero-photo::before { z-index: 1; }
.lr-hero-photo .lr-hero-track, .lr-hero-photo .lr-hero-inner { z-index: 2; }
.lr-hero-photo .lr-hero-credit { z-index: 3; }
@media (max-width: 760px) {
  .lr-hero-photo::before { background: linear-gradient(180deg, rgba(19, 32, 58, .9) 0%, rgba(19, 32, 58, .86) 60%, rgba(19, 32, 58, .7) 100%); }
}

/* ---------- hero: two columns + "next race" card (replaces the old pill) ---------- */
.lr-next, .lr-pulse { display: none !important; }
.lr-hero .lr-hero-grid { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.lr-nextcard { background: #fff; color: var(--lr-ink); border-radius: 20px; padding: 1.25rem; box-shadow: 0 24px 60px rgba(5, 10, 25, .45); }
:root[data-theme='dark'] .lr-nextcard { background: #161e33; color: #e9edf5; border: 1px solid #26314d; }
.nc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--lr-line); }
.nc-label { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lr-red); }
.nc-count { margin: 0; line-height: 1; text-align: right; color: var(--lr-muted); font-size: .85rem; }
.nc-count strong { font-family: var(--q2-font-heading, inherit); font-size: 2.6rem; letter-spacing: -.03em; color: var(--lr-ink); }
.nc-race { display: flex; gap: .9rem; align-items: flex-start; text-decoration: none !important; color: inherit !important; }
.nc-race .race-badge { flex: 0 0 60px; height: 66px; }
.nc-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.nc-name { font-family: var(--q2-font-heading, inherit); font-weight: 800; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.01em; color: var(--lr-ink); }
.nc-where { font-size: .88rem; color: var(--lr-muted); }
.nc-dist { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.nc-dist span { font-size: .74rem; padding: .12rem .45rem; border: 1px solid var(--lr-line); border-radius: 6px; color: var(--lr-muted); }
.nc-btn { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; padding: .75rem 1rem; border-radius: 12px; background: var(--lr-navy); color: #fff !important; font-weight: 700; text-decoration: none !important; transition: background .15s ease; }
.nc-btn:hover { background: var(--lr-red); }
:root[data-theme='dark'] .nc-btn { background: var(--lr-red); }
.nc-then { list-style: none; margin: .9rem 0 0; padding: .8rem 0 0; border-top: 1px dashed var(--lr-line); display: grid; gap: .45rem; }
.nc-then li { margin: 0; padding: 0; font-size: .86rem; list-style: none; }
.nc-then li::before, .nc-then li::marker { content: none !important; display: none !important; }
.nc-then a { color: var(--lr-ink) !important; text-decoration: none !important; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-then a:hover { color: var(--lr-red) !important; }
.nc-then-date { display: inline-block; min-width: 4.4rem; font-weight: 800; color: var(--lr-red); font-size: .8rem; text-transform: uppercase; }
.nc-then-city { color: var(--lr-muted); }
.lr-hero-grid .lr-hero-text { min-width: 0; }
@media (max-width: 900px) {
  .lr-hero .lr-hero-grid { grid-template-columns: 1fr; }
  .lr-nextcard { max-width: 520px; }
}
/* next-race card: keep everything inside the card and the viewport */
.lr-nextcard { min-width: 0; max-width: 100%; overflow: hidden; }
.nc-then, .nc-then li { min-width: 0; }
.nc-then a { max-width: 100%; }
@media (max-width: 900px) {
  .lr-hero .lr-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lr-nextcard { width: 100%; }
}
@media (max-width: 420px) {
  .nc-count strong { font-size: 2.1rem; }
  .nc-name { font-size: 1.1rem; }
}

/* =====================================================================
   Home v2 — light hero, running track + race bib, places, training band
   ===================================================================== */
.lr-hero2 { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; color: var(--lr-ink);
  background:
    radial-gradient(900px 500px at 100% 0%, color-mix(in oklab, var(--lr-red) 13%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in oklab, var(--lr-sand) 60%, #fff) 0%, var(--lr-sand) 100%); }
:root[data-theme='dark'] .lr-hero2 { background: radial-gradient(900px 500px at 100% 0%, rgba(239, 90, 76, .18), transparent 65%), linear-gradient(180deg, #111a30 0%, var(--lr-sand) 100%); }
.lr-h2-grid { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.lr-h2-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lr-red-strong); }
.lr-h2-kicker span { width: 28px; height: 3px; border-radius: 3px; background: var(--lr-red); }
.lr-hero2 h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 1.1rem; color: var(--lr-ink); hyphens: none; }
.lr-hero2 h1::before { display: none !important; }
.lr-hero2 h1 em { font-style: italic; color: var(--lr-red); position: relative; white-space: nowrap; }
.lr-hero2 h1 em::after { content: ""; position: absolute; left: .05em; right: .1em; bottom: .06em; height: .12em; border-radius: 1em; background: color-mix(in oklab, var(--lr-red) 25%, transparent); z-index: -1; }
.lr-h2-lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--lr-muted); max-width: 52ch; margin: 0 0 1.5rem; }
.lr-h2-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.3rem; }
.lr-btn-line { border: 1.5px solid color-mix(in oklab, var(--lr-ink) 25%, transparent); color: var(--lr-ink) !important; background: transparent; }
.lr-btn-line:hover { border-color: var(--lr-red); color: var(--lr-red-strong) !important; }
.lr-h2-types { display: flex; flex-wrap: wrap; gap: .45rem; }
.tchip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .5rem .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--lr-card); border: 1px solid var(--lr-line); color: var(--lr-ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.tchip:hover { border-color: var(--lr-red); transform: translateY(-1px); }
.tchip span { font-size: .72rem; min-width: 1.5rem; text-align: center; padding: .1rem .35rem; border-radius: 999px; background: var(--lr-sand); color: var(--lr-muted); }

/* track + bib */
.lr-h2-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.lr-track { position: absolute; width: 112%; max-width: 640px; transform: rotate(-8deg); }
.tr-surface { fill: #c8372d; }
:root[data-theme='dark'] .tr-surface { fill: #8f2a23; }
.tr-lane { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2; }
.tr-field { fill: #3f8f5a; }
:root[data-theme='dark'] .tr-field { fill: #24573a; }
.tr-finish { stroke: #fff; stroke-width: 6; stroke-dasharray: 6 6; }
.lr-bib { position: relative; z-index: 1; width: min(340px, 86%); display: flex; flex-direction: column; background: #fff; color: #13203a !important;
  border-radius: 14px; padding: 0 0 .2rem; text-decoration: none !important; transform: rotate(3deg); transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 0 #e9e2d8, 0 26px 50px rgba(19, 32, 58, .35); }
.lr-bib:hover { transform: rotate(1deg) translateY(-4px); box-shadow: 0 2px 0 #e9e2d8, 0 34px 60px rgba(19, 32, 58, .4); }
/* the four safety-pin holes */
.lr-bib::before, .lr-bib::after { content: ""; position: absolute; top: 52px; width: 10px; height: 10px; border-radius: 50%; background: #d9d2c7; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.lr-bib::before { left: 12px; } .lr-bib::after { right: 12px; }
.bib-band { display: flex; justify-content: space-between; align-items: center; background: #c8372d; color: #fff; border-radius: 14px 14px 0 0;
  padding: .7rem 1rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bib-band b { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.bib-num { display: block; text-align: center; font-family: var(--q2-font-heading, inherit); font-weight: 900; color: #13203a;
  font-size: clamp(4.5rem, 9vw, 6.2rem); line-height: 1; letter-spacing: -.05em; margin: 1rem 0 .4rem; }
.bib-num small { font-size: .38em; letter-spacing: -.02em; margin-right: .05em; color: #c8372d; vertical-align: .9em; }
.bib-name { text-align: center; font-weight: 800; font-size: 1.12rem; line-height: 1.2; padding: 0 1rem; }
.bib-meta { text-align: center; color: #5d6678; font-size: .88rem; margin-top: .25rem; padding: 0 1rem; }
.bib-dist { text-align: center; color: #5d6678; font-size: .78rem; margin-top: .35rem; padding: 0 1rem; }
.bib-tear { margin-top: .9rem; border-top: 2px dashed #e3dbd0; padding: .65rem 1rem .55rem; text-align: center; font-weight: 800; color: #c8372d; font-size: .92rem; }
.lr-bib::marker { content: none; }
/* bottom of the bib: pin holes */
.bib-tear { position: relative; }
.bib-tear::before, .bib-tear::after { content: ""; position: absolute; top: -26px; width: 10px; height: 10px; border-radius: 50%; background: #d9d2c7; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.bib-tear::before { left: 12px; } .bib-tear::after { right: 12px; }

/* stats bar */
.lr-h2-stats { list-style: none; margin: clamp(2rem, 5vw, 3.2rem) 0 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--lr-line); }
.lr-h2-stats li { margin: 0; padding: 0 1rem; border-left: 1px solid var(--lr-line); list-style: none; }
.lr-h2-stats li:first-child { border-left: 0; padding-left: 0; }
.lr-h2-stats li::before, .lr-h2-stats li::marker { content: none !important; display: none !important; }
.lr-h2-stats strong { display: block; font-family: var(--q2-font-heading, inherit); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: var(--lr-ink); }
.lr-h2-stats span { font-size: .85rem; color: var(--lr-muted); }

/* section heads */
.lr-eyebrow { margin: 0 0 .25rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lr-red-strong); }
#body-wrapper { padding-top: clamp(2rem, 4vw, 3rem); }

/* places */
.lr-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lr-place { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; color: #fff !important; text-decoration: none !important; background: var(--lr-navy); }
.lr-place img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.lr-place:hover img { transform: scale(1.05); }
.lr-place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 32, 0) 35%, rgba(10, 16, 32, .85) 100%); }
.lr-place-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.lr-place-body strong { font-size: 1.15rem; font-family: var(--q2-font-heading, inherit); }
.lr-place-body > span:last-child { font-size: .86rem; opacity: .9; }
.lr-place-tag { align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--lr-red); padding: .15rem .5rem; border-radius: 999px; margin-bottom: .3rem; }
.lr-photo-note { margin: .6rem 0 0; font-size: .75rem; color: var(--lr-muted); text-align: right; }

/* training band */
.lr-band { margin: 0 0 3rem; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 22px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(200, 55, 45, .45), transparent 60%), linear-gradient(150deg, #13203a, #1d2f52); }
.lr-band h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lr-band h2::before { display: none !important; }
.lr-band-head p:last-child { color: rgba(255, 255, 255, .8); margin: 0 0 1.4rem; max-width: 60ch; }
.lr-band .lr-eyebrow { color: #ff9c92; }
.lr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.lr-steps a { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff !important; text-decoration: none !important; transition: background .15s, transform .15s; }
.lr-steps a:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.st-n { font-family: var(--q2-font-heading, inherit); font-size: 2rem; font-weight: 900; line-height: 1; color: #ff7b6e; margin-bottom: .4rem; }
.lr-steps strong { font-size: 1.05rem; }
.lr-steps a > span:last-child { color: rgba(255, 255, 255, .75); font-size: .88rem; }
.lr-band-foot { margin: 1.2rem 0 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.lr-band-foot a { color: #fff !important; font-weight: 700; }

/* contribution strip */
.lr-contrib { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; margin: 0 0 1rem;
  border-radius: 16px; background: var(--lr-card); border: 1px dashed color-mix(in oklab, var(--lr-red) 45%, var(--lr-line)); }
.lr-contrib div { color: var(--lr-muted); } .lr-contrib strong { color: var(--lr-ink); }

@media (max-width: 960px) {
  .lr-h2-grid { grid-template-columns: minmax(0, 1fr); }
  .lr-h2-visual { min-height: 330px; margin-top: .5rem; }
  .lr-places { grid-template-columns: repeat(2, 1fr); }
  .lr-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lr-h2-visual { min-height: 300px; }
  .lr-track { width: 125%; }
  .lr-h2-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .lr-h2-stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .lr-places { grid-template-columns: 1fr; }
  .lr-steps { grid-template-columns: 1fr 1fr; }
  .lr-h2-cta .lr-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .lr-bib, .lr-place img, .tchip { transition: none; } }
/* show the track: bib sits on the lower-right of the oval */
.lr-h2-visual { min-height: 420px; }
.lr-track { width: 100%; max-width: 560px; top: 0; left: 0; transform: rotate(-6deg); }
.lr-bib { width: 290px; align-self: end; justify-self: end; margin: 0 2% 0 0; }
.bib-num { font-size: clamp(4rem, 7vw, 5.4rem); margin: .8rem 0 .3rem; }
@media (max-width: 960px) { .lr-h2-visual { min-height: 380px; } .lr-track { max-width: 480px; left: 2%; } .lr-bib { margin-right: 4%; } }
@media (max-width: 600px) {
  .lr-h2-visual { min-height: 360px; }
  .lr-track { width: 92%; left: -4%; top: 0; }
  .lr-bib { width: 250px; margin-right: 0; }
  .bib-num { font-size: 4rem; }
}
.lr-h2-types { justify-content: flex-start !important; }
.lr-h2-types a { flex: 0 0 auto; }
@media (max-width: 600px) {
  .lr-h2-kicker { letter-spacing: .08em; font-size: .7rem; white-space: nowrap; }
  .lr-h2-kicker span { width: 18px; }
}

/* =====================================================================
   Home v3 — calm & clean (replaces the track/bib hero)
   ===================================================================== */
#header .navbar-section a.active, #header .dropmenu > ul > li > a.active { background: var(--lr-navy) !important; color: #fff !important; }
:root[data-theme='dark'] #header .dropmenu > ul > li > a.active { background: #26314d !important; }

.h3-hero { background: var(--lr-card); border-bottom: 1px solid var(--lr-line); padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.h3-grid { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.h3-kicker { margin: 0 0 .7rem; font-size: .9rem; font-weight: 600; color: var(--lr-muted); }
.h3-hero h1 { margin: 0 0 .9rem; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; color: var(--lr-ink); hyphens: none; }
.h3-hero h1::before { display: none !important; }
.h3-hero h1 span { color: var(--lr-red); }
.h3-lead { margin: 0 0 1.4rem; color: var(--lr-muted); font-size: 1.06rem; max-width: 46ch; }
.h3-search { display: flex; gap: .5rem; max-width: 520px; margin: 0 0 .9rem; }
.h3-search input { flex: 1; margin: 0 !important; height: 3rem; border-radius: 12px !important; border: 1px solid var(--lr-line) !important; background: var(--lr-sand) !important; padding: 0 1rem !important; font-size: 1rem; }
.h3-search input:focus { border-color: var(--lr-red) !important; box-shadow: 0 0 0 3px color-mix(in oklab, var(--lr-red) 18%, transparent) !important; }
.h3-search button { width: auto; margin: 0; height: 3rem; padding: 0 1.2rem; border-radius: 12px; border: 0; background: var(--lr-red); color: #fff; font-weight: 700; cursor: pointer; }
.h3-search button:hover { background: var(--lr-red-strong); }
.h3-quick { margin: 0; font-size: .92rem; color: var(--lr-muted); }
.h3-quick span { margin-right: .3rem; }
.h3-quick a { color: var(--lr-ink) !important; font-weight: 600; text-decoration: none !important; border-bottom: 1px solid var(--lr-line); }
.h3-quick a:hover { border-color: var(--lr-red); color: var(--lr-red-strong) !important; }

/* next race card: flat */
.h3-next { border: 1px solid var(--lr-line); border-radius: 16px; background: var(--lr-card); padding: 1rem 1.1rem .6rem; }
.h3-next-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.h3-next-head p { margin: 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lr-muted); }
.h3-in { font-size: .78rem; font-weight: 700; color: var(--lr-red-strong); background: var(--lr-red-soft); padding: .2rem .55rem; border-radius: 999px; }
.h3-next-race, .h3-next-more { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; text-decoration: none !important; color: var(--lr-ink) !important; border-top: 1px solid var(--lr-line); }
.h3-next-race { border-top: 0; padding-top: .2rem; }
.h3-next-race strong { font-size: 1.15rem; }
.h3-next-info { display: flex; flex-direction: column; min-width: 0; }
.h3-next-info strong { line-height: 1.25; }
.h3-next-info > span { color: var(--lr-muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-next-more strong { font-size: .95rem; font-weight: 600; }
.h3-next-race:hover strong, .h3-next-more:hover strong { color: var(--lr-red-strong); }
.h3-next-all { display: block; padding: .7rem 0 .3rem; border-top: 1px solid var(--lr-line); font-size: .9rem; font-weight: 700; color: var(--lr-red-strong) !important; text-decoration: none !important; }

/* date block (shared) */
.h3-date { flex: 0 0 3.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 3.4rem; border-radius: 10px;
  background: var(--lr-sand); border: 1px solid var(--lr-line); color: var(--lr-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; line-height: 1; }
.h3-date b { font-size: 1.35rem; font-weight: 800; color: var(--lr-ink); margin-bottom: .15rem; }
.h3-date.sm { flex-basis: 2.8rem; height: 2.9rem; } .h3-date.sm b { font-size: 1.05rem; }

/* sections */
.h3-sec { max-width: 1120px; margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); }
.h3-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .9rem; }
.h3-sec-head h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -.01em; }
.h3-sec-head h2::before { display: none !important; }
.h3-sec-head a { font-weight: 700; font-size: .92rem; color: var(--lr-red-strong) !important; text-decoration: none !important; white-space: nowrap; }

/* upcoming list */
.h3-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--lr-line); border-radius: 16px; background: var(--lr-card); overflow: hidden; }
.h3-list li { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--lr-line); }
.h3-list li:first-child { border-top: 0; }
.h3-list li::before, .h3-list li::marker { content: none !important; display: none !important; }
.h3-list a { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; color: var(--lr-ink) !important; text-decoration: none !important; transition: background .12s; }
.h3-list a:hover { background: var(--lr-sand); }
.h3-list a:hover strong { color: var(--lr-red-strong); }
.h3-li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h3-li-main strong { font-size: 1rem; line-height: 1.3; }
.h3-li-main > span { color: var(--lr-muted); font-size: .86rem; }
.h3-li-main em { font-style: normal; color: var(--lr-amber); }
.h3-li-dist { flex: 0 0 auto; color: var(--lr-muted); font-size: .84rem; text-align: right; }

/* places: small thumbnails */
.h3-places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.h3-place { display: flex; flex-direction: column; gap: .1rem; text-decoration: none !important; color: var(--lr-ink) !important; }
.h3-place img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: .5rem; }
.h3-place strong { font-size: .98rem; }
.h3-place span { color: var(--lr-muted); font-size: .84rem; }
.h3-place:hover strong { color: var(--lr-red-strong); }

/* plans */
.h3-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.h3-plans a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--lr-line); background: var(--lr-card); color: var(--lr-ink) !important; text-decoration: none !important; transition: border-color .12s; }
.h3-plans a:hover { border-color: var(--lr-red); }
.h3-plans b { font-size: 1.3rem; font-family: var(--q2-font-heading, inherit); }
.h3-plans span { color: var(--lr-muted); font-size: .86rem; }
.h3-note { margin: 1rem 0 0; color: var(--lr-muted); font-size: .92rem; }

@media (max-width: 900px) {
  .h3-grid { grid-template-columns: minmax(0, 1fr); }
  .h3-places, .h3-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .h3-li-dist { display: none; }
  .h3-search button { padding: 0 .9rem; }
  .h3-place img { height: 110px; }
}

/* place pages: short banners, lighter files */
.lr-banner img { height: clamp(140px, 20vw, 230px) !important; }
.lr-banner { margin-bottom: -1.2rem !important; }
/* v3 polish */
.h3-hero, .h3-hero *, .h3-sec, .h3-sec * { hyphens: none !important; -webkit-hyphens: none !important; }
.h3-search button { white-space: nowrap; border-radius: 12px !important; flex: 0 0 auto; }
.h3-hero .container { max-width: 1180px; }
.h3-grid { margin: 0 auto; }
.h3-sec-head h2 { font-family: inherit !important; font-weight: 800; letter-spacing: -.015em; }
.h3-sec-head { align-items: center; }
#body-wrapper { padding-top: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- home hero: faint running illustration in the background ---------- */
.h3-hero { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in oklab, var(--lr-sand) 55%, #fff) 100%); }
:root[data-theme='dark'] .h3-hero { background: linear-gradient(180deg, #121a2e 0%, #0f1526 100%); }
.h3-hero > .container { position: relative; z-index: 1; }
/* the search field and card stay solid on top of the drawing */
.h3-search input { background: #fff !important; }
:root[data-theme='dark'] .h3-search input { background: #161e33 !important; }
.h3-next { box-shadow: 0 10px 30px rgba(19, 32, 58, .06); }
/* subtle "running" motion: speed lines drift, respects reduced-motion */
/* mobile: keep the drawing behind the headline area, smaller and fainter */
/* hero illustration v2: a frieze along the bottom of the hero */
.h3-hero { padding-bottom: clamp(150px, 15vw, 210px) !important; }
@media (max-width: 900px) {
  .h3-hero { padding-bottom: 150px !important; }
}
@media (min-width: 600px) and (max-width: 900px) { .h3-illu-narrow { height: 175px !important; } .h3-hero { padding-bottom: 175px !important; } }
@media (max-width: 400px) { .h3-illu-narrow { height: 128px !important; } .h3-hero { padding-bottom: 132px !important; } }
@media (max-width: 340px) { .h3-illu-narrow { height: 108px !important; } .h3-hero { padding-bottom: 112px !important; } }

/* ---------- events page: distance / weekend / near-me ---------- */
.lr-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.lr-near { width: auto; margin: 0; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--lr-line); background: transparent; color: var(--lr-ink); font-weight: 700; font-size: .88rem; cursor: pointer; line-height: 1.2; }
.lr-near:hover { border-color: var(--lr-red); }
.lr-near.is-on { background: var(--lr-navy); border-color: var(--lr-navy); color: #fff; }
#lr-radius { width: auto; margin: 0; padding: .35rem 2rem .35rem .7rem; border-radius: 999px; font-size: .88rem; height: auto; }
.lr-near-msg { margin: 0; font-size: .82rem; color: var(--lr-muted); }
.race-meta .km, .race-meta .near-km { color: var(--lr-muted); font-weight: 400; }
.race-meta .near-km { color: var(--lr-green); font-weight: 700; }

/* =====================================================================
   Home: shortcuts, weekend strip, ICS, freshness, season, goals, spot, group runs, contribute
   ===================================================================== */
.h3-quick { display: none; }
.h3-shortcuts { display: grid; gap: .45rem; }
.h3-shortcuts p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.h3-shortcuts span { width: 4.6rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--lr-muted); }
.h3-shortcuts a { padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--lr-line); background: var(--lr-card); color: var(--lr-ink) !important; font-size: .86rem; font-weight: 600; text-decoration: none !important; transition: border-color .12s, color .12s; }
.h3-shortcuts a:hover { border-color: var(--lr-red); color: var(--lr-red-strong) !important; }
.h3-shortcuts a.near { border-style: dashed; }

.h3-ics { display: inline-block; margin: 0 0 .5rem; font-size: .84rem; font-weight: 700; color: var(--lr-ink) !important; text-decoration: none !important; padding: .3rem .65rem; border-radius: 8px; background: var(--lr-sand); border: 1px solid var(--lr-line); }
.h3-ics:hover { border-color: var(--lr-red); }

.h3-weekend { background: var(--lr-navy); color: rgba(255, 255, 255, .85); }
.h3-weekend .container { max-width: 1180px; }
.h3-weekend p { max-width: 1120px; margin: 0 auto; padding: .8rem 0; font-size: .95rem; }
.h3-weekend strong { color: #fff; }
.h3-weekend a { color: #fff !important; font-weight: 700; text-decoration-color: rgba(255, 255, 255, .4) !important; }
.h3-weekend .wk-dates, .h3-weekend .wk-city { color: rgba(255, 255, 255, .65); }

.h3-fresh { margin: .7rem 0 0; font-size: .84rem; color: var(--lr-green); }

/* season planner */
.h3-season { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.h3-month { display: flex; flex-direction: column; gap: .25rem; padding: .9rem; border-radius: 14px; border: 1px solid var(--lr-line); background: var(--lr-card); color: var(--lr-ink) !important; text-decoration: none !important; transition: border-color .12s; min-width: 0; }
.h3-month:hover { border-color: var(--lr-red); }
.h3-month .m-name { font-weight: 800; font-size: .98rem; } .h3-month .m-name small { color: var(--lr-muted); font-weight: 600; }
.h3-month .m-count { font-size: .82rem; color: var(--lr-muted); } .h3-month .m-count b { font-size: 1.4rem; color: var(--lr-red-strong); margin-right: .15rem; }
.h3-month .m-key { font-size: .78rem; color: var(--lr-muted); line-height: 1.35; border-top: 1px solid var(--lr-line); padding-top: .45rem; margin-top: .2rem; overflow: hidden; }
.h3-month.is-empty { opacity: .65; }

/* goals */
.h3-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.h3-goal { padding: 1.1rem 1.2rem; border-radius: 16px; border: 1px solid var(--lr-line); background: var(--lr-card); }
.h3-goal .g-tag { margin: 0 0 .2rem; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--lr-red-strong); }
.h3-goal h3 { margin: 0 0 .6rem; font-size: 1.12rem; font-family: inherit; font-weight: 800; }
.h3-goal h3::before { display: none !important; }
.h3-goal ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.h3-goal li { margin: 0; font-size: .92rem; color: var(--lr-muted); }
.h3-goal li::marker { color: var(--lr-red); font-weight: 800; }
.h3-goal a { color: var(--lr-ink) !important; font-weight: 600; }

/* spot of the month */
.h3-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; margin: 0 0 1rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--lr-line); background: var(--lr-card); color: var(--lr-ink) !important; text-decoration: none !important; }
.h3-spot img { width: 100%; height: 100%; min-height: 220px; max-height: 280px; object-fit: cover; display: block; }
.spot-body { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; justify-content: center; }
.spot-tag { align-self: flex-start; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--lr-red-strong); background: var(--lr-red-soft); padding: .2rem .55rem; border-radius: 999px; }
.spot-body strong { font-size: 1.3rem; }
.spot-text { color: var(--lr-muted); font-size: .94rem; }
.spot-facts { display: flex; flex-wrap: wrap; gap: .35rem; }
.spot-facts span { font-size: .78rem; padding: .15rem .5rem; border-radius: 6px; border: 1px solid var(--lr-line); color: var(--lr-muted); }
.spot-more { font-weight: 700; color: var(--lr-red-strong); font-size: .9rem; margin-top: .2rem; }
.h3-spot:hover .spot-more { text-decoration: underline; }

/* group runs */
.h3-runs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.h3-run { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--lr-line); border-left: 4px solid var(--lr-green); background: var(--lr-card); color: var(--lr-ink) !important; text-decoration: none !important; min-width: 0; }
.h3-run:hover { border-color: var(--lr-green); }
.h3-run .r-day { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--lr-green); }
.h3-run strong { font-size: .98rem; }
.h3-run > span:last-child { font-size: .84rem; color: var(--lr-muted); }

/* contribute + newsletter */
.h3-contrib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.c-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem; border-radius: 16px; border: 1px dashed color-mix(in oklab, var(--lr-red) 40%, var(--lr-line)); background: var(--lr-card); color: var(--lr-ink) !important; text-decoration: none !important; }
a.c-card:hover { border-style: solid; border-color: var(--lr-red); }
.c-ico { font-size: 1.4rem; }
.c-card > span:not(.c-ico) { color: var(--lr-muted); font-size: .9rem; }
.c-news { border-style: solid; border-color: var(--lr-navy); }
.c-btn { align-self: flex-start; margin-top: .4rem; padding: .55rem 1rem; border-radius: 10px; background: var(--lr-navy); color: #fff !important; font-weight: 700; font-size: .9rem; text-decoration: none !important; }
.c-btn:hover { background: var(--lr-red); }

@media (max-width: 1000px) {
  .h3-season { grid-template-columns: repeat(3, 1fr); }
  .h3-runs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .h3-goals, .h3-contrib { grid-template-columns: 1fr; }
  .h3-spot { grid-template-columns: 1fr; } .h3-spot img { min-height: 0; max-height: 180px; }
}
@media (max-width: 560px) {
  .h3-season { grid-template-columns: repeat(2, 1fr); }
  .h3-runs { grid-template-columns: 1fr; }
  .h3-shortcuts span { width: 100%; }
}
.h3-date.rng b { font-size: .92rem; letter-spacing: -.02em; } .h3-date.sm.rng b { font-size: .8rem; }
@media (max-width: 560px) { .h3-sec-head { flex-direction: column; align-items: flex-start; gap: .25rem; } .h3-sec-head h2 { font-size: 1.4rem; } }

/* ---- home v4: track + race bib back in the hero (2026-11-25), next races + ICS kept in a compact card ---- */
.h4-visual { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.h4-track { min-height: 380px; }
.h4-track .lr-track { max-width: 520px; }
.h4-track .lr-bib { width: 270px; }
.h4-track .bib-num { font-size: clamp(3.6rem, 6vw, 4.8rem); }
.h4-next { padding: .55rem 1rem .35rem; background: color-mix(in oklab, var(--lr-card) 92%, transparent); backdrop-filter: blur(4px); }
.h4-next .h3-ics { display: inline-block; margin: .15rem 0 .35rem; }
.h4-next .h3-next-more:first-of-type { border-top: 0; }
:root[data-theme='dark'] .lr-bib { background: #f6f1ea; }
@media (max-width: 960px) {
  .h4-visual { max-width: 520px; width: 100%; margin: .5rem auto 0; }
  .h4-track { min-height: 340px; }
}
@media (max-width: 600px) {
  .h4-track { min-height: 300px; }
  .h4-track .lr-track { width: 100%; left: 0; }
  .h4-track .lr-bib { width: min(240px, 78%); }
  .h4-track .bib-num { font-size: 3.6rem; }
}
@media (max-width: 600px) {
  .h4-track { place-items: center; }
  .h4-track .lr-bib { justify-self: center; align-self: center; margin: 0; }
  .h4-track .lr-track { left: -6%; }
}
@media (max-width: 360px) { .h4-track .bib-band { font-size: .6rem; letter-spacing: .06em; padding: .6rem .8rem; } .h4-track .bib-band b { font-size: .75rem; } }

/* ---- race pages /courses/<slug> (2026-11-25) ---- */
.rc-hero { background: var(--lr-card); border-bottom: 1px solid var(--lr-line); padding: clamp(1.4rem, 4vw, 2.4rem) 0 clamp(1.4rem, 4vw, 2.2rem); }
.rc-hero-inner { max-width: 1120px; }
.rc-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--lr-muted); margin-bottom: 1rem; }
.rc-crumbs a { color: var(--lr-muted) !important; text-decoration: none; } .rc-crumbs a:hover { color: var(--lr-red) !important; }
.rc-head { display: flex; gap: 1.2rem; align-items: center; }
.rc-badge { flex: 0 0 auto; transform: scale(1.15); transform-origin: left center; margin-right: .6rem; }
.rc-title { min-width: 0; }
.rc-title h1 { margin: .4rem 0 .35rem; font-size: clamp(1.7rem, 4.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; color: var(--lr-ink); }
.rc-title h1::before { display: none !important; }
.rc-sub { margin: 0; color: var(--lr-muted); }
.tag-past { background: var(--lr-line); color: var(--lr-muted); }
.rc-past { background: var(--lr-amber-soft); color: var(--lr-ink); border-radius: 12px; padding: .8rem 1rem; margin: 1.4rem 0 0; }
.rc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: start; margin-top: 1.6rem; }
.rc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin: 0 0 1.6rem; }
.rc-facts > div { border: 1px solid var(--lr-line); border-radius: 12px; padding: .75rem .9rem; background: var(--lr-card); }
.rc-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--lr-muted); margin-bottom: .25rem; }
.rc-facts dd { margin: 0; font-weight: 600; color: var(--lr-ink); }
.rc-facts .race-dist { margin: 0; }
.rc-section { margin: 0 0 2rem; }
.rc-section h2 { font-size: 1.25rem; margin: 0 0 .8rem; }
.rc-section h2::before { display: none !important; }
.rc-body p:first-child { margin-top: 0; }
.rc-map { height: 280px; border-radius: 14px; border: 1px solid var(--lr-line); z-index: 0; }
.rc-map-note { font-size: .85rem; color: var(--lr-muted); margin: .5rem 0 0; }
.rc-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.rc-card { border: 1px solid var(--lr-line); border-radius: 16px; background: var(--lr-card); padding: 1rem 1.1rem; }
.rc-card h2 { font-size: 1.05rem; margin: 0 0 .6rem; } .rc-card h2::before { display: none !important; }
.rc-reg p { margin: 0 0 .55rem; }
.rc-reg-st { padding-left: .7rem; border-left: 3px solid var(--lr-line); }
.rc-st-open { border-left-color: var(--lr-green) !important; } .rc-st-closed, .rc-st-full { border-left-color: var(--lr-muted) !important; }
.rc-st-soon, .rc-st-not_open { border-left-color: var(--lr-amber) !important; }
.rc-price span:first-child { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--lr-muted); margin-right: .3rem; }
.rc-note { font-size: .9rem; color: var(--lr-muted); }
.rc-cta { display: flex; justify-content: center; width: 100%; margin: .4rem 0 .7rem; }
.rc-pps { font-size: .85rem; } .rc-verif { font-size: .75rem; color: var(--lr-muted); margin-bottom: 0 !important; }
.rc-verif a { color: var(--lr-muted) !important; }
.rc-actions { display: flex; flex-direction: column; gap: .15rem; padding: .5rem .6rem; }
.rc-act { display: block; text-align: left; padding: .55rem .5rem; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--lr-ink) !important;
  text-decoration: none !important; background: none; border: 0; cursor: pointer; font-family: inherit; }
.rc-act:hover { background: var(--lr-sand); }
.rc-others { margin-top: 1rem; }
.tbc { font-size: .78rem; font-weight: 700; color: var(--lr-amber); background: var(--lr-amber-soft); border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
@media (max-width: 900px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } .rc-side { position: static; } }
@media (max-width: 600px) { .rc-head { align-items: flex-start; } .rc-badge { transform: none; margin-right: 0; } }

/* registration chips on cards, link from category sections, bib line */
.tag-reg { background: var(--lr-sand); color: var(--lr-muted); border: 1px solid var(--lr-line); }
.tag-reg-hot { background: var(--lr-red); color: #fff; border-color: var(--lr-red); }
.tag-reg-off { background: var(--lr-line); color: var(--lr-muted); }
.race-more { margin: .6rem 0 0 !important; } .race-more a { font-weight: 700; }
.bib-reg { text-align: center; font-size: .76rem; font-weight: 700; color: #a92c23; margin-top: .45rem; padding: 0 1rem; }
.h3-next-sub { display: block; font-size: .85rem; font-weight: 600; color: var(--lr-muted) !important; padding: .1rem 0 .5rem; }

/* subscribe-to-calendar block */
.lr-sub { display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 2rem 0;
  padding: 1.2rem 1.3rem; border: 1px solid var(--lr-line); border-radius: 16px; background: var(--lr-card); }
.lr-sub h2 { font-size: 1.1rem; margin: 0 0 .3rem; } .lr-sub h2::before { display: none !important; }
.lr-sub p { margin: 0; color: var(--lr-muted); font-size: .92rem; max-width: 52ch; }
.lr-sub-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.lr-sub-btn { display: inline-block; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--lr-line); background: var(--lr-sand); font-weight: 700; font-size: .85rem;
  color: var(--lr-ink) !important; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.lr-sub-btn:hover { border-color: var(--lr-red); color: var(--lr-red) !important; }
.lr-sub.is-compact { margin: 0; padding: 1rem 1.1rem; display: block; }
.lr-sub.is-compact h2 { font-size: 1rem; } .lr-sub.is-compact p { font-size: .85rem; margin-bottom: .7rem; }
.lr-sub.is-compact .lr-sub-btn { padding: .4rem .7rem; font-size: .8rem; }
/* fixes 2026-11-25: breadcrumb alignment, Leaflet controls vs theme link styles (both maps), even subscribe buttons */
.rc-crumbs { justify-content: flex-start !important; align-items: center; }
.rc-crumbs > * { flex: 0 0 auto; }
.leaflet-bar a, .leaflet-bar a:hover { display: block !important; width: 30px !important; height: 30px !important; line-height: 30px !important; padding: 0 !important;
  margin: 0 !important; text-align: center; text-decoration: none !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  background: #fff !important; color: #333 !important; font: bold 18px/30px 'Lucida Console', Monaco, monospace !important; }
.leaflet-bar a:first-child { border-top-left-radius: 4px !important; border-top-right-radius: 4px !important; }
.leaflet-bar a:last-child { border-bottom-left-radius: 4px !important; border-bottom-right-radius: 4px !important; border-bottom: 0 !important; }
.leaflet-control-attribution a { text-decoration: none !important; }
.lr-sub-btn { line-height: 1.3; vertical-align: middle; }
.rc-grid { margin-top: 1.2rem; }
/* race page on phones/tablets: registration right after the key facts, sharing + subscribe at the end */
@media (max-width: 900px) {
  .rc-grid { display: flex; flex-direction: column; gap: 1.2rem; }
  .rc-main, .rc-side { display: contents; }
  .rc-facts { order: 1; margin-bottom: 0; } .rc-reg { order: 2; } .rc-main > .rc-section { order: 3; margin-bottom: .6rem; }
  .rc-actions { order: 4; } .rc-side > .lr-sub { order: 5; }
}
@media (max-width: 900px) { .rc-grid { align-items: stretch; } .rc-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .rc-facts { grid-template-columns: 1fr; } }
/* Leaflet marker icons must not get the theme's image styling (red box behind pins) */
.leaflet-container img, .leaflet-container img:hover { max-width: none !important; max-height: none !important; box-shadow: none !important; border-radius: 0 !important;
  background: none !important; border: 0 !important; padding: 0 !important; margin: 0; transform: none; }
.leaflet-container .leaflet-marker-icon { margin-left: -12px; margin-top: -41px; }

/* ---- community confirmation (yes/no) + error report (2026-11-26) ---- */
.tag-cm-yes { background: var(--lr-green-soft); color: var(--lr-green); }
.tag-cm-no { background: var(--lr-red-soft); color: var(--lr-red-strong); }
.rc-vote { border: 1px solid var(--lr-line); border-radius: 16px; background: var(--lr-card); padding: 1.1rem 1.2rem; margin: 0 0 1.8rem; }
.rc-vote h2 { font-size: 1.15rem; margin: 0 0 .35rem; } .rc-vote h2::before { display: none !important; }
.rc-vote-q { margin: 0 0 .8rem; color: var(--lr-muted); font-size: .95rem; } .rc-vote-q strong { color: var(--lr-ink); }
.rc-vote-status { margin: 0 0 .55rem; font-size: .95rem; }
.cm-badge { display: inline-block; font-weight: 800; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; margin-right: .35rem; }
.cm-yes { background: var(--lr-green-soft); color: var(--lr-green); } .cm-no { background: var(--lr-red-soft); color: var(--lr-red-strong); }
.cm-split { background: var(--lr-amber-soft); color: var(--lr-amber); } .cm-none { background: var(--lr-sand); color: var(--lr-muted); border: 1px solid var(--lr-line); }
.rc-vote-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--lr-line); margin: 0 0 .9rem; }
.rc-vote-bar .y { background: var(--lr-green); } .rc-vote-bar .n { background: var(--lr-red); }
.rc-vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rc-vbtn { display: flex; align-items: center; gap: .5rem; justify-content: center; padding: .8rem .9rem; border-radius: 12px; font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 2px solid var(--lr-line); background: var(--lr-card); color: var(--lr-ink); transition: border-color .15s, background .15s, opacity .15s; text-align: left; }
.rc-vbtn .ct { margin-left: auto; min-width: 2em; text-align: center; font-size: .85rem; padding: .1rem .45rem; border-radius: 999px; background: var(--lr-sand); border: 1px solid var(--lr-line); }
.rc-vbtn-yes:not(:disabled):hover { border-color: var(--lr-green); background: var(--lr-green-soft); }
.rc-vbtn-no:not(:disabled):hover { border-color: var(--lr-red); background: var(--lr-red-soft); }
.rc-vbtn:disabled { cursor: default; opacity: .55; }
.rc-vbtn.is-chosen { opacity: 1; } .rc-vbtn-yes.is-chosen { border-color: var(--lr-green); background: var(--lr-green-soft); }
.rc-vbtn-no.is-chosen { border-color: var(--lr-red); background: var(--lr-red-soft); }
.rc-vbtn.is-chosen .lb::after { content: " ✓"; }
.rc-vote-msg { margin: .7rem 0 0; font-weight: 600; }
.rc-vote-rule { margin: .8rem 0 0; font-size: .75rem; color: var(--lr-muted); }
.rc-vote.is-off { background: var(--lr-amber-soft); border-color: transparent; } .rc-vote.is-off .rc-vote-q { margin: 0; color: var(--lr-ink); }
@media (max-width: 520px) { .rc-vote-btns { grid-template-columns: 1fr; } }
.rc-report { border: 1px dashed var(--lr-line); border-radius: 14px; padding: .2rem 1rem; margin: 0 0 2rem; background: var(--lr-card); }
.rc-report summary { cursor: pointer; padding: .75rem 0; font-size: .95rem; color: var(--lr-ink); }
.rc-report[open] summary { border-bottom: 1px solid var(--lr-line); margin-bottom: .8rem; }
.rc-report-intro { font-size: .9rem; color: var(--lr-muted); }
.rc-report .form-field { margin-bottom: .8rem; }
@media (max-width: 900px) { .rc-vote { order: 2; margin: 0; } .rc-reg { order: 2; } .rc-report { order: 3; } }

/* ---- navigation v2 (2026-11-26): mega panels, search, calendar button; mobile accordions ---- */
#header .desktop-menu { justify-content: flex-start; margin-left: clamp(.5rem, 3vw, 2.5rem); }
#header .lrn { display: flex; align-items: center; flex: 1 1 auto; gap: 1rem; }
#header .lrn .lrn-bar { display: flex !important; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
#header .lrn .lrn-item { position: static; margin: 0; padding: 0; }
#header .lrn .lrn-item::before { content: none !important; }
.lrn-top { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600;
  font-size: .97rem; color: var(--lr-ink); border-radius: 10px; position: relative; white-space: nowrap; }
.lrn-top svg { width: 12px; height: 12px; opacity: .55; transition: transform .2s; }
.lrn-top:hover, .lrn-item.is-open .lrn-top { background: var(--lr-sand); }
.lrn-item.is-open .lrn-top svg { transform: rotate(180deg); }
.lrn-top.is-active::after { content: ""; position: absolute; left: .8rem; right: 1.6rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--lr-red); }
.lrn-panel { position: absolute; top: calc(100% + 6px); left: 50%; width: min(1060px, calc(100vw - 32px)); transform: translate(-50%, -6px); z-index: 70;
  background: var(--lr-card); border: 1px solid var(--lr-line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(19, 32, 58, .28);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.lrn-item.is-open .lrn-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .16s ease, transform .16s ease; }
.lrn-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.lrn-panel-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(220px, .95fr); gap: 1.4rem 1.8rem; padding: 1.4rem 1.6rem 1.1rem; }
#lrn-p-courses .lrn-panel-in, #lrn-p-commu .lrn-panel-in { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(240px, 1fr); }
#lrn-p-commu .lrn-panel-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lrn-col { display: flex; flex-direction: column; min-width: 0; }
.lrn-h { margin: 0 0 .45rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lr-muted); }
#header a.lrn-a { display: flex; align-items: center; gap: .55rem; padding: .38rem .55rem; margin: 0 -.55rem; border-radius: 8px; font-size: .93rem; font-weight: 500;
  color: var(--lr-ink) !important; text-decoration: none !important; background: none !important; line-height: 1.3; }
#header a.lrn-a:hover { background: var(--lr-sand) !important; color: var(--lr-red) !important; }
#header a.lrn-a.is-current { color: var(--lr-red) !important; font-weight: 700; }
.lrn-n { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--lr-muted); background: var(--lr-sand); border: 1px solid var(--lr-line); border-radius: 999px; padding: 0 .45rem; }
.lrn-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--lr-red); }
.lrn-dot.d-trail { background: var(--lr-green); } .lrn-dot.d-semi { background: #2a4aa8; } .lrn-dot.d-night { background: #1d2340; } .lrn-dot.d-soli { background: #8a2f7c; }
:root[data-theme='dark'] .lrn-dot.d-night { background: #c9d3ff; } :root[data-theme='dark'] .lrn-dot.d-semi { background: #9db4ff; }
#header a.lrn-feat { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-radius: 14px; background: var(--lr-sand); border: 1px solid var(--lr-line);
  text-decoration: none !important; color: var(--lr-ink) !important; align-self: start; }
#header a.lrn-feat:hover { border-color: var(--lr-red); }
.lrn-feat-t { font-size: .88rem; color: var(--lr-muted); line-height: 1.4; } .lrn-feat-t strong { color: var(--lr-ink); }
.lrn-go { margin-top: .2rem; font-size: .85rem; font-weight: 700; color: var(--lr-red); }
.lrn-next-row { display: flex; gap: .8rem; align-items: center; }
.lrn-next-row strong { display: block; font-size: 1rem; line-height: 1.2; } .lrn-next-row small { display: block; color: var(--lr-muted); font-size: .82rem; margin-top: .15rem; }
.lrn-badge { flex: 0 0 auto; width: 52px; text-align: center; border-radius: 10px; background: var(--lr-red); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: .35rem 0 .3rem; line-height: 1.1; }
.lrn-badge b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.lrn-map img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--lr-line); margin-bottom: .2rem; }
.lrn-foot { border-top: 1px solid var(--lr-line); padding: .7rem 1.6rem; display: flex; justify-content: flex-end; }
#header .lrn-foot a { font-size: .88rem; font-weight: 700; color: var(--lr-red) !important; text-decoration: none !important; background: none !important; }
.lrn-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.lrn-sbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--lr-line); background: var(--lr-card); color: var(--lr-ink); cursor: pointer; }
.lrn-sbtn svg { width: 18px; height: 18px; } .lrn-sbtn:hover, .lrn.is-searching .lrn-sbtn { border-color: var(--lr-red); color: var(--lr-red); }
#header a.lrn-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; background: var(--lr-red) !important; color: #fff !important;
  font-weight: 700; font-size: .92rem; text-decoration: none !important; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(200, 55, 45, .7); }
#header a.lrn-cta:hover { background: var(--lr-red-strong) !important; }
.lrn-search { position: absolute; top: calc(100% + 6px); right: max(16px, calc((100vw - 1060px) / 2)); z-index: 71; display: flex; gap: .4rem; width: min(460px, calc(100vw - 32px));
  padding: .5rem; background: var(--lr-card); border: 1px solid var(--lr-line); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(19, 32, 58, .3);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility 0s linear .15s; }
.lrn.is-searching .lrn-search { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.lrn-search input { flex: 1; min-width: 0; border: 1px solid var(--lr-line); border-radius: 10px; padding: .6rem .8rem; font: inherit; background: var(--lr-sand); color: var(--lr-ink); }
.lrn-search button { border: 0; border-radius: 10px; padding: 0 1rem; background: var(--lr-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1100px) { .lrn-panel-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lrn-feat { display: none !important; } #lrn-p-courses .lrn-panel-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .lrn-top { padding: .5rem .55rem; font-size: .93rem; } #header a.lrn-cta { padding: .5rem .8rem; } }
@media (max-width: 920px) { #header a.lrn-cta span { display: none; } }
@media (prefers-reduced-motion: reduce) { .lrn-panel, .lrn-search, .lrn-top svg { transition: none !important; } }

/* mobile overlay */
.overlay-menu .lrn-m { display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.lrn-m-search { display: flex; gap: .4rem; }
.lrn-m-search input { flex: 1; min-width: 0; border: 1px solid var(--lr-line); border-radius: 12px; padding: .75rem .9rem; font: inherit; font-size: 1rem; background: var(--lr-card); color: var(--lr-ink); }
.lrn-m-search button { width: 48px; border: 0; border-radius: 12px; background: var(--lr-red); color: #fff; display: grid; place-items: center; }
.lrn-m-search button svg { width: 20px; height: 20px; }
.overlay-menu a.lrn-m-cta { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .85rem; border-radius: 12px; background: var(--lr-red); color: #fff !important;
  font-weight: 700; font-size: 1.02rem; text-decoration: none !important; }
.lrn-m-cta b { background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 0 .5rem; font-size: .85rem; }
.overlay-menu a.lrn-m-home { padding: .8rem .2rem; font-size: 1.15rem; font-weight: 700; color: var(--lr-ink) !important; text-decoration: none !important; border-bottom: 1px solid var(--lr-line); }
.lrn-m-sec { border-bottom: 1px solid var(--lr-line); }
.lrn-m-sec summary { list-style: none; cursor: pointer; padding: .85rem .2rem; font-size: 1.15rem; font-weight: 700; color: var(--lr-ink); display: flex; justify-content: space-between; align-items: center; }
.lrn-m-sec summary::-webkit-details-marker { display: none; }
.lrn-m-sec summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--lr-muted); transition: transform .2s; }
.lrn-m-sec[open] summary::after { transform: rotate(45deg); }
.lrn-m-sec .lrn-h { margin: .6rem 0 .3rem .2rem; }
.lrn-m-links { display: flex; flex-direction: column; }
.overlay-menu a.lrn-m-a { display: flex; align-items: center; gap: .55rem; padding: .55rem .2rem; font-size: 1rem; font-weight: 500; color: var(--lr-ink) !important; text-decoration: none !important; }
.overlay-menu a.lrn-m-a.is-current { color: var(--lr-red) !important; font-weight: 700; }
.overlay-menu a.lrn-m-strong { font-weight: 700; }
.overlay-menu a.lrn-m-all { display: block; padding: .6rem .2rem 1rem; font-weight: 700; color: var(--lr-red) !important; text-decoration: none !important; }
/* nav v2 fixes: wrap text in feature cards, quiet focus after mouse click, align search button */
#header .lrn-panel, #header .lrn-panel * { white-space: normal; }
#header a.lrn-feat { text-align: left; min-width: 0; } #header a.lrn-feat .lrn-h { text-align: left; }
.lrn-top:focus:not(:focus-visible), .lrn-sbtn:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.lrn-top:focus-visible, .lrn-sbtn:focus-visible, #header a.lrn-a:focus-visible, #header a.lrn-cta:focus-visible { outline: 2px solid var(--lr-red); outline-offset: 2px; }
#header .lrn-top, #header .lrn-sbtn { margin: 0; border-color: transparent; box-shadow: none; }
#header .lrn-sbtn { border: 1px solid var(--lr-line); align-self: center; }
.lrn-search button { flex: 0 0 auto; white-space: nowrap; hyphens: none; }
#header .lrn-sbtn, #header a.lrn-cta { height: 40px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
#header .lrn-sbtn { padding: 0; }
.lrn-m-sec { margin: 0 !important; padding: 0 !important; }
.lrn-m-sec summary, .lrn-m-sec[open] summary { color: var(--lr-ink) !important; opacity: 1 !important; margin: 0; }
.overlay-menu a.lrn-m-a, .overlay-menu a.lrn-m-all, .lrn-m-search input { font-family: var(--pico-font-family-sans-serif) !important; letter-spacing: 0 !important; }
.overlay-menu a.lrn-m-a { font-weight: 500 !important; }

/* ---- J'y vais + vote threshold (2026-11-26) ---- */
.rc-going { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--lr-line); border-radius: 16px; background: var(--lr-card); }
.rc-gbtn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid var(--lr-red); background: var(--lr-card);
  color: var(--lr-red); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; margin: 0; transition: background .15s, color .15s; }
.rc-gbtn:not(:disabled):hover { background: var(--lr-red-soft); }
.rc-going.is-going .rc-gbtn { background: var(--lr-red); color: #fff; }
.rc-gbtn:disabled { opacity: .6; cursor: default; }
.rc-gcount { margin: 0; color: var(--lr-muted); } .rc-gcount strong { color: var(--lr-ink); font-size: 1.1rem; }
.rc-vote-bar { position: relative; }
.rc-vote-bar .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--lr-ink); opacity: .55; border-radius: 1px; }
.tag-going { background: var(--lr-sand); color: var(--lr-ink); border: 1px solid var(--lr-line); }
@media (max-width: 900px) { .rc-going { order: 2; margin: 0; } }

/* ---- whole-site search /recherche (2026-11-26) ---- */
.sr-hero { background: var(--lr-card); border-bottom: 1px solid var(--lr-line); padding: clamp(1.6rem, 4vw, 2.6rem) 0; }
.sr-hero-in { max-width: 860px; }
.sr-hero h1 { margin: 0 0 1rem; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--lr-ink); } .sr-hero h1::before { display: none !important; }
.sr-form { display: flex; gap: .5rem; }
.sr-form input { flex: 1; min-width: 0; padding: .9rem 1rem; font: inherit; font-size: 1.05rem; border: 1px solid var(--lr-line); border-radius: 14px; background: var(--lr-sand); color: var(--lr-ink); margin: 0; }
.sr-form button { flex: 0 0 auto; padding: 0 1.3rem; border: 0; border-radius: 14px; background: var(--lr-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; margin: 0; white-space: nowrap; }
.sr-try { margin: .8rem 0 0; font-size: .88rem; color: var(--lr-muted); display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.sr-try a { color: var(--lr-ink) !important; background: var(--lr-sand); border: 1px solid var(--lr-line); border-radius: 999px; padding: .15rem .65rem; text-decoration: none !important; }
.sr-wrap { max-width: 860px; margin: 0 auto; }
.sr-count { margin: .2rem 0 .8rem; color: var(--lr-muted); }
.sr-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.2rem; }
.sr-tabs button { border: 1px solid var(--lr-line); background: var(--lr-card); color: var(--lr-ink); border-radius: 999px; padding: .35rem .85rem; font: inherit; font-size: .88rem; cursor: pointer; margin: 0; }
.sr-tabs button span { color: var(--lr-muted); margin-left: .2rem; } .sr-tabs button.on { background: var(--lr-navy); border-color: var(--lr-navy); color: #fff; } .sr-tabs button.on span { color: #c9d3ff; }
.sr-group { margin: 0 0 1.8rem; }
.sr-group h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lr-muted); margin: 0 0 .6rem; } .sr-group h2::before { display: none !important; }
.sr-group h2 span { font-weight: 600; }
a.sr-item { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 1rem; margin: 0 0 .5rem; border: 1px solid var(--lr-line); border-radius: 14px; background: var(--lr-card);
  text-decoration: none !important; color: var(--lr-ink) !important; }
a.sr-item:hover { border-color: var(--lr-red); }
.sr-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.sr-t { font-weight: 700; font-size: 1.02rem; line-height: 1.3; } .sr-meta { font-size: .82rem; color: var(--lr-muted); }
.sr-snip { font-size: .9rem; color: var(--lr-muted); line-height: 1.45; }
.sr-item mark { background: #fff1b8; color: inherit; padding: 0 .1em; border-radius: 3px; }
:root[data-theme='dark'] .sr-item mark { background: #5a4a12; }
.sr-badge { flex: 0 0 auto; width: 58px; text-align: center; border-radius: 10px; background: var(--lr-navy); color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; padding: .35rem 0; line-height: 1.15; }
.sr-badge b { display: block; font-size: 1.25rem; } .sr-badge.ok { background: var(--lr-red); } .sr-badge.past { background: var(--lr-line); color: var(--lr-muted); }
.sr-more { border: 0; background: none; color: var(--lr-red); font: inherit; font-weight: 700; cursor: pointer; padding: .3rem 0; margin: 0; }
a.sr-cal { display: inline-block; margin-top: .2rem; font-size: .88rem; font-weight: 700; }
@media (max-width: 520px) { .sr-form button { padding: 0 .9rem; } }
.sr-tabs { justify-content: flex-start !important; }

/* ---- Plan du site (automatic, 2026-11-26) ---- */
.pds-intro { color: var(--lr-muted); }
.pds-grid { columns: 2 340px; column-gap: 2.2rem; margin-top: 1.4rem; }
.pds-sec { break-inside: avoid-column; margin: 0 0 1.8rem; display: inline-block; width: 100%; }
.pds-sec h2 { font-size: 1.15rem; margin: 0 0 .5rem; } .pds-sec h2::before { display: none !important; }
.pds-sec h2 span { font-size: .8rem; color: var(--lr-muted); font-weight: 600; margin-left: .3rem; }
.pds-sec h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lr-muted); margin: .9rem 0 .3rem; }
.pds-list { margin: 0 0 0 .2rem; padding-left: 1rem; }
.pds-list li { margin: .15rem 0; } .pds-list .pds-list { margin-top: .15rem; }
.pds-meta { font-size: .82rem; color: var(--lr-muted); }

/* ---- hero background previews (?fond=1|2|3), 2026-12-01 ---- */
.h3-hero.hb-on { background: #fffaf5; }
:root[data-theme='dark'] .h3-hero.hb-on { background: #0f1526; }
.hb { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hb svg { display: block; }

/* 2 — Parcours lumineux */
.hb-on-2 { --hb2-veil: #fffaf5; }
.hb2 { background: linear-gradient(135deg, #fff7ef 0%, #f3f7ff 60%, #eef8f2 100%); }
.hb2 svg { width: 100%; height: 100%; }
.hb2-river { fill: none; stroke: #9fd0f0; stroke-width: 34; stroke-linecap: round; opacity: .45; }
.hb2-citadelle { fill: #13203a; fill-opacity: .04; stroke: #13203a; stroke-opacity: .14; stroke-width: 2; }
.hb2-grid line { stroke: #13203a; stroke-opacity: .035; stroke-width: 1; }
.hb2-route { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; opacity: .75; animation: hb2-draw 12s ease-in-out infinite; }
.hb2-route.c1 { stroke: #c8372d; } .hb2-route.c2 { stroke: #1f7a4d; animation-delay: 2s; } .hb2-route.c3 { stroke: #2a4aa8; animation-delay: 4s; }
@keyframes hb2-draw { 0% { stroke-dashoffset: 1000; opacity: .75; } 45%, 80% { stroke-dashoffset: 0; opacity: .75; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.hb2-dots circle { stroke: #fff; stroke-width: 3; } .hb2-dots .d1 { fill: #c8372d; } .hb2-dots .d2 { fill: #1f7a4d; } .hb2-dots .d3 { fill: #2a4aa8; }
.hb2-pins .pin { stroke: #fff; stroke-width: 2.5; } .hb2-pins .pin.c1 { fill: #c8372d; } .hb2-pins .pin.c2 { fill: #1f7a4d; } .hb2-pins .pin.c3 { fill: #2a4aa8; }
.hb2-pins .ring { fill: none; stroke: #c8372d; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hb2-ping 3.2s ease-out infinite; }
@keyframes hb2-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }
:root[data-theme='dark'] .hb-on-2 { --hb2-veil: #0f1526; }
:root[data-theme='dark'] .hb2 { background: linear-gradient(135deg, #121a2e 0%, #0f1a33 60%, #0f2421 100%); }
:root[data-theme='dark'] .hb2-citadelle, :root[data-theme='dark'] .hb2-grid line { stroke: #ffffff; }
:root[data-theme='dark'] .hb2-dots circle, :root[data-theme='dark'] .hb2-pins .pin { stroke: #0f1526; }

/* 3 — Piste en couleurs */
.hb3 { background: radial-gradient(900px 420px at 92% -10%, #ffe1c9 0%, transparent 60%), linear-gradient(180deg, #fffaf5 0%, #fff1ea 100%); }
.hb3 svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb3-sun { position: absolute; right: 6%; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 120, .75) 0%, rgba(255, 186, 120, 0) 70%); animation: hb3-sun 9s ease-in-out infinite alternate; }
@keyframes hb3-sun { to { transform: scale(1.18) translateY(14px); opacity: .8; } }
.hb3-lane { fill: none; stroke: url(#hb3-g); stroke-width: 44; opacity: .2; }
.hb3-lane.l0 { opacity: .32; } .hb3-lane.l1 { opacity: .27; } .hb3-lane.l2 { opacity: .22; } .hb3-lane.l3 { opacity: .17; } .hb3-lane.l4 { opacity: .13; } .hb3-lane.l5 { opacity: .1; }
.hb3-line { fill: none; stroke: #ffffff; stroke-width: 3; stroke-dasharray: 30 26; stroke-opacity: .9; animation: hb-flow 2.2s linear infinite; }
@keyframes hb-flow { to { stroke-dashoffset: -56; } }
.hb3-confetti { position: absolute; inset: 0; }
.hb3-confetti .cf { position: absolute; bottom: -20px; width: 9px; height: 9px; border-radius: 2px; opacity: .7; animation: hb3-rise linear infinite; }
.cf.c0 { background: #c8372d; } .cf.c1 { background: #f0a23f; } .cf.c2 { background: #2a4aa8; } .cf.c3 { background: #1f7a4d; border-radius: 50%; } .cf.c4 { background: #f59aa8; border-radius: 50%; }
@keyframes hb3-rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .75; } 85% { opacity: .55; } 100% { transform: translateY(-560px) rotate(320deg); opacity: 0; } }
:root[data-theme='dark'] .hb3 { background: radial-gradient(900px 420px at 92% -10%, #4a2a2a 0%, transparent 60%), linear-gradient(180deg, #121a2e 0%, #0f1526 100%); }
:root[data-theme='dark'] .hb3-line { stroke: #0f1526; }

/* the hero text keeps a soft backing so it stays readable on every background */
.hb-on .h3-text { position: relative; }
.hb-on .h3-text::before { content: ""; position: absolute; inset: -18px -24px; z-index: -1; border-radius: 28px;
  background: radial-gradient(closest-side, rgba(255, 250, 245, .78), rgba(255, 250, 245, 0)); }
:root[data-theme='dark'] .hb-on .h3-text::before { background: radial-gradient(closest-side, rgba(15, 21, 38, .75), rgba(15, 21, 38, 0)); }
@media (max-width: 760px) { .hb-blob { filter: blur(50px); } .hb1 .b1, .hb1 .b3 { width: 340px; height: 340px; } .hb1 .rw4 { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hb *, .hb { animation: none !important; } .hb2-route { stroke-dashoffset: 0 !important; } .hb2-dots { display: none; }
  .hb-rw { display: none; } .hb3-confetti { display: none; }
}
.hb2-base { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; opacity: .35; }
.hb2-base.c1 { stroke: #c8372d; } .hb2-base.c2 { stroke: #1f7a4d; } .hb2-base.c3 { stroke: #2a4aa8; }
.hb2-route { stroke-width: 6; }
@keyframes hb2-draw { 0% { stroke-dashoffset: 1000; opacity: .85; } 50%, 85% { stroke-dashoffset: 0; opacity: .85; } 100% { stroke-dashoffset: 0; opacity: .25; } }

/* 4 — mix of 2 + 3 (?fond=4) */
.hb-on-4 { --hb2-veil: #fffaf5; }
.hb4 .hb3-lane { opacity: .16; } .hb4 .hb3-lane.l0 { opacity: .26; } .hb4 .hb3-lane.l1 { opacity: .21; }
.hb4 .hb2-route { stroke-width: 6; }
.hb4 .hb3-confetti .cf { opacity: .55; }
:root[data-theme='dark'] .hb-on-4 { --hb2-veil: #0f1526; }
/* runners (glowing dots with a short trail) going round the hero track, anti-clockwise */
.tr-dot.t0 { stroke: #fff; stroke-width: 2.5; } .tr-dot.t1 { opacity: .55; } .tr-dot.t2 { opacity: .35; } .tr-dot.t3 { opacity: .2; }
.tr-dot.a { fill: #ffd23f; } .tr-dot.b { fill: #13203a; } .tr-dot.c { fill: #ffffff; }
.tr-dot.c.t0 { stroke: #c8372d; }
.tr-dot.a.t0 { filter: drop-shadow(0 0 4px rgba(255, 210, 63, .9)); }
@media (prefers-reduced-motion: reduce) { .tr-runners { display: none; } }
:root[data-theme='dark'] .hb4 .hb3-lane { opacity: .24; } :root[data-theme='dark'] .hb4 .hb3-lane.l0 { opacity: .38; } :root[data-theme='dark'] .hb4 .hb3-lane.l1 { opacity: .31; }
:root[data-theme='dark'] .hb4 .hb3-line { stroke: #ffffff; stroke-opacity: .28; }
:root[data-theme='dark'] .hb4 .hb2-base { opacity: .5; }

/* ---- hero animation performance (2026-12-01): smooth scrolling on phones ----
   SVG stroke/SMIL animations repaint the whole drawing every frame. On touch devices and small screens the drawing stays
   still (only the glow and confetti move: GPU-composited transforms); everywhere, animations pause off-screen. */
.hb { contain: strict; }
.hb3-sun, .hb3-confetti .cf { will-change: transform; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .hb .hb3-line, .hb .hb2-route, .hb .hb2-pins .ring { animation: none !important; }
  .hb .hb2-route { stroke-dashoffset: 0 !important; opacity: .75; }
  .hb .hb2-dots { display: none; }
  .tr-dot.t1, .tr-dot.t2, .tr-dot.t3 { display: none; }
  .tr-dot.a.t0 { filter: none; }
  .hb3-confetti .cf:nth-child(n+7) { display: none; }
}
.h3-hero.hb-off .hb *, .h3-hero.hb-off .tr-runners * { animation-play-state: paused !important; }
.tr-layer { pointer-events: none; }
.tr-layer .tr-runners { display: inline; }
/* phone track runners (created by the hero script): GPU-moved dots over the track, under the bib */
.tr-hdot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; z-index: 0; pointer-events: none;
  will-change: transform; border: 2px solid #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .25); }
.tr-hdot.a { background: #ffd23f; } .tr-hdot.b { background: #13203a; } .tr-hdot.c { background: #fff; border-color: #c8372d; }

/* ---- installable app (2026-12-01) ---- */
.overlay-menu a.lrn-m-app { padding: .7rem .2rem; font-weight: 700; color: var(--lr-red) !important; text-decoration: none !important; border-bottom: 1px solid var(--lr-line); }
@media (display-mode: standalone) { .lrn-m-app, .lr-app-link, .lr-apptoast { display: none !important; } }
.lr-apptoast { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .7rem;
  padding: .7rem .8rem; border-radius: 16px; background: var(--lr-card); border: 1px solid var(--lr-line); box-shadow: 0 16px 40px -14px rgba(19, 32, 58, .45); }
.lr-apptoast[hidden] { display: none; }
.lr-apptoast img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.lr-apptoast span { flex: 1; min-width: 0; line-height: 1.25; } .lr-apptoast strong { display: block; font-size: .92rem; color: var(--lr-ink); }
.lr-apptoast small { color: var(--lr-muted); font-size: .8rem; }
.lr-apptoast-go { flex: 0 0 auto; padding: .45rem .8rem; border-radius: 999px; background: var(--lr-red); color: #fff !important; font-weight: 700; font-size: .88rem; text-decoration: none !important; }
.lr-apptoast-x { flex: 0 0 auto; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--lr-muted); cursor: pointer; padding: .2rem .3rem; margin: 0; }
.app-page .app-box { border: 1px solid var(--lr-line); border-radius: 16px; background: var(--lr-card); padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; }
.app-page .app-done { border-color: var(--lr-green); background: var(--lr-green-soft); }
.app-page .app-box h2 { font-size: 1.1rem; margin: 0 0 .5rem; } .app-page .app-box h2::before { display: none !important; }
.app-steps li { margin: .35rem 0; } .app-ico { display: inline-block; padding: 0 .35rem; border: 1px solid var(--lr-line); border-radius: 6px; font-size: .9em; }
.app-hint { color: var(--lr-muted); font-size: .88rem; margin: .6rem 0 0; }
.app-lead, .off-lead { color: var(--lr-muted); }
.off-saved h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lr-muted); margin: 1rem 0 .3rem; }
