/* WhichMarathon Glass design (Nov 2026). Built from the approved mockup in drafts/redesign-2026-11-v2.
   Loaded after style.css on every page: new pages use the r1-* classes; the end of this file re-skins
   the older shared classes (cards, panels, facts, sign-up forms, quiz) so the whole site matches. */
:root {
  --lime: #E7FF4B; --lime-soft: #F3FBC4; --blue: #2555ED; --blue-2: #4C7BFF; --orange: #FF5638; --ink: #141414; --green: #1FA463; --red: #E5383B; --amber: #F2A516;
  --page: #F2F2F7; --fg: #000;
  --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --sfd: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --sfr: ui-rounded, 'SF Pro Rounded', -apple-system, 'Inter', sans-serif;
  --geist: 'Geist', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--fg); font-family: var(--sf); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--page); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; }
h1, h2, h3 { text-wrap: balance; }
.w { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.tnum { font-variant-numeric: tabular-nums; }
.pb { padding-bottom: 140px; }
.hs { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.hs::-webkit-scrollbar { display: none; }
.hs > * { scroll-snap-align: start; }
/* ---------- Tab bars ---------- */
.tabbar { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 2px; padding: 6px; border-radius: 999px; max-width: calc(100vw - 20px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 7px 8px 6px; border-radius: 999px; text-decoration: none; font-size: 10.5px; font-weight: 600; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.tabbar svg { width: 24px; height: 24px; }
@media (max-width: 380px) { .tabbar a { min-width: 56px; padding-inline: 4px; } }
.tb1 { background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 12px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.95); color: #3C3C43; }
.tb1 a.on { color: var(--blue); background: rgba(37,85,237,.11); }
/* Shared bits */
.dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; flex-shrink: 0; }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); } .dot.green { background: var(--green); } .dot.grey { box-shadow: inset 0 0 0 2px #8E8E93; }
.bibtag { position: relative; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; letter-spacing: -.04em; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; line-height: 1; }
.bibtag::before, .bibtag::after { content: ""; position: absolute; top: 3px; width: 4px; height: 4px; border-radius: 9px; background: var(--ink); }
.bibtag::before { left: 3px; } .bibtag::after { right: 3px; }
.bibtag.o { background: var(--orange); }
/* =========================================================
   R1 GLASS
   ========================================================= */
.glass { background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 40px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.95); }
.glass-dark { background: rgba(20,20,20,.32); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.r1 { --sec: rgba(60,60,67,.62); --sep: rgba(60,60,67,.18); --card: #fff; }
.r1-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(242,242,247,.78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.r1-nav .w { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.r1-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.r1-logo .bibtag { width: 26px; height: 19px; border-width: 1.5px; transform: rotate(-6deg); font-size: 0; }
.r1-circ { width: 36px; height: 36px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; }
.r1-circ svg { width: 18px; height: 18px; }
.r1-title { font-family: var(--sfd); font-size: clamp(34px, 5vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; padding-top: 6px; }
.r1-sub { color: var(--sec); font-size: 17px; margin-top: 6px; max-width: 60ch; }
.r1-search { display: flex; align-items: center; gap: 8px; background: rgba(118,118,128,.12); border-radius: 12px; height: 42px; padding: 0 12px; color: var(--sec); margin-top: 14px; }
.r1-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.r1-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: #000; }
.r1-hero { position: relative; border-radius: 30px; overflow: hidden; height: clamp(440px, 58vw, 580px); margin-top: 18px; }
.r1-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r1-hero .panel { position: absolute; left: 14px; right: 14px; bottom: 14px; max-width: 540px; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.r1-hero h1 { font-family: var(--sfd); font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.r1-hero p { font-size: 16px; color: #1C1C1E; }
.r1-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--sec); }
.r1-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.r1-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.r1-btn.ink { background: #000; color: #fff; }
.r1-btn.lime { background: var(--lime); color: #000; }
.r1-btn.blue { background: var(--blue); color: #fff; }
.r1-btn.soft { background: rgba(118,118,128,.14); color: var(--blue); }
.r1-btn.sm { height: 34px; padding: 0 16px; font-size: 14.5px; }
.r1-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 40px 0 12px; }
.r1-head h2 { font-family: var(--sfd); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.r1-head a, .r1-link { color: var(--blue); text-decoration: none; font-size: 16px; white-space: nowrap; }
.r1-today { grid-auto-columns: minmax(270px, 330px); }
.r1-tc { position: relative; height: 420px; border-radius: 26px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; text-decoration: none; isolation: isolate; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.r1-tc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.r1-tc:hover img { transform: scale(1.04); }
.r1-tc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 45%); }
.r1-tc .k { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .9; }
.r1-tc h3 { font-family: var(--sfd); font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin-top: 4px; }
.r1-tc .bot { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 10px 10px 10px 14px; }
.r1-tc .bot span { flex: 1; font-size: 14px; font-weight: 600; }
.r1-get { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--blue); font-weight: 700; font-size: 14px; }
.r1-list { background: var(--card); border-radius: 20px; overflow: hidden; }
.r1-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 58px; text-decoration: none; position: relative; width: 100%; text-align: left; }
.r1-row + .r1-row::before { content: ""; position: absolute; top: 0; right: 0; left: 64px; border-top: .5px solid var(--sep); }
.r1-list.plain .r1-row + .r1-row::before { left: 16px; }
.r1-row:hover { background: rgba(0,0,0,.025); }
.r1-ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.r1-ic svg { width: 19px; height: 19px; }
.r1-row .t { flex: 1; min-width: 0; }
.r1-row .t b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.r1-row .t span { font-size: 14px; color: var(--sec); }
.r1-row .v { color: var(--sec); font-size: 15.5px; text-align: right; white-space: nowrap; }
.r1-row .chev { width: 8px; height: 14px; color: #C4C4C7; flex-shrink: 0; }
.r1-kv .r1-row { align-items: flex-start; }
.r1-kv .r1-row .k { width: 120px; flex-shrink: 0; font-size: 16px; }
.r1-kv .r1-row .v { white-space: normal; flex: 1; color: #000; text-align: right; }
.r1-kv .r1-row .v small { display: block; color: var(--sec); font-size: 13.5px; }
.r1-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .r1-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.r1-tile { background: var(--card); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-height: 168px; transition: transform .2s ease; }
.r1-tile:hover { transform: scale(.985); }
.r1-app { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.r1-app svg { width: 28px; height: 28px; }
.r1-tile b { font-size: 18px; letter-spacing: -.015em; display: block; }
.r1-tile span { font-size: 14px; color: var(--sec); }
.r1-article { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; height: 400px; border-radius: 28px; overflow: hidden; padding: 24px; color: #fff; text-decoration: none; isolation: isolate; }
.r1-article img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.r1-article::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,70,.65), rgba(10,20,70,0) 60%); }
.r1-article h3 { font-family: var(--sfd); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; max-width: 16ch; }
.r1-foot { margin-top: 48px; color: var(--sec); font-size: 13px; }
.r1-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.r1-foot a { color: var(--blue); text-decoration: none; }
/* R1 race */
.r1-rhero { position: relative; border-radius: 30px; overflow: hidden; height: clamp(400px, 52vw, 540px); color: #fff; isolation: isolate; margin-top: 12px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 22px 72px; }
.r1-rhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.r1-rhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,.65)); }
.r1-rhero h1 { font-family: var(--sfd); font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.r1-rhero .tl { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.r1-rhero .tl .r1-circ { width: 42px; height: 42px; }
.r1-wds { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -56px 12px 0; position: relative; z-index: 2; }
@media (min-width: 760px) { .r1-wds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.r1-wd { border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.r1-wd .l { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--sec); display: flex; align-items: center; gap: 6px; }
.r1-wd .l svg { width: 14px; height: 14px; }
.r1-wd .n { font-family: var(--sfd); font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.r1-wd .s { font-size: 13px; color: var(--sec); }
.r1-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .r1-2 { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.r1-card { background: var(--card); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.r1-card h3 { font-family: var(--sfd); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.r1-card p { color: var(--sec); font-size: 15.5px; }
.r1-prog { height: 8px; border-radius: 99px; background: rgba(118,118,128,.14); position: relative; overflow: hidden; }
.r1-prog i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--blue); }
.r1-progl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--sec); }
/* R1 plans */
.r1-segc { display: inline-flex; background: rgba(118,118,128,.12); border-radius: 10px; padding: 2px; margin-top: 16px; }
.r1-segc button { padding: 7px 22px; border-radius: 8px; font-weight: 600; font-size: 14.5px; }
.r1-segc button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.r1-feat { position: relative; border-radius: 30px; overflow: hidden; padding: 26px; min-height: 320px; display: grid; gap: 20px; background: linear-gradient(135deg, var(--lime) 0%, #F6FFB8 55%, #FFFFFF 100%); margin-top: 18px; }
@media (min-width: 820px) { .r1-feat { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px; } }
.r1-feat h2 { font-family: var(--sfd); font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.r1-feat .bibtag { font-size: clamp(56px, 9vw, 96px); padding: 22px 30px; border-width: 3px; border-radius: 12px; transform: rotate(-5deg); justify-self: center; }
.r1-feat .bibtag::before, .r1-feat .bibtag::after { width: 9px; height: 9px; top: 8px; }
.r1-feat .bibtag::before { left: 8px; } .r1-feat .bibtag::after { right: 8px; }
.r1-planrow .r1-plic { width: 62px; height: 62px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: -.05em; flex-shrink: 0; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.r1-planrow .r1-row + .r1-row::before { left: 92px; }
.r1-price { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 99px; background: rgba(118,118,128,.13); color: var(--blue); font-weight: 700; font-size: 15px; }
.r1-pages { display: flex; gap: 10px; justify-content: center; padding: 10px 0; }
.r1-pg { width: 30%; max-width: 150px; aspect-ratio: 210 / 297; background: #fff; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 8px; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 2px; }
.r1-pg i { background: #F2F2F7; border-radius: 2px; }
.r1-pg i.q { background: var(--lime-soft); } .r1-pg i.l { background: var(--lime); }
.r1-pg.p1 { display: flex; flex-direction: column; gap: 5px; }
.r1-pg.p1 span { height: 5px; border-radius: 3px; background: #E5E5EA; }
.r1-pg.p1 strong { font-size: 10px; letter-spacing: -.02em; }
/* R1 gear */
.r1-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 16px; padding-bottom: 2px; }
.r1-chip { white-space: nowrap; height: 36px; padding: 0 16px; border-radius: 99px; background: rgba(118,118,128,.12); font-weight: 600; font-size: 14.5px; }
.r1-chip[aria-pressed="true"] { background: #000; color: #fff; }
.r1-shelf { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.r1-prod { background: var(--card); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.r1-prod .art { aspect-ratio: 4 / 3; max-width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.r1-prod .art svg { width: 44%; height: auto; }
.r1-prod .art .best { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; }
.r1-prod .bd { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.r1-prod .slot { font-size: 12.5px; color: var(--sec); font-family: var(--mono); }
.r1-prod b { font-size: 18px; letter-spacing: -.015em; }
.r1-prod p { font-size: 14.5px; color: var(--sec); flex: 1; }
.r1-prod .ft { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--sec); }
.r1-temps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: rgba(118,118,128,.12); border-radius: 12px; padding: 3px; }
.r1-temps button { padding: 8px 4px; border-radius: 9px; font-size: 13.5px; font-weight: 600; }
.r1-temps button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
/* R1 race calculator */
.r1-calc { margin-top: 18px; border-radius: 28px; padding: 22px; display: grid; gap: 18px; background: linear-gradient(135deg, #2555ED 0%, #4B6FF5 100%); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.r1-calc::before { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(231,255,75,.55), rgba(231,255,75,0) 70%); z-index: -1; }
@media (min-width: 860px) { .r1-calc { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 30px; } }
.r1-calc .r1-eyebrow { color: rgba(255,255,255,.8); }
.r1-calc h2 { font-family: var(--sfd); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin-top: 4px; }
.r1-calc .lead { font-size: 16px; opacity: .9; margin-top: 6px; max-width: 38ch; }
.r1-cin { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.r1-cseg { display: inline-flex; align-self: flex-start; background: rgba(255,255,255,.16); border-radius: 11px; padding: 3px; }
.r1-cseg button { padding: 7px 16px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: #fff; }
.r1-cseg button[aria-pressed="true"] { background: #fff; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.r1-ctime { display: flex; align-items: center; gap: 6px; font-family: var(--sfd); font-size: 15px; font-weight: 600; }
.r1-ctime input { width: 58px; height: 50px; border: 0; border-radius: 13px; background: rgba(255,255,255,.95); color: #000; text-align: center; font-family: var(--sfd); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; outline: 0; }
.r1-ctime input:focus { box-shadow: 0 0 0 3px var(--lime); }
.r1-ctime i { font-style: normal; font-size: 22px; opacity: .8; }
.r1-ctime small { font-size: 12px; opacity: .75; font-weight: 500; margin-left: 4px; }
.r1-cout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r1-cres { border-radius: 22px; padding: 16px; color: #000; display: flex; flex-direction: column; gap: 2px; }
.r1-cres .l { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(60,60,67,.7); }
.r1-cres .n { font-family: var(--sfd); font-size: clamp(30px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.r1-cres .s { font-size: 13.5px; color: rgba(60,60,67,.8); }
.r1-cres.hi { background: var(--lime); }
.r1-cout .r1-btns { grid-column: 1 / -1; }
.r1-cout .r1-btn.wht { background: rgba(255,255,255,.18); color: #fff; }
.r1-pace .r1-cseg { background: rgba(118,118,128,.12); flex-wrap: wrap; }
.r1-pace .r1-cseg button { color: #000; padding: 7px 12px; }
.r1-splits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r1-splits div { background: #F2F2F7; border-radius: 16px; padding: 12px; }
.r1-splits small { display: block; font-size: 12px; color: var(--sec); font-weight: 600; }
.r1-splits b { font-family: var(--sfd); font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* R1 v2 fixes (24 Nov) */
.r1-hero.big { height: auto; min-height: clamp(460px, 58vw, 600px); display: flex; align-items: flex-end; padding: 180px 14px 14px; }
.r1-hero.big .panel { position: relative; z-index: 1; left: auto; right: auto; bottom: auto; width: 100%; max-width: 580px; }
.r1-hero.big { flex-direction: column; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(30px, 6vw, 60px) 14px 14px; }
.r1-hero.big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,14,40,.6) 0%, rgba(6,14,40,.4) 40%, rgba(6,14,40,0) 75%); pointer-events: none; }
.r1-htype { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.r1-htype .r1-eyebrow { color: #000; height: 30px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; font-size: 12px; }
.r1-hero.big .r1-htype h1 { font-size: clamp(52px, 10.5vw, 120px); line-height: .9; letter-spacing: -.05em; background: linear-gradient(180deg, #fff 35%, rgba(255,255,255,.86) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(0,0,0,.28)); padding-bottom: .06em; }
.r1-htype h1 span { display: block; }
/* Hero search without a box: everything floats on the photo */
.r1-hero.big::before { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(0deg, rgba(6,14,40,.6), rgba(6,14,40,0)); pointer-events: none; z-index: 1; }
.r1-hero.big .panel.r1-hfree { z-index: 2; background: none; border: 0; box-shadow: none; padding: 0 4px 10px; align-items: center; text-align: center; gap: 14px; }
.r1-htype { z-index: 2; }
.r1-hfree .r1-bigsearch { width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.r1-hfree .r1-sug { width: 100%; text-align: left; }
.r1-hfree .r1-pop { justify-content: center; }
.r1-hfree .r1-pop > span, .r1-hfree .r1-quizrow span { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.r1-hfree .r1-pop a { color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.r1-hfree .r1-pop a:hover { background: rgba(255,255,255,.34); }
.r1-hfree .r1-quizrow { justify-content: center; }
.r1-bigsearch { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 18px; border-radius: 99px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.05); }
.r1-bigsearch:focus-within { box-shadow: 0 6px 24px rgba(0,0,0,.12), 0 0 0 3px var(--blue); }
.r1-bigsearch > svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.r1-bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; color: #000; }
.r1-bigsearch .go { height: 44px; padding: 0 18px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.r1-sug { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.r1-sug[hidden] { display: none; }
.r1-sug a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: #000; }
.r1-sug a + a { border-top: .5px solid var(--sep); }
.r1-sug a:hover, .r1-sug a.act { background: #F2F2F7; }
.r1-sug .km { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: -.04em; flex-shrink: 0; }
.r1-sug .t { flex: 1; min-width: 0; }
.r1-sug .t b { display: block; font-size: 15.5px; font-weight: 600; }
.r1-sug .t b mark { background: none; color: var(--blue); }
.r1-sug .t span { font-size: 13px; color: var(--sec); }
.r1-sug .chev, .r1-cant .chev { width: 8px; height: 14px; flex-shrink: 0; color: #C4C4C7; }
.r1-sug .none { padding: 14px; font-size: 14.5px; color: var(--sec); }
.r1-pop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.r1-pop > span { font-size: 13px; font-weight: 600; color: #3C3C43; margin-right: 2px; }
.r1-pop a { height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 99px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); font-size: 14px; font-weight: 600; text-decoration: none; color: #000; }
.r1-pop a:hover { background: #fff; }
.r1-quizlink { color: var(--blue); font-weight: 600; font-size: 15.5px; text-decoration: none; }
/* Up next: identical glass bars */
.r1-tc .bot { height: 56px; padding: 0 8px 0 14px; }
.r1-tc .bot .r1-get { flex: none; }
.r1-tc .bot span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Predictor buttons: two equal halves */
.r1-cout .r1-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r1-cout .r1-btns .r1-btn { width: 100%; padding: 0 12px; }
/* Deadlines scroller */
.r1-dlf { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.r1-dlf button { white-space: nowrap; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(118,118,128,.12); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.r1-dlf button i { width: 8px; height: 8px; border-radius: 99px; }
.r1-dlf button[aria-pressed="true"] { background: #000; color: #fff; }
.r1-dls { grid-auto-columns: 230px; gap: 12px; }
.r1-dlc { background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 4px; height: 190px; text-decoration: none; color: #000; position: relative; overflow: hidden; }
.r1-dlc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--c); }
.r1-dlc .tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--c); background: var(--cs); margin-bottom: 6px; }
.r1-dlc .num { display: flex; align-items: baseline; gap: 6px; color: var(--c); }
.r1-dlc .num b { font-family: var(--sfd); font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.r1-dlc .num span { font-size: 15px; font-weight: 700; }
.r1-dlc .what { font-size: 13.5px; color: var(--sec); }
.r1-dlc .rn { margin-top: auto; font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; }
.r1-dlc .dt { font-size: 13px; color: var(--sec); }
/* Equal two-up rows */
.r1-2.eq { align-items: stretch; }
@media (min-width: 900px) { .r1-2.eq { grid-template-columns: 1fr 1fr; } }
.r1-2.eq > * { height: 100%; }
/* Race page colour */
.r1-hotel { background: linear-gradient(140deg, #5856D6 0%, #7D7BF2 100%); color: #fff; }
.r1-hotel h3, .r1-hotel p { color: #fff; }
.r1-hotel p { opacity: .88; }
.r1-hotel .r1-ic { background: rgba(255,255,255,.2) !important; }
.r1-hotel .r1-btn.wht { background: #fff; color: #5856D6; }
.r1-hotel .r1-btn.ghost { background: rgba(255,255,255,.18); color: #fff; }
.r1-hotel .fine { font-size: 12.5px; margin-top: auto; }
.r1-wd .l svg { color: var(--ic, var(--blue)); }
.r1-mail { margin-top: 16px; border-radius: 28px; padding: 24px; display: grid; gap: 16px; background: linear-gradient(135deg, var(--lime) 0%, #F4FFB0 60%, #FFFFFF 100%); position: relative; overflow: hidden; }
@media (min-width: 860px) { .r1-mail { grid-template-columns: 1fr 1fr; align-items: center; padding: 32px; } }
.r1-mail h3 { font-family: var(--sfd); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.r1-mail p { color: #3C3C43; font-size: 15.5px; margin-top: 8px; }
.r1-mail ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.r1-mail li { display: flex; gap: 8px; align-items: center; }
.r1-mail li svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.r1-mail form { display: flex; flex-direction: column; gap: 10px; }
.r1-mail .field { display: flex; gap: 8px; background: #fff; border-radius: 99px; padding: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.r1-mail input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 16px; }
@media (max-width: 520px) { .r1-mail .field { flex-direction: column; border-radius: 22px; padding: 8px; } .r1-mail input { height: 44px; } .r1-mail .field .r1-btn { width: 100%; } }
.r1-mail small { font-size: 12.5px; color: #3C3C43; padding-left: 8px; }
.r1-mail .ok { font-weight: 700; font-size: 16px; padding: 14px 18px; background: #fff; border-radius: 18px; }
.r1-pacecard { background: linear-gradient(135deg, #2555ED 0%, #4B6FF5 100%); color: #fff; }
.r1-pacecard h3, .r1-pacecard p { color: #fff; }
.r1-pacecard p { opacity: .88; }
.r1-pacecard .r1-cseg { flex-wrap: wrap; }
.r1-pacecard .r1-cseg button { padding: 7px 12px; }
.r1-pacecard .r1-splits div { background: rgba(255,255,255,.14); }
.r1-pacecard .r1-splits small { color: rgba(255,255,255,.75); }
.r1-pacecard .r1-btn.wht { background: rgba(255,255,255,.18); color: #fff; align-self: flex-start; margin-top: auto; }
.r1-cant { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #1FA463, #3CC27F); color: #fff; text-decoration: none; }
.r1-cant b { display: block; font-size: 17px; }
.r1-cant span { font-size: 14px; opacity: .9; }
.r1-cant .r1-ic { background: rgba(255,255,255,.2); width: 44px; height: 44px; border-radius: 12px; }
.r1-cant .chev { color: rgba(255,255,255,.8); margin-left: auto; }
/* Plans page, same language as Discover */
.r1-plans4 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .r1-plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .r1-plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.r1-plan { background: var(--card); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: #000; transition: transform .2s ease; }
.r1-plan:hover { transform: scale(.985); }
.r1-plan[hidden] { display: none; }
.r1-plan .top { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; }
.r1-plan .top .bibtag { font-size: 40px; padding: 14px 20px; transform: rotate(-5deg); }
.r1-plan .top .wk { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; color: #000; }
.r1-plan .bd { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.r1-plan .bd b { font-family: var(--sfd); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.r1-plan .bd .m { font-size: 14px; color: var(--sec); }
.r1-plan .bd p { font-size: 14.5px; color: #3C3C43; flex: 1; }
.r1-plan .ft { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.r1-plan .ft > span:first-child { font-size: 13px; color: var(--sec); }
.r1-plan .ft .r1-btn { color: #fff; }
/* Bib swap: pills keep their own colours inside option cards */
.r1-opt .pill.p-none { color: #fff; } .r1-opt .pill.p-resale, .r1-opt .pill.p-defer { color: #000; } .r1-opt .pill.p-transfer { color: #0E2A9E; }
/* R1 Races list + Tools (24 Nov, round 2) */
.r1-nav .r1-btn.lime { height: 42px; padding: 0 20px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px rgba(160,190,0,.35); }
.r1-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px 0 16px; }
.r1-filters button { white-space: nowrap; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(118,118,128,.12); font-weight: 600; font-size: 14px; }
.r1-filters button[aria-pressed="true"] { background: #000; color: #fff; }
.r1-rgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .r1-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .r1-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.r1-rc { background: var(--card); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: #000; transition: transform .2s ease; }
.r1-rc:hover { transform: scale(.985); }
.r1-rc[hidden] { display: none; }
.r1-rc .ph { position: relative; height: 170px; }
.r1-rc .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r1-rc .ph .km { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.r1-rc .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.r1-rc .bd b { font-size: 18px; letter-spacing: -.015em; }
.r1-rc .bd .m { font-size: 14px; color: var(--sec); }
.r1-rc .bd .st { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.r1-empty { padding: 30px; text-align: center; color: var(--sec); background: var(--card); border-radius: 22px; }
.r1-pc { display: grid; gap: 16px; }
@media (min-width: 860px) { .r1-pc { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.r1-pc .r1-card { height: 100%; }
.r1-ph2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.r1-pc .r1-ph2 .r1-segc { margin: 0; }
.r1-chart .row.h2 .bar i { background: linear-gradient(90deg, #2555ED 0%, #4C7BFF var(--h), #1FA463 var(--h), #1FA463 100%); }
.r1-pc .r1-segc { margin-top: 0; flex-wrap: wrap; align-self: flex-start; }
.r1-pc .r1-segc button { padding: 7px 14px; }
.r1-ptime { display: flex; align-items: center; gap: 6px; }
.r1-ptime input { width: 62px; height: 52px; border: 0; border-radius: 13px; background: #F2F2F7; text-align: center; font-family: var(--sfd); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; outline: 0; }
.r1-ptime input:focus { box-shadow: 0 0 0 3px var(--blue); }
.r1-ptime i { font-style: normal; font-size: 22px; color: var(--sec); }
.r1-pbig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r1-pbig button { border-radius: 20px; padding: 16px; background: #F2F2F7; text-align: left; color: #000; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: background .2s ease, box-shadow .2s ease; }
.r1-pbig button[aria-pressed="true"] { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.r1-pbig button[aria-pressed="false"]:hover { background: #E8E8ED; }
.r1-pbig .hint { grid-column: 1 / -1; font-size: 13px; color: var(--sec); margin-top: -2px; }
.r1-pbig small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(60,60,67,.75); }
.r1-pbig b { font-family: var(--sfd); font-size: 38px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.r1-psplits { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.r1-psplits div { background: #F2F2F7; border-radius: 14px; padding: 10px 12px; }
.r1-psplits small { display: block; font-size: 12px; color: var(--sec); font-weight: 600; }
.r1-psplits b { font-size: 17px; font-variant-numeric: tabular-nums; }
/* R1 race-bib tiles + quiz bib (no icons) */
.r1-tiles.bibs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 820px) { .r1-tiles.bibs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.r1-bib { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 178px; padding: 30px 16px 16px; border-radius: 16px; text-decoration: none; color: var(--bc); background: var(--bb); box-shadow: 0 10px 26px rgba(0,0,0,.08); transition: transform .25s ease; }
.r1-bib:hover { transform: rotate(-1.5deg) translateY(-2px); }
.r1-bib::before, .r1-bib::after { content: ""; position: absolute; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: #F2F2F7; box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.r1-bib::before { left: 11px; } .r1-bib::after { right: 11px; }
.r1-bib .k { position: absolute; top: 9px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .7; }
.r1-bib .no { font-family: var(--mono); font-weight: 700; font-size: clamp(40px, 5.4vw, 54px); letter-spacing: -.06em; line-height: .95; text-align: center; font-variant-numeric: tabular-nums; }
.r1-bib .no small { font-size: .42em; letter-spacing: -.02em; margin-left: 2px; }
.r1-bib b { display: block; font-size: 17px; letter-spacing: -.015em; }
.r1-bib span.s { display: block; font-size: 13.5px; opacity: .72; margin-top: 2px; }
.r1-quiz { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 24px; border-radius: 9px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; transform: rotate(-2deg); transition: transform .2s ease; }
.r1-quiz:hover { transform: rotate(0); }
.r1-quiz::before, .r1-quiz::after { content: ""; position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.r1-quiz::before { left: 6px; } .r1-quiz::after { right: 6px; }
.r1-tiles.bibs { grid-auto-rows: 1fr; }
@media (max-width: 420px) { .r1-nav .r1-quiz { height: 38px; padding: 0 17px; font-size: 13.5px; } }
.r1-quizrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.r1-quizrow span { font-size: 15px; font-weight: 600; color: #3C3C43; }
.r1-nav .r1-quiz { transition: opacity .25s ease, transform .25s ease, visibility .25s; }
body[data-p="home"] .r1-nav .r1-quiz.away { opacity: 0; visibility: hidden; transform: rotate(-2deg) translateY(-6px) scale(.9); pointer-events: none; }
/* R1 round 5: predictor units, Discover header, splits chart */
.r1-cunits { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: .95; }
.r1-cunits .r1-cseg button { padding: 5px 12px; font-size: 13.5px; }
.r1-dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 6px; }
.r1-dhead .date { display: block; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--sec); }
.r1-dhead .r1-title { padding-top: 0; }
.r1-next { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 230px; padding: 10px 14px 10px 14px; border-radius: 16px; background: #141414; color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.14); transform: rotate(1.5deg); transition: transform .2s ease; margin-bottom: 4px; }
.r1-next:hover { transform: rotate(0); }
.r1-dhead > div:first-child { flex: none; }
.r1-dhead .date { white-space: nowrap; }
.r1-next { flex: 0 1 auto; }
.r1-next span.s { white-space: nowrap; }
@media (max-width: 420px) { .r1-dhead .date { font-size: 11.5px; letter-spacing: .4px; } .r1-next { padding: 9px 11px; } .r1-next b { font-size: 14px; } .r1-next span.s { font-size: 11.5px; } }
.r1-next .k { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lime); }
.r1-next .k i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.r1-next b { font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r1-next span.s { font-size: 12.5px; color: rgba(255,255,255,.7); }
.r1-next span.s em { font-style: normal; font-family: var(--mono); font-weight: 700; color: #fff; }
.r1-chart { display: flex; flex-direction: column; gap: 6px; }
.r1-chart .row { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 10px; font-size: 14px; }
.r1-chart .row small { font-weight: 600; color: var(--sec); font-size: 13px; white-space: nowrap; }
.r1-chart .bar { height: 22px; border-radius: 7px; background: #F2F2F7; overflow: hidden; }
.r1-chart .bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #2555ED, #4C7BFF); }
.r1-chart .row.half .bar i { background: linear-gradient(90deg, #2555ED, #E7FF4B); }
.r1-chart .row.fin .bar i { background: var(--lime); box-shadow: inset 0 0 0 1.5px #141414; }
.r1-chart .row b { font-family: var(--sfd); font-weight: 800; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.r1-chart .row.fin small, .r1-chart .row.fin b { color: #000; }
/* R1 round 6 */
.r1-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.r1-ph h2 { min-width: 0; }
.r1-calc .r1-usm { display: flex; width: max-content; margin-top: 14px; margin-bottom: -6px; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.14); }
.r1-calc .r1-usm button { padding: 3px 9px; font-size: 12px; font-weight: 600; border-radius: 7px; color: rgba(255,255,255,.85); }
.r1-calc .r1-usm button[aria-pressed="true"] { color: #000; box-shadow: none; }
.r1-ph .r1-cseg { flex: none; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.14); }
.r1-ph .r1-cseg button { padding: 3px 9px; font-size: 12px; font-weight: 600; border-radius: 7px; color: rgba(255,255,255,.85); }
.r1-ph .r1-cseg button[aria-pressed="true"] { color: #000; box-shadow: none; }
.r1-dhead { align-items: center; padding-top: 4px; }
.r1-next { flex-direction: row; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 14px; margin-bottom: 0; }
.r1-next .num { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 42px; height: 42px; border-radius: 10px; background: var(--lime); color: #141414; line-height: 1; }
.r1-next .num em { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: -.04em; }
.r1-next .num small { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.r1-next .t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.r1-next .k { font-size: 9.5px; }
.r1-next b { font-size: 14.5px; }
@media (max-width: 420px) { .r1-next { padding: 6px 10px 6px 6px; gap: 8px; } .r1-next .num { min-width: 38px; height: 38px; } .r1-next .num em { font-size: 18px; } .r1-next b { font-size: 13.5px; } }
.tb1 a { position: relative; }
.tb-tag { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .1px; line-height: 1; padding: 3px 6px; border-radius: 99px; background: #141414; color: #fff; pointer-events: none; }
.r1-nobuy { cursor: default; }
/* R1 plans round 6 */
@media (min-width: 1000px) { .r1-plans4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bibtag.b { background: #2555ED; color: #fff; }
.r1-plan p.bm strong { color: #000; font-weight: 700; }
.r1-wkprev { margin-bottom: 14px; }
.r1-wkprev .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.r1-wkprev .hd span { font-size: 13.5px; color: var(--sec); font-weight: 600; }
.r1-wkprev .sc { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.r1-wkprev table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.r1-wkprev th { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--sec); text-align: left; padding: 0 6px; }
.r1-wkprev th:first-child { width: 68px; }
.r1-wkprev td { position: relative; vertical-align: top; background: #F2F2F7; border-radius: 10px; padding: 8px 8px 22px; font-size: 12.5px; line-height: 1.3; }
.r1-wkprev td.w { background: #141414; color: #fff; font-weight: 700; font-size: 13px; padding-bottom: 8px; }
.r1-wkprev td.w small { display: block; font-family: var(--mono); color: var(--lime); font-size: 11px; margin-top: 2px; }
.r1-wkprev td.rs { color: #AEAEB2; font-weight: 600; text-align: center; vertical-align: middle; padding-bottom: 8px; background: #F7F7FA; }
.r1-wkprev .ch { display: block; width: max-content; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; margin-bottom: 4px; }
.r1-wkprev .ch.ez { background: #DDF3E6; color: #137A45; }
.r1-wkprev .ch.hl { background: #FFE3DD; color: #B8321A; }
.r1-wkprev .ch.ft { background: #DDE6FF; color: #1E46C4; }
.r1-wkprev .ch.lg { background: var(--lime); color: #141414; }
.r1-wkprev .tk { position: absolute; right: 7px; bottom: 7px; width: 11px; height: 11px; border: 1.5px solid #141414; border-radius: 3px; }
.r1-wkprev p { font-size: 13.5px; color: var(--sec); }
.r1-wkprev .ch { max-width: 100%; white-space: normal; font-size: 9px; letter-spacing: .2px; }
.r1-wkprev td small { display: block; color: var(--sec); font-size: 11.5px; margin-top: 3px; }
.r1-wkprev .sc { position: relative; }
.r1-wkprev tr.fz td { filter: blur(2.5px); opacity: .55; }
.r1-wkprev tbody { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,.3) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,.3) 100%); }
.r1-wkpick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.r1-wkpick button { white-space: nowrap; height: 32px; padding: 0 13px; border-radius: 99px; background: rgba(118,118,128,.12); font-weight: 600; font-size: 13.5px; }
.r1-wkpick button[aria-pressed="true"] { background: #000; color: #fff; }
.r1-plan .vat, .r1-price .vat, .r1-nobuy .vat { font-size: .78em; font-weight: 600; opacity: .75; }
.r1-vat { font-size: 13.5px; color: var(--sec); margin-top: 12px; max-width: 70ch; }
.r1-vat b { color: #3C3C43; }
.r1-plan.on { box-shadow: 0 0 0 2.5px #141414; }
/* R1 round 7 */
.r1-rgrid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .r1-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .r1-rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.r1-rc { border-radius: 20px; }
.r1-rc .ph { height: 120px; background: linear-gradient(135deg, #2555ED, #4C7BFF); }
.r1-rc .bd { padding: 11px 12px 13px; gap: 1px; }
.r1-rc .bd b { font-size: 15.5px; line-height: 1.2; }
.r1-rc .bd .m { font-size: 12.5px; }
.r1-rc .bd .st { font-size: 12.5px; margin-top: 5px; }
.r1-rc .ph .km { font-size: 11.5px; padding: 4px 8px; left: 10px; top: 10px; }
.r1-rbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--sec); }
.r1-rbar .r1-segc button { font-size: 13px; padding: 5px 10px; }
.r1-hero.r1-hero-sm { height: clamp(260px, 30vw, 340px); }
.r1-hero.r1-hero-sm .panel { gap: 8px; padding: 18px; }
.r1-hero.r1-hero-sm h1 { font-size: clamp(26px, 3.4vw, 36px); }
.r1-guides { grid-auto-columns: minmax(240px, 280px); }
.r1-gc { position: relative; display: flex; flex-direction: column; gap: 6px; height: 300px; border-radius: 24px; overflow: hidden; padding: 18px; color: #fff; text-decoration: none; isolation: isolate; }
.r1-gc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.r1-gc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,70,.72), rgba(10,20,70,.05) 70%); }
.r1-gc .r1-eyebrow { color: rgba(255,255,255,.85); }
.r1-gc h3 { font-family: var(--sfd); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.r1-hint { font-size: 13px; font-weight: 600; color: var(--sec); }
/* R1 top bar as its own banner */
.r1-nav { background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(60,60,67,.12); box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.r1-nav .w { height: 62px; }
.r1-nav + main { padding-top: 8px; }
.r1-tabs { background: #F2F2F7; }
/* R1 tabs in the top bar on bigger screens */
.r1-tabs { display: none; }
@media (min-width: 768px) {
  .r1-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(118,118,128,.1); }
  .r1-tabs a { position: relative; padding: 7px 15px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: #3C3C43; text-decoration: none; white-space: nowrap; }
  .r1-tabs a:hover { background: rgba(255,255,255,.7); }
  .r1-tabs a.on { background: #fff; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  .r1-tabs .tb-tag { top: -8px; }
  body #tabbar { display: none; }
}
/* R1 Marathon Calendar signup */
.r1-cal { margin-top: 28px; border-radius: 28px; padding: 24px; background: #141414; color: #fff; display: grid; gap: 22px; position: relative; overflow: hidden; isolation: isolate; }
.r1-cal::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(231,255,75,.35), rgba(231,255,75,0) 70%); z-index: -1; }
@media (min-width: 860px) { .r1-cal { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 32px; } }
.r1-cal .k { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lime); }
.r1-cal .k i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.r1-cal h2 { font-family: var(--sfd); font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin-top: 8px; }
.r1-cal p { font-size: 16px; color: rgba(255,255,255,.78); margin-top: 8px; max-width: 46ch; }
.r1-cal form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.r1-cal .field { display: flex; gap: 8px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); max-width: 480px; }
.r1-cal input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; padding: 0 14px; }
.r1-cal input::placeholder { color: rgba(255,255,255,.5); }
.r1-cal .field:focus-within { box-shadow: inset 0 0 0 2px var(--lime); }
.r1-cal small { font-size: 12.5px; color: rgba(255,255,255,.6); }
.r1-cal small a { color: rgba(255,255,255,.85); }
.r1-cal .ok { font-weight: 700; color: var(--lime); }
@media (max-width: 520px) { .r1-cal .field { flex-direction: column; border-radius: 22px; padding: 8px; } .r1-cal input { height: 44px; } .r1-cal .field .r1-btn { width: 100%; } }
.r1-cal .mini { background: #fff; color: #000; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; transform: rotate(1.5deg); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.r1-cal .mh { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sec); padding: 0 4px 2px; }
.r1-cal .mr { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: #F2F2F7; }
.r1-cal .mr .bd { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 11px; background: var(--lime); border: 1.5px solid #141414; line-height: 1; flex: none; }
.r1-cal .mr .bd b { font-family: var(--mono); font-size: 19px; }
.r1-cal .mr .bd small { font-family: var(--mono); font-size: 9px; font-weight: 700; text-transform: uppercase; color: #141414; }
.r1-cal .mr .mt b { display: block; font-size: 15px; }
.r1-cal .mr .mt small { font-size: 12.5px; font-weight: 700; color: var(--sec); }
@media (max-width: 859px) { .r1-cal .mini { display: none; } }
/* R1 bibs */
.r1-opts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .r1-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.r1-opt { border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.r1-opt b { font-size: 17px; letter-spacing: -.015em; }
.r1-opt span { font-size: 13.5px; color: var(--sec); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.p-resale { background: var(--lime); color: #000; } .p-transfer { background: #DCE4FF; color: #0E2A9E; } .p-defer { background: #EDE6D8; color: #000; } .p-none { background: #1C1C1E; color: #fff; }
.r1-sheetbg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.22); }
.r1-sheet { position: fixed; z-index: 61; left: 50%; bottom: 0; transform: translateX(-50%); width: min(600px, 100%); border-radius: 30px 30px 0 0; padding: 10px 22px calc(110px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; animation: up .35s cubic-bezier(.2,.9,.3,1); background: rgba(255,255,255,.86); }
@keyframes up { from { transform: translate(-50%, 40px); opacity: .4; } to { transform: translate(-50%, 0); opacity: 1; } }
.r1-sheet .grab { width: 38px; height: 5px; border-radius: 9px; background: rgba(60,60,67,.3); margin: 0 auto 6px; }
.r1-sheet h3 { font-family: var(--sfd); font-size: 26px; font-weight: 800; letter-spacing: -.025em; }

/* Bottom sheet: floats inside the screen, solid, scrolls if tall */
.r1-sheetbg { background: rgba(0,0,0,.38); }
.r1-sheet { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(600px, calc(100% - 24px)); border-radius: 30px; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 10px 22px 22px; background: rgba(255,255,255,.97); }


/* =========================================================
   LIVE SITE: shell + re-skin of the older shared classes
   ========================================================= */
:root { --cream: #F2F2F7; --muted: rgba(60,60,67,.68); --line: rgba(60,60,67,.16); --edge: rgba(0,0,0,.06); --radius: 26px; --r-card: 20px; --r-sm: 12px; --on-blue: rgba(255,255,255,.86); }
body { font-family: var(--sf); background: var(--page); }
.r1 :is(h1, h2, h3, p), .r1-nav p, .r1-foot p { margin: 0; }
.wrap > .r1-nav { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.r1-nav .w { gap: 12px; }
.r1-navr { display: flex; gap: 8px; align-items: center; }
.r1-tabs .tb-soon { position: relative; padding: 7px 15px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: rgba(60,60,67,.45); cursor: default; white-space: nowrap; }
.tb1 .tb-soon { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 62px; padding: 7px 8px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: rgba(60,60,67,.45); cursor: default; }
@media (max-width: 380px) { .tb1 .tb-soon { min-width: 56px; padding-inline: 4px; } }
@media (max-width: 767px) { body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
.r1-foot { margin-top: 48px; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--sec, rgba(60,60,67,.62)); font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.r1-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.r1-foot a { color: #3C3C43; text-decoration: none; font-weight: 500; }
.r1-foot a:hover { color: var(--blue); }
.r1-foot p a { color: inherit; text-decoration: underline; }

/* headings and type on older pages */
.h-hero, .h-q { font-family: var(--sfd); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.h-section { font-family: var(--sfd); font-weight: 700; letter-spacing: -.02em; font-size: 24px; }
.kicker { font-size: 11.5px; letter-spacing: 1.2px; }
.prose h1, .article h2, .article h3 { font-family: var(--sfd); letter-spacing: -.02em; }

/* panels, cards, buttons */
.panel-blue { border-radius: 28px; background: radial-gradient(circle at 88% 12%, rgba(231,255,75,.38), rgba(231,255,75,0) 42%), linear-gradient(135deg, #2555ED 0%, #4B6FF5 100%); }
.panel-blue::before { display: none !important; }
.card, .race-item, .guide-card, .step, .opt, .facts, .notice, .table-box, .cal-chip, .countdown { border: 0; border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card { background: #fff; padding: 16px 18px; }
.card.lime { background: var(--lime); } .card.ink { background: #141414; color: #fff; } .card.orange { background: var(--orange); }
.card-row { transition: transform .2s ease; } .card-row:hover { transform: scale(.99); }
.btn { border-radius: 99px; font-weight: 700; min-height: 50px; }
.btn-ink { background: #000; color: #fff; }
.btn-small { min-height: 40px; }
.cta { border-radius: 22px !important; }
.guide-card { background: #fff; padding: 16px; }
.guide-card:hover { background: #fff; transform: scale(.99); }
.facts { background: #fff; }
.fact { border-color: var(--line) !important; }
.fact .k { font-family: var(--sf); font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.notice { background: #fff; }
.band-white { background: transparent; }
.race-photo img, .photo img, .news-photo img { border-radius: 24px; }
.pill { border-radius: 99px; }

/* sign-up forms (assets/signup.js builds them) */
.signup { background: #141414; color: #fff; border-radius: 28px; padding: 24px; }
.signup .kicker { color: var(--lime); }
.signup .h-section { color: #fff; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.signup p { color: rgba(255,255,255,.75); }
.su-row { display: flex; gap: 8px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); max-width: 520px; }
.su-row input { flex: 1; min-width: 0; height: 44px !important; background: transparent !important; color: #fff !important; border: 0 !important; padding: 0 14px !important; outline: 0; }
.su-row input::placeholder { color: rgba(255,255,255,.5); }
.su-row:focus-within { box-shadow: inset 0 0 0 2px var(--lime); }
.su-row .btn { min-height: 44px; }
.su-consent { font-size: 12.5px; color: rgba(255,255,255,.6) !important; }
.su-consent a { color: rgba(255,255,255,.85); }
@media (max-width: 520px) { .su-row { flex-direction: column; border-radius: 22px; padding: 8px; } .su-row .btn { width: 100%; } }
.su-compact { padding: 18px; border-radius: 24px; }

/* quiz */
.quiz-shell { padding-top: 10px; }
.quiz-home { border: 0; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-weight: 600; }
.opt { background: #fff; border: 0; border-radius: 20px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease; }
.opt:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.opt.wild { background: rgba(255,255,255,.55); border: 1.5px dashed rgba(60,60,67,.3); }
.opt[aria-pressed="true"] { background: var(--lime); border: 0; box-shadow: inset 0 0 0 2px #141414; transform: scale(.985); }
.opt .t { font-family: var(--sfd); }
.opt .s { color: rgba(60,60,67,.7); }
.opt .big b { font-family: var(--sfd); font-weight: 800; }
.quiz-next { border-radius: 99px; }
.step { background: #fff; }

/* calendar, news and lists */
.race-item { background: #fff; }
.cal-chip { background: #fff; border: 0 !important; }
.cal-chip[aria-pressed="true"] { background: #141414 !important; color: #fff !important; }
.race-tab { border-radius: 99px; }
.race-tab[aria-pressed="true"] { background: #141414; color: #fff; }

/* Glass pages: small helpers */
.r1-btn.blue { background: var(--blue); color: #fff; }
.r1-btn.soft { background: rgba(118,118,128,.12); color: #000; }
.r1-sheetbg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.35); }
.r1-sheet { position: fixed; z-index: 81; left: 50%; transform: translateX(-50%); bottom: 12px; width: min(560px, calc(100% - 24px)); border-radius: 28px; padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,.97); max-height: calc(100dvh - 90px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.r1-sheet .grab { width: 38px; height: 5px; border-radius: 9px; background: #D1D1D6; margin: 0 auto 4px; }
.r1-sheet h3 { font-family: var(--sfd); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pill.p-resale { background: var(--lime); color: #000; } .pill.p-transfer { background: #DCE4FF; color: #0E2A9E; } .pill.p-defer { background: #EDE6D8; color: #000; } .pill.p-none { background: #1C1C1E; color: #fff; }
.r1-plan-soon { position: relative; }
.r1-plan-soon .tb-tag { top: 10px; left: auto; right: 12px; transform: none; }
.small-print { font-size: 13px; color: var(--sec, rgba(60,60,67,.62)); }

/* live race pages */
.r1-mail .signup { background: none; padding: 0; border-radius: 0; color: #000; gap: 8px; }
.r1-mail .su-line { display: none; }
.r1-mail .su-row { background: #fff; box-shadow: none; }
.r1-mail .su-row input { color: #000 !important; }
.r1-mail .su-row input::placeholder { color: rgba(0,0,0,.45); }
.r1-mail .su-consent { color: rgba(0,0,0,.6) !important; }
.r1-mail .su-consent a { color: #000; }
.r1-mail .su-row .btn { background: #000; color: #fff; }
.r1-cant-blue { background: var(--blue) !important; color: #fff; margin-top: 14px; }
.r1-cant-ink { background: #141414 !important; color: #fff; margin-top: 14px; }
.r1-cant-blue span span, .r1-cant-ink span span { color: rgba(255,255,255,.78) !important; }
.r1-cant-blue .r1-ic, .r1-cant-ink .r1-ic { background: rgba(255,255,255,.16) !important; color: #fff; }
.r1-hl { font-size: 14px; font-weight: 600; color: inherit; }
.r1-rhero.nophoto { background: linear-gradient(135deg, #2555ED, #4C7BFF); }
.r1-rhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r1-plan-soon .r1-price { font-size: 12px; font-weight: 700; background: #141414; color: #fff; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.notice.plan28 { margin-top: 14px; }
/* Discover */
.r1-cal .signup { background: none; padding: 0; border-radius: 0; gap: 10px; }
.r1-cal .signup .h-section { margin: 4px 0 0; }
.r1-tc-soon { cursor: default; }
.r1-tc-soon .r1-get { background: #141414; color: #fff; }
.wrap > main.stack > .r1, main.stack > .r1 { width: 100%; }

.wrap > main { padding-top: 18px; }
.su-pop, .su-box { border-radius: 26px !important; border: 0 !important; box-shadow: 0 20px 60px rgba(0,0,0,.25) !important; }
.su-pop .btn, .su-box .btn { border-radius: 99px; }
.su-mid { margin: 22px 0; }
.r1-rgrid .su-mid { margin: 6px 0; }
.article .su-mid h2 { margin: 0; }

/* ---------- 27 Nov: phone and tool-page fixes ---------- */
/* Discover hero: the search suggestions float over the photo, so typing never changes the photo's size */
.r1-hero.big { overflow: visible; }
.r1-hero.big > img, .r1-hero.big::after { border-radius: inherit; }
.r1-hero.big::before { border-radius: 0 0 30px 30px; }
.r1-hfree { position: relative; }
.r1-hfree .r1-sug { position: absolute; left: 4px; right: 4px; top: 66px; z-index: 30; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
@media (max-width: 599px) {
  .r1-hfree .r1-pop { display: none; }
  .r1-hero.big { min-height: 380px; }
  .r1-hero.big .r1-htype h1 { font-size: clamp(44px, 13vw, 56px); }
  .r1-hfree .r1-quizrow { gap: 8px; }
  .r1-hfree .r1-quizrow span { font-size: 13.5px; }
  .r1-hfree .r1-quiz { height: 34px; padding: 0 16px; font-size: 13px; }
}
/* sign-up rows: email box and button the same height */
.su-row input { height: 48px !important; }
.su-row .btn { height: 48px; min-height: 48px; padding: 0 20px; font-size: 15.5px; }
@media (max-width: 520px) { .su-row .btn { width: 100%; } }
/* Races: search and filters stay at the top while you scroll */
.r1-stick { position: sticky; top: 62px; z-index: 20; margin: 8px -16px 0; padding: 10px 16px 4px; background: rgba(242,242,247,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.r1-stick .r1-search { margin-top: 0 !important; }
@media (min-width: 768px) { .r1-stick { margin: 8px -24px 0; padding: 10px 24px 4px; } }
/* Tools: the pace calculator has the same kind of title as the race predictor */
.r1-pcalc { margin-top: 22px; border-radius: 28px; padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 80px; }
@media (min-width: 860px) { .r1-pcalc { padding: 30px; } }
.r1-pcalc h2 { font-family: var(--sfd); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin-top: 4px; }
.r1-pcalc .lead { font-size: 16px; color: var(--sec); margin-top: 6px; }
.r1-pcalc .r1-pc { margin: 0; }
.r1-pcalc .r1-card { background: #F2F2F7; }
.r1-pcalc .r1-card .r1-segc { background: rgba(118,118,128,.14); }
/* quiz: site header and tab bar; the Continue button sits above the tab bar on phones */
@media (max-width: 767px) { body[data-p="quiz"] .quiz-next { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }
body[data-p="quiz"] .quiz-shell { min-height: 0; }
/* older tool pages (pace, predictor, sticker): Glass controls */
body[data-d="r1"] .calc, body[data-d="r1"] .controls { border: 0; border-radius: 26px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
body[data-d="r1"] .seg { border: 0; background: rgba(118,118,128,.12); padding: 3px; border-radius: 12px; }
body[data-d="r1"] .seg button { border-radius: 9px; min-height: 36px; padding: 7px 14px; font-size: 14.5px; }
body[data-d="r1"] .seg button[aria-pressed="true"] { background: #fff; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
body[data-d="r1"] .field-label { font-family: var(--sf); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
body[data-d="r1"] .spin-btn { border: 0; background: #F2F2F7; border-radius: 10px; }
body[data-d="r1"] .time-inputs input, body[data-d="r1"] .custom input, body[data-d="r1"] .time-in, body[data-d="r1"] select { border: 0; background: #F2F2F7; border-radius: 13px; font-family: var(--sfd); }
body[data-d="r1"] .spin-unit { font-family: var(--sf); }
body[data-d="r1"] .result-tile { border: 0; border-radius: 22px; background: #fff; }
body[data-d="r1"] .result-tile:first-child { background: var(--lime); }
body[data-d="r1"] .result-tile .k { font-family: var(--sf); letter-spacing: .5px; }
body[data-d="r1"] .result-tile .v { font-family: var(--sfd); font-weight: 800; }
body[data-d="r1"] .table-box { border: 0; border-radius: 22px; background: #fff; }
body[data-d="r1"] th { font-family: var(--sf); letter-spacing: .5px; }
body[data-d="r1"] td.num { font-family: var(--sfd); font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 520px) { .su-row input { flex: none; width: 100%; } }
.r1-pcalc .r1-ptime input { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.r1-pcalc .r1-pbig button[aria-pressed="false"] { background: #fff; }
/* Discover hero: headline, search and quiz grouped in the middle of the photo */
.r1-hero.big { justify-content: center; gap: 20px; }
.r1-hero.big .panel.r1-hfree { padding-bottom: 0; }
.r1-wds + .r1-mail { margin-top: 14px; }
/* treadmill converter (Tools) */
#treadmill .r1-card { gap: 12px; }
.tm-l { display: block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--sec); margin-top: 4px; }
.tm-in[hidden] { display: none; }
#tmv { width: 92px !important; }
.tm-u { font-style: normal; font-size: 16px; font-weight: 600; margin-left: 6px; opacity: .75; }
#tmout button { cursor: default; text-align: left; }
.tm-note { font-size: 13px; color: var(--sec); margin-top: 6px; }
body[data-d="r1"] .result-tile.ink { grid-column: 1 / -1; }
#treadmill .r1-segc { display: flex; flex-wrap: nowrap; width: 100%; }
#treadmill .r1-segc button { flex: 1 1 0; padding: 7px 4px; white-space: nowrap; text-align: center; }
#tmu { max-width: 200px; }
.tm-chart { margin-top: 4px; }
.tm-chart .row { grid-template-columns: 74px 1fr 64px; }
.tm-chart .tm-head small, .tm-chart .tm-head b { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--sec); }
#treadmill .r1-ph2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
#treadmill .r1-segc { width: auto; flex: none; }
#tmu button { flex: none; padding: 6px 14px; }
.tm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tm-table th { font-family: var(--sf); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--sec); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tm-table td { padding: 9px 8px; font-size: 15px; border-bottom: 1px solid var(--line); }
.tm-table td.p, .tm-table th.p { text-align: right; }
.tm-table td.p { font-family: var(--sfd); font-weight: 800; font-size: 17px; }
.tm-table td:nth-child(3), .tm-table th:nth-child(3) { padding-left: 18px; border-left: 1px solid var(--line); }
.tm-table tr:last-child td { border-bottom: 0; }
@media (max-width: 400px) { .tm-table td { font-size: 13.5px; padding: 8px 5px; } .tm-table td.p { font-size: 15px; } .tm-table td:nth-child(3), .tm-table th:nth-child(3) { padding-left: 10px; } }
#treadmill #tmu button { flex: none; padding: 6px 14px; }
.tm-table td.p, .tm-table th.p { text-align: left; }
.tm-table td.sp, .tm-table th.sp { text-align: right; color: #3C3C43; }
.two-col > * { min-width: 0; }
@media (max-width: 599px) { body[data-d="r1"] .seg button { padding: 7px 4px; font-size: 13.5px; min-width: 0; } }
/* quiz: Continue only appears once an answer is picked */
.quiz-next[disabled] { display: none; }
.quiz-next:not([disabled]) { animation: qnext .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes qnext { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz-next:not([disabled]) { animation: none; } }
body[data-p="quiz"] .r1-nav .r1-quiz { display: none; }
