:root {
  color-scheme: light;
  --vellum: #f2f0e6;
  --sheet: #fbfaf3;
  --paper: #fcfbf6;
  --ink: #172e38;
  --deep: #113b51;
  --muted: #4d6265;
  --line: #d0d1c4;
  --line-strong: #a9b3a5;
  --blue: #0369a1;
  --water: #0284c7;
  --water-soft: #deeff2;
  --water-dark: #075985;
  --earth: #b45309;
  --earth-deep: #954406;
  --earth-hot: #c2410c;
  --earth-soft: #f8e6d3;
  --good: #18615e;
  --good-soft: #e6eee5;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'Avenir Next', Avenir, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font: 500 16px/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: var(--deep); }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, a, input, select, summary { -webkit-tap-highlight-color: #0284c720; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { line-height: 1.13; font-weight: 700; letter-spacing: -.036em; }
h1 { font-size: clamp(2.12rem, 4.45vw, 3.43rem); }
h2 { font-size: clamp(1.29rem, 2.1vw, 1.8rem); }
h3 { line-height: 1.25; font-weight: 700; }
.layout { width: min(100% - 80px, 1280px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 4; top: 6px; left: 6px; background: var(--paper); padding: 12px; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--deep);
}
.header-inner, .footer-inner { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); font-weight: 750; font-size: 1.24rem; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.wordmark-lab { color: var(--blue); }
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.45rem); }
.header-inner nav a, .footer-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 650;
  text-decoration: none;
}
.header-inner nav a:hover, .header-inner nav a[aria-current], .footer-inner nav a:hover { color: var(--blue); }
.site-footer { background: #ecebdf; border-top: 1px solid var(--line); margin-top: 64px; }
.footer-inner { min-height: 124px; }
.footer-inner .wordmark { font-size: 1.1rem; }
.footer-inner .wordmark img { width: 30px; height: 30px; }
.footer-inner p { color: var(--muted); font-size: .815rem; margin-top: 7px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.75rem, 5.1vw, 4.9rem);
  padding-block: clamp(2.15rem, 5.1vw, 4.55rem) clamp(2.6rem, 5vw, 4.7rem);
}
.hero h1 {
  font-family: Georgia, Cambria, serif;
  font-size: clamp(3.65rem, 5.7vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -.072em;
  line-height: .95;
  text-wrap: balance;
}
.eyebrow { margin-bottom: 11px; color: var(--blue); font: 700 .73rem/1.35 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.hero-lead {
  max-width: 29rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .875rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { color: #fff; background: var(--water-dark); }
.button-outline { color: var(--deep); border-color: var(--line-strong); background: var(--paper); }
.button-outline:hover { background: var(--water-soft); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; margin-top: 23px; color: var(--muted); font: 600 .725rem/1.5 var(--mono); }
.hero-meta > span + span { position: relative; }
.hero-meta > span + span::before { position: absolute; content: ''; left: -11px; top: .5em; width: 3px; height: 3px; background: var(--blue); border-radius: 50%; }
.hero-plan { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 4px 5px 0 #182f3810; }
.hero-plan img { width: 100%; height: auto; background: #f3f1e5; }
.hero-plan figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-strong);
  padding: 11px 15px;
  color: var(--muted);
  background: var(--paper);
  font: 600 .72rem/1.35 var(--mono);
}
.hero-plan figcaption strong { color: var(--ink); font-weight: 700; }
.hero-plan figcaption span { display: flex; align-items: center; gap: 6px; }
.hero-plan figcaption i { display: inline-block; width: 16px; height: 2px; background: var(--water); }

.calculator-library, .example-library { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.example-library { margin-top: 43px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); }
.section-heading > p { color: var(--muted); font-size: .91rem; margin-bottom: 2px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  padding: 14px 15px 0;
  color: var(--ink);
  text-decoration: none;
}
.tool-card:hover { color: var(--ink); border-color: var(--blue); background: #fffdf6; }
.tool-card-top { display: flex; justify-content: space-between; align-items: start; gap: 5px; }
.tool-icon { display: grid; place-items: center; min-width: 41px; height: 41px; border: 1px solid #b4c9c8; border-radius: 4px; background: #eaf0e7; color: var(--deep); }
.tool-category { color: var(--muted); font: 600 .675rem/1.35 var(--mono); text-align: right; }
.tool-card h3 { margin-top: 13px; font-size: 1.12rem; letter-spacing: -.025em; }
.tool-card p { flex: 1; color: var(--muted); margin-top: 5px; margin-bottom: 13px; font-size: .85rem; line-height: 1.45; }
.tool-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.tool-card-foot strong { color: var(--blue); font: 700 .81rem/1.2 var(--mono); white-space: nowrap; }
.tool-card-foot svg { color: var(--blue); flex: none; }
.library-grid, .method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
.library-group { color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.library-group summary { min-height: 48px; padding: 11px 14px; font-weight: 700; }
.library-group summary small { float: right; color: var(--muted); font: 600 .72rem/1.9 var(--mono); }
.library-group li { margin-bottom: 8px; }
.library-group ul { margin-block: 0 12px; padding: 0 16px 0 34px; font-size: .89rem; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; min-height: 34px; margin-top: 13px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.calc-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px 28px; border-bottom: 1px solid var(--line-strong); padding: 16px 0 20px; margin-bottom: 21px; }
.calc-heading .eyebrow { margin-bottom: 7px; }
.calc-heading p:last-child { max-width: 53rem; margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.heading-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; }
.jump-results { display: none; }
.method-tag {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--deep);
  padding: 8px 11px;
  font: 650 .71rem/1.35 var(--mono);
  text-decoration: none;
}
.method-tag svg { flex: none; color: var(--blue); }
.method-tag:hover { border-color: var(--blue); }
.worksheet-grid { display: grid; grid-template-columns: minmax(325px, .55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.worksheet-output { display: grid; gap: 14px; align-items: start; min-width: 0; }
.worksheet-output > [data-rating]:empty { display: none; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 55px; padding: 7px 16px; }
.panel-top h2, .data-panel h2, .rating-panel h2 { font-size: 1.12rem; letter-spacing: -.022em; }
.input-panel-top { border-bottom: 1px solid var(--line); }
.units-control { display: flex; border-radius: 5px; gap: 3px; border: 1px solid var(--line); background: var(--vellum); padding: 2px; }
.units-control button {
  min-width: 46px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding-inline: 8px;
  background: transparent;
  color: var(--muted);
  font: 700 .82rem/1.1 var(--mono);
}
.units-control button[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.units-control button:not([aria-pressed="true"]):hover { background: var(--water-soft); color: var(--blue); }
.input-form { padding: 14px 16px 0; }
.input-section { min-inline-size: 0; margin: 0 0 11px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); }
.input-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 12px; }
.input-section legend { display: block; width: 100%; padding: 0; margin-bottom: 8px; color: var(--deep); font-size: .82rem; font-weight: 750; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: end; }
.field { min-width: 0; }
.field:has(select) { grid-column: 1 / -1; }
.field-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .77rem; font-weight: 650; line-height: 1.22; }
.input-shell {
  display: flex;
  min-height: 43px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fffef8;
}
.input-shell:focus-within { border-color: var(--blue); outline: 1px solid var(--blue); outline-offset: 1px; }
.field :is(input, select) {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 3px;
  outline: none;
  font: 650 .875rem/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
}
.field input::-webkit-inner-spin-button, .field input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--deep) 50%), linear-gradient(135deg, var(--deep) 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 25px;
  font-family: var(--sans);
  font-weight: 680;
}
.unit-suffix {
  display: grid;
  place-items: center;
  flex: none;
  margin-right: 7px;
  color: var(--muted);
  font: 600 .68rem/1.2 var(--mono);
  white-space: nowrap;
  pointer-events: none;
}
.field:has([aria-invalid="true"]) .input-shell { border-color: var(--earth-hot); background: #fff6e9; }
.field-error { display: block; margin-top: 4px; color: var(--earth-deep); font-size: .73rem; line-height: 1.3; }
.field-help { margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.42; }
.cover-table { width: 100%; border-collapse: separate; border-spacing: 5px; margin: -5px; width: calc(100% + 10px); table-layout: fixed; text-align: left; }
.cover-table th { padding: 0; color: var(--muted); font-size: .75rem; line-height: 1.22; font-weight: 650; }
.cover-table th:first-child { width: 28%; }
.cover-table td { padding: 0; vertical-align: top; }
.cover-table .unit-suffix { display: none; }
.table-area-unit { color: var(--muted); font: 500 .66rem/1.1 var(--mono); white-space: nowrap; }
.input-footer { padding: 0 16px 9px; }
.link-button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; border: 0; background: none; color: var(--blue); padding: 6px 2px; font-weight: 700; font-size: .82rem; }
.link-button:hover { text-decoration: underline; text-underline-offset: .2em; }

.diagram-heading {
  min-height: 49px;
  color: var(--deep);
  border-bottom: 1px solid var(--line);
  background: #edf0e7;
  border-radius: 6px 6px 0 0;
}
.diagram-update { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--good); font: 650 .7rem/1.4 var(--mono); }
.diagram-update i { width: 7px; height: 7px; border-radius: 50%; background: var(--water); }
.diagram-frame { border-bottom: 1px solid var(--line); background: #f5f4ea; }
.diagram-frame svg, .print-diagram svg { display: block; width: 100%; height: auto; }
.diagram-frame[data-stale] svg { opacity: .55; }
.s-sheet { fill: #f5f4ea; }
.s-grid { fill: none; stroke: #8ba69f; stroke-width: .65; opacity: .27; }
.s-card { fill: #fcfbf6; stroke: #bdc9bb; stroke-width: 1; }
.s-kicker, .s-value, .s-unit, .s-label, .s-key { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.s-kicker { fill: #486163; font-size: 11px; font-weight: 700; }
.s-value { fill: #123b50; font-size: 21px; font-weight: 750; letter-spacing: -.7px; }
.s-value-compact { font-size: 17px; }
.s-unit { fill: #365c64; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.s-label { fill: #2d5054; font-size: 14px; font-weight: 690; }
.s-key { fill: #36585b; font-size: 11.5px; font-weight: 650; }
.s-blue-text { fill: #075985; }
.s-earth-text { fill: #9c430d; }
.s-dim, .s-center, .s-limit-line, .s-contour, .s-ink, .s-water-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-ink { stroke: #294952; stroke-width: 2; }
.s-dim { stroke: #466465; stroke-width: 1; }
.s-center { stroke: #597776; stroke-width: 1; stroke-dasharray: 6 4; }
.s-contour { stroke: #a68759; stroke-width: 1.2; opacity: .8; }
.s-limit-line { stroke: #b45309; stroke-width: 2; stroke-dasharray: 5 4; }
.s-paper-fill { fill: #fcfbf6; }
.s-water { fill: #afd7e8; }
.s-water-band { fill: none; stroke: #b7dde8; stroke-width: 13; stroke-linecap: round; }
.s-water-line { stroke: #0277ad; stroke-width: 2.1; }
.s-water-dot { fill: #f7faf3; stroke: #0284c7; stroke-width: 2; }
.s-soil { fill: #e6dec4; stroke: #9e9276; stroke-width: 1.2; }
.s-paving { fill: #d3dcd4; stroke: #617772; stroke-width: 1.5; }
.s-apron { fill: #ecdabf; stroke: #a45322; stroke-width: 1.5; }
.s-rock { fill: #bc8453; stroke: #90511f; stroke-width: .5; opacity: .85; }
.s-track { fill: #d9dfd3; }
.s-gauge-ok { fill: #24818a; }
.s-gauge-warn { fill: #b45309; }
.s-gauge-dot { fill: #fbfaf1; stroke: #164b5c; stroke-width: 1.8; }

.status-area { padding: 12px 15px; }
.result-status {
  border-left: 3px solid #518474;
  padding: 7px 10px;
  border-radius: 2px;
  background: var(--good-soft);
  color: var(--muted);
  font-size: .805rem;
  line-height: 1.42;
}
.result-status.is-caution { border-left-color: var(--earth); background: var(--earth-soft); }
.result-status-title { color: var(--good); font-size: .88rem; font-weight: 750; }
.is-caution .result-status-title { color: var(--earth-deep); }
.result-status .model-note { margin-top: 4px; }
.utilities { border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 3px; padding: 4px 12px; }
.utilities > span { align-self: stretch; width: 1px; background: var(--line); margin: 8px 4px; }
.utilities button { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; border: 0; border-radius: 4px; background: transparent; color: var(--blue); padding: 6px 8px; font-size: .775rem; font-weight: 730; }
.utilities button:not(:disabled):hover { background: var(--water-soft); }
.action-message { margin: 0 16px 10px; color: var(--blue); font-size: .8rem; }
.data-panel, .rating-panel { padding: 14px 15px 10px; }
.data-panel h2, .rating-panel h2 { margin-bottom: 9px; }
.results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.results-list > div { display: flex; justify-content: space-between; align-items: baseline; min-width: 0; gap: 4px 8px; border-top: 1px solid var(--line); padding: 5px 0; font-size: .79rem; }
.results-list dt { color: var(--muted); }
.results-list dd { min-width: 0; color: var(--deep); font: 680 .78rem/1.3 var(--mono); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.value-unit { color: var(--muted); font-size: .89em; font-weight: 550; white-space: nowrap; }
.rating-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: right; font: 630 .77rem/1.38 var(--mono); }
.rating-table :is(th, td) { padding: 6px 4px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rating-table th span { display: block; color: var(--muted); font-size: .65rem; font-weight: 500; }
.rating-table :is(th, td):first-child { text-align: left; }
.worksheet-support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: 14px; margin-top: 20px; align-items: start; }
.text-panel { padding: 17px 19px; }
.text-panel h2 { font-size: 1.16rem; margin-bottom: 9px; }
.text-panel h2 a { text-decoration: none; }
.text-panel h2 a:hover { text-decoration: underline; }
.text-panel p { color: var(--muted); font-size: .875rem; line-height: 1.56; margin-bottom: 9px; }
.text-panel p:last-child { margin-bottom: 0; }
.text-panel .scenario-note { color: var(--ink); }
.text-panel .formula {
  padding: 8px 10px;
  background: #eef2e8;
  border-left: 2px solid #91a99c;
  color: #284d57;
  font: 600 .79rem/1.6 var(--mono);
  overflow-wrap: anywhere;
}
.source-list { padding-left: 1.16rem; margin: 8px 0 0; font-size: .81rem; }
.source-list li + li { margin-top: 4px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 39px; border-top: 1px solid var(--line); font-size: .83rem; line-height: 1.3; text-decoration: none; }
.related-list a:hover { text-decoration: underline; }
.related-list svg { flex: none; }
.return-calculator { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: .85rem; font-weight: 700; }
.noscript-note { margin-bottom: 12px; padding: 10px; background: var(--earth-soft); }

.trust-page { padding-top: 35px; }
.trust-heading { margin-bottom: 21px; }
.trust-heading > p:last-child { margin-top: 9px; color: var(--muted); }
.unit-method { margin-bottom: 14px; }
.privacy-page .text-panel { max-width: 790px; }
.privacy-page .text-panel p + h2 { margin-top: 19px; }
.share-dialog { max-width: min(500px, calc(100% - 28px)); padding: 18px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: var(--paper); }
.share-dialog::backdrop { background: #172e3865; }
.share-dialog p { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.share-dialog input { display: block; margin-block: 12px; width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 4px; font: .78rem/1 var(--mono); }
.share-dialog button + button { margin-left: 5px; }
.print-sheet { display: none; }

@media (max-width: 960px) {
  .layout { width: min(100% - 44px, 1280px); }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(3rem, 6.4vw, 4.7rem); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worksheet-grid { grid-template-columns: minmax(290px, .64fr) minmax(0, 1fr); gap: 11px; }
  .results-list { grid-template-columns: 1fr; }
}

@media (max-width: 735px) {
  .calc-heading { align-items: start; flex-direction: column; gap: 10px; }
  .calc-heading p:last-child { margin-top: 6px; }
  .method-tag { min-height: 40px; }
  .jump-results { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: .78rem; font-weight: 720; text-decoration: none; }
  .worksheet-grid { grid-template-columns: 1fr; gap: 11px; }
  .results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worksheet-support { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 23px; padding-block: 29px 35px; }
  .hero h1 { font-size: clamp(3rem, 9.4vw, 5rem); max-width: 12em; text-wrap: unset; }
  .hero-lead { margin-top: 15px; }
  .hero-actions { margin-top: 16px; }
  .hero-meta { margin-top: 15px; }
  .hero-plan { max-width: 620px; }
}

@media (max-width: 575px) {
  .layout { width: calc(100% - 28px); }
  .header-inner { justify-content: flex-start; align-items: flex-start; flex-direction: column; min-height: 0; gap: 1px; padding-block: 11px 2px; }
  .header-inner nav { gap: clamp(11px, 5vw, 24px); }
  .header-inner nav a { font-size: .79rem; min-height: 41px; }
  .wordmark { font-size: 1.18rem; }
  .wordmark img { width: 31px; height: 31px; }
  .hero h1 { font-size: clamp(2.75rem, 10.5vw, 3.6rem); max-width: 11em; }
  .hero-plan figcaption { font-size: .67rem; padding: 8px; }
  .hero-actions { gap: 6px; }
  .hero-actions .button { font-size: .78rem; padding-inline: 8px; gap: 5px; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; margin-bottom: 12px; }
  .section-heading > p { font-size: .825rem; }
  .tool-grid { gap: 7px; }
  .tool-card { padding: 9px 8px 0; }
  .tool-icon { min-width: 34px; height: 34px; }
  .tool-icon svg { width: 22px; height: 22px; }
  .tool-category { max-width: 11ch; font-size: .59rem; }
  .tool-card h3 { font-size: .95rem; margin-top: 7px; }
  .tool-card p { font-size: .75rem; margin-block: 3px 8px; }
  .tool-card-foot { font-size: .7rem; min-height: 40px; line-height: 1.18; gap: 2px; }
  .tool-card-foot strong { font-size: .72rem; }
  .tool-card-foot svg { width: 14px; height: 14px; }
  .calculator-library, .example-library { padding-top: 18px; }
  .example-library { margin-top: 29px; }
  .library-grid, .method-grid { grid-template-columns: 1fr; gap: 7px; }
  .footer-inner { padding-block: 16px; align-items: flex-start; flex-direction: column; gap: 1px; }
  .site-footer { margin-top: 34px; }
  .breadcrumb { margin-top: 6px; min-height: 30px; font-size: .755rem; }
  .calc-heading { padding-top: 8px; padding-bottom: 12px; margin-bottom: 13px; }
  .calc-heading h1 { font-size: clamp(1.95rem, 8.5vw, 2.7rem); }
  .calc-heading p:last-child { font-size: .88rem; line-height: 1.43; }
  .input-form, .panel-top, .status-area, .data-panel, .rating-panel, .text-panel { padding-inline: 11px; }
  .input-footer, .utilities { padding-inline: 8px; }
  .utilities { gap: 2px; }
  .utilities button { padding-inline: 4px; }
  .utilities > span { margin-inline: 1px; }
  .results-list { grid-template-columns: 1fr; }
  .result-status { font-size: .772rem; }
  .field :is(input, select) { font-size: 1rem; }
  .table-field input { font-size: .875rem; }
  .s-kicker { font-size: 12px; }
  .s-unit { font-size: 11px; }
}

@media (max-width: 350px) {
  .layout { width: calc(100% - 22px); }
  .cover-table th { font-size: .68rem; }
  .tool-card-foot strong { display: block; }
  .tool-category { font-size: .55rem; }
  .hero-actions .button { font-size: .73rem; }
}

@page { size: A4 portrait; margin: 12mm; }
@media print {
  body { background: white; color: #172e38; }
  .site-header, .site-footer, .skip, .worksheet > :not(.print-sheet) { display: none !important; }
  .layout { width: auto; margin: 0; }
  .print-sheet { display: block; font-size: 9pt; }
  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12pt;
    padding-bottom: 4pt;
    margin-bottom: 8pt;
    border-bottom: .6pt solid #748889;
    font: 650 7.3pt/1.35 var(--mono);
  }
  .print-title { margin-bottom: 8pt; font-size: 20pt; }
  .print-diagram {
    border: .6pt solid #c0c9be;
    width: 162mm;
    max-width: 100%;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .print-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; margin-block: 8pt; }
  .print-columns h2 { font-size: 11pt; margin-bottom: 3pt; }
  .print-columns .results-list { display: block; }
  .print-columns .results-list > div { font-size: 7.8pt; padding-block: 2pt; line-height: 1.24; }
  .print-columns .results-list dd { font-size: 7.3pt; }
  .print-sheet .result-status { padding: 3pt 6pt; font-size: 7.6pt; break-inside: avoid; }
  .print-sheet .result-status-title { font-size: 8.2pt; }
  .print-formula { margin-top: 5pt; font: 7.7pt/1.35 var(--mono); }
  .print-foot { margin-top: 4pt; font-size: 7.2pt; color: var(--muted); }
}
