:root {
  color-scheme: light;
  --paper: #f8f9f7;
  --sheet: #ffffff;
  --plate: #eff2ee;
  --line: #cdd6d1;
  --line-dark: #96aaa1;
  --grid: #e2e9e4;
  --ink: #131b19;
  --muted: #4c5e57;
  --teal: #0f766e;
  --teal-ink: #ffffff;
  --teal-fill: #d8efea;
  --blue: #3e6476;
  --blue-fill: #dfeaf0;
  --red: #b91c1c;
  --red-fill: #f9e5e3;
  --amber: #b45309;
  --amber-fill: #f9ead9;
  --shadow: 0 16px 38px -30px #1529206b;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Aptos", "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111a18;
  --sheet: #182522;
  --plate: #1d2b27;
  --line: #384d46;
  --line-dark: #608073;
  --grid: #2a3c35;
  --ink: #ecf4ef;
  --muted: #b0c5bb;
  --teal: #73d1c4;
  --teal-ink: #12221d;
  --teal-fill: #24483f;
  --blue: #9ac3d8;
  --blue-fill: #283e4c;
  --red: #ff8b87;
  --red-fill: #4d2f2d;
  --amber: #ffc07e;
  --amber-fill: #513c24;
  --shadow: 0 18px 42px -34px #000000dd;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.57 var(--sans); }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -0.032em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); font-weight: 720; }
h2 { font-size: clamp(1.55rem, 2.35vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.08rem; }
p, dd { overflow-wrap: anywhere; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
svg { display: block; width: 100%; height: auto; }
.shell { width: min(100% - 64px, 1240px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 30; top: 8px; left: 8px; padding: 10px 15px; background: var(--sheet); }

.topbar { border-bottom: 1px solid var(--line); background: var(--sheet); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 73px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.14rem; letter-spacing: -0.045em; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  position: relative; width: 30px; height: 30px; display: inline-grid; place-items: center; flex: 0 0 30px;
  color: var(--teal); border: 1px solid var(--teal); background: var(--teal-fill);
}
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; background: currentColor; }
.brand-mark::before { width: 16px; height: 1px; }
.brand-mark::after { width: 1px; height: 16px; }
.brand-mark i { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.topnav { display: flex; align-items: center; gap: 16px; }
.topnav a { text-decoration: none; color: var(--ink); }
.topnav > a:hover { color: var(--teal); }
.nav-menu { position: relative; }
.nav-menu summary { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); padding: 0 10px; font-weight: 650; }
summary { cursor: pointer; min-height: 40px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; width: 6px; height: 6px; border: solid var(--teal); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-menu[open] summary::after { transform: translateY(1px) rotate(225deg); }
.nav-options { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; display: grid; min-width: 225px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line-dark); background: var(--sheet); box-shadow: var(--shadow); }
.nav-options a { display: flex; align-items: center; padding: 7px 11px; min-height: 40px; }
.nav-options a:hover, .nav-options a[aria-current] { background: var(--teal-fill); color: var(--teal); }
.nav-options .nav-small { display: none; }

.button, .quiet-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 13px;
  border: 1px solid var(--line-dark); border-radius: 4px; background: var(--sheet); color: var(--ink);
  text-decoration: none; font-weight: 650; line-height: 1.25; text-align: center;
}
.button:hover:not(:disabled), .quiet-button:hover:not(:disabled) { background: var(--plate); border-color: var(--teal); text-decoration: none; }
.button-primary { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal); filter: brightness(.91); }
.quiet-button { background: transparent; color: var(--teal); border-color: transparent; }
.theme { min-width: 56px; padding-inline: 9px; font-size: .84rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.hero-wrap {
  border-bottom: 1px solid var(--line);
  background-color: var(--plate);
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero { min-height: 467px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(33px, 6vw, 92px); padding-block: 53px; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 15ch; letter-spacing: -.059em; }
.hero-copy p { max-width: 48ch; margin: 22px 0 26px; color: var(--muted); font-size: 1.08rem; }
.hero-figure { border: 1px solid var(--line-dark); min-width: 0; background: var(--sheet); box-shadow: var(--shadow); }
.hero-figure .plot-frame { border: 0; border-radius: 0; }
.hero-figure figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-weight: 700;
}
.hero-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero-foot > div { padding: 9px 14px; min-width: 0; }
.hero-foot > div + div { border-left: 1px solid var(--line); }
.hero-foot dt { font-size: .74rem; color: var(--muted); }
.hero-foot dd { margin: 0; font: 650 .91rem/1.55 var(--mono); }
.mono-label { font: 600 .72rem/1.5 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .075em; }

.directory { padding-block: 51px 58px; }
.directory-heading { display: flex; gap: 12px 24px; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.directory-heading p { color: var(--muted); max-width: 500px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.tool-card { display: grid; grid-template-rows: auto auto 1fr auto; align-items: start; padding: 18px 18px 14px; min-height: 182px; background: var(--sheet); }
.tool-card h3 { margin: 9px 0 8px; }
.tool-card p { font-size: .91rem; color: var(--muted); }
.tool-card a { min-height: 40px; display: inline-flex; align-items: center; justify-self: start; font-weight: 650; }
.tool-card a::after, .case-list a::after { content: "↗"; margin-left: 6px; }
.home-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 60px; }
.home-notes article { padding: 20px; border: 1px solid var(--line); background: var(--plate); }
.home-notes p { margin: 9px 0 12px; color: var(--muted); }

.breadcrumbs { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { color: var(--muted); }
.page-intro { padding: 28px 0 23px; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3.28rem); letter-spacing: -.052em; max-width: 880px; }
.page-intro p { margin-top: 10px; max-width: 78ch; color: var(--muted); font-size: 1.03rem; }
.intro-links { display: flex; flex-wrap: wrap; column-gap: 15px; margin-top: 11px; }
.intro-links a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 650; font-size: .87rem; }

.workbench { display: grid; grid-template-columns: minmax(300px, .87fr) minmax(0, 1.75fr); align-items: start; gap: 18px; }
.panel { background: var(--sheet); border: 1px solid var(--line); min-width: 0; box-shadow: var(--shadow); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 14px; padding: 14px 17px; border-bottom: 1px solid var(--line); background: var(--plate); }
.panel-head h2 { font-size: 1.18rem; letter-spacing: -.025em; }
.panel-body { padding: 16px; min-width: 0; }
.unit-picker { display: inline-flex; align-items: center; border-radius: 4px; border: 1px solid var(--line-dark); overflow: hidden; }
.unit-picker button { min-width: 42px; min-height: 40px; border: 0; background: var(--sheet); color: var(--ink); font: 700 .78rem/1 var(--mono); }
.unit-picker button + button { border-left: 1px solid var(--line-dark); }
.unit-picker button[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; align-items: start; }
.field { min-width: 0; }
.field label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; margin: 0 0 5px; color: var(--ink); font-size: .82rem; font-weight: 650; }
.field-unit { color: var(--muted); font: 550 .71rem/1.3 var(--mono); }
.field input:not([type="checkbox"]), .field select, .raw-field input, .share-box input {
  display: block; width: 100%; min-width: 0; min-height: 42px; padding: 8px 9px; border: 1px solid var(--line-dark);
  border-radius: 4px; color: var(--ink); background: var(--paper);
}
input[type="number"] { font-family: var(--mono); font-variant-numeric: tabular-nums; appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; }
.field input, .field select { font-size: .87rem; }
.field small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; }
.checkbox-field { grid-column: 1 / -1; }
.checkbox-field label { min-height: 42px; align-items: center; gap: 8px; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--teal); }
.input-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 15px; border-top: 1px solid var(--line); padding-top: 10px; }
.input-footer a { display: none; align-items: center; min-height: 42px; font-size: .84rem; font-weight: 650; }
.chain-fields, .raw-editor { margin-top: 17px; }
.chain-fields h3 { margin-bottom: 8px; }
.link-editor, .raw-editor { border: 1px solid var(--line); background: var(--paper); }
.link-editor + .link-editor { margin-top: 5px; }
.link-editor summary, .raw-editor summary { min-height: 42px; padding: 9px 10px; font-size: .87rem; font-weight: 660; color: var(--teal); }
.link-editor[open] summary, .raw-editor[open] summary { border-bottom: 1px solid var(--line); background: var(--plate); }
.link-editor .field-grid { padding: 9px; }
.field-add { margin-top: 8px; }
.raw-editor p { padding: 8px 9px 0; color: var(--muted); font-size: .78rem; }
.raw-grid { display: grid; gap: 7px; padding: 8px; }
.raw-part { min-inline-size: 0; margin: 0; padding: 4px 7px 7px; border: 1px solid var(--line); }
.raw-part legend { padding-inline: 5px; font-size: .78rem; color: var(--muted); }
.raw-line { display: flex; gap: 4px; align-items: center; margin-top: 4px; min-width: 0; }
.operator { width: 15px; flex-shrink: 0; color: var(--muted); font-size: .78rem; }
.raw-field { flex: 1 1 0; min-width: 0; }
.raw-field input { padding-inline: 4px; font-size: .74rem; }

