:root {
  color-scheme: light;
  --page: #f7f9fb;
  --paper: #ffffff;
  --steel: #ebf0f5;
  --steel-edge: #d9e3ed;
  --ink: #0f172a;
  --muted: #495c70;
  --faint: #64778a;
  --line: #cbd5e1;
  --line-strong: #9aafc2;
  --blue: #0369a1;
  --blue-ink: #075985;
  --blue-soft: #e0f1fa;
  --blue-line: #9bcbe4;
  --amber: #d97706;
  --amber-ink: #8d4408;
  --amber-soft: #fff2d8;
  --amber-line: #dfb77b;
  --red: #be123c;
  --red-ink: #a20e33;
  --red-soft: #fce9ee;
  --red-line: #e8acbb;
  --button-ink: #fff;
  --shadow: 0 8px 22px -19px #0f345855;
  --sans: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101820;
  --paper: #17222e;
  --steel: #202e3d;
  --steel-edge: #2a4053;
  --ink: #edf5fc;
  --muted: #bacbda;
  --faint: #9cb0c2;
  --line: #364d62;
  --line-strong: #637f96;
  --blue: #65c2ef;
  --blue-ink: #a2dcf9;
  --blue-soft: #203b52;
  --blue-line: #3a718f;
  --amber: #f3b262;
  --amber-ink: #ffd394;
  --amber-soft: #402c1b;
  --amber-line: #7d552e;
  --red: #fa7796;
  --red-ink: #ffc0cd;
  --red-soft: #472332;
  --red-line: #8e4056;
  --button-ink: #0d2534;
  --shadow: 0 8px 22px -19px #000c;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: var(--blue-ink); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
h1 { font-size: clamp(30px, 4.15vw, 55px); font-weight: 700; letter-spacing: -.044em; }
h2 { font-size: clamp(21px, 2.55vw, 32px); font-weight: 680; letter-spacing: -.032em; }
h3 { font-size: 18px; font-weight: 680; letter-spacing: -.015em; }
p { max-width: 72ch; }
svg { display: block; max-width: 100%; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 64px, 1232px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 10px 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--blue); }
.technical, .method-tag, .card-method, .figure-code, .metric dt, .metric dd, .output-value, .unit, .button-units, .arm-label, .formula, .brand small { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.technical, .card-method, .figure-code, .method-tag { font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.site-header { background: var(--paper); border-top: 3px solid var(--blue); border-bottom: 1px solid var(--line); }
.header-row { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-height: 48px; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 37px; height: 37px; }
.brand strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.08; letter-spacing: -.038em; }
.brand small { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; line-height: 1.15; letter-spacing: .04em; }
.site-nav { display: flex; margin-left: auto; align-items: stretch; gap: 22px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 46px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue-ink); border-color: var(--blue); }
.theme { flex: none; }
.button { display: inline-flex; min-height: 43px; gap: 8px; justify-content: center; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 650; font-size: 13px; line-height: 1.22; text-align: center; text-decoration: none; }
.button:not(:disabled):hover { background: var(--steel); border-color: var(--line-strong); }
.button-primary { background: var(--blue); border-color: var(--blue); color: var(--button-ink); }
.button-primary:not(:disabled):hover { background: var(--blue-ink); color: var(--button-ink); border-color: var(--blue-ink); }
.theme-symbol { font-size: 17px; line-height: 1; }

