/* Origin, wearing Otis. Tokens and base styles live in assets/otis/otis.css, untouched. This file adds only what the site needs. */

html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; }
b { font-weight: 500; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); }
:root { --on-accent: var(--ink); }
[data-theme="dark"] { --on-accent: var(--paper); }

.skip { position: absolute; left: 16px; top: -48px; z-index: 10; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-size: 14px; transition: top var(--fast) var(--ease); }
.skip:focus { top: 14px; text-decoration: none; }

/* Without the script, controls that need it stay out of the way. */
html:not(.app) .js-only,
.hillbox:not(.is-live) .hill-tag,
.hillbox:not(.is-live) .hill-hint,
.hillbox:not(.is-live) .hill-input,
.hillbox:not(.is-live) .hill-handle,
.hillbox-race:not(.is-live),
.tool:not(.is-live) .bat-live { display: none !important; }

/* Hit areas reach 40px without changing how anything looks. */
.btn { position: relative; }
.btn::after { content: ""; position: absolute; inset: -2px 0; }
.btn-sm::after { inset: -6px 0; }
.btn:active { transform: scale(.98); transition-duration: 60ms; }
.btn:focus-visible { border-radius: var(--radius); }

/* ---------- Nav ---------- */
.nav .links { align-items: center; }
.nav .links a { display: inline-flex; align-items: center; min-height: 40px; }
.nav .links a[aria-current] { color: var(--ink); }
.wordmark { min-height: 40px; }
a.wordmark:hover { text-decoration: none; }
.agent { min-height: 32px !important; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-size: 12px; position: relative; transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.agent::after { content: ""; position: absolute; inset: -4px 0; }
.agent:hover { border-color: var(--ink-3); text-decoration: none; }

/* ---------- The climb: the front page hero ---------- */
.climb { overflow-x: clip; }
.climb-stage { position: relative; height: 540px; }
.climb-text { position: relative; z-index: 2; padding-top: 36px; max-width: 660px; pointer-events: none; }
.climb-text > * { pointer-events: auto; }
.climb-text h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.035em; }
/* The orange square, as the point of the question mark. It sits over the font's own dot. */
.q { position: relative; display: inline-block; }
.q::after { content: ""; position: absolute; left: .193em; bottom: .156em; width: .18em; height: .18em; border-radius: .034em; background: var(--accent); }
.climb-text p { margin-top: 20px; font-size: 17px; line-height: 1.5; max-width: 46ch; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; width: fit-content; }

