
@font-face {
font-family: 'Archivo';
src: url('/assets/fonts/archivo-latin-wght.8f704806db.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
:root {
--bg: #f3f5f4;
--paper: #ffffff;
--ink: #121716;
--ink-2: #3d4745;
--muted: #5a6563;
--line: #cfd6d4;
--line-2: #e3e8e6;
--accent: #0b6b4f;
--accent-ink: #ffffff;
--accent-soft: #e2f0eb;
--signal: #c2410c;
--warn-bg: #fff4e5;
--warn-line: #e9a35b;
--focus: #1d4ed8;
--radius: 3px;
--font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
--mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #064a36; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 750; margin: 0.2em 0 0.25em; }
h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.6rem; }
h3, h2.h3 { font-size: 1.12rem; font-weight: 700; margin: 1.4rem 0 0.4rem; }
p { margin: 0 0 1em; }
small { font-size: 0.86em; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-weight: 650; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.num, td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.table-scroll table { min-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.25rem; min-height: 52px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand .mark { stroke: var(--accent); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.main-nav { flex: 1; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a { display: block; padding: 0.85rem 0.6rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; font-size: 0.96rem; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
@media (max-width: 640px) {
.head-row { gap: 0; }
.brand { padding-top: 0.6rem; }
.main-nav { flex-basis: 100%; margin: 0 -1rem; }
.main-nav ul { padding: 0 0.5rem; }
.main-nav a { padding: 0.55rem 0.5rem; }
}
.crumbs ol { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.3rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.page-head { padding: 0.9rem 0 0.9rem; margin-bottom: 1rem; position: relative; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px) bottom/100% 4px no-repeat,
repeating-linear-gradient(90deg, var(--ink-2) 0 1px, transparent 1px 50px) bottom/100% 8px no-repeat; opacity: 0.55; }
.page-head.compact { padding: 0.4rem 0 0.7rem; margin-bottom: 0.8rem; }
.page-head.compact h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
.lede { color: var(--ink-2); max-width: 70ch; margin: 0; }
.page-head.compact .lede { font-size: 0.97rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.tool-wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.inputs, .results { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.results { border-top: 4px solid var(--accent); }
.results.stale > :not(.actions) { opacity: 0.45; }
@media (min-width: 861px) { .tool:not(.tool-wide) .results { position: sticky; top: 0.75rem; } }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 0.9rem; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field.wide, .field.activity { grid-column: 1 / -1; }
@media (max-width: 520px) { .field.wide-sm { grid-column: 1 / -1; } }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.3rem; padding: 0; }
.help { color: var(--muted); font-size: 0.86rem; margin: 0.3rem 0 0; }
.inwrap { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.inwrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.inwrap input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 1.15rem var(--font); font-variant-numeric: tabular-nums; padding: 0.6rem 0.65rem; min-height: 48px; color: var(--ink); }
.inwrap input:focus { outline: none; }
.inwrap input[aria-invalid='true'] { background: #fff1ee; }
.suffix { display: flex; align-items: center; padding: 0 0.65rem; color: var(--muted); font-size: 0.92rem; border-left: 1px solid var(--line-2); background: #f7f9f8; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }
.inwrap input { width: 100%; }
@media (max-width: 420px) { .fields { gap: 0.75rem 0.6rem; } .suffix { padding: 0 0.45rem; } }
select { width: 100%; min-height: 48px; font: 500 1rem var(--font); padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.segs { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.segs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segs label { flex: 1; text-align: center; padding: 0.7rem 0.4rem; min-height: 48px; cursor: pointer; font-weight: 600; font-size: 0.95rem; border-right: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.segs label:last-child { border-right: 0; }
.segs input:checked + label { background: var(--ink); color: #fff; }
.segs input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -3px; }
.activity .act { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.55rem 0.6rem; border: 1px solid var(--line-2); border-radius: var(--radius); margin-top: 0.4rem; cursor: pointer; background: #fff; }
.activity .act:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.activity .act input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.activity small { color: var(--ink-2); }
.mult { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.unit-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.9rem; overflow: hidden; }
.unit-switch button { font: 600 0.88rem var(--font); border: 0; background: #fff; padding: 0.5rem 0.75rem; min-height: 40px; cursor: pointer; color: var(--ink-2); }
.unit-switch button + button { border-left: 1px solid var(--line); }
.unit-switch button[aria-pressed='true'] { background: var(--ink); color: #fff; }
html[data-units='us'] .u-metric, html[data-units='metric'] .u-us { display: none !important; }
.errors { margin-top: 0.9rem; padding: 0.7rem 0.8rem; background: #fff1ee; border-left: 4px solid var(--signal); font-size: 0.93rem; }
.errors ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.free-note { color: var(--muted); font-size: 0.88rem; margin: 0.6rem 0 0; }
.big { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; align-items: flex-start; margin-bottom: 0.4rem; }
.stat { min-width: 0; }
.stat .lbl { display: block; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.stat .val { display: block; font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .val small { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 0.2rem; }
.stat.sm .val { font-size: 1.6rem; }
.range { color: var(--ink-2); font-size: 0.93rem; margin: 0 0 0.6rem; font-variant-numeric: tabular-nums; }
.method { font-size: 0.88rem; color: var(--ink-2); margin: 0 0 0.7rem; }
.rows { width: 100%; margin: 0.4rem 0 0.8rem; }
.rows th { font-weight: 600; color: var(--ink-2); font-size: 0.9rem; }
.rows td { font-variant-numeric: tabular-nums; }
.rows tr.me td, .rows tr.me th { background: var(--accent-soft); }
.rows td.n b { font-size: 1.08rem; }
.macro-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0.5rem 0 0.8rem; }
.macro-bars div { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0.5rem 0.6rem; }
.macro-bars b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.macro-bars span { font-size: 0.85rem; color: var(--muted); }
.note { font-size: 0.9rem; color: var(--ink-2); margin: 0.6rem 0 0; padding-left: 0.7rem; border-left: 3px solid var(--line); }
.note.warn, .warn { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 0.6rem 0.75rem; color: var(--ink); }
.note.est { border-left-color: var(--accent); }
.next { font-size: 0.95rem; margin: 0.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
.next span { font-weight: 700; }
.actions { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--line-2); display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.copy-msg { font-size: 0.86rem; color: var(--muted); }
.btn, .btn-link { font: 600 0.95rem var(--font); cursor: pointer; border-radius: var(--radius); }
.btn { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 0.55rem 0.9rem; min-height: 44px; text-decoration: none; }
.btn:hover { background: #2b3331; color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn-link { border: 0; background: none; color: var(--accent); text-decoration: underline; padding: 0.4rem 0; min-height: 44px; }
.file-btn { position: relative; }
.btnrow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
[hidden] { display: none !important; }
.prose { max-width: 74ch; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.25rem 0; }
.prose .table-scroll { max-width: none; }
.formula { font-family: var(--mono); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 0.7rem 0.9rem; overflow-x: auto; font-size: 0.93rem; white-space: pre-wrap; border-radius: var(--radius); }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 0.8rem 1rem; margin: 1rem 0 1.4rem; border-radius: var(--radius); }
.callout p:last-child { margin: 0; }
.cite { font-size: 0.78em; vertical-align: super; text-decoration: none; margin-left: 1px; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.2rem 0; max-width: 74ch; }
.faq summary { cursor: pointer; font-weight: 650; padding: 0.7rem 0; list-style-position: outside; }
.faq details > div { padding: 0 0 0.8rem; color: var(--ink-2); }
.sources ol { font-size: 0.88rem; color: var(--ink-2); padding-left: 1.4rem; max-width: 90ch; }
.sources li { margin: 0.35rem 0; overflow-wrap: anywhere; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.related li { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
.related li a { font-weight: 650; }
.related li span { display: block; font-size: 0.88rem; color: var(--muted); }
.index-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); max-width: 80ch; }
.index-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 16rem) 1fr; gap: 0.2rem 1rem; }
.index-list a { font-weight: 650; }
.index-list span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 560px) { .index-list li { grid-template-columns: 1fr; } }
.chart { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .raw { fill: var(--muted); }
.chart .tr { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .goal { stroke: var(--signal); stroke-dasharray: 5 4; stroke-width: 1.5; }
.chart .fc { fill: none; stroke: var(--accent); stroke-dasharray: 4 4; stroke-width: 1.5; }
.chart .fcband { fill: var(--accent-soft); }
.log { margin-top: 0.8rem; }
.log table input { width: 100%; min-width: 6.5rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem; font: 500 0.95rem var(--font); }
.log td { padding: 0.3rem 0.4rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.inline-form .field { flex: 1 1 9rem; }
.plan-week { margin: 0 0 1rem; break-inside: avoid; }
.plan-week h3 { margin: 1rem 0 0.3rem; display: flex; gap: 0.6rem; align-items: baseline; }
.tag { font-size: 0.78rem; font-weight: 650; padding: 0.1rem 0.45rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); }
.tag.recovery, .tag.deload { border-color: var(--accent); color: var(--accent); }
.tag.race { background: var(--ink); color: #fff; border-color: var(--ink); }
.pace-band { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); border: 2px solid var(--ink); max-width: 760px; }
.pace-band div { padding: 0.35rem 0.5rem; border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.pace-band b { display: block; font-size: 1.05rem; }
.pace-band span { font-size: 0.78rem; color: var(--muted); }
.dial { font-size: clamp(2.6rem, 10vw, 4rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.meter { height: 12px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin: 0.6rem 0; }
.meter > i { display: block; height: 100%; background: var(--accent); width: 0; }
.ad-slot { margin: 1.2rem 0; min-height: 280px; background: #eef1f0; border: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-label { font-size: 0.75rem; color: var(--muted); }
.ad-ins { display: block; width: 100%; min-height: 250px; }
@media (min-width: 861px) { .ad-slot { min-height: 120px; } .ad-ins { min-height: 90px; } }
.site-foot { margin-top: 3rem; background: var(--paper); border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; font-size: 0.93rem; }
.site-foot h2 { font-size: 0.98rem; margin: 0 0 0.4rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0.25rem 0; }
.site-foot a { color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; margin: 1.4rem 0; }
.data-tools { padding-bottom: 1rem; border-bottom: 1px solid var(--line-2); }
.data-tools p { margin: 0 0 0.5rem; color: var(--ink-2); }
.io-msg { min-height: 1.2em; font-size: 0.88rem; }
.foot-note, .foot-links { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
body { background: #fff; font-size: 11pt; }
.site-head, .site-foot, .crumbs, .unit-switch, .actions, .related, .faq, .ad-slot, .free-note, .no-print, .skip, .inputs .help { display: none !important; }
.tool { display: block; }
.inputs, .results { border: 1px solid #999; }
.page-head::after { display: none; }
a { color: inherit; text-decoration: none; }
.print-only { display: block !important; }
}
.print-only { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field.mini { flex: 0 1 12rem; }
.field.mini .lbl { display: block; font-size: 0.88rem; font-weight: 600; }
.plate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.4rem; }
.plate-grid .act { margin: 0; }
.bar-viz { display: flex; align-items: center; gap: 2px; min-height: 90px; margin: 0.6rem 0; }
.bar-viz .shaft { width: 60px; height: 8px; background: var(--ink-2); }
.bar-viz .pl { background: var(--ink); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; width: 22px; border-radius: 2px; }
.fields > .wide { grid-column: 1 / -1; }
.bmi-under { background: #e8eef9; } .bmi-normal { background: #e2f0eb; } .bmi-over { background: #fbf1df; }
.bmi-obese1, .bmi-obese2, .bmi-obese3 { background: #f8e3dc; }
.bmi-table td { padding: 0.3rem 0.4rem; font-size: 0.85rem; }
.bmi-key { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.88rem; }
.bmi-key span { padding: 0.2rem 0.5rem; border: 1px solid var(--line-2); }
.plan-week tr.rest td, .plan-week tr.rest th { color: var(--muted); }
.plan-week th { width: 7.5rem; }
