:root {
  color-scheme: light;
  --canvas: #f5eee2;
  --paper: #fffdf8;
  --inset: #f9f4ea;
  --ink: #273433;
  --muted: #525b53;
  --subtle: #666a60;
  --line: #d9cbbb;
  --line-strong: #bcaa91;
  --clay: #9a3412;
  --clay-active: #c2410c;
  --clay-soft: #f5e2d2;
  --teal: #0f766e;
  --teal-dark: #075a54;
  --teal-soft: #e3f0eb;
  --sand: #efe1c9;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Charter, "Iowan Old Style", Georgia, serif;
  --shadow: 0 2px 5px #4b362808, 0 14px 30px -26px #4b362875;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--canvas); }
svg { display: block; max-inline-size: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
a { color: var(--clay); text-underline-offset: .2em; }
a:hover { color: var(--clay-active); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, p, figure, dl { margin: 0; }
[hidden] { display: none !important; }
.container { width: min(100% - 96px, 1224px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 10px 16px;
  background: var(--paper);
}
.site-head { background: var(--paper); border-top: 4px solid var(--clay); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { flex: none; }
.brand-accent { color: var(--clay); }
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-nav a, .site-foot nav a { color: var(--muted); font-size: 14px; font-weight: 640; text-decoration: none; }
.top-nav a:hover, .site-foot nav a:hover { color: var(--clay); text-decoration: underline; }
.site-foot { background: var(--inset); border-top: 1px solid var(--line); margin-top: 52px; }
.foot-wrap { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot-wrap strong { display: block; font-size: 14px; }
.foot-wrap span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.site-foot nav { display: flex; gap: 18px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  color: var(--clay);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.section-kicker > span { display: inline-block; flex: none; width: 19px; height: 2px; background: currentColor; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 4vw, 72px);
  align-items: center;
  padding-block: 59px 54px;
}
.hero-copy h1 {
  margin-top: 17px;
  font: 720 clamp(43px, 5.45vw, 82px)/.98 var(--display);
  letter-spacing: -.052em;
}
.hero-copy h1 span { color: var(--clay); }
.hero-copy > p:not(.section-kicker, .hero-detail) {
  color: var(--muted);
  max-width: 440px;
  margin-top: 21px;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.62;
}
.hero-links { display: flex; align-items: center; flex-wrap: wrap; margin-top: 25px; gap: 18px; }
.primary-button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  gap: 15px;
  padding: 8px 17px;
  background: var(--clay);
  color: #fffdf8;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
}
.primary-button:hover { color: #fffdf8; background: var(--clay-active); }
.method-link { font-weight: 630; font-size: 14px; }
.hero-detail { margin-top: 19px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-panel {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}
.profile-head, .profile-panel figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 13px 19px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .025em;
}
.profile-head { background: var(--inset); border-bottom: 1px solid var(--line); }
.profile-head span:first-child { color: var(--ink); font-weight: 730; text-transform: uppercase; }
.profile-panel figcaption { border-top: 1px solid var(--line); }
.profile-key { color: var(--teal-dark); display: flex; align-items: center; gap: 8px; }
.profile-key i { display: inline-block; inline-size: 16px; border-top: 2px dashed var(--teal); }
.field-profile { width: 100%; padding: 9px 7px 1px 5px; }
.profile-grid { fill: none; stroke: #e8decd; stroke-width: 1; }
.profile-fill { fill: #efdebc; }
.profile-sand { fill: #f4e8d0; }
.profile-clay { fill: #e7c09f; }
.profile-rock { fill: #d9d0bb; }
.profile-beds { fill: none; stroke: #a38d70; stroke-width: 1; }
.profile-grade { fill: none; stroke: #3f493f; stroke-width: 1.9; }
.profile-grain { fill: none; stroke: #978467; opacity: .52; stroke-width: 1.3; stroke-linecap: round; }
.profile-water { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 8 5; }
.profile-water-mark { fill: none; stroke: var(--teal); stroke-width: 1.7; }
.profile-wedge { fill: none; stroke: var(--clay); stroke-width: 2; stroke-dasharray: 5 3; }
.profile-structure { fill: #5d645a; stroke: #343c36; stroke-width: 1.5; }
.profile-axis { fill: none; stroke: #92816b; stroke-width: 1.1; }
.profile-scale { fill: var(--muted); font: 13px var(--mono); }
.profile-labels { fill: var(--ink); font: 650 16px var(--sans); }
.toolbox { border-top: 1px solid var(--line-strong); padding-top: 25px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 22px; margin-bottom: 19px; }
.section-heading h2 { font: 700 clamp(25px, 3vw, 36px)/1.12 var(--display); letter-spacing: -.025em; }
.section-heading p { font-size: 14px; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.tool-card {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 14px;
  padding: 17px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.tool-card:hover { color: var(--ink); border-color: var(--clay); }
.tool-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 6px; background: var(--clay-soft); color: var(--clay); }
.tool-card:nth-child(3n + 2) .tool-icon { background: var(--teal-soft); color: var(--teal-dark); }
.tool-icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tool-description { display: grid; gap: 4px; }
.tool-description .card-group { color: var(--clay); font: 650 10px var(--mono); text-transform: uppercase; letter-spacing: .035em; }
.tool-description strong { font-size: 17px; line-height: 1.25; }
.tool-description > span:last-child { font-size: 13px; line-height: 1.45; color: var(--muted); }
.tool-arrow { justify-self: end; font-size: 19px; line-height: 1.1; color: var(--clay); }

.page-intro { padding-block: 24px 23px; }
.breadcrumbs ol {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 0;
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--subtle); }
.breadcrumbs a { color: var(--muted); }
.page-intro h1, .trust h1 {
  font: 720 clamp(33px, 4.1vw, 56px)/1.05 var(--display);
  letter-spacing: -.04em;
}
.page-intro .section-kicker { margin-bottom: 8px; }
.page-intro > p:last-child, .trust-lead { color: var(--muted); line-height: 1.55; font-size: 16px; margin-top: 8px; max-width: 820px; }
.worksheet { display: grid; grid-template-columns: minmax(300px, .88fr) minmax(0, 1.5fr); grid-template-areas: "controls readout"; gap: 18px; align-items: start; }
.controls, .readout { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: var(--shadow); }
.controls { grid-area: controls; }
.readout { grid-area: readout; }
.controls-head, .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.controls h2, .readout h2 { font-size: 18px; font-weight: 730; letter-spacing: -.025em; }
.units-toggle { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--inset); }
.units-toggle button {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  min-height: 31px;
  min-width: 46px;
  padding: 2px 8px;
  font: 670 14px var(--mono);
}
.units-toggle button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.param-group { min-width: 0; padding: 0; border: 0; margin: 18px 0 0; }
.param-group legend {
  width: 100%; padding: 0 0 6px; margin: 0 0 9px; border-bottom: 1px solid var(--line);
  color: var(--clay); font-family: var(--mono); font-size: 11px; font-weight: 670; letter-spacing: .032em; text-transform: uppercase;
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 10px; align-items: end; }
.field { min-width: 0; }
.field[data-wide] { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; font-weight: 620; line-height: 1.28; margin-bottom: 5px; }
.field small, .optional { color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 450; }
.field small { display: block; margin-top: 4px; }
.field select, .number-wrap, .share-wrap input {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fffefb;
  width: 100%;
  min-width: 0;
  min-height: 42px;
}
.field select { padding: 7px 6px 7px 8px; font-size: 13px; }
.number-wrap { display: flex; align-items: stretch; overflow: hidden; }
.number-wrap:focus-within, .field select:focus-visible, .share-wrap input:focus-visible {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.number-wrap input {
  border: 0;
  background: transparent;
  appearance: textfield;
  flex: 1;
  padding: 8px 4px 8px 8px;
  min-width: 0;
  width: 100%;
  outline: none;
  font: 600 13px var(--mono);
}
.number-wrap input::-webkit-inner-spin-button,
.number-wrap input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.input-unit {
  display: grid;
  place-items: center;
  flex: none;
  font: 11px var(--mono);
  white-space: nowrap;
  padding: 0 7px 0 3px;
  color: var(--muted);
}
.form-footer { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.reset-button, .utilities button {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  min-height: 41px;
  padding: 6px 11px;
  background: var(--inset);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}
.reset-button:hover, .utilities button:not(:disabled):hover { border-color: var(--clay); background: var(--clay-soft); color: var(--clay); }
.jump-inputs, .jump-results { display: none; font-size: 13px; font-weight: 650; text-decoration: none; }
.input-error { background: var(--clay-soft); color: var(--clay); padding: 9px 10px; border-left: 2px solid var(--clay); margin-top: 13px; font-size: 12px; line-height: 1.45; }
.telemetry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.telemetry-card { min-width: 0; background: var(--inset); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.telemetry-primary { background: var(--clay-soft); border-color: #d5a68b; }
.telemetry-card dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.telemetry-primary dt, .telemetry-primary dd { color: var(--clay); }
.telemetry-card dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; margin: 6px 0 0; font: 720 clamp(16px, 2vw, 25px)/1.07 var(--mono); }
.reading-value { overflow-wrap: anywhere; }
.reading-unit { color: var(--muted); white-space: nowrap; font: 550 11px var(--mono); }
.anatomy { margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--inset); }
.anatomy figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 9px 10px; background: var(--paper); border-bottom: 1px solid var(--line);
  font-weight: 670; font-size: 13px; line-height: 1.28;
}
.anatomy figcaption span { color: var(--muted); font: 11px var(--mono); }
.diagram { background: var(--inset); }
.section-svg { width: 100%; height: auto; }
.diagram > .section-svg { max-width: min(100%, 660px); margin-inline: auto; }
.diagram-empty { min-height: 145px; display: grid; place-items: center; padding: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.legend { display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 8px 10px; gap: 0 35px; border-top: 1px solid var(--line); background: var(--paper); }
.legend li { display: flex; min-width: 0; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.swatch { display: inline-block; width: 12px; height: 3px; flex: none; background: var(--clay-active); }
.swatch-1 { background: var(--teal); }
.swatch-2 { background: var(--ink); }
[data-calculator="pile"] .swatch-2 { background: #72776a; }
[data-calculator="seepage"] .swatch-0 { background: var(--teal); }
[data-calculator="seepage"] .swatch-1 { background: #a98762; }
[data-calculator="seepage"] .swatch-2 { background: var(--clay-active); }
.status-line { padding: 8px 10px; margin-top: 9px; background: var(--inset); border-left: 3px solid var(--line-strong); color: var(--muted); font-size: 12px; line-height: 1.42; }
.status-line[data-tone="good"] { color: var(--teal-dark); background: var(--teal-soft); border-color: var(--teal); }
.status-line[data-tone="warn"] { color: var(--clay); background: var(--clay-soft); border-color: var(--clay-active); }
.utilities { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 11px; }
.utility-feedback { color: var(--teal-dark); font-size: 12px; margin-top: 7px; }
.utility-feedback:empty { display: none; }
.share-wrap { margin-top: 10px; }
.share-wrap label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 620; }
.share-wrap input { padding: 7px 8px; font: 12px var(--mono); }
.readout-details { margin-top: 12px; border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 10px 0 5px; font-size: 13px; font-weight: 630; }
.data-table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.4; }
.data-table tr:nth-child(odd) { background: var(--inset); }
.data-table th, .data-table td { padding: 6px 7px; text-align: start; }
.data-table th { font-weight: 530; }
.data-table td { text-align: end; font: 630 12px/1.35 var(--mono); min-inline-size: 84px; }
.table-unit { font-weight: 460; color: var(--muted); white-space: nowrap; }
.screening-note {
  padding: 11px 14px;
  margin-top: 18px;
  background: #f1e5d3;
  border-left: 3px solid var(--clay);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.reference-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin-top: 27px; }
.reference-grid h2, .worked-example h2, .trust h2 { font: 700 25px/1.2 var(--display); letter-spacing: -.02em; }
.method-notes ol { color: var(--muted); font-size: 14px; line-height: 1.58; padding: 0 0 0 22px; margin: 10px 0 14px; }
.method-notes ol li + li { margin-top: 8px; }
.reference-links, .case-list ul, .model-links { padding: 0; list-style: none; margin: 10px 0 0; }
.reference-links li { font-size: 13px; line-height: 1.4; margin-top: 8px; }
.case-list ul li, .model-links li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.case-list ul li span, .model-links li span { display: block; color: var(--muted); font-size: 13px; line-height: 1.42; margin-top: 4px; }
.worked-example {
  margin-top: 17px; padding: 16px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper);
}
.worked-example > p { color: var(--muted); margin-top: 8px; font-size: 14px; line-height: 1.5; }
.case-steps { margin: 9px 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.case-steps li + li { margin-top: 5px; }
.baseline-values { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.baseline-values > span { padding: 8px; background: var(--inset); border-bottom: 1px solid var(--line); }
.baseline-values small { display: block; color: var(--muted); font-size: 11px; }
.baseline-values strong { display: block; margin-top: 3px; font: 650 14px var(--mono); overflow-wrap: anywhere; }
.trust { max-width: 840px; padding-top: 27px; }
.trust section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; }
.trust section p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
#print-sheet { display: none; }

/* SVG presentation also gets inlined as attributes on downloadable diagrams. */
.canvas { fill: var(--inset); }
.sand { fill: #efe2ca; }
.water-sheet { fill: #bee2db; fill-opacity: .74; }
.soil-fill { fill: #d68f62; fill-opacity: .42; }
.air-sheet, .air-key { fill: #fdfcf8; }
.air-key { stroke: #bbae9c; stroke-width: 1; }
.structure { fill: #74796d; stroke: #3c463e; stroke-width: 1.45; }
.axis, .axis-dash, .dim, .grid, .clay-stroke, .water-stroke, .water-dash, .dark-stroke, .flow-line, .potential { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.grid { stroke: #d8c9b3; stroke-width: 1; }
.axis, .axis-dash { stroke: #616658; stroke-width: 1.2; }
.axis-dash { stroke-dasharray: 4 4; opacity: .72; }
.dim { stroke: #6e7165; stroke-width: 1.1; }
.clay-stroke { stroke: var(--clay-active); stroke-width: 1.9; }
.water-stroke, .water-dash { stroke: var(--teal); stroke-width: 1.85; }
.water-dash { stroke-dasharray: 5 3; }
.dark-stroke { stroke: var(--ink); stroke-width: 1.7; }
.flow-line { stroke: #207a74; stroke-width: 1; }
.potential { stroke: #947559; stroke-width: .9; stroke-dasharray: 3 2; }
.plot-point { fill: var(--ink); stroke: #fffdf8; stroke-width: 1.6; }
.clay-dot { fill: var(--clay); stroke: #fffdf8; stroke-width: 1.3; }
.meter-bg { fill: #e8ddca; }
.meter-good { fill: var(--teal); }
.meter-warn { fill: var(--clay-active); }
.meter-neutral { fill: #64766e; }
.limit { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.plot-caption, .plot-text { fill: var(--ink); font: 640 16px var(--sans); }
.plot-note { fill: var(--muted); font: 530 11px var(--mono); }
.plot-value { fill: var(--ink); font: 670 14px var(--mono); }
.plot-water { fill: var(--teal-dark); font: 650 14px var(--mono); }
.plot-clay { fill: var(--clay); font: 650 14px var(--mono); }

@media (max-width: 1000px) {
  .container { width: calc(100% - 54px); }
  .home-hero { padding-block: 45px; }
  .worksheet { grid-template-columns: minmax(274px, .9fr) minmax(0, 1.3fr); gap: 12px; }
  .controls, .readout { padding: 12px; }
  .telemetry { gap: 5px; }
  .telemetry-card { padding: 7px; }
  .telemetry-card dt { font-size: 9px; }
  .telemetry-card dd { font-size: clamp(14px, 2.03vw, 21px); }
}
@media (max-width: 750px) {
  .container { width: calc(100% - 32px); }
  .nav-wrap { min-height: 62px; gap: 8px; }
  .wordmark { font-size: 17px; gap: 7px; }
  .wordmark img { width: 32px; height: 32px; }
  .top-nav { gap: clamp(8px, 3vw, 18px); }
  .top-nav a { font-size: 12px; }
  .home-hero { grid-template-columns: 1fr; gap: 21px; padding-block: 29px 25px; }
  .hero-copy h1 { margin-top: 12px; font-size: clamp(36px, 10.8vw, 62px); }
  .desktop-break { display: none; }
  .hero-copy > p:not(.section-kicker, .hero-detail) { margin-top: 12px; }
  .hero-links { margin-top: 17px; gap: 12px; }
  .hero-detail { margin-top: 10px; }
  .profile-head, .profile-panel figcaption { padding: 9px 11px; font-size: 10px; }
  .section-heading { align-items: start; flex-direction: column; }
  .tool-grid { grid-template-columns: 1fr; gap: 8px; }
  .tool-card { padding: 12px; gap: 10px; }
  .page-intro { padding-block: 16px; }
  .breadcrumbs ol { margin-bottom: 10px; }
  .page-intro > p:last-child { font-size: 14px; }
  .worksheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "readout" "controls"; }
  .jump-inputs, .jump-results { display: inline-flex; align-items: center; min-height: 40px; }
  .telemetry { margin-top: 5px; }
  .telemetry-card dd { font-size: 21px; }
  .units-toggle button { min-height: 40px; }
  .reference-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-foot { margin-top: 28px; }
  .foot-wrap { min-height: auto; flex-wrap: wrap; padding-block: 14px; gap: 12px; }
  .site-foot nav a { font-size: 13px; }
}
@media (max-width: 520px) {
  .telemetry, .baseline-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-card { padding: 8px; }
  .legend { gap: 0 35px; }
  .legend li { font-size: 10px; line-height: 1.12; }
  .swatch { width: 10px; }
  .anatomy figcaption { font-size: 12px; }
  .anatomy figcaption span { font-size: 10px; }
  .tool-card { grid-template-columns: 38px minmax(0, 1fr) 16px; }
  .tool-icon { width: 38px; height: 38px; }
}
@media (max-width: 350px) {
  .container { width: calc(100% - 22px); }
  .top-nav { gap: 6px; }
  .top-nav a { font-size: 11px; }
  .wordmark { font-size: 16px; }
  .wordmark img { width: 28px; height: 28px; }
  .controls, .readout { padding: 10px; }
  .field-grid { column-gap: 7px; }
  .field select { font-size: 12px; }
  .number-wrap input { font-size: 12px; padding-inline: 6px 3px; }
  .input-unit { font-size: 10px; padding-inline: 3px 5px; }
  .legend li { gap: 3px; }
  .legend { padding-inline: 7px; }
}
@page { size: A4 portrait; margin: 11mm; }
@media print {
  body { color: #17211b; background: #fff; }
  body:has(#print-sheet) > :is(header, footer, .skip), body:has(#print-sheet) main > :not(#print-sheet) { display: none; }
  #print-sheet:not(:empty) { display: block; break-inside: avoid; font: 8.5pt/1.23 var(--sans); }
  #print-sheet header { border-bottom: 1px solid #7e876f; padding-bottom: 3mm; margin-bottom: 3mm; }
  #print-sheet header p { color: #505c53; font: 9pt var(--mono); }
  #print-sheet header h2 { font: 700 21pt/1.1 var(--display); margin-top: 1.2mm; }
  .print-columns { display: grid; align-items: start; grid-template-columns: 1fr 1fr; gap: 5mm; }
  .print-columns table { width: 100%; border-collapse: collapse; }
  .print-columns caption { font-weight: 730; text-align: left; border-bottom: 1px solid #a0ac9c; padding-block: 1.6mm; }
  .print-columns th, .print-columns td { padding: 1.1mm 0; border-bottom: .25mm solid #d6ddd4; }
  .print-columns th { text-align: left; font-weight: 540; }
  .print-columns td { text-align: right; padding-left: 1mm; font: 7.5pt var(--mono); }
  #print-sheet figure { margin: 3mm auto; width: 137mm; print-color-adjust: exact; }
  #print-sheet > p:last-child { font-size: 8pt; color: #515b54; }
}
