/* Rider Triangle: warm workshop surfaces, instrument-panel geometry, restrained signal orange. */
:root {
  --paper: #f5f4ee;
  --card: #fffefa;
  --ink: #1e2c28;
  --muted: #59655e;
  --line: #d8ddd3;
  --accent: #ad431f;
  --tint: #f8e9de;
  --canvas: #1c2c29;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 15px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, input, select, summary, a { touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: var(--accent); text-underline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: 28px; font-weight: 650; }
h3 { font-size: 18px; font-weight: 650; }
button, input, select { min-height: 44px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 100; background: var(--card); padding: 12px 20px; }
.skip:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -.055em; }
.brandmark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--accent); background: var(--tint); }
.brandmark svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links > a { font-size: 13px; color: var(--muted); text-decoration: none; padding-block: 10px; }
.nav-links > a:hover { color: var(--accent); }
.nav-links .button { padding-inline: 18px; color: var(--ink); }
.eyebrow, .edition, .notebook-label, .guide-index, .canvas-heading, .print-meta {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.eyebrow { display: block; color: var(--accent); font-size: 10px; letter-spacing: .14em; font-weight: 650; margin-bottom: 10px; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; padding: 38px 0 34px; align-items: center; }
.hero h1 { font-size: clamp(42px, 4.3vw, 62px); line-height: .98; font-weight: 750; letter-spacing: -.065em; }
.hero h1 span { color: var(--accent); }
.hero-copy > p { max-width: 560px; font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 18px; }
.hero-link { display: inline-flex; gap: 15px; align-items: center; margin-top: 16px; font-size: 13px; font-weight: 650; text-decoration: none; min-height: 36px; }
.hero-link:hover .icon { transform: translateX(3px); }
.hero-aside { padding: 20px 0 0; border-top: 2px solid var(--ink); max-width: 440px; justify-self: end; width: 100%; }
.edition { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.hero-aside h2 { font-size: 24px; line-height: 1.3; margin-top: 20px; }
.hero-aside > p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 17px; }
.triangle-legend { display: flex; justify-content: space-between; border-block: 1px solid var(--line); margin-top: 22px; padding: 13px 0; gap: 16px; }
.triangle-legend span { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.triangle-legend b { color: var(--accent); font-size: 10px; font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 23px; padding-bottom: 18px; border-top: 1px solid var(--line); }
.toolbar .eyebrow { margin-bottom: 5px; }
.toolbar h2 { font-size: 23px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 10px 15px; font-size: 12px; font-weight: 650; line-height: 1.35; text-decoration: none; color: var(--ink); background: var(--card); min-height: 44px; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.secondary { background: var(--card); }
.button.ghost { border-color: transparent; background: transparent; }
.button:hover:not(:disabled) { box-shadow: inset 0 0 0 100px #1e2c280a; }
.text-button { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.danger-text { color: #9a392b; }
.starting-points { display: flex; gap: 28px; align-items: center; padding: 18px 22px; background: #eeeee6; border: 1px solid var(--line); border-radius: 9px; }
.preset-intro { min-width: 210px; }
.preset-intro .eyebrow { font-size: 9px; margin-bottom: 3px; }
.preset-intro p { font-size: 14px; font-weight: 600; }
.preset-intro small { font-size: 10px; color: var(--muted); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.preset { display: flex; text-align: left; align-items: center; gap: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 9px 14px; color: var(--ink); }
.preset[aria-pressed="true"] { background: #fff7ef; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.preset:hover { border-color: var(--accent); }
.preset strong { display: block; font-size: 13px; }
.preset small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.preset-glyph { width: 52px; height: 45px; flex-shrink: 0; fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.preset[aria-pressed="true"] .preset-glyph { stroke: var(--accent); }
.preset-glyph .glyph-ground { stroke: var(--line); stroke-width: 1.3; }
.record-state { font-size: 11px; color: var(--muted); padding: 13px 2px; min-height: 40px; }
.workspace { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.inputs { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 24px; min-width: 0; }
.input-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.input-header .eyebrow { margin-bottom: 7px; }
.input-header h2 { font-size: 24px; }
.unit-control { display: flex; flex-direction: column; align-items: end; }
.unit-control label { font-size: 10px; color: var(--muted); line-height: 1; }
.unit-control select { border: 0; padding: 4px 2px; color: var(--accent); background: transparent; font-size: 12px; font-weight: 650; min-width: 70px; }
.measurement-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; min-height: 44px; margin-top: 6px; text-decoration: none; }
.measurement-link:hover { color: var(--accent); text-decoration: underline; }
.measurement-link .icon { width: 14px; height: 14px; }
.measurement-group { min-width: 0; padding: 21px 0 0; margin: 24px 0 0; border: 0; border-top: 1px solid var(--line); }
.measurement-group legend { font-size: 14px; font-weight: 650; padding-right: 15px; padding-left: 0; }
.measurement-group legend > span { font-family: ui-monospace, monospace; font-size: 10px; color: var(--accent); margin-right: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 13px; }
.field { min-width: 0; }
.field label { display: block; font-size: 11px; font-weight: 650; line-height: 1.5; min-height: 33px; margin-bottom: 7px; }
.field label > span { color: var(--muted); font-weight: 400; white-space: nowrap; }
.field input { display: block; width: 100%; border: 1px solid #b8c2b7; background: #fffefa; color: var(--ink); border-radius: 6px; font-size: 16px; font-variant-numeric: tabular-nums; padding: 9px 10px; }
.field small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 6px; }
.field input[aria-invalid="true"] { border: 2px solid #a53626; background: #fff4ef; }
.field .field-error { color: #963221; font-weight: 600; }
.lean-control { border: 1px solid var(--line); padding: 12px 14px; border-radius: 6px; margin-top: 22px; background: var(--paper); }
.lean-control label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 650; }
.lean-control output { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 16px; }
.lean-control input { display: block; width: 100%; accent-color: var(--accent); cursor: pointer; }
.lean-control small { font-size: 10px; color: var(--muted); display: block; margin-top: 9px; }
.range-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.form-actions { display: flex; gap: 7px; margin-top: 25px; }
.form-actions .primary { flex: 1; }
.microcopy { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.result-column, .result { min-width: 0; }
.result-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 0 17px; }
.result-heading .eyebrow { margin-bottom: 6px; }
.result-heading h2 { font-size: 27px; }
.local-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.local-badge .icon { width: 14px; height: 14px; }
.geometry-figure { border-radius: 9px; overflow: hidden; background: var(--canvas); color: #dbe7dc; border: 1px solid var(--canvas); }
.canvas-heading { display: flex; justify-content: space-between; gap: 12px; padding: 17px 21px 8px; font-size: 9px; letter-spacing: .1em; color: #bed0c5; }
.canvas-heading > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.live-dot { display: inline-block; width: 5px; height: 5px; background: #ec9868; border-radius: 50%; }
#rider-diagram { display: block; width: 100%; height: auto; }
.grid-line { fill: none; stroke: #2d3c36; stroke-width: .75; }
.axis { fill: none; stroke: #66796e; stroke-dasharray: 3 7; stroke-width: 1; opacity: .55; }
.axis-label, .callout, .canvas-note { font-family: ui-monospace, Consolas, monospace; fill: #bcd1c1; font-size: 10px; letter-spacing: 1px; }
.axis-label { fill: #c4d3c4; font-size: 11px; }
.canvas-note { font-size: 8px; }
.callout-line { fill: none; stroke: #8a9b8c; stroke-width: .8; }
.contact-triangle { stroke: #e29365; fill: #e2936510; stroke-width: 1.5; stroke-dasharray: 5 5; stroke-linejoin: round; }
.limb { fill: none; stroke: #f6f1e0; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.helmet { fill: var(--canvas); stroke: #f6f1e0; stroke-width: 5; }
.seat-reference { stroke: #708778; stroke-width: 7; stroke-linecap: round; }
.joint { fill: var(--canvas); stroke: #f6f1e0; stroke-width: 2; }
.joint.contact { fill: #f0a070; stroke: #1c2c29; stroke-width: 2; }
.unreachable-limb { fill: none; stroke: #ffc48d; stroke-width: 4; stroke-dasharray: 7 7; }
.baseline-body .limb, .baseline-body .helmet { stroke: #8da89b; stroke-width: 3; stroke-dasharray: 5 5; fill: none; }
.baseline-body .contact-triangle { fill: none; stroke: #8da89b; opacity: .65; stroke-dasharray: 2 5; }
.baseline-body .joint { fill: var(--canvas); stroke: #8da89b; }
.baseline-body .seat-reference { stroke: #8da89b; stroke-width: 2; stroke-dasharray: 4 4; }
.baseline-body .unreachable-limb { stroke: #8da89b; stroke-width: 2; }
.geometry-figure figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 13px 21px; border-top: 1px solid #3b4c40; font-size: 10px; color: #bdcfc0; }
.diagram-key { display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.diagram-key i { width: 16px; height: 0; border-top: 2px solid #f0a070; }
.diagram-key i.baseline-key { border-color: #8da89b; border-top-style: dashed; margin-left: 9px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.metric { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 16px 13px 14px; }
.metric > span { display: block; color: var(--muted); font-size: 11px; }
.metric > strong { display: block; font-size: clamp(20px, 1.85vw, 29px); font-weight: 650; letter-spacing: -.04em; margin-top: 7px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric > strong.unreachable-value { font-size: 16px; color: var(--accent); letter-spacing: -.025em; }
.metric > small { display: block; font-size: 9px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
.metric:first-child { border-top: 2px solid var(--accent); padding-top: 15px; }
.reach-summary { display: flex; align-items: start; gap: 11px; padding: 17px 0 19px; }
.reach-summary > span { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; color: #375d45; background: #e6ecdf; }
.reach-summary h3 { font-size: 13px; line-height: 1.5; letter-spacing: -.015em; }
.reach-summary p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.reach-warning > span { color: #8c3b19; background: #f8e4cb; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.comparison-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 23px; }
.comparison-panel .eyebrow { margin-bottom: 6px; }
.comparison-panel > p, .comparison-panel > small { font-size: 12px; color: var(--muted); display: block; line-height: 1.7; }
.comparison-panel > small { font-size: 10px; margin-top: 8px; }
.comparison-panel .microcopy { font-size: 10px; }
.baseline-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.baseline-caption p { font-size: 12px; overflow-wrap: anywhere; }
.baseline-caption .text-button { font-size: 10px; }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
thead th { color: var(--muted); font-size: 10px; font-weight: 600; background: #f0f2ea; }
tbody th { font-weight: 550; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.comparison-table th:first-child { width: 31%; }
.comparison-table td:last-child { font-weight: 650; color: var(--accent); }
details { border-top: 1px solid var(--line); margin-top: 16px; }
summary { min-height: 48px; padding: 14px 0; font-size: 12px; font-weight: 600; }
summary span { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 10px; }
details > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 8px 0 18px; }
.change-list { list-style: none; padding: 0; margin: 0 0 10px; }
.change-list li { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; padding: 6px 0; }
.change-list strong { font-weight: 550; }
.result-details { margin-top: 19px; }
.input-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 18px; }
.input-summary > div { display: flex; justify-content: space-between; align-items: start; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 11px; }
.input-summary dt { color: var(--muted); }
.input-summary dd { margin: 0; white-space: nowrap; }
.safety-note { display: flex; gap: 10px; align-items: start; color: var(--muted); background: #eceee4; border-radius: 7px; padding: 18px 20px; margin-top: 20px; }
.safety-note strong { display: block; color: var(--ink); font-size: 12px; }
.safety-note p { font-size: 11px; line-height: 1.8; margin-top: 5px; }
.safety-note > .icon { margin-top: 3px; }
.print-meta { color: var(--muted); font-size: 9px; padding-top: 14px; }
.report-actions { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-top: 24px; }
.report-actions .section-heading { align-items: start; }
.report-actions .eyebrow { margin-bottom: 7px; }
.save-controls { display: flex; gap: 12px; align-items: end; }
.save-controls > div { flex: 1; min-width: 0; }
.save-controls label { display: block; font-size: 11px; margin-bottom: 7px; font-weight: 600; }
.save-controls input, #share-link { width: 100%; border: 1px solid #b8c2b7; border-radius: 6px; padding: 10px 12px; background: var(--card); color: var(--ink); font-size: 13px; }
.save-controls input::placeholder { color: #697267; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.saved-panel { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 24px; margin-bottom: 18px; }
.saved-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.saved-row > span { min-width: 0; overflow-wrap: anywhere; }
.saved-row strong { font-size: 13px; }
.saved-row small { display: block; color: var(--muted); font-size: 11px; }
.saved-empty { border: 1px dashed var(--line); border-radius: 6px; padding: 20px; font-size: 13px; }
.saved-empty p { color: var(--muted); margin-top: 6px; font-size: 12px; }
.notice { padding: 16px; margin: 15px 0; border: 1px solid #dbb299; background: #fff0e2; border-radius: 7px; font-size: 12px; color: #873817; }
.error-notice ul { margin: 8px 0 0; padding-left: 16px; }
.error-notice li + li { margin-top: 5px; }
.error-notice a { color: inherit; }
.result-empty { background: var(--card); border: 1px dashed #bb9d85; border-radius: 9px; text-align: center; padding: 65px 30px; min-height: 430px; }
.result-empty > .icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 20px; }
.result-empty h2 { font-size: 32px; }
.result-empty p { max-width: 420px; margin: 20px auto; color: var(--muted); font-size: 13px; }
.result-empty a { font-size: 13px; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(600px, calc(100% - 32px)); width: max-content; border: 1px solid #466051; background: var(--canvas); color: #fffdf0; padding: 14px 20px; border-radius: 8px; box-shadow: 0 8px 24px #1b2c2833; font-size: 12px; }
.learn { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 45px 0; }
.learn h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.05em; }
.learn p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.learn p + p { margin-top: 12px; }
.field-notes { padding-top: 44px; }
.field-notes h2 { font-size: 28px; }
.notebook-label { font-size: 10px; color: var(--muted); }
.guide-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.guide-link { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; padding: 24px; color: var(--ink); text-decoration: none; background: var(--card); }
.guide-link:hover { border-color: var(--accent); }
.guide-index { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-size: 11px; margin-bottom: 26px; }
.guide-link h3 { font-size: 21px; line-height: 1.25; }
.guide-link p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 14px 0 20px; }
.read-guide { font-size: 11px; color: var(--accent); font-weight: 650; margin-top: auto; }
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; padding: 54px 0; }
.faq details:first-child { margin-top: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 14px; font-weight: 550; }
.faq p { font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 38px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-note { color: var(--muted); font-size: 10px; max-width: 1040px; line-height: 1.9; margin-top: 22px; }
.article { max-width: 840px; padding-top: 48px; padding-bottom: 60px; }
.article h1 { font-size: clamp(32px, 4vw, 46px); margin: 15px 0 25px; }
.article h2 { font-size: 26px; margin: 32px 0 14px; }
.article > p, .article section p { font-size: 15px; line-height: 1.95; margin-bottom: 14px; color: var(--muted); }
.breadcrumb { font-size: 11px; color: var(--muted); margin-bottom: 30px; }
.sources { display: flex; flex-direction: column; gap: 10px; font-size: 13px; margin-top: 15px; }
.article .button { margin-top: 22px; }
.ad-slot { min-height: 280px; margin-block: 30px; padding: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 6px; overflow: hidden; }
.ad-label { display: block; text-transform: uppercase; font-size: 9px; letter-spacing: .15em; color: var(--muted); }
.mobile-jump { display: none; }
@media (min-width: 1650px) {
  .hero { padding-block: 48px; }
  .workspace { grid-template-columns: 380px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 1150px) {
  .shell { width: calc(100% - 48px); }
  .workspace { grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
  .inputs { padding: 20px; }
  .hero { gap: 48px; }
  .hero h1 { font-size: 51px; }
  .starting-points { gap: 15px; padding: 15px; }
  .preset-intro { min-width: 180px; }
  .preset { gap: 8px; padding: 8px 10px; }
  .preset-glyph { width: 38px; }
  .preset small { font-size: 9px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 14px; }
  .metric > strong { font-size: 27px; }
  .comparison-panel { padding: 20px; }
  .section-heading { flex-wrap: wrap; }
  .report-actions .button-row { width: 100%; }
  .save-controls { flex-direction: column; align-items: stretch; }
  .input-summary { grid-template-columns: 1fr; }
  .learn, .faq { gap: 50px; }
  .guide-link { padding: 20px; }
}
@media (max-width: 899px) {
  .shell { width: calc(100% - 40px); }
  .hero { gap: 36px; grid-template-columns: 1.2fr 1fr; }
  .hero h1 { font-size: 46px; }
  .hero-aside h2 { font-size: 21px; }
  .hero-aside p { font-size: 11px; }
  .nav-links { gap: 18px; }
  .nav-links > a:last-child { display: none; }
  .starting-points { display: block; }
  .preset-intro { margin-bottom: 12px; }
  .preset-intro p { display: inline; }
  .preset-intro small { margin-left: 8px; }
  .preset { gap: 14px; }
  .preset-glyph { width: 44px; }
  .workspace { grid-template-columns: 1fr; gap: 30px; }
  .inputs { padding: 24px; }
  #fields { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .result-heading { padding-top: 0; }
  .result-column { scroll-margin-top: 16px; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric > strong { font-size: 26px; }
  .report-actions .button-row { width: auto; }
  .save-controls { flex-direction: row; align-items: end; }
  .input-summary { grid-template-columns: 1fr 1fr; }
  .mobile-jump { display: flex; position: fixed; z-index: 50; bottom: 12px; left: 50%; transform: translateX(-50%); border: 1px solid #536f5e; border-radius: 8px; background: var(--canvas); box-shadow: 0 5px 20px #1b2c2825; padding: 3px; width: min(390px, calc(100% - 28px)); }
  .mobile-jump a { flex: 1; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-size: 12px; color: #fffdf0; padding: 8px 10px; }
  .mobile-jump a + a { border-left: 1px solid #536f5e; color: #f9b285; }
  .mobile-jump a:focus-visible { outline-color: #ffc493; outline-offset: -3px; }
  .site-footer { padding-bottom: 95px; }
  .toast { bottom: 83px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .nav { min-height: 66px; gap: 12px; }
  .brand { font-size: 18px; gap: 8px; }
  .brandmark { width: 34px; height: 34px; border-radius: 8px; }
  .brandmark svg { width: 26px; height: 26px; }
  .nav-links > a { font-size: 11px; }
  .nav-links > a:first-child, .nav-links > a:nth-child(3) { display: none; }
  .hero { display: block; padding: 32px 0 27px; }
  .hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .hero-copy > p { font-size: 14px; margin-top: 16px; }
  .hero .hero-link { margin-top: 9px; }
  .hero-aside { display: none; }
  .toolbar { align-items: start; flex-direction: column; gap: 16px; padding-top: 20px; }
  .toolbar .button-row { width: 100%; gap: 6px; }
  .toolbar .button { padding-inline: 9px; font-size: 11px; flex: 1; }
  .toolbar .icon { width: 15px; height: 15px; }
  .starting-points { padding: 14px 12px; }
  .preset-intro p { font-size: 12px; display: block; }
  .preset-intro small { font-size: 10px; margin-left: 0; }
  .presets { gap: 7px; }
  .preset { flex-direction: column; justify-content: center; text-align: center; gap: 3px; padding: 9px 5px; }
  .preset-glyph { width: 46px; height: 39px; }
  .preset strong { font-size: 12px; }
  .preset small { font-size: 9px; line-height: 1.5; }
  .record-state { font-size: 10px; line-height: 1.7; }
  .inputs { padding: 20px; }
  #fields { display: block; }
  .field label { font-size: 12px; }
  .field small { font-size: 11px; }
  .field-grid { gap: 21px 15px; }
  .measurement-group { margin-top: 27px; }
  .measurement-group legend { font-size: 16px; }
  .result-heading h2 { font-size: 25px; }
  .local-badge { font-size: 9px; }
  .canvas-heading { font-size: 8px; padding: 16px 14px 6px; }
  .geometry-figure figcaption { padding: 12px 14px; font-size: 9px; }
  .callout { font-size: 16px; letter-spacing: 0; }
  .canvas-note { display: none; }
  .axis-label { font-size: 16px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric > strong { font-size: 30px; }
  .metric > small { font-size: 10px; }
  .comparison-panel { padding: 18px; }
  .comparison-panel .section-heading { align-items: start; gap: 12px; }
  .comparison-panel .section-heading h3 { font-size: 18px; }
  .comparison-panel .button { min-height: 44px; }
  .table-scroll table { min-width: 390px; }
  /* Keep the important before/after change visible without horizontal scrolling. */
  .table-scroll .comparison-table { min-width: 0; table-layout: fixed; }
  .comparison-table th, .comparison-table td { padding: 10px 6px; overflow-wrap: anywhere; }
  .comparison-table th:first-child { width: 30%; }
  .table-scroll { margin-bottom: 5px; }
  summary span { display: block; margin-left: 16px; }
  .change-list li { flex-direction: column; gap: 2px; padding: 8px 0; }
  .input-summary { grid-template-columns: 1fr; }
  .report-actions { padding: 20px; }
  .report-actions .button-row { width: 100%; }
  .report-actions .button-row .button { flex: 1; }
  .save-controls { flex-direction: column; align-items: stretch; }
  .save-controls input { font-size: 16px; }
  .saved-panel { padding: 18px; }
  .saved-row { flex-wrap: wrap; }
  .saved-row > span { flex-basis: 100%; }
  .learn { display: block; margin-top: 40px; padding: 32px 0; }
  .learn h2 { font-size: 33px; margin-bottom: 23px; }
  .learn p { font-size: 13px; }
  .field-notes { padding-top: 30px; }
  .field-notes h2 { font-size: 25px; }
  .notebook-label { display: none; }
  .guide-links { grid-template-columns: 1fr; gap: 13px; margin-top: 17px; }
  .guide-index { margin-bottom: 18px; }
  .guide-link h3 { font-size: 22px; }
  .faq { display: block; padding-block: 34px; }
  .faq h2 { font-size: 27px; margin-bottom: 24px; }
  .footer-links { gap: 7px 20px; }
  .footer-note { font-size: 10px; }
  .article { padding-top: 32px; }
  .article p, .article section p { font-size: 14px; }
  .article h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-link:hover .icon { transform: none; }
}
@media (forced-colors: active) {
  .preset[aria-pressed="true"] { outline: 2px solid Highlight; }
  .geometry-figure { border-color: CanvasText; }
  .limb, .helmet, .joint, .contact-triangle, .unreachable-limb { stroke: CanvasText; }
  .axis-label, .callout, .canvas-note { fill: CanvasText; }
}

/* Search evidence stays in the fit studio as a compact orientation rail. */
.workflow-map { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; margin: 0 0 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(105deg, #f1eee5, var(--card)); }
.workflow-label { min-width: 0; }
.workflow-label .eyebrow { margin-bottom: 4px; }
.workflow-label strong { display: block; font-size: 13px; line-height: 1.35; }
.workflow-map ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; align-items: center; }
.workflow-map li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.workflow-map li > span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 10px ui-monospace, SFMono-Regular, monospace; }
.workflow-map li strong, .workflow-map li small { display: block; }
.workflow-map li strong { font-size: 11px; }
.workflow-map li small { color: var(--muted); font-size: 9px; line-height: 1.35; margin-top: 2px; }
.content-brief { margin: 42px 0 0; padding: 25px 27px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.content-brief > h2 { max-width: 650px; font-size: 25px; margin-bottom: 17px; }
.content-brief article { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.content-brief article h3 { font-size: 14px; margin-bottom: 5px; }
.content-brief article p { max-width: 900px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.research-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 17px; }
.research-links .eyebrow { margin: 0; }
.research-links a { font-size: 10px; }
@media (max-width: 899px) {
  .workflow-map { grid-template-columns: 1fr; gap: 10px; }
  .workflow-map ol { grid-template-columns: 1fr; gap: 8px; }
  .workflow-map li { align-items: flex-start; }
  .content-brief { padding: 21px 19px; }
}

@media print {
  @page { margin: 14mm; }
  :root { --paper: #fff; --card: #fff; --ink: #111; --muted: #444; --line: #bbb; background: #fff; color: #111; }
  body { font-size: 11px; }
  .shell { width: 100%; max-width: none; }
  .site-header, .hero, .toolbar, .starting-points, .record-state, .inputs, .report-actions, .learn,
  .content-brief, .workflow-map, .field-notes, .faq, .site-footer, .mobile-jump, .toast, .saved-panel, #share-link, button, .ad-slot, .skip { display: none !important; }
  .workspace { display: block; }
  .result-heading { padding-top: 0; }
  .result-heading h2 { font-size: 25px; }
  .geometry-figure { background: #fff; color: #111; border: 1px solid #777; break-inside: avoid; }
  .canvas-heading, .geometry-figure figcaption { color: #333; border-color: #aaa; }
  #rider-diagram { max-height: 270px; }
  .limb, .helmet, .joint { stroke: #222; }
  .helmet, .joint { fill: #fff; }
  .baseline-body .limb, .baseline-body .helmet, .baseline-body .joint { stroke: #888; }
  .axis-label, .callout, .canvas-note { fill: #555; }
  .grid-line { stroke: #eee; }
  .axis, .callout-line { stroke: #999; }
  .contact-triangle, .unreachable-limb { stroke: #8c3a18; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { padding: 12px; break-inside: avoid; }
  .metric > strong { font-size: 23px; }
  .comparison-panel { break-inside: avoid; padding: 15px; }
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0; }
  summary { list-style: none; }
  summary span { display: none; }
  .input-summary { grid-template-columns: 1fr 1fr; }
  .safety-note { background: #fff; border: 1px solid #bbb; break-inside: avoid; }
  .print-meta { padding-top: 10px; font-size: 9px; }
}