.hillbox { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.hillbox.is-dragging { cursor: grabbing; }
.hillbox:not(.is-live) { cursor: auto; }
.hillbox:not(.hillbox-race) { animation: arrive var(--move) var(--ease) both; animation-delay: calc(var(--stagger) * 3); }
.hill, .man-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.man-layer { z-index: 1; }
.hill-fill { fill: var(--accent); stroke: none; }
.illo .leg { fill: var(--paper); }
.illo .arm-halo { stroke: var(--paper); fill: none; }
.illo .arm { fill: none; }
.illo .head, .illo .watch { fill: var(--paper); }
.man-static { position: absolute; overflow: visible; pointer-events: none; }

/* The line lifts off the ground at the left edge of the page and runs off the right. */
.hill-lead { position: absolute; right: 100%; width: 50vw; bottom: -1px; height: 2px; background: currentColor; pointer-events: none; }
.hill-tail { position: absolute; left: 100%; top: calc(210 / 556 * 100%); width: 50vw; height: 400px; overflow: visible; pointer-events: none; }
.hill-ground { position: absolute; left: calc(50% - 50vw); width: 100vw; bottom: 0; height: 1px; background: var(--line); pointer-events: none; }

/* Race day: he stops at the flag. Its foot is on the line at x 948, y 212. */
.flag { --pole: 148px; position: absolute; right: calc(28 / 976 * 100%); bottom: calc((556 - 212) / 556 * 100%); width: 2px; height: var(--pole); background: currentColor; border-radius: 1px; pointer-events: none; }
.flag svg { position: absolute; right: 0; top: -1px; }
.flag-label { position: absolute; right: calc(28 / 976 * 100% + 44px); bottom: calc((556 - 212) / 556 * 100% + var(--label-up, 134px)); white-space: nowrap; pointer-events: none; }

/* The whole drawing is the handle. The dot is there for the keyboard. */
.hill-handle { position: absolute; left: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); pointer-events: none; opacity: 0; }
.hill-input { position: absolute; left: 0; bottom: -20px; width: 100%; height: 40px; margin: 0; opacity: 0; pointer-events: none; }
.hill-input:focus-visible ~ .hill-handle { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.hill-tag { position: absolute; left: 0; top: 0; z-index: 2; white-space: nowrap; pointer-events: none; }
.hill-tag > span { display: block; transform: translateX(-50%); padding: 0 3px; background: var(--paper); color: var(--ink); }
.hill-hint { position: absolute; left: 0; top: 0; z-index: 2; font-size: 13px; line-height: 1.3; white-space: nowrap; color: var(--ink-2); pointer-events: none; }

.climb-note { display: flex; align-items: baseline; gap: 24px; padding-top: 18px; min-height: 56px; font-size: 15px; color: var(--ink-2); animation: arrive var(--move) var(--ease) both; animation-delay: calc(var(--stagger) * 4); }
.climb-note p { flex: 1; min-width: 0; }
.climb-note b { color: var(--ink); }
.climb-reset { flex: none; }

/* ---------- Sections. The hairline between them sits inside the column, not across the whole page ---------- */
.section { padding: 0 0 28px; border-top: 0 !important; }
.section > .wrap::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 56px; }
.home .section > .wrap::before { margin-bottom: 64px; }
.climb + .section > .wrap::before { height: 0; margin-bottom: 44px; background: none; }
.wrap:has(> .page-head) + .section > .wrap::before { height: 0; background: none; }
h1, h2 { text-wrap: balance; }
p, li span { text-wrap: pretty; }
.section h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.section h3 { margin-top: 28px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.lede { margin-top: 10px; max-width: 50ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.lede + .lede { margin-top: 12px; }
.lede b { color: var(--ink); }
.lede a, .fine a, .foot a, .list a, .prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color var(--fast) var(--ease); }
.lede a:hover, .fine a:hover, .foot a:hover, .list a:hover, .prose a:hover { text-decoration-color: var(--ink); }
.fine { margin-top: 16px; max-width: 65ch; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* The story at the top of the front page. One thing on the page gets to be big. */
.lead h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; max-width: 22ch; }
.lead h2 a { color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color var(--fast) var(--ease); }
.lead h2 a:hover { text-decoration-color: var(--ink); }
.lead .lede { margin-top: 14px; max-width: 58ch; }

/* ---------- Lists: a name, one sentence, a hairline ---------- */
.list { list-style: none; margin: 22px 0 0; padding: 0; }
.section h3 + .list { margin-top: 10px; }
.list li { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; scroll-margin-top: 24px; }
.list li > a, .list li > b { font-weight: 500; color: var(--ink); width: fit-content; }
.list li > span { color: var(--ink-2); max-width: 62ch; }
.claim { min-width: 0; }
.claim > a, .claim > b { display: block; width: fit-content; font-weight: 500; color: var(--ink); }
.claim cite { display: block; margin-top: 3px; font-size: 13px; font-style: normal; line-height: 1.4; color: var(--ink-2); }
.claim cite a { color: inherit; }
.list li:target { margin-inline: -10px; padding-inline: 10px; background: var(--accent-soft); }

/* ---------- Gear: the battery tool. A thing you operate, so it gets the box. The hill and the bars share one scale, 0 to 30 hours. ---------- */
.tool { margin-top: 24px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 8px; }
#battery { overflow-x: clip; }
.tool-head { position: relative; z-index: 1; width: fit-content; font-size: 15px; font-weight: 500; }
.tool-head output { display: block; margin-top: 2px; font-size: 32px; line-height: 1.15; font-weight: 500; }
.hillbox-race { position: relative; inset: auto; height: 170px; margin-top: -44px; }
.hillbox-race .hill-ground { left: 0; width: 100%; }
.bat-dead { position: absolute; left: calc(21 / 30 * 100% + 6px); bottom: 6px; color: var(--on-accent); opacity: 0; pointer-events: none; transition: opacity var(--fast) var(--ease); }
.bat-dead.is-wide { opacity: 1; }
.bat-rows { position: relative; list-style: none; margin: 22px 0 0; padding: 0; }
.bat-rows li:not(.bat-line) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; padding-top: 12px; font-size: 13px; line-height: 1.3; }
.bat-rows li:first-child { padding-top: 0; }
.bat-name, .bat-fig { position: relative; z-index: 1; background: var(--paper); } /* the finish line passes behind the words, not through them */
.bat-name { width: fit-content; padding-right: 8px; color: var(--ink); }
.bat-fig { display: inline-flex; gap: 10px; padding-left: 8px; color: var(--ink-2); }
.bat-fig .num { font-size: 13px; }
.bat-left { min-width: 76px; text-align: right; font-family: var(--mono); font-size: 12px; }
.bat-rows .bar { grid-column: 1 / -1; position: relative; background: var(--surface); }
.bat-rows .bar b { position: absolute; top: 0; bottom: 0; width: 0; background: var(--accent); }
.bat-rows .is-short .bat-left { color: var(--accent-text); }
.bat-line { position: absolute; left: 0; top: -22px; bottom: 0; width: 1px; margin-left: -.5px; background: var(--ink-3); pointer-events: none; }
.bat-say { margin-top: 16px; max-width: 65ch; font-size: 15px; line-height: 1.5; color: var(--ink); }
.bat-reset { margin-top: 12px; }