.hero { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 54px; padding-top: 41px; padding-bottom: 35px; }
.hero-copy { padding-block: 13px; }
.hero h1 { max-width: 23ch; margin-block: 12px 14px; font-size: clamp(41px, 4.6vw, 66px); }
.technical { color: var(--blue-ink); }
.lede { color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.calibration { margin: 0; background: var(--steel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.calibration figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; padding: 10px 15px 11px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-weight: 620; font-size: 12px; }
.figure-code { color: var(--blue-ink); }
.calibration svg { width: 100%; height: auto; }
.home-section { margin-bottom: 42px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 22px; margin-bottom: 15px; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.section-head p { color: var(--muted); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.calc-card { display: grid; grid-template-rows: auto auto 1fr; gap: 7px; min-height: 146px; padding: 15px 15px 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); text-decoration: none; }
.calc-card:hover { border-color: var(--blue); box-shadow: inset 0 2px var(--blue); }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 7px; color: var(--blue-ink); }
.card-method { color: var(--faint); letter-spacing: .028em; }
.card-arrow { color: var(--blue-ink); font-size: 17px; line-height: 1; font-family: var(--mono); }
.calc-card h3 { font-size: 18px; }
.calc-card p { color: var(--muted); font-size: 13.5px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-link { display: grid; align-content: start; gap: 7px; min-height: 106px; padding: 16px; color: var(--ink); text-decoration: none; background: var(--steel); border: 1px solid var(--line); border-radius: 8px; }
.guide-link:hover { border-color: var(--blue); }
.guide-link span { color: var(--muted); font-size: 14px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0 9px; align-items: baseline; padding: 14px 0 0; color: var(--faint); font-size: 12px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); }
.breadcrumb > span { min-width: 0; }
.calc-heading { margin-block: 8px 20px; }
.calc-heading h1 { margin-block: 6px 8px; font-size: clamp(30px, 4vw, 53px); }
.calc-heading .lede { font-size: 16px; }
.method-tag { color: var(--blue-ink); }
.example-intro { margin: 0 0 18px; padding: 11px 15px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 4px; }
.example-intro p { max-width: 97ch; font-size: 14px; color: var(--muted); }
.example-intro p + p { margin-top: 4px; }

.workbench { display: grid; grid-template-columns: minmax(288px, .88fr) minmax(0, 1.8fr); align-items: start; gap: 16px; }
.sheet { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.sheet-head { display: flex; flex-wrap: wrap; gap: 8px 12px; min-height: 60px; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 20px; }
.controls .sheet-head { background: var(--steel); border-radius: 8px 8px 0 0; }
.unit-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.button-units { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.button-units button { min-width: 40px; min-height: 40px; margin: 0; padding: 0 7px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; border: 1px solid transparent; border-radius: 4px; }
.button-units button[aria-pressed="true"] { color: var(--blue-ink); background: var(--blue-soft); border-color: var(--blue-line); }
.unit-options select { width: auto; padding-inline: 6px; min-height: 40px; }
.fieldset { padding: 12px 14px 14px; border-bottom: 1px solid var(--line); }
.fieldset h3 { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.field.choice { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.3; }
.field small { color: var(--faint); font-size: 11px; line-height: 1.28; }
.control { display: flex; min-width: 0; align-items: center; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 5px; }
.control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.control:has(input[aria-invalid="true"]), select[aria-invalid="true"] { border-color: var(--red); }
.control input { flex: 1; width: 0; min-width: 0; min-height: 42px; padding: 6px 8px; border: 0; color: var(--ink); background: none; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.control input:focus { outline: 0; }
.control input::-webkit-outer-spin-button, .control input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.control input[type="number"] { appearance: textfield; }
.unit { flex: none; max-width: 52%; padding: 0 6px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.06; letter-spacing: -.04em; }
select { width: 100%; min-width: 0; min-height: 44px; padding: 6px 8px; color: var(--ink); background-color: var(--paper); border: 1px solid var(--line-strong); border-radius: 5px; font-size: 13px; }
.field-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 13px; }
.field-actions .button { min-height: 41px; }
.field-foot { padding: 0 14px 13px; color: var(--faint); font-size: 11.5px; }
.sheet-head .arm-label { color: var(--faint); font-size: 11px; }
.sheet-body { padding: 13px 14px 14px; }
.telemetry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 0 12px; gap: 7px; }
.metric { min-width: 0; min-height: 80px; display: grid; align-content: start; gap: 7px; padding: 10px 9px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--steel); }
.metric dt { color: var(--muted); font-size: 11px; line-height: 1.2; font-weight: 650; }
.metric dd { min-width: 0; margin: 0; color: var(--ink); font-size: clamp(15px, 1.65vw, 26px); letter-spacing: -.047em; line-height: 1; font-weight: 700; overflow-wrap: anywhere; }
.metric [data-value] { display: block; }
.metric .out-unit { display: block; margin-top: 5px; color: var(--blue-ink); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.metric .out-unit:empty { display: none; }
.status { display: grid; grid-template-columns: 1fr; align-items: start; gap: 2px; margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--line); border-left: 3px solid var(--line-strong); background: var(--steel); border-radius: 5px; }
.status strong { font-size: 13px; color: var(--ink); }
.status p { color: var(--muted); font-size: 12px; line-height: 1.4; }
.status[data-tone="pass"] { border-color: var(--blue-line); border-left-color: var(--blue); background: var(--blue-soft); }
.status[data-tone="pass"] strong { color: var(--blue-ink); }
.status[data-tone="warn"] { border-color: var(--amber-line); border-left-color: var(--amber); background: var(--amber-soft); }
.status[data-tone="warn"] strong { color: var(--amber-ink); }
.status[data-tone="fail"] { border-color: var(--red-line); border-left-color: var(--red); background: var(--red-soft); }
.status[data-tone="fail"] strong { color: var(--red-ink); }
.diagram-figure { margin: 0; overflow: hidden; background: var(--page); border: 1px solid var(--line); border-radius: 7px; }
.diagram-figure [data-diagram] { min-width: 0; }
.diagram-figure svg { width: 100%; height: auto; }
.diagram-figure figcaption { padding: 8px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; line-height: 1.34; }
.outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; margin-block: 10px 0; }
.output-item { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 9px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.output-item dt { min-width: 0; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.output-item dd { min-width: 0; max-width: 57%; margin: 0; text-align: right; color: var(--ink); font-size: 11.5px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.output-item .out-unit { color: var(--blue-ink); font-size: 10px; font-weight: 600; }
.output-item .out-unit:not(:empty)::before { content: " "; white-space: pre; }
.notices { padding-left: 19px; margin: 9px 0 0; color: var(--amber-ink); font-size: 12px; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--steel); border-radius: 0 0 8px 8px; }
.action-row .button { flex: 0 1 auto; min-height: 40px; padding-inline: 11px; }
.io-note { padding: 7px 14px 4px; font-size: 12px; color: var(--muted); }
.io-note:empty { display: none; }
.share-box { padding: 8px 14px 13px; }
.share-box label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 650; }
.share-box input { display: block; width: 100%; min-height: 42px; padding: 5px 8px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.caveat { max-width: none; margin: 14px 0 0; padding: 10px 12px; color: var(--muted); background: var(--steel); border-left: 3px solid var(--line-strong); border-radius: 4px; font-size: 13px; }
.caveat.critical { color: var(--red-ink); background: var(--red-soft); border-left-color: var(--red); }
.caveat a { margin-left: .22em; white-space: normal; }
.example-section { margin-top: 32px; margin-bottom: 35px; }
.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.example-picker { display: none; }
.example-picker label { display: block; margin-bottom: 4px; font-weight: 600; }
.example-card { min-height: 67px; display: flex; align-items: center; gap: 11px; justify-content: space-between; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-weight: 650; font-size: 13px; line-height: 1.35; text-decoration: none; }
.example-card:hover, .example-card[aria-current="page"] { border-color: var(--blue); background: var(--blue-soft); }
.noscript { margin-block: 12px; }

.editorial { max-width: 1040px; margin-bottom: 40px; }
.editorial .calc-heading { margin-block: 8px 22px; }
.editorial-jump { display: flex; flex-wrap: wrap; gap: 5px 8px; padding-block: 8px; border-block: 1px solid var(--line); }
.editorial-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 8px; font-size: 13px; }
.article-section { margin-top: 24px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.article-section h2 { margin-bottom: 8px; font-size: 23px; }
.article-section h3 { margin-top: 13px; margin-bottom: 5px; }
.article-section p { max-width: 90ch; }
.article-section p + p { margin-top: 7px; }
.formula { display: block; margin-block: 8px 11px; padding: 9px 11px; color: var(--blue-ink); background: var(--steel); border-left: 2px solid var(--blue-line); font-size: 13px; overflow-wrap: anywhere; }
.article-section ul, .article-section ol { margin-block: 9px 0; padding-left: 20px; }
.article-section li + li { margin-top: 6px; }
.screen-table { width: 100%; margin-block: 9px; border-collapse: collapse; text-align: left; table-layout: fixed; }
.screen-table th, .screen-table td { padding: 6px 8px; border: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.screen-table th { background: var(--steel); }
.article-refs { color: var(--muted); font-size: 13px; }
.recovery { display: grid; min-height: 58vh; justify-items: start; align-content: center; row-gap: 15px; max-width: 880px; padding-block: 28px; }
.site-footer { padding-block: 17px 20px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.footer-row a { display: inline-flex; min-height: 40px; align-items: center; }

.svg-paper { fill: var(--page); }
.svg-metal { fill: var(--steel); stroke: var(--line-strong); stroke-width: 1.5; }
.svg-weld { fill: var(--steel-edge); stroke: var(--line-strong); stroke-width: 1.12; }
.svg-probe { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.45; }
.svg-mount { fill: var(--steel-edge); stroke: var(--ink); stroke-width: 1.55; }
.svg-rule { stroke: var(--line); stroke-width: 1; }
.svg-gridline { stroke: var(--line); stroke-width: .8; }
.svg-axis { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.svg-main, .svg-aux, .svg-aux-dash, .svg-guide, .svg-fail-stroke, .svg-flux { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svg-main { stroke: var(--blue); stroke-width: 2.6; }
.svg-aux { stroke: var(--amber); stroke-width: 2; }
.svg-aux-dash { stroke: var(--amber); stroke-width: 1.65; stroke-dasharray: 5 4; }
.svg-guide { stroke: var(--faint); stroke-width: 1.21; stroke-dasharray: 4 4; }
.svg-fail-stroke { stroke: var(--red); stroke-width: 2.4; }
.svg-flux { stroke: var(--blue); stroke-width: 1.7; }
.svg-ray-fill { fill: var(--blue-soft); stroke: none; opacity: .82; }
.svg-xray-fill { fill: var(--amber-soft); stroke: none; opacity: .85; }
.svg-source { stroke: var(--amber); stroke-width: 5; stroke-linecap: round; }
.svg-dot-main, .svg-dot-warn { stroke: var(--paper); stroke-width: 1.7; }
.svg-dot-main { fill: var(--blue); }
.svg-dot-warn { fill: var(--amber); }
.svg-orbit { fill: none; stroke: var(--faint); stroke-width: 1.25; stroke-dasharray: 5 4; }
.svg-zone { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 1.7; }
.svg-track { fill: var(--steel-edge); }
.svg-band-main { fill: var(--blue-soft); stroke: var(--blue-line); stroke-width: .7; }
.svg-band-muted { fill: var(--steel-edge); }
.svg-band-warn { fill: var(--amber-soft); stroke: var(--amber-line); stroke-width: .7; }
.svg-band-fail { fill: var(--red-soft); stroke: var(--red-line); stroke-width: .7; }
.svg-limit { stroke: var(--ink); stroke-width: 1.15; }
.svg-pass { fill: var(--blue); }
.svg-normal { fill: var(--muted); }
.svg-warn { fill: var(--amber); }
.svg-fail { fill: var(--red); }
.svg-meter-marker { stroke: var(--paper); stroke-width: 1.55; }
.svg-label { fill: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: -.14px; }
.svg-label.muted { fill: var(--muted); }
.svg-label.blue { fill: var(--blue-ink); }
.svg-label.amber { fill: var(--amber-ink); }
.svg-label.red { fill: var(--red-ink); }
.block-face { fill: var(--steel-edge); stroke: var(--line-strong); stroke-width: 2; }
.block-top { fill: var(--paper); stroke: var(--line-strong); stroke-width: 2; }
.block-side { fill: var(--line); stroke: var(--line-strong); stroke-width: 2; }
.block-hole { fill: var(--page); stroke: var(--muted); stroke-width: 2.4; }
.block-scribe { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.block-rays { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.block-label { fill: var(--muted); font-family: var(--mono); font-size: 14px; letter-spacing: -.15px; }
.block-label.highlight { fill: var(--blue-ink); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 40px); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 23px; }
  .workbench { grid-template-columns: minmax(245px, .9fr) minmax(0, 1.65fr); gap: 11px; }
  .metric dd { font-size: clamp(15px, 2.5vw, 24px); }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 28px); }
  .header-row { row-gap: 0; column-gap: 12px; flex-wrap: wrap; padding-top: 5px; }
  .site-nav { flex: 1 0 100%; order: 3; gap: 15px; }
  .site-nav a { min-height: 41px; font-size: 13px; }
  .brand img { width: 33px; height: 33px; }
  .brand strong { font-size: 17px; }
  .header-row .theme { margin-left: auto; min-height: 42px; padding-inline: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-top: 23px; padding-bottom: 25px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { margin-bottom: 12px; font-size: clamp(38px, 9.6vw, 54px); }
  .hero .lede { font-size: 15px; }
  .hero-actions { margin-top: 15px; }
  .calibration { max-width: 520px; }
  .home-section { margin-bottom: 27px; }
  .section-head { padding-top: 13px; }
  .card-grid, .guide-grid { gap: 8px; }
  .calc-card { min-height: 130px; padding: 10px; }
  .calc-card h3, .guide-link strong { font-size: 15px; }
  .calc-card p, .guide-link span { font-size: 12px; }
  .card-top { gap: 3px; }
  .card-method { font-size: 9px; }
  .guide-link { min-height: 0; padding: 10px; }
  .breadcrumb { padding-top: 5px; }
  .calc-heading { margin-bottom: 14px; }
  .calc-heading .lede { font-size: 14px; }
  .example-intro { padding: 9px 10px; }
  .example-intro p { font-size: 12px; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .sheet-head { min-height: 48px; padding: 6px 10px; }
  .sheet-body { padding: 9px; }
  .fieldset { padding: 10px; }
  .field-actions { padding: 9px 10px; }
  .field-foot { padding-inline: 10px; }
  .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
  .metric { min-height: 60px; padding: 7px 8px; gap: 5px; }
  .metric dd { font-size: clamp(19px, 6vw, 25px); }
  .metric .out-unit { margin-top: 4px; font-size: 10px; }
  .outputs { column-gap: 8px; }
  .output-item { flex-direction: column; gap: 2px; }
  .output-item dd { max-width: 100%; text-align: left; }
  .example-section { margin-block: 24px; }
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .example-picker { display: block; margin-bottom: 12px; }
  .example-card { min-height: 58px; padding: 8px; font-size: 12px; }
  .article-section { margin-top: 12px; padding: 11px; }
  .article-section h2 { font-size: 19px; }
  .article-section p, .article-section li, .screen-table th, .screen-table td { font-size: 13px; }
  .formula { padding: 7px; font-size: 12px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 22px); }
  .sheet-head .arm-label { font-size: 10px; }
  .card-method { line-height: 1.2; }
  .sheet-body { padding: 7px; }
  .action-row { gap: 5px; padding: 9px; }
  .action-row .button { padding-inline: 8px; }
  .field-grid { gap: 8px 7px; }
}
@media screen and (max-width: 360px) {
  #choose .screen-table th, #choose .screen-table td { padding-inline: 4px; }
}

@page { size: A4; margin: 11mm; }
@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --page: #fff; --paper: #fff; --steel: #eef2f6; --steel-edge: #e1e8ef; --ink: #0f172a;
    --muted: #364659; --faint: #495e71; --line: #c5ced8; --line-strong: #98a6b6;
    --blue: #0369a1; --blue-ink: #075985; --blue-soft: #e3f1fa; --blue-line: #9bcbe4;
    --amber: #b46407; --amber-ink: #75410c; --amber-soft: #fff2d8; --amber-line: #dfb77b;
    --red: #be123c; --red-ink: #a20e33; --red-soft: #fce9ee; --red-line: #e8acbb;
    --shadow: none;
  }
  body { font-size: 9pt; line-height: 1.22; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  a { color: var(--ink); }
  .wrap { width: 100%; max-width: unset; }
  .site-nav, .theme, .breadcrumb, .field-actions, .action-row, .io-note, .share-box, .skip-link, .site-footer, .unit-options,
  .example-section, .hero-actions, .editorial-jump, .caveat a { display: none !important; }
  .site-header { border-top-width: 2px; }
  .header-row { min-height: 30px; padding: 0; }
  .brand { min-height: 31px; }
  .brand img { width: 24px; height: 24px; }
  .brand strong { font-size: 12pt; }
  .brand small { display: none; }
  .calc-heading, .editorial .calc-heading { margin: 8px 0; }
  .calc-heading h1 { margin: 3px 0 4px; font-size: 23pt; }
  .calc-heading .lede, .lede { font-size: 9pt; }
  .method-tag, .technical { font-size: 7pt; }
  .example-intro { margin-bottom: 7px; padding: 5px 8px; }
  .example-intro p { font-size: 8pt; }
  .workbench { grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr); gap: 8px; }
  .sheet-head { min-height: 22px; padding: 4px 7px; }
  .sheet-head h2 { font-size: 11pt; }
  .sheet-head .arm-label { font-size: 7pt; }
  .fieldset { padding: 5px 7px; }
  .fieldset h3 { margin-bottom: 5px; font-size: 8pt; }
  .field-grid { gap: 4px 6px; }
  .field { gap: 2px; }
  .field label { font-size: 7.5pt; }
  .field small, .field-foot { display: none; }
  .unit { font-size: 7pt; }
  .control input, .field select { min-height: 21px; padding: 2px 4px; font-size: 8pt; }
  .field select { appearance: none; }
  .sheet-body { padding: 6px; }
  .telemetry { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 5px; }
  .metric { min-height: 41px; padding: 4px; gap: 3px; }
  .metric dt { font-size: 7pt; }
  .metric dd { font-size: 12pt; }
  .metric .out-unit { margin-top: 2px; font-size: 7pt; }
  .status { padding: 4px 6px; margin-bottom: 6px; }
  .status strong { font-size: 8pt; }
  .status p, .diagram-figure figcaption, .notices { font-size: 7pt; }
  .diagram-figure figcaption { padding: 4px 5px; }
  .diagram-figure svg { max-height: 175px; }
  .outputs { gap: 0 8px; margin-top: 4px; }
  .output-item { flex-direction: row; padding: 3px 0; }
  .output-item dt, .output-item dd { font-size: 7pt; }
  .output-item dd { text-align: right; }
  .output-item .out-unit { font-size: 6.5pt; }
  .caveat { padding: 5px 7px; margin-top: 6px; font-size: 8pt; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-block: 9px; gap: 15px; }
  .hero h1 { font-size: 28pt; margin-block: 6px; }
  .calibration svg { max-height: 150px; }
  .calibration figcaption { padding: 3px 7px; font-size: 7pt; }
  .home-section { margin-bottom: 10px; }
  .section-head { padding-top: 6px; margin-bottom: 6px; }
  .section-head h2 { font-size: 14pt; }
  .section-head p { font-size: 8pt; }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .calc-card, .guide-link { min-height: 0; padding: 6px; gap: 3px; }
  .calc-card h3 { font-size: 9pt; }
  .calc-card p, .guide-link span { font-size: 8pt; }
  .card-method { font-size: 6.5pt; }
  .editorial { margin-bottom: 0; }
  .editorial [itemprop="articleBody"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 5px; }
  .article-section { margin-top: 0; padding: 5px 7px; break-inside: avoid; }
  .article-section#choose { grid-column: 1 / -1; }
  .article-section h2 { font-size: 11pt; margin-bottom: 3px; }
  .article-section h3 { font-size: 9pt; margin-block: 4px 2px; }
  .article-section p, .article-section li, .article-refs { font-size: 8pt; }
  .article-section p + p, .article-section li + li { margin-top: 2px; }
  .formula { margin-block: 3px; padding: 3px 5px; font-size: 7.5pt; }
  .article-section ul, .article-section ol, .screen-table { margin-block: 3px; }
  .screen-table th, .screen-table td { padding: 2px 3px; font-size: 7pt; }
  .recovery { min-height: 0; padding-block: 25px; }
}

.results-quick > .sheet-body { padding-bottom: 0; }
.results-quick .status { margin-bottom: 0; }
@media screen and (max-width: 740px) {
  .results { display: contents; }
  .results-quick, .results-detail { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  .results-quick { grid-row: 1; }
  .results-quick > .sheet-body { padding-bottom: 9px; }
  .controls { grid-row: 2; }
  .results-detail { grid-row: 3; }
}
@media print {
  .results-quick .status { margin-bottom: 0; }
  .results-detail > .sheet-body { padding-top: 5px; }
}
