/* ═══ HYROX pages: the graft layer (namespaced .hx-*) over site-v3/styles.css (site build, Oct 9, 2026;
   docs/site-build-report.md; drawn in docs/hyrox-site-gallery/proposed/hyrox.css). The nav's HYROX link lives in
   styles.css, since every page carries it; the homepage's HYROX card lives in the homepage's own graft.
   The station yellow is the app's own HYBRID_TRACK token (constants/Colors.ts: hx #FFE600, ink #0a0a0a,
   tint .10, glow .55, pill bg .12 / border .35). Used as the app uses it: a rim, a glow, a chip, an eyebrow,
   never a fill behind body text. The brand orange keeps every button. ═══ */
:root {
  --hx: #FFE600;
  --hx-ink: #0a0a0a;
  --hx-rgb: 255, 230, 0;
  --hx-tint: rgba(255, 230, 0, 0.10);
  --hx-line: rgba(255, 230, 0, 0.35);
  --hx-pill: rgba(255, 230, 0, 0.12);
  --hx-glow: 0 0 9px rgba(255, 230, 0, 0.42);
  --iron: #9AA0A8;
  --warm: #f2f0ec;
  --dim: #9a958e;
}

/* ── The hub's eyebrow and hero ── */
.hx-eyebrow { color: var(--hx); }
.hx-hero h1 .accent { color: var(--hx); }
.hx-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--hx); background: var(--hx-pill); border: 1px solid var(--hx-line); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hx-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hx); box-shadow: 0 0 8px var(--hx); }