.result-head { min-height: 69px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; min-height: 27px;
  border: 1px solid currentColor; border-radius: 3px; font-size: .76rem; line-height: 1.18; font-weight: 710;
}
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: 0 0 6px; border-radius: 50%; }
.badge-pass { color: var(--teal); background: var(--teal-fill); }
.badge-caution { color: var(--amber); background: var(--amber-fill); }
.badge-reject { color: var(--red); background: var(--red-fill); }
.badge-neutral { color: var(--blue); background: var(--blue-fill); }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); }
.readout { min-width: 0; padding: 9px 12px 11px; background: var(--paper); }
.readout dt { color: var(--muted); font-size: .78rem; font-weight: 650; }
.readout dd { margin: 4px 0 0; color: var(--ink); font: 670 clamp(.89rem, 1.7vw, 1.27rem)/1.15 var(--mono); font-variant-numeric: tabular-nums; }
.plot { margin-top: 15px; }
.plot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 0 7px; font-size: .9rem; }
.plot figcaption span { color: var(--muted); font-size: .78rem; }
.plot-frame { border: 1px solid var(--line); background: var(--plate); }
.plot-frame .schematic { margin-inline: auto; max-width: 650px; }
.output-note { margin: 12px 0 15px; color: var(--muted); font-size: .85rem; }
.result-tables { display: grid; gap: 14px; }
.detail-group { min-width: 0; }
.detail-group h3 { margin-bottom: 7px; }
.results-table { border-collapse: collapse; width: 100%; table-layout: auto; font-size: .82rem; }
.results-table th, .results-table td { border: 1px solid var(--line); padding: 6px 8px; overflow-wrap: anywhere; text-align: left; vertical-align: top; }
.results-table thead { background: var(--plate); }
.results-table tbody tr:nth-child(even) { background: var(--paper); }
.results-table td { font-variant-numeric: tabular-nums; }
.result-actions { border-top: 1px solid var(--line); padding: 12px 16px; }
.result-actions .button { font-size: .8rem; }
.share-box { display: flex; gap: 7px; align-items: end; margin-top: 9px; }
.share-box label { flex: 1; min-width: 0; font-size: .8rem; }
.share-box input { margin-top: 3px; }
.action-status { color: var(--muted); font-size: .79rem; }
.action-status:not(:empty) { margin-top: 7px; }
.input-error { background: var(--red-fill); border: 1px solid var(--red); padding: 10px 12px; color: var(--red); }

