:root { color-scheme: light; --bg: #FCF7F7; --surface: #FFFFFF; --surface-2: #F8EDEF; --ink: #24131A; --ink-2: #5C4A50; --muted: #5C4A50; --line: #EDD9DD; --field: #8C767D; --brand: #BE2C38; --brand-strong: #96202A; --brand-soft: #FBE9EB; --brand-ink: #FFFFFF; --panel: #FDF4F5; --panel-ink: #24131A; --panel-muted: #5C4A50; --accent: #1F5E96; --band: #96202A; --band-ink: #FFFFFF; --band-muted: #F7DDE0; --good: #1D6B47; --good-soft: #E3F2EA; --warn: #8A4600; --warn-soft: #FBF0DF; --bad: #A32A23; --bad-soft: #FBEBE8; --focus: #1F5E96; --foot-bg: #26121A; --foot-ink: #FFFFFF; --foot-muted: #C7C1C3; --foot-tint: #D16972; }
/* vo2maxcalculator.com. Phone-first, light only. Colors come from brand/tokens.json (written above this line by the build). */
@font-face { font-family: Saira; src: url(/fonts/saira-latin.woff2) format("woff2"); font-weight: 400 800; font-stretch: 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.62 Saira, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; -webkit-tap-highlight-color: rgba(190, 44, 56, .15); }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem); margin-bottom: .55em; }
h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; } ul, ol { margin: 0 0 1em; padding-left: 1.25em; } li { margin-bottom: .45em; }
a { color: var(--brand); text-underline-offset: 2px; } a:hover { color: var(--brand-strong); }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
button, a, input, select, summary, label { touch-action: manipulation; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(252, 247, 247, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; font-weight: 800; letter-spacing: -.02em; font-size: 1.08rem; }
.brand svg { flex: none; }
.brand span b { color: var(--brand); font-weight: 800; }
.nav { display: none; margin-left: auto; gap: 2px; align-items: center; }
.nav a, .nav summary { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.nav details { position: relative; }
.nav .drop { position: absolute; top: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(16, 33, 43, .14); padding: 8px; width: 300px; display: grid; }
.nav .drop a { padding: 9px 12px; font-weight: 600; }
.menu { margin-left: auto; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 16px; right: 16px; top: 60px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 44px rgba(16, 33, 43, .18); padding: 10px 14px 14px; max-height: calc(100vh - 80px); overflow: auto; }
.menu-panel p { margin: 10px 0 4px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.menu-panel a { display: block; padding: 9px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--surface-2); }
@media (min-width: 1000px) { .nav { display: flex; } .menu { display: none; } }

/* Page head */
.page-head { padding: 22px 0 6px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin-top: 12px; }
.points { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.points li { position: relative; padding-left: 26px; margin: 0; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.checked, .byline { font-size: .88rem; color: var(--muted); margin: 4px 0; }

/* Calculator layout */
.tool-layout { display: grid; gap: 18px; padding-bottom: 28px; }
.tool-layout > * { min-width: 0; }
@media (min-width: 960px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr) 480px; gap: 0 48px; align-items: start; }
  .tool-layout .page-head, .tool-layout .head-more { grid-column: 1; }
  .tool-layout .tool-col { grid-column: 2; grid-row: 1 / span 3; position: relative; }
  .page-head { padding-top: 34px; }
}
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 1px 2px rgba(16, 33, 43, .04), 0 14px 34px rgba(16, 33, 43, .07); }
.calc + .calc { margin-top: 18px; }
.calc-h { font-size: 1.15rem; margin: 0 0 12px; }
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 500; font-size: .93rem; margin-bottom: 6px; padding: 0; }
.help { display: block; color: var(--muted); font-size: .82rem; margin-top: 5px; }
.in-row { display: flex; align-items: stretch; gap: 8px; }
input[type="number"], input[type="text"], select { width: 100%; min-height: 48px; padding: 10px 12px; font: 600 1.05rem/1.2 Saira, system-ui, sans-serif; color: var(--ink); background: var(--surface); border: 1.5px solid var(--field); border-radius: 12px; font-variant-numeric: tabular-nums; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); outline-offset: 0; }
.suffix { align-self: center; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.units { display: inline-flex; border: 1.5px solid var(--field); border-radius: 12px; overflow: hidden; flex: none; }
.units button { min-width: 52px; min-height: 45px; border: 0; background: var(--surface); color: var(--ink-2); font: 700 .9rem Saira, system-ui, sans-serif; cursor: pointer; padding: 0 10px; }
.units button + button { border-left: 1.5px solid var(--field); }
.units button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .mgrid label { position: relative; cursor: pointer; }
.seg input, .mgrid input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: grid; place-items: center; min-height: 46px; border: 1.5px solid var(--field); border-radius: 12px; font-weight: 700; background: var(--surface); }
.seg input:checked + span, .mgrid input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span, .mgrid input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mgrid span { display: block; min-height: 58px; border: 1.5px solid var(--field); border-radius: 14px; padding: 9px 11px; background: var(--surface); }
.mgrid b { display: block; font-size: .95rem; } .mgrid small { display: block; font-size: .78rem; color: var(--muted); }
.mgrid input:checked + span small { color: var(--brand-ink); }
.mgrid label:last-child { grid-column: 1 / -1; }
@media (min-width: 520px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mgrid label:last-child { grid-column: auto; } }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 420px) { .row2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* Result */
.result { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 6px; margin-top: 6px; color: var(--panel-ink); }
.r-k { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--panel-muted); margin: 0 0 2px; }
.r-v { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.r-v strong { font-weight: 800; font-size: clamp(2.3rem, 1.9rem + 2vw, 3rem); line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.r-v span { font-weight: 700; color: var(--panel-muted); }
.r-range { font-weight: 600; margin-bottom: .6em; }
.r-line, .r-src, .r-msg { font-size: .93rem; margin-bottom: .6em; }
.r-src { color: var(--panel-muted); font-size: .84rem; border-top: 1px solid var(--line); padding-top: 8px; }
.r-warn { font-size: .9rem; background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 8px 10px; border-radius: 8px; }
.r-msg { font-weight: 600; }
.r-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.r-table caption { text-align: left; font-weight: 700; padding: 4px 0; }
.r-table th, .r-table td { padding: 5px 0; border-bottom: 1px solid var(--line); text-align: left; } .r-table td { text-align: right; }
.calc-note { font-size: .85rem; color: var(--muted); margin: 12px 2px 0; }

/* Article */
.article { display: grid; gap: 28px; padding: 8px 0 48px; }
.article > * { min-width: 0; }
@media (min-width: 960px) { .article { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } .side-in { position: sticky; top: 84px; } }
.prose { max-width: 760px; }
.prose section { padding-top: 10px; margin-bottom: 26px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.panel-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.panel ul { list-style: none; padding: 0; margin: 0; } .panel li { margin: 0; border-bottom: 1px solid var(--surface-2); } .panel li:last-child { border: 0; }
.panel li a { display: block; padding: 8px 0; text-decoration: none; font-weight: 600; }
.panel dl { margin: 0; display: grid; gap: 10px; } .panel dt { font-size: .8rem; color: var(--muted); font-weight: 700; } .panel dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.toc-m { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 18px; }
.toc-m summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.toc-m ul { list-style: none; padding: 0 0 8px; } .toc-m a { display: block; padding: 6px 0; }
@media (min-width: 960px) { .toc-m { display: none; } }
@media (max-width: 959px) { .toc-d { display: none; } }
.hero-grid { display: grid; gap: 16px; padding-bottom: 8px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; } }
.tbl { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl caption { text-align: left; font-weight: 700; padding: 12px 14px 4px; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--surface-2); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--surface-2); color: var(--ink-2); font-size: .82rem; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl.num td, .tbl table.num td { font-variant-numeric: tabular-nums; text-align: right; }
table.num td { font-variant-numeric: tabular-nums; text-align: right; }
.eq { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface); border-radius: 12px; padding: 14px 16px 6px; margin: 0 0 18px; }
.eq-k { font-weight: 800; margin-bottom: 6px; }
.eq-f { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9rem; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.eq dl { margin: 0; display: grid; gap: 6px; } .eq dl div { display: grid; gap: 2px; } .eq dt { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .eq dd { margin: 0 0 6px; font-size: .93rem; }
@media (min-width: 640px) { .eq dl div { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; } }
.faq h3 { margin-top: 1em; }
.srcs ul { padding-left: 1.1em; } .srcs small { color: var(--muted); }
.callout { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--brand); color: var(--brand-ink); font: 700 .95rem Saira, system-ui, sans-serif; cursor: pointer; text-decoration: none; margin-right: 8px; }
.btn:hover { background: var(--brand-strong); color: var(--brand-ink); }
pre.code { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); padding: 12px; border-radius: 10px; font-size: .85rem; }

/* Home bands */
.band { padding: 34px 0; } .band.alt { background: var(--surface-2); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(16, 33, 43, .08); color: var(--ink); }
.card b { display: block; font-size: 1.02rem; } .card span { color: var(--muted); font-size: .9rem; }
.home-prose { max-width: 820px; }
.trust { background: var(--band); color: var(--band-ink); padding: 34px 0; }
.trust a { color: var(--band-ink); } .trust p { color: var(--band-muted); max-width: 70ch; } .trust h2 { color: var(--band-ink); }

/* Footer */
.site-foot { background: var(--foot-bg); color: var(--foot-muted); padding: 40px 0 28px; font-size: .92rem; }
.site-foot a { color: var(--foot-ink); text-decoration: none; } .site-foot a:hover { text-decoration: underline; color: var(--foot-ink); }
.foot-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--foot-muted); margin: 0 0 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; } .site-foot li { margin: 0 0 6px; }
.foot-brand { color: var(--foot-ink); font-weight: 800; font-size: 1.05rem; }
.fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 26px; padding-top: 16px; }
.fine p { margin: 0 0 8px; }