/* ── The race, drawn as a rail: eight run legs and eight stations in race order ── */
.hx-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 22px 0 8px; }
.hx-stop { background: var(--gp-card, #0d0d0d); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 10px 12px; min-width: 0; position: relative; }
.hx-stop .run { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; white-space: nowrap; }
.hx-stop .n { font-size: 26px; font-weight: 900; letter-spacing: -1px; line-height: 1; color: var(--hx); font-variant-numeric: tabular-nums; }
.hx-stop .name { font-size: 12.5px; font-weight: 800; color: var(--warm); margin-top: 6px; line-height: 1.25; }
.hx-stop .dose { font-size: 11.5px; color: var(--dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.hx-rail-note { font-size: 12px; color: var(--text-3); line-height: 1.6; margin-top: 8px; }
@media (max-width: 900px) { .hx-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hx-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .hx-stop .n { font-size: 22px; } }

/* ── The half-and-half split: the running half of the race ── */
.hx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.hx-half { border-radius: 16px; padding: 22px 22px 20px; border: 1px solid var(--line-2); background: var(--gp-card, #0d0d0d); }
.hx-half.run { border-color: var(--gp-oline, rgba(252,76,2,.35)); box-shadow: var(--gp-glow, 0 0 9px rgba(252,76,2,.42)); }
.hx-half .k { font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-3); }
.hx-half.run .k { color: var(--orange); }
.hx-half.station .k { color: var(--hx); }
.hx-half .v { font-size: clamp(34px, 5vw, 54px); font-weight: 900; letter-spacing: -2px; line-height: 1; margin: 8px 0 6px; color: var(--warm); font-variant-numeric: tabular-nums; }
.hx-half .s { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 600px) { .hx-split { grid-template-columns: 1fr; } }

/* ── Phone captures (real screens, the site's own phone frame) ── */
.hx-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(14px, 2.5vw, 28px); margin: 28px 0 8px; align-items: end; }
.hx-phone { margin: 0; text-align: center; }
.hx-phone .phone-frame { width: 100%; max-width: 250px; margin: 0 auto; aspect-ratio: 9 / 19.5; background: #000; border: 7px solid #1a1a1a; border-radius: 32px; overflow: hidden; position: relative; box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04); }
.hx-phone .phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; background: #0d0d0d; }
.hx-phone figcaption { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--dim); line-height: 1.4; }
@media (max-width: 700px) { .hx-phones { grid-template-columns: 1fr 1fr; gap: 12px; } .hx-phone .phone-frame { border-width: 4px; border-radius: 20px; } .hx-phone figcaption { font-size: 11.5px; } }

/* ── A week from the generator ── */
.hx-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 22px 0 10px; }
.hx-day { background: var(--gp-card, #0d0d0d); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 11px 13px; min-width: 0; border-top-width: 3px; }
.hx-day .d { font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-3); }
.hx-day .t { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 10px; }
.hx-day .n { font-size: 13.5px; font-weight: 800; color: var(--warm); margin-top: 4px; line-height: 1.25; }
.hx-day .b { font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.hx-day.station { border-top-color: var(--hx); } .hx-day.station .t { color: var(--hx); }
.hx-day.hybrid { border-top-color: var(--hx); } .hx-day.hybrid .t { color: var(--hx); }
.hx-day.sim { border-top-color: #E53935; } .hx-day.sim .t { color: #E53935; }
.hx-day.race-effort { border-top-color: #E53935; } .hx-day.race-effort .t { color: #E53935; }
.hx-day.tempo { border-top-color: #F59E0B; } .hx-day.tempo .t { color: #F59E0B; }
.hx-day.easy { border-top-color: #4CAF50; } .hx-day.easy .t { color: #4CAF50; }
.hx-day.strength { border-top-color: var(--iron); } .hx-day.strength .t { color: var(--iron); }
.hx-day.rest { border-top-color: var(--line-2); opacity: .75; } .hx-day.rest .t { color: var(--text-3); }
.hx-day.race { border-top-color: var(--orange); } .hx-day.race .t { color: var(--orange); }
@media (max-width: 900px) { .hx-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hx-week { grid-template-columns: 1fr 1fr; } }

/* ── The three levels ── */
.hx-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 8px; }
.hx-level { background: var(--gp-card, #0d0d0d); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 20px; }
.hx-level.pick { border-color: var(--hx-line); box-shadow: var(--hx-glow); }
.hx-level .k { font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--hx); }
.hx-level h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.4px; margin: 8px 0 6px; color: var(--warm); }
.hx-level .who { font-size: 13.5px; color: var(--text-2); line-height: 1.5; min-height: 42px; }
.hx-level ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.hx-level li { font-size: 13px; color: var(--text-2); line-height: 1.45; padding-left: 16px; position: relative; }
.hx-level li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--hx); }
@media (max-width: 760px) { .hx-levels { grid-template-columns: 1fr; } .hx-level .who { min-height: 0; } }

/* ── The weeks table and the station table (the calculator's table style) ── */
.hx-table th:first-child, .hx-table td:first-child { position: sticky; left: 0; background: var(--gp-card, #0d0d0d); }
.hx-table td.yellow { color: var(--hx); font-weight: 700; }
.hx-table td.dim { color: var(--text-3); }
.hx-table tr.taper td, .hx-table tr.taper th { background: rgba(252, 76, 2, 0.06); }
.hx-table tr.deload td { color: var(--text-3); }
.hx-table tr.now td, .hx-table tr.now th { background: var(--hx-tint); }
.hx-table .phase { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); }

/* ── The calculator ── */
.hx-calc .tool-input { font-size: 17px; }
.hx-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hx-presets button { background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: var(--text-2); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hx-presets button:hover { border-color: var(--hx-line); color: #fff; }
.hx-presets button[aria-pressed="true"] { background: var(--hx); color: var(--hx-ink); border-color: var(--hx); }
.hx-out { border: 1px solid var(--line-2); border-radius: 22px; background: var(--gp-card, #0d0d0d); }
.hx-out .hx-sum { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 0; align-items: center; margin-bottom: 18px; }
.hx-out .hx-sum .cell { padding: 10px 18px; }
.hx-out .hx-sum .cell + .cell { border-left: 1px solid rgba(255,255,255,.07); }
.hx-out .hx-sum .k { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.hx-out .hx-sum .cell:first-child .k { color: var(--hx); }
.hx-out .hx-sum .v { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -1.2px; color: var(--warm); font-variant-numeric: tabular-nums; line-height: 1; }
.hx-out .hx-sum .cell:first-child .v { font-size: clamp(48px, 8vw, 84px); letter-spacing: -3px; }
.hx-out .hx-sum .s { font-size: 11px; color: var(--dim); margin-top: 6px; line-height: 1.4; }
.hx-legs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.hx-leg { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
.hx-leg .k { font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); }
.hx-leg .v { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: var(--warm); margin-top: 4px; font-variant-numeric: tabular-nums; }
.hx-leg .s { font-size: 10.5px; color: var(--dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.hx-out h3 { font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-3); margin: 22px 0 6px; }
.hx-out h3.y { color: var(--hx); }
.hx-out h3.o { color: var(--orange); }
.hx-honest { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin-top: 16px; }
.hx-honest b { color: var(--text-2); }
.hx-empty { padding: 22px 0 8px; color: var(--text-3); font-size: 14px; line-height: 1.6; }
.hx-empty .big { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -2px; color: var(--line-2); line-height: 1; margin-bottom: 10px; }
@media (max-width: 900px) { .hx-legs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .hx-out .hx-sum { grid-template-columns: 1fr 1fr; }
  .hx-out .hx-sum .cell:first-child { grid-column: 1 / -1; text-align: center; padding-top: 14px; }
  .hx-out .hx-sum .cell + .cell { border-left: none; }
  .hx-out .hx-sum .cell:nth-child(2), .hx-out .hx-sum .cell:nth-child(3), .hx-out .hx-sum .cell:nth-child(4) { text-align: center; border-top: 1px solid rgba(255,255,255,.07); }
  .hx-out .hx-sum .cell:nth-child(4) { grid-column: 1 / -1; }
  .hx-legs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}

/* ── The station page ── */
.hx-fact { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.hx-swap { background: var(--gp-card, #0d0d0d); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; margin-top: 10px; }
.hx-swap .k { font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx); }
.hx-swap .v { font-size: 15px; font-weight: 800; color: var(--warm); margin-top: 4px; }
.hx-swap .s { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.hx-cue { border-left: 3px solid var(--hx); padding: 4px 0 4px 16px; margin: 16px 0; font-size: 16px; color: var(--warm); font-weight: 600; line-height: 1.5; }
.hx-cue small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); margin-top: 6px; }

/* ── The page's own index of the batch ── */
.hx-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.hx-index a { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .15s; }
.hx-index a:hover { border-color: var(--hx-line); }
.hx-index .n { font-size: 14px; font-weight: 800; color: var(--warm); }
.hx-index .s { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }

/* ── The quiet line near the footer, on every page ── */
.hx-tm { font-size: 12px; color: var(--text-4); line-height: 1.6; margin-top: 26px; max-width: 680px; }

/* ── Everything else the hub borrows from the goal pages ── */
.hx .tool-prose h2 .accent { color: var(--hx); }
.hx .tool-cta-card .section-eyebrow { color: var(--hx); }
.hx .faq-q { font-size: 17px; }
.hx-note { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-top: 10px; }
.hx-note b { color: var(--text-2); }
.hx-sub-list { margin: 10px 0 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hx-sub-list li { font-size: 14.5px; color: var(--text-2); line-height: 1.55; padding-left: 18px; position: relative; }
.hx-sub-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgba(252,76,2,.6); }
.hx-sub-list.y li::before { background: var(--hx); box-shadow: 0 0 8px rgba(255,230,0,.5); }

/* ── The launch form on a phone: stacked, as the homepage's launch list stacks it ── */
@media (max-width: 560px) {
  .hx .email-capture { flex-direction: column; }
  .hx .email-capture input, .hx .email-capture button { flex: none; width: 100%; }
  .hx .email-capture input { font-size: 16px; }
}

/* ── The footer on a HYROX page: five columns (the brand, Product, HYROX, Free tools, Legal) ── */
.footer-grid.hx-five { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid.hx-five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid.hx-five { grid-template-columns: 1fr; } }

/* ── The pace converter: the two inputs side by side, the fade cell marked as an estimate ── */
.hx-conv .tool-row { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .hx-conv .tool-row { grid-template-columns: 1fr; } }
.hx-out .hx-sum .cell .est { display: inline-block; margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hx); border: 1px solid var(--hx-line); border-radius: 999px; padding: 2px 7px; vertical-align: middle; }
.hx-out .hx-sum.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-out .hx-sum.four .cell:first-child .v { font-size: clamp(26px, 4vw, 38px); letter-spacing: -1.2px; }
@media (max-width: 700px) {
  .hx-out .hx-sum.four { grid-template-columns: 1fr 1fr; }
  .hx-out .hx-sum.four .cell:first-child { grid-column: auto; padding-top: 10px; }
  .hx-out .hx-sum.four .cell:nth-child(4) { grid-column: auto; }
  .hx-out .hx-sum.four .cell { text-align: center; }
}
.hx-stationcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 20px 0 8px; }
.hx-stationcards a { display: block; background: var(--gp-card, #0d0d0d); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; transition: border-color .15s; }
.hx-stationcards a:hover { border-color: var(--hx-line); }
.hx-stationcards .o { font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx); }
.hx-stationcards .n { font-size: 18px; font-weight: 900; color: var(--warm); margin-top: 4px; }
.hx-stationcards .d { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; font-variant-numeric: tabular-nums; }
