/* ═══════════════════════════════════════════════════════════
   RUNNER HUB — mobile-first (unified spec §39, §40)

   Independence Marathon's own language: deep black, marathon red,
   gold, restrained grey, condensed display type for headings and a
   highly legible body face for the things a runner actually has to
   read — addresses, dates, instructions (§39).

   Fewer cards. Grouped sections, strong hierarchy, dividers and bottom
   sheets instead of a grid of equal boxes. Touch targets are 48px on
   anything primary, and the 320px layout never scrolls sideways (§40).
   ═══════════════════════════════════════════════════════════ */

.rh {
  --rh-bg: #090b0f;
  --rh-surface: #11151b;
  --rh-surface-2: #181d25;
  --rh-line: #282f3a;
  --rh-ink: #f7f7f4;
  --rh-mid: #a8b0bc;
  --rh-dim: #747e8d;
  --rh-red: #c51f35;
  --rh-red-bright: #ff9ca5;
  --rh-gold: #e8c45b;
  --rh-ok: #58d68d;
  --rh-radius: 16px;
  --rh-shadow: 0 20px 60px rgba(0, 0, 0, .28);

  --rh-nav-h: 62px;

  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 75% -10%, rgba(197, 31, 53, .16), transparent 34%),
    radial-gradient(circle at 10% 35%, rgba(232, 196, 91, .05), transparent 26%),
    var(--rh-bg);
  color: var(--rh-ink);
  font-family: var(--font-body, 'Montserrat', system-ui, sans-serif);
}

/* Support library: intentionally one calm browse surface instead of separate
   assessment, content and provider walls. */