/* Embed */
body.embed { background: var(--surface); } body.embed main { padding: 12px; max-width: 560px; margin: 0 auto; } body.embed h1 { font-size: 1.3rem; margin-bottom: 12px; }
.embed-credit { font-size: .85rem; margin-top: 10px; }

/* Print: the chart page prints its tables and source line */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  .site-head, .site-foot, .ad-slot, .side, .crumbs, .toc-m, .calc, .btn, .faq, .page-head .eyebrow { display: none !important; }
  .article { display: block; padding: 0; } .prose { max-width: none; }
  .tbl { border: 0; overflow: visible; } .tbl th, .tbl td { padding: 3px 6px; }
  section { break-inside: avoid; }
  .print-credit { display: block !important; font-size: 9pt; }
  a { color: #000; text-decoration: none; }
}
.print-credit { display: none; }
table.num thead th:not(:first-child) { text-align: right; }
@media (min-width: 960px) { .tool-layout .tool-col { margin-top: 26px; } }

/* Logo pack lockups (logo/README.txt): full lockup in the header, compact on narrow phones, footer lockups on the dark band */
.brand img { display: block; height: 32px; width: auto; }
.brand .lk-compact { display: none; height: 34px; }
@media (max-width: 399px) { .brand .lk-full { display: none; } .brand .lk-compact { display: block; } }
.foot-logo { display: block; height: 30px; width: auto; margin: 0 0 12px -4px; }
.tbl table, .r-table, .r-line, .r-range, .eq-f, input { font-variant-numeric: tabular-nums; }
.brandname sub, sub.v2 { font-size: .72em; line-height: 0; vertical-align: -.22em; }


/* AdSense units (adsense-unit.mjs): space reserved, labelled, collapsed when unfilled or off */
.ad-slot { display: block; position: relative; clear: both; min-height: 280px; margin: 40px auto 32px; padding-top: 4px; box-sizing: border-box; grid-column: 1 / -1; flex-basis: 100%; max-width: 100%; contain: layout; }
.ad-slot::before { content: "Advertisement"; position: absolute; top: -20px; left: 0; font-size: .72rem; line-height: 1.4; color: #6b6b6b; letter-spacing: .02em; }
main > .ad-slot { width: min(1100px, calc(100% - 32px)); }
@media (min-width: 900px) { .ad-slot { min-height: 250px; } }
.ads-off .ad-slot, .ad-slot:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
@media print { .ad-slot { display: none !important; } }

.ad-slot.ad-desk { display: none; }
@media (min-width: 768px) { .ad-slot.ad-desk { display: block; } .ads-off .ad-slot.ad-desk { display: none !important; } }