.plot-base { fill: var(--paper); }
.plot-grid { stroke: var(--grid); stroke-width: .75; fill: none; }
.plot-text { fill: var(--ink); font: 550 14.5px var(--mono); }
.plot-heading { font-weight: 700; }
.plot-secondary { fill: var(--muted); font-size: 13.5px; }
.hair, .axis, .dash, .zero, .teal-line, .blue-line, .amber-line, .reject-line, .ink-line {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.hair { stroke: var(--line); stroke-width: 1; }
.axis { stroke: var(--line-dark); stroke-width: 1.15; }
.dash { stroke: var(--line-dark); stroke-dasharray: 5 4; stroke-width: 1.35; }
.zero { stroke: var(--ink); stroke-dasharray: 7 5; stroke-width: 1.5; }
.teal-line { stroke: var(--teal); stroke-width: 2.35; }
.blue-line { stroke: var(--blue); stroke-width: 2.1; }
.amber-line { stroke: var(--amber); stroke-width: 1.55; }
.reject-line { stroke: var(--red); stroke-width: 1.65; }
.ink-line { stroke: var(--ink); stroke-width: 1.9; }
.fill-teal { fill: var(--teal-fill); }
.fill-blue { fill: var(--blue-fill); }
.fill-amber { fill: var(--amber-fill); }
.fill-red { fill: var(--red-fill); }
.outline-teal { stroke: var(--teal); stroke-width: 1.25; }
.outline-blue { stroke: var(--blue); stroke-width: 1.2; }
.outline-amber { stroke: var(--amber); stroke-width: 1.3; }
.outline-red { stroke: var(--red); stroke-width: 1.2; }
.mark-ink { fill: var(--ink); }
.mark-teal { fill: var(--teal); stroke: var(--sheet); stroke-width: 1.25; }
.mark-red { fill: var(--red); stroke: var(--sheet); stroke-width: 1.25; }
.mark-amber { fill: var(--amber); stroke: var(--sheet); stroke-width: 1.25; }
.red-text { fill: var(--red); }
.amber-text { fill: var(--amber); }

.method-block, .cases { padding: 22px 0; border-top: 1px solid var(--line); }
.method-block { margin-top: 26px; }
.method-block h2, .cases h2 { margin-bottom: 10px; }
.method-block p, .editorial p { color: var(--muted); max-width: 83ch; }
.method-block p + p, .editorial p + p { margin-top: 8px; }
.source-list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 12px 0 0; gap: 0 18px; }
.source-list a { display: inline-flex; min-height: 40px; align-items: center; }
.case-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.case-list li { padding: 10px 13px 13px; border: 1px solid var(--line); background: var(--sheet); }
.case-list a { min-height: 40px; display: inline-flex; align-items: center; font-weight: 690; }
.case-list p { color: var(--muted); font-size: .84rem; }
.cases { margin-bottom: 30px; }
.editorial { margin-bottom: 50px; }
.editorial section { padding: 19px 0; border-top: 1px solid var(--line); }
.editorial h2 { margin-bottom: 9px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.editorial ul { color: var(--muted); margin: 9px 0; padding-left: 21px; }
.editorial .reference-url { font: 500 .82rem/1.6 var(--mono); color: var(--teal); overflow-wrap: anywhere; margin-top: 6px; }
.error-page { min-height: 52vh; padding: 65px 0; }
.error-page p { margin: 12px 0 18px; color: var(--muted); }
.footer { padding: 18px 0; border-top: 1px solid var(--line); background: var(--plate); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 5px 20px; justify-content: space-between; align-items: center; }
.footer a { display: inline-flex; min-height: 40px; align-items: center; margin-right: 12px; }
.print-sheet { display: none; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 44px); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench { grid-template-columns: minmax(268px, .85fr) minmax(0, 1.3fr); gap: 12px; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 710px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 61px; }
  .topnav { gap: 5px; }
  .topnav > a { display: none; }
  .nav-options .nav-small { display: block; }
  .nav-menu summary { padding-inline: 6px; font-size: .87rem; }
  .hero, .workbench, .home-notes { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; gap: 24px; padding-block: 31px 25px; }
  .hero-copy p { margin: 15px 0 17px; font-size: .96rem; }
  .hero-foot > div { padding: 7px 9px; }
  .hero-foot dd { font-size: .78rem; }
  .hero-foot dt { font-size: .69rem; }
  .directory { padding-block: 29px 29px; }
  .directory-heading { display: block; margin-bottom: 13px; }
  .directory-heading p { margin-top: 7px; font-size: .88rem; }
  .tool-card { padding: 12px 12px 8px; min-height: 0; }
  .tool-card h3 { font-size: .99rem; }
  .tool-card p { font-size: .81rem; }
  .home-notes { gap: 10px; margin-bottom: 30px; }
  .page-intro { padding-block: 20px 13px; }
  .page-intro p { font-size: .94rem; }
  .panel-head { padding: 9px 11px; }
  .panel-body, .result-actions { padding: 10px; }
  .readout { padding: 8px; }
  .readout dd { font-size: 1rem; }
  .input-footer a { display: inline-flex; }
  .case-list { grid-template-columns: minmax(0, 1fr); }
  .button-row { gap: 6px; }
  .plot figcaption { font-size: .83rem; }
  .plot figcaption span { font-size: .71rem; }
}