.rh-library { overflow:hidden; }
.rh-library__head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.rh-library__head p:not(.rh-eyebrow) { margin:7px 0 0; color:var(--rh-mid); line-height:1.55; }
.rh-library__count { display:grid; place-items:center; min-width:44px; height:44px; border-radius:14px; background:var(--rh-surface-2); color:var(--rh-gold); font-weight:800; }
.rh-results__hero--compact { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:20px; min-height:0; }
.rh-results__hero--compact h1 { margin-bottom:0; font-size:clamp(1.7rem,8vw,2.45rem); }
.rh-results__hero--compact .rh-chips { justify-content:flex-end; margin:0; }
.rh-library__flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:6px; margin:18px 0 4px; padding:10px; border:1px solid var(--rh-line); border-radius:14px; background:rgba(255,255,255,.025); }
.rh-library__flow span { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:center; gap:5px; color:var(--rh-mid); font-size:.65rem; line-height:1.25; font-weight:750; }
.rh-library__flow b { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:rgba(232,196,91,.14); color:var(--rh-gold); font-size:.65rem; }
.rh-library__flow i { display:none; }
.rh-library__search { min-height:48px; display:flex; align-items:center; gap:10px; margin:20px 0 12px; padding:0 14px; border:1px solid var(--rh-line); border-radius:14px; background:var(--rh-surface-2); }
.rh-library__search:focus-within { border-color:var(--rh-gold); box-shadow:0 0 0 3px rgba(248,179,28,.18); }
.rh-library__search input { width:100%; border:0; outline:0; background:transparent; font:inherit; color:var(--rh-ink); }
.rh-library__filters { display:flex; gap:8px; overflow:auto; padding-bottom:4px; scrollbar-width:none; }
.rh-library__filters button { min-height:44px; padding:0 16px; border:1px solid var(--rh-line); border-radius:999px; background:var(--rh-surface-2); color:var(--rh-mid); font-weight:750; white-space:nowrap; }
.rh-library__filters button.is-on { border-color:var(--rh-gold); background:var(--rh-gold); color:#151515; }
.rh-library__list { display:grid; gap:12px; margin-top:16px; }
.rh-library-card { display:grid; grid-template-columns:44px minmax(0,1fr); gap:13px; padding:16px; border:1px solid var(--rh-line); border-radius:18px; background:linear-gradient(145deg,var(--rh-surface-2),var(--rh-surface)); }
.rh-library-card__icon { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:#222a34; color:var(--rh-ink); }
.rh-product-card { position:relative; overflow:hidden; grid-template-columns:44px minmax(0,1fr); padding-top:156px; }
.rh-product-cover { position:absolute; inset:0 0 auto; height:140px; overflow:hidden; background:#e7eef2; }
.rh-product-cover::after { content:''; position:absolute; inset:auto 0 0; height:50%; background:linear-gradient(transparent,rgba(10,35,49,.18)); pointer-events:none; }
.rh-product-cover img { width:100%; height:100%; object-fit:cover; }
.rh-product-cover.is-logo { background:#fff; }
.rh-product-cover.is-logo img { padding:25px 22px; object-fit:contain; }
.rh-product-cover--fallback { display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#173f55,#2f6b83); }
.rh-product-cover--fallback .rh-i { font-size:38px; opacity:.9; }
.rh-provider-brand { display:flex; align-items:center; gap:9px; margin-top:12px; }
.rh-provider-brand > img { width:72px; height:34px; flex:0 0 72px; padding:3px; border:1px solid rgba(15,48,67,.1); border-radius:10px; background:#fff; object-fit:contain; }
.rh-provider-brand > span { display:grid; width:34px; height:34px; flex:0 0 34px; place-items:center; border-radius:10px; color:#fff; background:#173f55; font-weight:850; }
.rh-provider-brand small { color:var(--rh-mid); line-height:1.25; }
.rh-provider-brand strong { color:var(--rh-ink); }
.rh-product-card.is-completed { border-color:rgba(22,115,74,.2); }
.rh-library-card--assessment .rh-library-card__icon { background:rgba(232,196,91,.13); color:var(--rh-gold); }
.rh-library-card__body h3 { margin:5px 0 6px; font-size:1rem; color:var(--rh-ink); }
.rh-library-card__body > p { margin:0 0 7px; color:var(--rh-mid); line-height:1.5; }
.rh-library-card__body > small { color:var(--rh-dim); }
.rh-library-card__meta { display:flex; justify-content:space-between; gap:8px; color:var(--rh-dim); font-size:.75rem; text-transform:uppercase; letter-spacing:.07em; font-weight:800; }
.rh-library-card__actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.rh-library-card details { margin-top:12px; border-top:1px solid var(--rh-line); padding-top:12px; }
.rh-library-card summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--rh-ink); font-weight:800; }
.rh-library-card summary .rh-i { margin-left:auto; color:var(--rh-gold); }
.rh-contact-consent { display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; margin:16px 0; padding:14px; border:1px solid rgba(232,196,91,.28); border-radius:14px; background:rgba(232,196,91,.055); }
.rh-contact-consent > .rh-i { color:var(--rh-gold); }
.rh-contact-consent .rh-check { margin:0; align-items:flex-start; }
.rh-contact-consent .rh-check span { display:grid; gap:4px; }
.rh-contact-consent .rh-check small { color:var(--rh-mid); line-height:1.5; font-weight:500; }
.rh-update-readiness { margin:2px 0 12px; opacity:.82; }
.rh-library__empty { padding:32px 16px; text-align:center; border:1px dashed var(--rh-line); border-radius:18px; color:var(--rh-mid); }
.rh-library__empty .rh-i { display:block; margin-bottom:8px; font-size:28px; }
@media (min-width:760px) { .rh-library__list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:430px) {
  .rh-results__hero--compact { display:block; }
  .rh-results__hero--compact .rh-chips { justify-content:flex-start; margin-top:12px; }
  .rh-library__flow span { font-size:.61rem; }
}

body.rh-locked { overflow: hidden; }

/* The hub mounts inside #app.page-content, which carries the site's page
   transition (`transform: translateY(0)` plus `will-change: transform`).
   Either of those makes it the containing block for position:fixed
   descendants, so `.rh`'s `inset: 0` resolved against #app instead of the
   viewport — and because .rh is its only child and is itself out of flow,
   #app collapses to 0px tall. The hub inherited that 0 height, which
   crushed .rh-body to a sliver and pushed .rh-nav off-screen.
   While the hub is open there is no page transition to preserve, so drop
   both and let `.rh` fix to the viewport as intended. */
body.runner-hub-open .page-content {
  position: fixed;
  inset: 0;
  z-index: 900;
  width: 100%;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  transform: none;
  will-change: auto;
  transition: none;
}

/* Signed-out Runner Hub: accurate promises and secure-access hierarchy. */
.runner-login { position: relative; overflow: hidden; }
.runner-login::before { content: ''; position: absolute; width: 380px; height: 380px; right: -185px; top: -190px; border: 56px solid rgba(177, 18, 38, .08); border-radius: 50%; pointer-events: none; }
.runner-login__grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(38px, 7vw, 96px); align-items: center; }
.runner-login__panel { padding: clamp(22px, 3.2vw, 34px); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); box-shadow: 0 16px 44px rgba(0,0,0,.2); }
.runner-login__eyebrow { display: block; margin-bottom: 10px; color: #e9c349; font-size: .67rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.runner-login__intro { max-width: 34rem; margin: 10px 0 19px; color: var(--text-mid); font-size: .88rem; line-height: 1.6; }
.runner-login__form { display: grid; gap: 2px; }
.runner-login__form .form-input { min-height: 52px; border-radius: 10px; background: rgba(0,0,0,.24); }
.runner-login__form .form-input:focus { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(177,18,38,.16); }
.runner-login__code { text-transform: uppercase; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.runner-login__remember { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; color: var(--text-mid); font-size: .8rem; cursor: pointer; }
.runner-login__remember input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--crimson); }
/* Sign-in failures render here rather than in a toast that a runner on a
   phone can easily miss and then retry into the attempt ceiling. */
.runner-login__error { display: flex; gap: 8px; margin: 4px 0 10px; padding: 11px 13px; border: 1px solid rgba(177,18,38,.42); border-radius: 10px; color: #ffc9d0; background: rgba(177,18,38,.14); font-size: .82rem; line-height: 1.5; }
.runner-login__error[hidden] { display: none; }
.runner-login__submit { width: 100%; min-height: 52px; margin-top: 4px; border-radius: 10px; box-shadow: 0 14px 34px rgba(177,18,38,.22); }
.runner-login__submit[disabled] { opacity: .72; cursor: progress; }
.runner-login__help { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 14px; border: 1px solid rgba(233,195,73,.18); border-radius: 10px; color: var(--text-mid); background: rgba(233,195,73,.045); }
.runner-login__help span { flex: 0 0 auto; color: #e9c349; }
.runner-login__help p, .runner-login__contact { margin: 0; font-size: .76rem; line-height: 1.55; }
.runner-login__contact { margin-top: 14px; text-align: center; color: var(--text-light); }
.runner-login__contact a { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }
.runner-login__preview h2 { max-width: 520px; }
.runner-login__features { margin-top: 22px; border-top: 1px solid var(--border); }
.runner-login__feature { display: grid; grid-template-columns: 34px 44px 1fr; gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--border); }
.runner-login__feature-no { padding-top: 3px; color: var(--text-light); font-family: var(--font-display); font-size: .68rem; letter-spacing: .1em; }
.runner-login__feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #b11226, #781020); }
.runner-login__feature strong { display: block; color: #fff; font-family: var(--font-display); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.runner-login__feature p { margin: 5px 0 0; color: var(--text-mid); font-size: .83rem; line-height: 1.55; }
@media (max-width: 760px) {
  .runner-login__grid { grid-template-columns: 1fr; gap: 46px; }
  .runner-login__panel { padding: 22px; }
  .runner-login__feature { grid-template-columns: 28px 40px 1fr; gap: 11px; }
}

/* ── Top bar ──────────────────────────────────────────────── */

.rh-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(13px, env(safe-area-inset-top)) clamp(16px, 4vw, 28px) 12px;
  border-bottom: 1px solid var(--rh-line);
  background: rgba(9, 11, 15, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.rh-top__identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rh-top__identity > span:last-child { min-width: 0; }
.rh-top__identity strong { display: block; font-family: var(--font-display, 'Oswald', sans-serif); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.rh-top__identity small { display: block; margin-top: 1px; color: var(--rh-dim); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.rh-top__mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--rh-red), #7e1020); box-shadow: 0 8px 24px rgba(197, 31, 53, .25); }
.rh-top__mark .rh-i { font-size: 21px; }
.rh-top__actions { display: flex; gap: 7px; }

.rh-top__out {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--rh-line);
  border-radius: 12px;
  color: var(--rh-mid);
  cursor: pointer;
}

/* ── Scrolling body ───────────────────────────────────────── */

.rh-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 clamp(16px, 4vw, 28px) calc(var(--rh-nav-h) + env(safe-area-inset-bottom) + 32px);
}

.rh-loading { text-align: center; padding: 64px 16px; color: var(--rh-mid); }

.rh-spinner {
  width: 30px; height: 30px; margin: 0 auto 14px;
  border: 3px solid var(--rh-red); border-top-color: transparent;
  border-radius: 50%; animation: rh-spin 0.8s linear infinite;
}
@keyframes rh-spin { to { transform: rotate(360deg); } }

/* ── Hero: who am I ───────────────────────────────────────── */

.rh-hero { padding: 28px 0 20px; }
.rh-eyebrow { margin: 0 0 7px; color: var(--rh-gold); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.rh-hero__hi {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: clamp(28px, 9vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

.rh-hero__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--rh-mid);
}
.rh-hero__state.is-ok { color: var(--rh-ok); }
.rh-hero__state.is-wait { color: var(--rh-gold); }

/* ── Race block: what is my race ──────────────────────────── */

.rh-race {
  position: relative;
  overflow: hidden;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 196, 91, .24);
  border-radius: var(--rh-radius);
  background: linear-gradient(145deg, #1b1a18, #13161c 58%, #181219);
  box-shadow: var(--rh-shadow);
}
.rh-race::after { content: ''; position: absolute; width: 170px; height: 170px; right: -75px; bottom: -105px; border: 22px solid rgba(197, 31, 53, .12); border-radius: 50%; }
.rh-race__top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--rh-gold); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rh-race__main { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.rh-race__start { text-align: right; }
.rh-race__start small { display: block; color: var(--rh-dim); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.rh-race__start strong { display: block; margin-top: 3px; font-family: var(--font-display, 'Oswald', sans-serif); font-size: 25px; }

.rh-race__cat {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: clamp(24px, 7vw, 32px);
  text-transform: uppercase;
  color: var(--rh-red-bright);
  line-height: 1.1;
}

.rh-race__time {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 22px;
  margin-top: 4px;
}

.rh-race__date { font-size: 14px; color: var(--rh-mid); margin-top: 2px; }

.rh-race__venue {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--rh-mid); margin-top: 10px;
}
.rh-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 6px; }
.rh-progress__step { min-width: 0; padding: 11px 8px; border: 1px solid var(--rh-line); border-radius: 12px; background: rgba(17, 21, 27, .72); }
.rh-progress__icon { width: 24px; height: 24px; display: grid; place-items: center; margin-bottom: 8px; color: var(--rh-dim); border-radius: 50%; background: var(--rh-surface-2); }
.rh-progress__icon .rh-i { font-size: 14px; }
.rh-progress__step strong, .rh-progress__step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-progress__step strong { font-size: 11.5px; }
.rh-progress__step small { margin-top: 2px; color: var(--rh-dim); font-size: 9.5px; }
.rh-progress__step.is-done { border-color: rgba(88, 214, 141, .25); }
.rh-progress__step.is-done .rh-progress__icon { color: #06130b; background: var(--rh-ok); }

/* Runner readiness: one connected journey, not another dashboard widget. */
.rh-assess-card { margin: 18px 0 2px; padding: 20px; border: 1px solid rgba(197,31,53,.34); border-radius: 18px; background: radial-gradient(circle at 100% 0, rgba(197,31,53,.18), transparent 44%), linear-gradient(145deg, #191c23, #11151b); box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.rh-assess-card.is-complete { border-color: rgba(88,214,141,.28); background: radial-gradient(circle at 100% 0, rgba(88,214,141,.12), transparent 44%), linear-gradient(145deg, #191c23, #11151b); }
.rh-assess-card__head { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.rh-assess-card__icon { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(135deg, var(--rh-red), #7e1020); }
.rh-assess-card__icon .rh-i { font-size: 24px; }
.rh-assess-card__head small, .rh-assess-card__head strong { display: block; }
.rh-assess-card__head small { margin-bottom: 3px; color: var(--rh-gold); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.rh-assess-card__head strong { font-size: 15px; line-height: 1.25; }
.rh-assess-card > p { margin: 15px 0; color: var(--rh-mid); font-size: 13.5px; line-height: 1.6; }
.rh-status { padding: 6px 8px; color: var(--rh-gold); border: 1px solid rgba(232,196,91,.2); border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rh-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 16px; }
.rh-chips span { padding: 7px 10px; color: #e8eaee; border: 1px solid var(--rh-line); border-radius: 999px; background: rgba(255,255,255,.035); font-size: 11px; }

.rh-assessment { min-height: 100%; padding: 18px 0 26px; }
.rh-assessment__top { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; color: var(--rh-mid); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rh-assessment__top strong { color: var(--rh-gold); text-align: right; }
.rh-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rh-line); border-radius: 12px; color: #fff; background: transparent; cursor: pointer; }
.rh-assessment__progress { height: 4px; margin: 16px 0 34px; overflow: hidden; border-radius: 99px; background: var(--rh-surface-2); }
.rh-assessment__progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rh-red), var(--rh-gold)); transition: width .25s ease; }
.rh-assessment__body { max-width: 620px; margin: 0 auto; }
.rh-assessment__body h1, .rh-results__hero h1 { margin: 0; font-family: var(--font-display, 'Oswald', sans-serif); font-size: clamp(29px,8vw,42px); line-height: 1.08; text-transform: uppercase; }
.rh-assessment__hint { margin: 10px 0 24px; color: var(--rh-mid); font-size: 14px; line-height: 1.6; }
.rh-options { display: grid; gap: 9px; }
.rh-option { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; color: var(--rh-ink); text-align: left; border: 1px solid var(--rh-line); border-radius: 13px; background: var(--rh-surface); cursor: pointer; font-size: 14px; }
.rh-option .rh-i { color: var(--rh-dim); }
.rh-option.is-on { border-color: rgba(197,31,53,.72); background: linear-gradient(90deg, rgba(197,31,53,.16), rgba(197,31,53,.04)); }
.rh-option.is-on .rh-i { color: var(--rh-red-bright); }
.rh-assessment__foot { max-width: 620px; display: flex; justify-content: flex-end; gap: 10px; margin: 28px auto 0; }
.rh-assessment__foot .rh-btn { flex: 1; }
.rh-save-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--rh-dim); font-size: 11px; }
.rh-check { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 15px; color: var(--rh-mid); border: 1px solid var(--rh-line); border-radius: 13px; font-size: 13px; line-height: 1.5; }
.rh-check input, .rh-task input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--rh-red); }
.rh-consent-summary, .rh-safety { display: flex; align-items: flex-start; gap: 12px; padding: 15px; margin: 18px 0; border: 1px solid rgba(232,196,91,.22); border-radius: 14px; background: rgba(232,196,91,.055); }
.rh-consent-summary > .rh-i, .rh-safety > .rh-i { color: var(--rh-gold); font-size: 24px; }
.rh-consent-summary p, .rh-safety p { margin: 0; color: var(--rh-mid); font-size: 12.5px; line-height: 1.55; }
.rh-subtitle { margin: 25px 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.rh-results { padding: 28px 0; }
.rh-results__hero { padding: 25px; overflow: hidden; border: 1px solid rgba(232,196,91,.22); border-radius: 20px; background: radial-gradient(circle at 100% 0, rgba(197,31,53,.22), transparent 44%), linear-gradient(145deg,#1b1a18,#11151b); box-shadow: var(--rh-shadow); }
.rh-results__hero h1 { color: var(--rh-red-bright); }
.rh-results__hero > p:not(.rh-eyebrow) { margin: 10px 0 0; color: var(--rh-mid); font-size: 14px; line-height: 1.6; }
.rh-safety { border-color: rgba(88,214,141,.24); background: rgba(88,214,141,.055); }
.rh-safety > .rh-i { color: var(--rh-ok); }
.rh-recommend { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--rh-line); }
.rh-recommend:last-child { border-bottom: 0; }
.rh-recommend > .rh-i { width: 42px; height: 42px; display: grid; place-items: center; color: var(--rh-gold); border-radius: 12px; background: var(--rh-surface-2); }
.rh-recommend strong { font-size: 14px; }
.rh-recommend p { margin: 5px 0 0; color: var(--rh-mid); font-size: 12.5px; line-height: 1.55; }
.rh-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rh-section-head .rh-group__t { margin-bottom: 5px; }
.rh-section-head strong { font-size: 13px; }
.rh-ring { --value:0; width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side,var(--rh-bg) 77%,transparent 78%), conic-gradient(var(--rh-red) calc(var(--value) * 1%),var(--rh-line) 0); font-size: 10px; font-weight: 700; }
.rh-task-list { margin-top: 15px; }
.rh-task { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rh-line); cursor: pointer; }
.rh-task:last-child { border: 0; }
.rh-task span { min-width: 0; }
.rh-task strong, .rh-task small { display: block; }
.rh-task strong { font-size: 13.5px; }
.rh-task small { margin-top: 3px; color: var(--rh-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.rh-task.is-done strong { color: var(--rh-dim); text-decoration: line-through; }
.rh-race-week-card { margin: 18px 0; padding: 21px; border: 1px solid rgba(232,196,91,.32); border-radius: 18px; background: radial-gradient(circle at 90% 10%,rgba(232,196,91,.16),transparent 38%),linear-gradient(145deg,#201b13,#12151a); box-shadow: var(--rh-shadow); }
.rh-race-week-card > div:first-of-type { display:flex;align-items:center;justify-content:space-between;gap:14px; }
.rh-race-week-card h2 { margin:0;font-family:var(--font-display);font-size:25px;text-transform:uppercase; }
.rh-race-week-card > div > .rh-i { color:var(--rh-gold);font-size:30px; }
.rh-race-week-card > p:not(.rh-eyebrow) { color:var(--rh-mid);font-size:13px;line-height:1.55; }
.rh-race-week-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0; }
.rh-race-week-grid span { min-width:0;padding:10px;border:1px solid var(--rh-line);border-radius:11px;background:rgba(0,0,0,.15); }
.rh-race-week-grid small,.rh-race-week-grid strong { display:block;overflow:hidden;text-overflow:ellipsis; }
.rh-race-week-grid small { color:var(--rh-dim);font-size:8px;letter-spacing:.12em;text-transform:uppercase; }
.rh-race-week-grid strong { margin-top:4px;font-size:11px;white-space:nowrap; }
.rh-calendar-icon { color:var(--rh-gold);font-size:28px; }
.rh-week-track { display:flex;gap:9px;margin:18px 0;padding:4px 1px 12px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity; }
.rh-week-dot { min-width:68px;padding:10px 8px;border:1px solid var(--rh-line);border-radius:12px;color:var(--rh-dim);background:var(--rh-surface);scroll-snap-align:start;cursor:pointer; }
.rh-week-dot span,.rh-week-dot small { display:block; }
.rh-week-dot span { width:25px;height:25px;display:grid;place-items:center;margin:0 auto 6px;border-radius:50%;background:var(--rh-surface-2);font-size:11px;font-weight:700; }
.rh-week-dot small { overflow:hidden;text-overflow:ellipsis;font-size:8px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap; }
.rh-week-dot.is-current { color:#fff;border-color:rgba(197,31,53,.7);background:rgba(197,31,53,.1); }
.rh-week-dot.is-current span { background:var(--rh-red); }
.rh-week { padding:18px;border:1px solid var(--rh-line);border-radius:16px;background:linear-gradient(145deg,var(--rh-surface-2),var(--rh-surface)); }
.rh-week__head { display:flex;align-items:center;justify-content:space-between;gap:14px; }
.rh-week__head small,.rh-week__head strong { display:block; }
.rh-week__head small { color:var(--rh-gold);font-size:8px;letter-spacing:.1em;text-transform:uppercase; }
.rh-week__head strong { margin-top:5px;font-size:16px; }
.rh-week__head em { color:var(--rh-gold);font-size:12px;font-style:normal; }
.rh-week > p { margin:12px 0;color:var(--rh-mid);font-size:12.5px;line-height:1.55; }
.rh-support-list { margin:14px 0; }
.rh-support-row { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--rh-line); }
.rh-support-row strong,.rh-support-row small { display:block; }
.rh-support-row strong { font-size:13px; }
.rh-support-row small { margin-top:3px;color:var(--rh-dim);font-size:10px; }
.rh-support-row em { padding:5px 7px;color:var(--rh-gold);border:1px solid rgba(232,196,91,.2);border-radius:99px;font-size:8px;font-style:normal;letter-spacing:.08em;text-transform:uppercase; }

/* ── Grouped sections, not a grid of cards (§39) ──────────── */

.rh-group { padding: 22px 0; border-bottom: 1px solid var(--rh-line); }
.rh-group:last-child { border-bottom: 0; }

.rh-group__t {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rh-dim);
  margin: 0 0 14px;
}

.rh-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rh-line:last-child { border-bottom: 0; }

.rh-line__k { font-size: 13px; color: var(--rh-mid); flex: 0 0 auto; }
.rh-line__v { font-size: 15px; text-align: right; word-break: break-word; }
.rh-line__v.is-dim { color: var(--rh-dim); font-style: italic; }

.rh-next { font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.rh-note { font-size: 13.5px; line-height: 1.6; color: var(--rh-mid); margin: 12px 0 0; }
.rh-offline { display:flex; gap:10px; align-items:flex-start; margin:0 0 14px; padding:12px 14px; border:1px solid rgba(233,195,73,.35); border-radius:14px; background:rgba(233,195,73,.09); color:var(--rh-mid); font-size:12.5px; line-height:1.45; }
.rh-offline .rh-i { color:var(--rh-gold); font-size:21px; }
.rh-offline p { margin:0; }
.rh-empty { font-size: 14px; color: var(--rh-dim); margin: 0 0 16px; }

.rh-station { padding: 14px 0 4px; }
.rh-station__n { font-family: var(--font-display, 'Oswald', sans-serif); font-size: 20px; text-transform: uppercase; }
.rh-station__a { font-size: 14px; color: var(--rh-mid); margin-top: 4px; line-height: 1.5; }
.rh-station__h { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--rh-mid); margin-top: 8px; }

/* ── Actions: one primary, never a row of equals (§28) ────── */

.rh-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  background: var(--rh-red);
  color: #fff;
  border: 0;
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(197, 31, 53, .22);
}
.rh-cta:disabled { opacity: 0.45; cursor: not-allowed; }
.rh-cta:active:not(:disabled) { opacity: 0.85; }

.rh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--rh-line);
  background: transparent;
  color: var(--rh-ink);
  cursor: pointer;
  flex: 1 1 auto;
  border-radius: 12px;
}
.rh-btn--primary { border-color: var(--rh-red); background: var(--rh-red); color: #fff; }
.rh-action-card { margin-top: 18px; padding: 18px; border: 1px solid var(--rh-line); border-radius: var(--rh-radius); background: linear-gradient(145deg, var(--rh-surface-2), var(--rh-surface)); }
.rh-btn--ghost:active { background: var(--rh-surface-2); }
.rh-btn--gold { border-color: var(--rh-gold); color: var(--rh-gold); }
.rh-btn--danger { border-color: rgba(177, 18, 38, 0.5); color: var(--rh-red-bright); }

/* ── Bottom navigation (§38) ──────────────────────────────── */

.rh-nav {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--rh-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 14, 19, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--rh-line);
}

.rh-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: var(--rh-dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.rh-nav__item.is-on { color: #fff; }
.rh-nav__item.is-on .rh-i { width: 38px; height: 26px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--rh-red); }
.rh-nav__item .rh-i { font-size: 23px; }

/* ── Pickup sheet (§29-30) ────────────────────────────────── */

.rh-sheet-wrap { position: fixed; inset: 0; z-index: 950; display: flex; align-items: flex-end; }
.rh-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }

.rh-sheet {
  position: relative;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--rh-surface, #131313);
  color: #f2f2f2;
  border-top: 3px solid #b11226;
  animation: rh-up 0.24s ease;
}
@keyframes rh-up { from { transform: translateY(100%); } }

.rh-sheet__grip { width: 42px; height: 4px; border-radius: 2px; background: #3a3a3a; margin: 10px auto 4px; }

.rh-sheet__t {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em;
  margin: 6px 16px 12px;
}

.rh-map { height: 34vh; min-height: 190px; background: #1b1b1b; }

.rh-list { flex: 1 1 auto; overflow-y: auto; padding: 8px 12px; }

.rh-loc {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 56px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-left: 3px solid transparent;
  color: #f2f2f2;
  cursor: pointer;
}
.rh-loc.is-on { border-left-color: #b11226; background: #241417; }
.rh-loc.is-full { opacity: 0.45; cursor: not-allowed; }

.rh-loc__n { display: block; font-size: 15px; font-weight: 600; }
.rh-loc__m { display: block; font-size: 12.5px; color: #a5a5a5; margin-top: 3px; }
.rh-loc__full { display: inline-block; margin-top: 6px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #ff8f8c; }

/* Row, so a sheet with Cancel + Save puts them side by side rather than
   stacking two full-width buttons. The pickup sheet's single .rh-cta is
   width:100% and still fills the row, so it is unaffected. */
.rh-sheet__foot { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #2a2a2a; }

/* ── Delivery choice sheet (collect vs door) ──────────────── */

/* .rh-sheet is a flex column capped at 92vh, so everything between the title
   and the footer has to live in its own scrolling region — otherwise the two
   choices, two inputs and the map simply overflow and the lower fields (and
   the Save button) cannot be reached at all.
   min-height:0 is the part that actually makes it scroll: a flex item defaults
   to min-height:auto, which refuses to shrink below its content, and overflow
   then has nothing to act on. */
.rh-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}

.rh-choice-group { padding: 4px 16px 0; }

.rh-choice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--rh-line); border-radius: 14px;
  background: var(--rh-surface); cursor: pointer;
}
.rh-choice.is-on { border-color: var(--rh-red); background: rgba(224, 58, 79, .09); }
.rh-choice input { margin-top: 3px; flex-shrink: 0; accent-color: var(--rh-red); }
.rh-choice strong { display: block; font-size: 14px; }
.rh-choice small { display: block; margin-top: 3px; font-size: 12px; color: var(--rh-mid); line-height: 1.45; }

.rh-field { display: block; padding: 0 16px; margin-top: 12px; }
.rh-field > span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rh-dim); margin-bottom: 6px; }
.rh-field > span em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: .75; }
.rh-field input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--rh-line); border-radius: 12px;
  background: var(--rh-surface-2); color: var(--rh-ink); font-size: 14px;
}
.rh-field input:focus { outline: none; border-color: var(--rh-red); }

/* Says plainly whether a pin exists — the one thing that decides whether the
   courier can navigate, so it should never be something you have to infer. */
.rh-pin-state { padding: 8px 16px 0; font-size: 12.5px; }
.rh-pin-state__none { color: var(--rh-gold); display: inline-flex; align-items: center; gap: 6px; }
.rh-pin-state__set { color: var(--rh-ok, #58d68d); display: inline-flex; align-items: center; gap: 6px; }
.rh-pin-state .rh-i { font-size: 17px; }

/* ── Forms ────────────────────────────────────────────────── */

.rh-form { margin-top: 14px; }
.rh-lbl { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rh-dim); margin: 12px 0 6px; }

.rh-in {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  /* 16px stops iOS zooming the page when the field takes focus. */
  font-size: 16px;
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  color: #f2f2f2;
}
.rh-in:focus { outline: none; border-color: #b11226; }

/* ── Toasts ───────────────────────────────────────────────── */

.rh-toasts {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(var(--rh-nav-h, 62px) + 16px + env(safe-area-inset-bottom));
  z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
}

.rh-toast {
  padding: 13px 16px;
  font-size: 14px;
  background: #2a2a2a;
  color: #f2f2f2;
  border-left: 3px solid #6f6f6f;
  transition: opacity 0.25s ease;
}
.rh-toast--ok { border-left-color: #4ade80; }
.rh-toast--error { border-left-color: #ff8f8c; }
.rh-toast--info { border-left-color: #e9c349; }

.rh-tour { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 18px; background: rgba(4, 6, 10, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rh-tour[hidden] { display: none; }
.rh-tour__card { width: min(100%, 430px); padding: 24px; border: 1px solid var(--rh-line); border-radius: 20px; background: linear-gradient(155deg, var(--rh-surface-2), var(--rh-surface)); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.rh-tour__count { color: var(--rh-gold); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rh-tour__icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 18px 0 15px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--rh-red), #851224); }
.rh-tour__icon .rh-i { font-size: 27px; }
.rh-tour h2 { margin: 0; font-family: var(--font-display, 'Oswald', sans-serif); font-size: 28px; line-height: 1.08; text-transform: uppercase; }
.rh-tour p { margin: 10px 0 0; color: var(--rh-mid); font-size: 14px; line-height: 1.65; }
.rh-tour__actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 24px; }

/* ── Material symbols, used sparingly ─────────────────────── */

.rh-i {
  display: inline-block;
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-user-select: none;
  user-select: none;
}

/* The labels beside these decorative icons remain usable if Google Fonts is
   blocked, a content blocker is active, or the runner is temporarily offline. */
html:not(.rh-icons-ready) .rh-i {
  width: 0 !important;
  min-width: 0 !important;
  font-size: 0 !important;
  opacity: 0 !important;
}

/* Thrive x iMarathon campaign — retained beside the provider-driven library. */
.rh-thrive-placement {
  margin:18px 0 2px;
  overflow:hidden;
  border:1px solid rgba(68,154,78,.28);
  border-radius:20px;
  background:#f5faf2;
  box-shadow:0 18px 48px rgba(15,48,67,.12);
}
.rh-thrive-placement__art { width:100%; min-height:44px; display:block; padding:0; background:#f5faf2; }
.rh-thrive-placement__art img { width:100%; aspect-ratio:2/1; object-fit:cover; }
.rh-thrive-placement__foot { display:flex; flex-direction:column; align-items:stretch; gap:12px; padding:14px; color:#173c2b; }
.rh-thrive-placement__foot small,.rh-thrive-placement__foot strong { display:block; }
.rh-thrive-placement__foot small { color:#4f725f; font-size:8px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.rh-thrive-placement__foot strong { margin-top:3px; font-size:13px; line-height:1.35; }
.rh-btn--thrive { min-height:48px; color:#073c20; border:1px solid #8fcf3f; background:#b4e652; font-weight:800; }
.rh-btn--thrive:hover { background:#c9f06a; }
.rh-btn--thrive:disabled { cursor:not-allowed; opacity:.48; }

.rh-prepare-stack { padding-bottom:28px; }
.rh-thrive-assessment {
  max-width:680px;
  margin:18px auto 28px;
  padding:20px;
  color:#153b29;
  border:1px solid #b9d8c6;
  border-radius:20px;
  background:radial-gradient(circle at 100% 0,rgba(172,225,79,.26),transparent 38%),linear-gradient(145deg,#fff,#f1f8ee);
  box-shadow:0 18px 48px rgba(15,48,67,.12);
}
.rh-thrive-assessment__top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.rh-thrive-assessment__top small,.rh-thrive-assessment__top strong { display:block; }
.rh-thrive-assessment__top small,.rh-thrive-kicker { color:#13824f; font-size:9px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.rh-thrive-assessment__top strong { margin-top:3px; font-size:13px; text-transform:uppercase; }
.rh-thrive-assessment__top em { color:#13824f; font-size:11px; font-style:normal; font-weight:800; white-space:nowrap; }
.rh-thrive-assessment__bar { height:5px; margin:15px 0 24px; overflow:hidden; border-radius:99px; background:#dce9df; }
.rh-thrive-assessment__bar span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#007d48,#a9da42); transition:width .25s ease; }
.rh-thrive-assessment h2,.rh-thrive-assessment h1 { margin:0; color:#153b29; font-family:var(--font-display,'Oswald',sans-serif); line-height:1.08; text-transform:uppercase; }
.rh-thrive-assessment h2 { font-size:clamp(23px,7vw,34px); }
.rh-thrive-assessment h1 { margin-top:10px; color:#087642; font-size:clamp(31px,9vw,45px); }
.rh-thrive-options { display:grid; gap:9px; margin-top:20px; }
.rh-thrive-option { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 15px; color:#254b38; text-align:left; border:1px solid #c8dacf; border-radius:13px; background:rgba(255,255,255,.8); font-size:14px; }
.rh-thrive-choice { width:23px; height:23px; flex:0 0 23px; display:grid; place-items:center; color:#fff; border:2px solid #8aa597; border-radius:50%; font-size:13px; font-weight:900; }
.rh-thrive-option.is-on { color:#073c20; border-color:#6fba49; background:#e9f7d8; }
.rh-thrive-option.is-on .rh-thrive-choice { border-color:#15834c; background:#15834c; }
.rh-thrive-assessment__actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.rh-thrive-assessment__actions .rh-btn { flex:1; }
.rh-thrive-assessment__actions .rh-btn--ghost { color:#2c5842; border-color:#b5ccbf; }
.rh-thrive-assessment--complete,.rh-thrive-assessment--provider { text-align:center; }
.rh-thrive-complete-icon { width:58px; height:58px; display:grid; place-items:center; margin:4px auto 0; color:#fff; border-radius:50%; background:linear-gradient(145deg,#087642,#a5d93e); font-size:30px; font-weight:900; }
.rh-thrive-assessment--complete>p:not(.rh-thrive-kicker),.rh-thrive-assessment--provider>p:not(.rh-thrive-kicker) { max-width:520px; margin:12px auto 20px; color:#4f725f; font-size:14px; line-height:1.6; }
.rh-cta--thrive { display:flex; align-items:center; justify-content:center; color:#073c20; background:linear-gradient(90deg,#a9dc47,#d8f36a); box-shadow:0 12px 30px rgba(73,145,50,.22); }
.rh-thrive-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:22px; text-align:left; }
.rh-thrive-steps span { min-width:0; display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:8px; padding:9px; border:1px solid #c9dbcf; border-radius:11px; background:rgba(255,255,255,.7); }
.rh-thrive-steps b { width:28px; height:28px; display:grid; place-items:center; color:#fff; border-radius:50%; background:#087642; font-size:11px; }
.rh-thrive-steps small { color:#345844; font-size:9.5px; line-height:1.35; }
.rh-thrive-reset { min-height:44px; margin-top:14px; padding:8px 14px; color:#087642; font-size:11px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }

@media (min-width:560px) {
  .rh-thrive-placement__foot { flex-direction:row; align-items:center; justify-content:space-between; }
  .rh-thrive-placement__foot .rh-btn { flex:0 0 auto; }
  .rh-thrive-assessment { padding:28px; }
  .rh-thrive-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .rh-thrive-assessment__actions .rh-btn { flex:0 1 180px; }
}

/* ── Desktop: the same sections, more room (§40) ──────────── */

@media (min-width: 769px) {
  .rh-body { padding-left: max(24px, calc(50vw - 390px)); padding-right: max(24px, calc(50vw - 390px)); }
  .rh-nav { grid-template-columns: repeat(5, minmax(0, 145px)); justify-content: center; }
  .rh-sheet { max-width: 640px; margin: 0 auto; max-height: 88vh; }
  .rh-sheet-wrap { align-items: center; }
}

/* Premium race companion layer — editorial, tactile and unmistakably personal. */
.rh {
  --rh-bg:#080b11;
  --rh-surface:#121721;
  --rh-surface-2:#1a202c;
  --rh-line:#252d3a;
  --rh-mid:#aeb7c5;
  --rh-dim:#758093;
  --rh-red:#e03a4f;
  --rh-red-bright:#ff91a0;
  --rh-gold:#f0cd65;
  --rh-radius:20px;
  --rh-shadow:0 24px 70px rgba(0,0,0,.34);
  /* Space to reserve under scrolling content: the 68px dock plus its 12px
     lift. Feeds .rh-body's padding and the toast offset, both of which
     otherwise sit behind the floating bar. */
  --rh-nav-h:80px;
  background:radial-gradient(circle at 76% -8%,rgba(224,58,79,.19),transparent 31%),radial-gradient(circle at 0 68%,rgba(240,205,101,.055),transparent 25%),linear-gradient(160deg,#080b11,#0b0f17 55%,#090c12);
}
.rh-top { min-height:70px;padding-left:clamp(17px,4vw,30px);padding-right:clamp(17px,4vw,30px);border-color:rgba(255,255,255,.07);background:rgba(8,11,17,.76); }
.rh-top__mark { width:42px;height:42px;flex-basis:42px;border-radius:14px;background:linear-gradient(145deg,#f04a60,#a51229);box-shadow:0 12px 30px rgba(224,58,79,.28); }
.rh-top__identity strong { font-size:15px;letter-spacing:.035em; }
.rh-top__out { width:42px;height:42px;border-radius:13px;border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.025); }
.rh-body { padding-bottom:calc(var(--rh-nav-h) + env(safe-area-inset-bottom) + 46px); }
.rh-hero { padding:34px 2px 24px; }
.rh-hero__hi { font-size:clamp(31px,9vw,44px);letter-spacing:-.025em;line-height:.98; }
.rh-race { padding:23px;margin-bottom:22px;border-color:rgba(240,205,101,.22);border-radius:22px;background:radial-gradient(circle at 90% 10%,rgba(224,58,79,.2),transparent 33%),linear-gradient(145deg,#20201c,#141923 58%,#1a1118);box-shadow:0 24px 60px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.035); }
.rh-race::after { width:220px;height:220px;right:-100px;bottom:-145px;border-width:28px; }
.rh-race__cat { font-size:clamp(35px,10vw,52px);letter-spacing:-.035em; }
.rh-race__time { font-size:22px; }
.rh-race-week-card,.rh-results__hero { border-radius:22px;box-shadow:var(--rh-shadow); }
.rh-group { padding:25px 2px;border-color:rgba(255,255,255,.07); }
.rh-group__t { font-family:var(--font-body,'Montserrat',sans-serif);font-size:16px;font-weight:750;letter-spacing:-.02em;text-transform:none; }
.rh-line { min-height:54px; }
.rh-cta,.rh-btn { border-radius:13px;min-height:50px;font-weight:720;transition:transform .14s ease,box-shadow .14s ease; }
.rh-cta { background:linear-gradient(135deg,#ed4359,#b51630);box-shadow:0 12px 30px rgba(224,58,79,.25); }
.rh-cta:active:not(:disabled),.rh-btn:active:not(:disabled){transform:scale(.985)}
.rh-btn--primary { background:linear-gradient(135deg,#ed4359,#b51630);box-shadow:0 10px 24px rgba(224,58,79,.2); }
.rh-btn--ghost { border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.025); }
.rh-station,.rh-recommend,.rh-week { border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018));border-color:rgba(255,255,255,.08); }
.rh-week-track { scrollbar-width:none; }
.rh-week-dot { border-radius:14px; }
.rh-week-dot.is-current { box-shadow:0 8px 22px rgba(224,58,79,.18); }
/* Floating dock. `.rh` is position:fixed and lays its children out as a
   flex column, so .rh-nav is a static flex item by default — left/bottom
   would be ignored while translateX(-50%) still applied, dragging the bar
   half off the left edge. Positioning it against .rh is what makes the
   offsets mean anything. */
.rh-nav {
  position:absolute;
  left:50%;
  right:auto;
  bottom:calc(12px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(calc(100% - 24px),760px);
  height:68px;
  padding-bottom:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:rgba(18,23,33,.88);
  -webkit-backdrop-filter:blur(22px);
  backdrop-filter:blur(22px);
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  overflow:hidden;
}
.rh-nav__item { margin:7px 3px;border-radius:14px; }
.rh-nav__item.is-on { background:linear-gradient(145deg,rgba(224,58,79,.2),rgba(224,58,79,.07)); }
.rh-nav__item.is-on .rh-i { background:transparent;color:var(--rh-red-bright); }
.rh-sheet { border-radius:24px 24px 0 0;box-shadow:0 -24px 80px rgba(0,0,0,.5); }
.rh-toast { border-radius:13px;background:#1b212c;box-shadow:0 15px 40px rgba(0,0,0,.4); }
.rh-offline { border-radius:15px; }
@media(min-width:769px){.rh-nav{bottom:18px}.rh-body{padding-bottom:120px}.rh-group{padding-left:4px;padding-right:4px}}
@media(prefers-reduced-motion:reduce){.rh *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
.rh-support-path__intro {
  max-width: 38rem;
  margin: .35rem 0 1.25rem;
  color: var(--rh-mid);
  line-height: 1.65;
}

.rh-offering-list {
  display: grid;
  gap: .85rem;
}

.rh-offering {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .035);
}

.rh-offering h3 { margin: .3rem 0 .45rem; font-size: 1.05rem; }
.rh-offering p { margin: 0 0 .7rem; color: var(--rh-mid); line-height: 1.55; }
.rh-offering small { display: block; color: var(--rh-dim); line-height: 1.45; }
.rh-offering__format { color: var(--rh-gold); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.rh-offering .rh-btn { width: 100%; min-height: 48px; }
.rh-offering__status { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; color: var(--rh-ok); font-weight: 700; }
.rh-offering__status .rh-i { font-size: 1.2rem; }

@media (min-width: 720px) {
  .rh-offering { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.35rem 1.5rem; }
  .rh-offering .rh-btn { width: auto; min-width: 9rem; }
}

.rh-guidance__summary { max-width: 38rem; margin: .55rem 0 1rem; color: var(--rh-mid); line-height: 1.65; }
.rh-guidance__by { display: flex; align-items: center; gap: .65rem; color: var(--rh-dim); font-size: .78rem; }
.rh-guidance__by img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; }
.rh-guidance__detail { margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.rh-guidance__detail summary { min-height: 48px; display: flex; align-items: center; color: var(--rh-gold); cursor: pointer; font-weight: 700; }
.rh-guidance__detail p { margin: 0 0 1rem; color: var(--rh-mid); white-space: pre-line; line-height: 1.7; }
.rh-guidance__actions { display: grid; grid-template-columns: 1fr; gap: .65rem; margin-top: 1rem; }
.rh-guidance__actions .rh-btn { min-height: 48px; }
@media (min-width: 720px) { .rh-guidance__actions { display: flex; } }

.rh-provider-checkin > details { margin-top: 1rem; }
.rh-provider-checkin > details > summary { display:flex; align-items:center; min-height:48px; color:var(--rh-gold); cursor:pointer; font-weight:750; }
.rh-provider-checkin__questions { display:grid; gap:1rem; padding-top:.65rem; }
.rh-provider-question { display:grid; gap:.55rem; margin:0; padding:0; border:0; color:var(--rh-mid); }
.rh-provider-question legend, .rh-provider-question > span { margin-bottom:.25rem; color:var(--rh-ink); font-weight:700; line-height:1.45; }
.rh-provider-question label { display:flex; min-height:44px; align-items:center; gap:.65rem; padding:.65rem .8rem; border:1px solid rgba(255,255,255,.08); border-radius:10px; }
.rh-provider-question input[type="radio"], .rh-provider-question input[type="checkbox"] { width:20px; height:20px; accent-color:var(--rh-red); }

/* Premium light app theme — built for an installable, everyday Runner Hub. */
.rh {
  --rh-bg:#f3f6f8;
  --rh-surface:rgba(255,255,255,.78);
  --rh-surface-2:#eef3f6;
  --rh-line:rgba(15,48,67,.105);
  --rh-ink:#102f43;
  --rh-mid:#526b7a;
  --rh-dim:#7e909b;
  --rh-red:#b51f35;
  --rh-red-bright:#b51f35;
  --rh-gold:#b27a09;
  --rh-ok:#16734a;
  --rh-shadow:0 18px 60px rgba(30,62,81,.12),0 2px 8px rgba(30,62,81,.06);
  background:
    radial-gradient(circle at 8% 2%,rgba(190,215,229,.58),transparent 27%),
    radial-gradient(circle at 95% 20%,rgba(239,222,175,.32),transparent 28%),
    linear-gradient(180deg,#f8fafb 0%,#edf3f6 100%);
  color:var(--rh-ink);
}
.rh-top {
  border-color:rgba(255,255,255,.82);
  background:rgba(248,251,252,.72);
  box-shadow:0 10px 30px rgba(30,62,81,.055);
  backdrop-filter:blur(24px) saturate(165%);
  -webkit-backdrop-filter:blur(24px) saturate(165%);
}
.rh-top__mark { color:#fff; background:linear-gradient(145deg,#173f55,#0c2c40); box-shadow:0 9px 22px rgba(15,48,67,.2); }
.rh-top__out { color:var(--rh-ink); border-color:rgba(15,48,67,.1); background:rgba(255,255,255,.72); }
.rh-body { scrollbar-color:#c6d2d8 transparent; }
.rh-eyebrow { color:var(--rh-gold); }
.rh-hero__state.is-ok { color:#16734a; }
.rh-race,.rh-assess-card,.rh-results__hero,.rh-library-card,.rh-offering,.rh-week,.rh-action-card {
  border-color:rgba(255,255,255,.9);
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(248,251,252,.76));
  box-shadow:var(--rh-shadow);
  backdrop-filter:blur(18px) saturate(145%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
}
.rh-race { color:var(--rh-ink); }
.rh-race__top { border-color:var(--rh-line); color:var(--rh-mid); }
.rh-assess-card { border-color:rgba(181,31,53,.12); }
.rh-assess-card.is-complete { border-color:rgba(22,115,74,.14); background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(239,249,244,.84)); }
.rh-assess-card__icon { background:linear-gradient(145deg,#173f55,#0c2c40); box-shadow:none; }
.rh-results__hero { background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(245,249,251,.82)); }
.rh-results__hero h1 { color:var(--rh-ink); }
.rh-chips span { color:#355466; border-color:rgba(15,48,67,.12); background:rgba(255,255,255,.62); }
.rh-group__t { color:var(--rh-ink); }
.rh-group { border-color:var(--rh-line); }
.rh-library__count,.rh-library__search,.rh-library__filters button { border-color:rgba(15,48,67,.09); background:rgba(255,255,255,.72); }
.rh-library__flow { border-color:rgba(15,48,67,.08); background:rgba(255,255,255,.55); }
.rh-library__flow b { color:#fff; background:#173f55; }
.rh-library-card__icon { color:#173f55; background:#e6eef2; }
.rh-library-card--assessment .rh-library-card__icon { color:#8b6109; background:#fff3cf; }
.rh-library-card details,.rh-guidance__detail { border-color:var(--rh-line); }
.rh-contact-consent { border-color:rgba(178,122,9,.18); background:#fffaec; }
.rh-option,.rh-provider-question label { color:var(--rh-ink); border-color:rgba(15,48,67,.1); background:rgba(255,255,255,.72); }
.rh-option.is-on { border-color:#173f55; background:#e9f0f4; }
.rh-option.is-on .rh-i { color:#173f55; }
.rh-in { color:var(--rh-ink); border-color:rgba(15,48,67,.14); background:#fff; }
.rh-in:focus { border-color:#27617f; box-shadow:0 0 0 4px rgba(39,97,127,.12); }
.rh-btn--primary { border-color:#123b52; background:linear-gradient(135deg,#194b65,#0d3045); box-shadow:0 10px 24px rgba(15,48,67,.18); }
.rh-btn--ghost { color:var(--rh-ink); border-color:rgba(15,48,67,.11); background:rgba(255,255,255,.56); }
.rh-support-row,.rh-line,.rh-task { border-color:var(--rh-line); }
.rh-nav {
  border:1px solid rgba(255,255,255,.82);
  background:rgba(249,251,252,.78);
  box-shadow:0 18px 60px rgba(30,62,81,.16),inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter:blur(26px) saturate(175%);
  -webkit-backdrop-filter:blur(26px) saturate(175%);
}
.rh-nav__item { color:#718590; }
.rh-nav__item.is-on { color:#123b52; background:#e5edf2; }
.rh-nav__item.is-on .rh-i { color:#123b52; }
.rh-sheet { color:var(--rh-ink); border-color:rgba(255,255,255,.9); background:rgba(249,251,252,.94); box-shadow:0 -24px 80px rgba(30,62,81,.2); backdrop-filter:blur(24px); }
.rh-sheet-bg { background:rgba(15,35,48,.36); backdrop-filter:blur(4px); }
.rh-sheet__grip { background:#c2cdd3; }
.rh-tour { background:rgba(222,232,237,.58); backdrop-filter:blur(12px); }
.rh-tour__card { color:var(--rh-ink); border-color:rgba(255,255,255,.9); background:rgba(255,255,255,.9); box-shadow:0 30px 90px rgba(20,52,70,.22); }
@media (prefers-reduced-motion:no-preference) {
  .rh-library-card,.rh-offering,.rh-btn,.rh-nav__item { transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease; }
  .rh-library-card:hover,.rh-offering:hover { transform:translateY(-2px); box-shadow:0 22px 64px rgba(30,62,81,.15); }
}

/* Dedicated provider assessment — a quiet form page, never an inline accordion. */
.rh-form-page { width:min(100%,760px); margin:0 auto; padding:4px 0 110px; }
.rh.is-provider-form .rh-nav { display:none; }
.rh.is-provider-form .rh-body { padding-bottom:max(24px,env(safe-area-inset-bottom)); }
.rh-form-page__back { display:inline-flex; min-height:48px; align-items:center; gap:8px; margin:0 0 16px; padding:0 12px; border:0; border-radius:12px; color:var(--rh-ink); background:transparent; font:inherit; font-weight:750; cursor:pointer; }
.rh-form-page__back:hover,.rh-form-page__back:focus-visible { background:rgba(255,255,255,.72); outline:none; box-shadow:0 0 0 4px rgba(39,97,127,.12); }
.rh-provider-form { display:grid; gap:16px; }
.rh-form-card { padding:22px 18px; border:1px solid rgba(255,255,255,.92); border-radius:20px; background:rgba(255,255,255,.86); box-shadow:0 12px 40px rgba(30,62,81,.09); }
.rh-form-intro { margin-bottom:16px; overflow:hidden; }
.rh-form-intro h1 { margin:6px 0 10px; color:var(--rh-ink); font-size:clamp(28px,8vw,42px); line-height:1.08; letter-spacing:-.035em; }
.rh-form-intro > p:not(.rh-eyebrow) { max-width:38rem; margin:0; color:var(--rh-mid); line-height:1.65; }
.rh-form-identity { display:flex; align-items:center; gap:12px; margin-top:20px; padding:13px 14px; border:1px solid var(--rh-line); border-radius:14px; background:#f2f6f8; }
.rh-form-identity > .rh-i { display:grid; width:40px; height:40px; flex:0 0 40px; place-items:center; border-radius:50%; color:#fff; background:#173f55; }
.rh-form-identity span:last-child { display:grid; gap:2px; min-width:0; }
.rh-form-identity small { color:var(--rh-mid); line-height:1.4; }
.rh-question-count { display:block; margin-bottom:12px; color:var(--rh-gold); font-size:12px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.rh-form-question .rh-provider-question { gap:12px; }
.rh-form-question .rh-provider-question legend,.rh-form-question .rh-provider-question > span { font-size:18px; line-height:1.4; }
.rh-form-question .rh-provider-question label { min-height:52px; padding:12px 14px; border-radius:13px; }
.rh-form-question .rh-in { min-height:52px; border-radius:13px; }
.rh-form-consent { display:grid; gap:18px; }
.rh-form-consent > div > .rh-i { color:var(--rh-ok); font-size:28px; }
.rh-form-consent h2 { margin:8px 0 6px; font-size:21px; }
.rh-form-consent p { margin:0; color:var(--rh-mid); line-height:1.6; }
.rh-form-submit { position:sticky; z-index:5; bottom:82px; display:grid; gap:6px; padding:12px; border:1px solid rgba(255,255,255,.9); border-radius:18px; background:rgba(248,251,252,.9); box-shadow:0 14px 45px rgba(30,62,81,.18); backdrop-filter:blur(20px); }
.rh-form-submit .rh-btn { width:100%; }
.rh-form-submit small { color:var(--rh-mid); text-align:center; }
.rh-assessment-video { position:relative; width:calc(100% + 36px); margin:22px -18px -22px; aspect-ratio:16/9; overflow:hidden; background:#102f43; }
.rh-assessment-video iframe,.rh-assessment-video video { width:100%; height:100%; border:0; object-fit:cover; }
.rh-video-link { display:flex; min-height:52px; align-items:center; gap:10px; margin-top:20px; padding:0 16px; border:1px solid var(--rh-line); border-radius:13px; color:var(--rh-ink); background:#f2f6f8; font-weight:750; text-decoration:none; }
.rh-followup-page .rh-form-card > p:not(.rh-eyebrow) { margin:18px 0 0; color:var(--rh-mid); line-height:1.65; }
.rh-followup-timeline { display:grid; gap:0; margin-top:24px; }
.rh-followup-timeline > div { position:relative; display:grid; grid-template-columns:38px 1fr; gap:12px; min-height:70px; }
.rh-followup-timeline > div:not(:last-child)::after { content:''; position:absolute; left:18px; top:38px; bottom:0; width:2px; background:#d8e1e6; }
.rh-followup-timeline > div.is-done:not(:last-child)::after { background:#70ad90; }
.rh-followup-timeline > div > .rh-i { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; color:#7e909b; background:#edf2f4; }
.rh-followup-timeline > div.is-done > .rh-i { color:#fff; background:#16734a; }

/* Keep the Thrive completion/download action green after the generic light
   theme's crimson .rh-cta rule later in the cascade. */
.rh .rh-cta--thrive {
  color:#073c20;
  background:linear-gradient(90deg,#a9dc47,#d8f36a);
  box-shadow:0 12px 30px rgba(73,145,50,.22);
}
.rh-followup-timeline p { display:grid; align-content:start; gap:3px; margin:7px 0 0 !important; }
.rh-followup-timeline small { color:var(--rh-dim); }

@media (min-width:720px) {
  .rh-form-page { padding-top:18px; }
  .rh-form-card { padding:30px; border-radius:24px; }
  .rh-assessment-video { width:calc(100% + 60px); margin:28px -30px -30px; }
  .rh-form-submit { position:static; grid-template-columns:auto 1fr; align-items:center; padding:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none; }
  .rh-form-submit .rh-btn { width:auto; min-width:220px; }
  .rh-form-submit small { text-align:left; }
}