/* ---------- Page heads ---------- */
.page-head { padding: 40px 0 44px; }
.page-head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; }
.page-head p { margin-top: 14px; max-width: 58ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.page-head p + p { margin-top: 12px; }
.page-head { border-bottom: 1px solid var(--line); }
.narrow .page-head, .narrow .section > .wrap > *, .narrow .section > .wrap::before { max-width: 720px; }
.narrow .list li { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }

/* ---------- Article ---------- */
.post { display: grid; grid-template-columns: minmax(0, 65ch) minmax(0, 1fr); gap: 0 56px; align-items: start; padding-top: 40px; padding-bottom: 56px; }
.post-head { grid-column: 1; grid-row: 1; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 24px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.post-meta b { font-weight: 500; color: var(--ink); }
.post-lede { margin-top: 18px; font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.post-read-first { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.post-read-first b { color: var(--ink); }
.post .prose { grid-column: 1; grid-row: 2; max-width: none; min-width: 0; }
.post .toc { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.toc summary { list-style: none; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); min-height: 28px; display: flex; align-items: center; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-1px) rotate(45deg); transition: transform var(--fast) var(--ease); }
.toc[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.toc ol { list-style: none; margin: 4px 0 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 28px; padding: 3px 0; color: var(--ink-2); transition: color var(--fast) var(--ease); }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc-sub a { padding-left: 12px; }
.prose h2:first-child { margin-top: 40px; }
.prose h3 { margin: 36px 0 8px; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
.prose .phase-when { margin: 32px 0 -2px; font-size: 13px; color: var(--ink-2); }
.prose .phase-when + h3 { margin-top: 6px; }
.prose ol { padding-left: 22px; margin: 0 0 22px; }
.prose ol li, .prose ul li { margin-bottom: 8px; }
.prose li b { font-weight: 500; }
.spec { margin: 0 0 22px; }
.spec table { font-size: 13px; line-height: 1.45; }
.spec caption { padding: 11px 12px 6px; text-align: left; font-size: 15px; font-weight: 500; color: var(--ink); }
.spec thead th { font-family: var(--mono); }
.spec tbody th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-family: var(--sans); font-size: 13px; font-weight: 500; line-height: 1.45; text-transform: none; letter-spacing: 0; white-space: normal; color: var(--ink); }
.spec tbody td { padding: 9px 10px; vertical-align: top; }
.spec tbody td:last-child { color: var(--ink-2); }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec .num { font-size: 12px; }
.prose .post-sources { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.post-end { padding-top: 56px; margin-top: 40px; border-top: 1px solid var(--line); }
.prose .post-end h2 { margin-top: 0; font-size: 24px; }
.prose .post-end p { margin-bottom: 0; }
.post-end > p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.prose .list { padding: 0; margin: 18px 0 0; }
.prose .list li { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; margin: 0; }
.prose .news { margin-top: 18px; }
.prose .fine { margin-top: 14px; }

/* ---------- Newsletter ---------- */
.news { margin-top: 20px; max-width: 480px; }
.news .label { display: block; margin-bottom: 8px; }
.news-row { display: flex; gap: 8px; }
.news .btn { height: 40px; }
.news .btn::after { inset: 0; }
.news input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; transition: border-color var(--fast) var(--ease); }
.news input::placeholder { color: var(--ink-2); opacity: 1; }
.news input:hover { border-color: var(--ink-3); }
.news input:focus { outline: 0; border-color: var(--ink); }
.news input[aria-invalid] { border-color: var(--bad); }
.form-msg { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.form-msg:not(:empty) { margin-top: 10px; }
.form-msg.err { color: var(--bad); }

/* ---------- Footer ---------- */
.foot { margin-top: 24px; border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.foot-top { display: grid; grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between; gap: 32px; }
.foot-top ul { list-style: none; margin: 0; padding: 0; }
.foot-top li + li { margin-top: 6px; }
.foot-machine { margin-top: 20px; font-family: var(--mono); font-size: 12px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 10px; }
.foot-base p { max-width: 80ch; }
.foot-end { display: flex; align-items: center; gap: 16px; flex: none; color: var(--ink); }
.foot-end span { font-weight: 500; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .climb-stage { height: auto; }
  .climb-text { max-width: none; padding-top: 24px; }
  .hillbox:not(.hillbox-race) { position: relative; inset: auto; height: 320px; margin-top: 44px; }
  .post { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .post .toc { grid-column: 1; grid-row: 2; position: static; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .post .toc[open] { padding-bottom: 12px; }
  .post .prose { grid-column: 1; grid-row: 3; }
  .post-head { grid-row: 1; }
  .post-head { border-bottom: 0; }
  .prose h2:first-child { margin-top: 32px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav { flex-wrap: wrap; height: auto; padding: 12px 0 4px; row-gap: 2px; }
  .nav .links { order: 3; width: 100%; gap: 0 14px; justify-content: flex-start; flex-wrap: wrap; }
  .agent { position: absolute; top: 16px; right: 16px; }
  .climb-text h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; }
  .hillbox:not(.hillbox-race) { height: 236px; margin-top: 56px; }
  .flag { --pole: 120px; }
  .flag-label { --label-up: 106px; }
  .climb-note { flex-direction: column; gap: 12px; min-height: 92px; align-items: flex-start; }
  .lead h2 { font-size: 40px; max-width: none; }
  .list li, .prose .list li, .narrow .list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .page-head { padding: 24px 0 32px; }
  .tool { padding: 14px 12px 16px; margin-inline: -4px; }
  .hillbox-race { height: 136px; margin-top: -36px; }
  .tool-head output { font-size: 24px; }
  .spec table, .spec tbody, .spec tr, .spec tbody th, .spec tbody td { display: block; width: auto; }
  .spec thead { display: none; }
  .spec tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .spec tr:last-child { border-bottom: 0; }
  .spec tbody th, .spec tbody td { padding: 0; border: 0; }
  .spec tbody td { margin-top: 3px; }
  .post { padding-bottom: 40px; }
  .post-lede { font-size: 17px; line-height: 1.5; margin-top: 14px; }
  .post-read-first { font-size: 13px; line-height: 1.5; margin-top: 12px; }
  .post-meta { margin-bottom: 16px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-end { width: 100%; justify-content: space-between; }
}

/* Fingers get 40px everywhere. A mouse can keep the tighter rows Otis wants. */
@media (pointer: coarse) {
  .toc a, .foot-top a { display: inline-flex; align-items: center; min-height: 40px; }
  .toc a { display: flex; }
  .foot-top li + li { margin-top: 0; }
  .news input { height: 44px; font-size: 17px; }
  .news .btn { height: 44px; }
  .list li > a { display: block; padding-block: 9px; margin-block: -9px; }
  .claim > a { padding-block: 9px; margin-block: -9px; }
  .claim cite { margin-top: 10px; }
  .claim cite a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .toc summary { min-height: 40px; }
}

/* ---------- Training: goals, weeks, scorecard. Boxes wrap data you operate, hairlines do the rest ---------- */
.databox { margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.databox .table { min-width: 680px; }
.databox .table td b { font-weight: 500; color: var(--ink); }
.train-sub { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.train-measure { color: var(--ink-2); }
.train-meta { margin-top: 8px; max-width: 65ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.train-status { margin-top: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.train-bar { width: 72px; }
.train-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.train-tools .btn { min-height: 40px; }
.train-pick { display: inline-flex; align-items: center; gap: 8px; }
.train-pick select, .databox select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
.train-focus, .databox input, .databox textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; line-height: 1.4; transition: border-color var(--fast) var(--ease); }
#this-week .train-title { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.list.shortlist li { grid-template-columns: 160px minmax(0, 1fr); }
.phasejump { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; transition: text-decoration-color var(--fast) var(--ease); }
.phasejump:hover { text-decoration-color: var(--ink); }
.train-export summary { list-style: none; display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; }
.train-export summary::-webkit-details-marker { display: none; }
.train-export .train-tools { margin-top: 8px; }
.train-bar { display: block; margin-top: 4px; }
.train-focus { margin-top: 12px; }
.databox textarea { margin-top: 6px; resize: vertical; }
.train-focus:focus, .databox input:focus, .databox textarea:focus, .train-pick select:focus, .databox select:focus { outline: 0; border-color: var(--ink); }
.weeklist { margin: 14px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.todos { list-style: none; margin: 14px 0 0; padding: 0; }
.todo-row { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.todo-row label { display: flex; align-items: flex-start; gap: 12px; min-height: 40px; cursor: pointer; }
.todo-row input[type="checkbox"] { position: relative; flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.todo-row input[type="checkbox"]::after { content: ""; position: absolute; inset: -10px -6px; }
.todo-row b { font-weight: 500; color: var(--ink); }
.todo-row input:checked + span b { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }

@media (max-width: 680px) {
  .databox { margin-inline: -4px; overflow-x: visible; }
  .databox .table { min-width: 0; }
  .databox .table, .databox tbody, .databox tr, .databox td { display: block; width: auto; }
  .databox thead { display: none; }
  .databox tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .databox tr:last-child { border-bottom: 0; }
  .databox td { padding: 0; border: 0; }
  .databox td + td { margin-top: 3px; }
  .databox .table .num { text-align: left; }
  .list.shortlist li { grid-template-columns: minmax(0, 1fr); }
  .train-tools .btn { flex: 1 1 45%; }
  .train-stepper .btn { flex: 0 1 auto; }
  .train-pick { flex: 1 1 auto; }
  .train-pick select { flex: 1; }
  .train-export { flex: 1 1 45%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .hillbox:not(.hillbox-race), .climb-note { animation: none; }
}