@media (max-width: 520px) {
  .results-table { display: block; }
  .results-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .results-table tbody { display: grid; gap: 5px; }
  .results-table tr { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); }
  .results-table th, .results-table td { border: 0; display: block; padding: 4px 7px; }
  .results-table td { display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); }
  .results-table td::before { content: attr(data-label); min-width: 36%; color: var(--muted); }
  .results-table tr:has(> td:only-of-type) { grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); }
  .results-table td:only-of-type { border-top: 0; border-left: 1px solid var(--line); }
  .results-table td:only-of-type::before { content: none; }
  .plot-text { font-size: 16px; }
  .plot-secondary { font-size: 14.5px; }
}

@media (max-width: 350px) {
  .topbar-inner { gap: 4px; }
  .topnav { gap: 3px; }
  .nav-menu summary { padding-inline: 3px; gap: 5px; font-size: .82rem; }
  .brand { font-size: .98rem; gap: 6px; }
  .brand-mark { width: 25px; height: 25px; flex-basis: 25px; }
  .theme { min-width: 45px; padding-inline: 6px; }
  .field label { font-size: .76rem; }
  .field input, .field select { padding-inline: 6px; font-size: .81rem; }
  .hero-figure figcaption { font-size: .83rem; padding-inline: 9px; }
  .hero-foot dd { font-size: .72rem; }
  .tool-card { padding-inline: 9px; }
}

@page { size: A4 portrait; margin: 11mm 12mm; }
@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --paper: #ffffff; --sheet: #ffffff; --plate: #f0f3f0; --line: #c7d0ca; --line-dark: #778982;
    --grid: #edf0ee; --ink: #151c18; --muted: #40524b; --teal: #0a665d; --teal-fill: #e1f1ec;
    --blue: #385c70; --blue-fill: #e4edf0; --red: #9b1d22; --red-fill: #f3dbda; --amber: #8f4908; --amber-fill: #f5ead6;
  }
  body { font-size: 9pt; line-height: 1.25; }
  [data-tool] .print-hidden, body > .topbar, body > .footer, body > .skip-link { display: none; }
  body:not([data-page="tool"]) .shell { width: 100%; }
  body[data-page="home"] .hero {
    min-height: 0; padding-block: 5mm; gap: 6mm;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  body[data-page="home"] .hero h1 { font-size: 26pt; }
  body[data-page="home"] .hero-copy p { font-size: 10pt; margin: 3mm 0; }
  body[data-page="home"] .hero-foot > div { padding: 2mm; }
  body[data-page="home"] .directory { padding-block: 5mm; }
  body[data-page="home"] .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-page="home"] .tool-card { padding: 2.5mm; break-inside: avoid; }
  body[data-page="home"] .home-notes { gap: 3mm; margin: 0; }
  body[data-page="home"] .home-notes article { padding: 3mm; }
  .editorial { margin-bottom: 0; columns: 2; column-gap: 6mm; }
  .editorial .page-intro { column-span: all; padding: 0 0 3mm; }
  .editorial .page-intro h1 { font-size: 21pt; }
  .editorial .page-intro p { font-size: 9pt; }
  .editorial section { padding: 1.6mm 0; break-inside: avoid; }
  .editorial section p { font-size: 8.3pt; line-height: 1.24; }
  .editorial section p + p { margin-top: 1.3mm; }
  .editorial h2 { font-size: 10.5pt; margin-bottom: .8mm; }
  .editorial .reference-url { font-size: 7pt; line-height: 1.28; }
  [data-tool] { width: 100%; }
  .print-sheet { display: block; }
  .print-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 3mm; border-bottom: 1px solid var(--line-dark); padding-bottom: 3mm; margin-bottom: 2mm; }
  .print-title { margin-top: 1mm; font-size: 18pt; line-height: 1.1; font-weight: 720; }
  .print-head b { color: var(--teal); font: 700 10pt var(--mono); }
  .print-reference { color: var(--muted); margin-bottom: 3mm; }
  .print-sheet h2, .print-sheet h3 { font-size: 10pt; margin-bottom: 1mm; }
  .print-sheet .readout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 3mm; }
  .print-sheet .readout { padding: 2mm; }
  .print-sheet .readout dt { font-size: 8pt; }
  .print-sheet .readout dd { margin-top: .5mm; font-size: 11pt; }
  .print-overview { display: grid; grid-template-columns: 1fr .96fr; gap: 4mm; align-items: start; }
  .print-overview > * { min-width: 0; }
  .print-diagram { border: 1px solid var(--line); print-color-adjust: exact; }
  .print-sheet section { margin-bottom: 2.4mm; break-inside: avoid; }
  .print-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7mm 2mm; margin: 0; }
  .print-inputs dt { color: var(--muted); font-size: 7pt; }
  .print-inputs dd { margin: 0; font: 600 7.2pt/1.22 var(--mono); }
  .print-tables { margin-top: 2mm; }
  .print-tables .results-table { display: table; border-collapse: collapse; width: 100%; font-size: 7.4pt; line-height: 1.17; }
  .print-tables .results-table thead { position: static; display: table-header-group; width: auto; height: auto; clip-path: none; overflow: visible; }
  .print-tables .results-table tbody { display: table-row-group; }
  .print-tables .results-table tr { display: table-row; }
  .print-tables .results-table th, .print-tables .results-table td { display: table-cell; padding: .76mm 1.25mm; border: 1px solid var(--line); }
  .print-tables .results-table td::before { content: none; }
  .print-note { font-size: 7pt; color: var(--muted); }
  .print-sheet .badge { padding: 1mm 2mm; font-size: 8pt; min-height: 0; }
}
