:root {
  color-scheme: light;
  --page: #f2f5f3;
  --paper: #fcfdfb;
  --raised: #ffffff;
  --ink: #142a33;
  --slate: #263e47;
  --muted: #50636a;
  --subtle: #3e5862;
  --line: #d2ddd9;
  --line-dark: #9eb3b3;
  --cyan: #0369a1;
  --ocean: #0e7490;
  --cyan-soft: #e3f2f4;
  --copper: #9a3412;
  --copper-bright: #c2410c;
  --copper-soft: #faeade;
  --warning: #714512;
  --warning-soft: #f7efdc;
  --grid: #dce7e5;
  --shadow: 0 2px 4px #142a3306, 0 12px 28px -22px #142a3340;
  --ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background-color: var(--page); color: var(--ink); font: 400 1rem/1.55 var(--ui); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }
p, h1, h2, h3, dl, dd, figure, ol, ul { margin: 0; }
img, svg { max-width: 100%; }
.site-shell { width: min(1272px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; inset: 6px auto auto 12px; padding: 10px 14px; background-color: var(--raised); transform: translateY(-150%); z-index: 5; }
.skip:focus { transform: none; }
.topbar { background-color: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.top-grid { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.035em; color: var(--ink); font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-tail { color: var(--cyan); }
.brand-mark { display: block; flex: 0 0 auto; width: 34px; height: 34px; }
.desktop-nav { display: flex; align-items: center; gap: 1.95rem; }
.desktop-nav > a, .nav-disclosure summary, .mobile-nav summary { color: var(--slate); text-decoration: none; font-weight: 640; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.desktop-nav > a:hover, details[open] > summary { color: var(--copper); }
.nav-disclosure, .mobile-nav { position: relative; }
.mobile-nav { display: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.caret { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: 0 0 auto; transition: transform .15s ease; }
details[open] > summary .caret { transform: rotate(180deg); }
.nav-popover { position: absolute; right: 0; top: calc(100% + 5px); width: 340px; background-color: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 7px; box-shadow: 0 14px 38px #172e3626; z-index: 3; }
.nav-popover a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 4px 10px; color: var(--ink); font-size: .89rem; border-radius: 5px; text-decoration: none; }
.nav-popover a:hover { background-color: var(--cyan-soft); color: var(--cyan); }
.nav-popover .tool-icon { width: 19px; height: 19px; color: var(--cyan); }
.arrow { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.tool-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.section-kicker { display: block; width: fit-content; color: var(--copper); font: 690 .76rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(103deg, #fbfcf7 18%, #f1f6f3 62%, #e7efed 100%); }
.hero-grid-layout { min-height: 474px; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(22px, 4.4vw, 65px); align-items: center; padding-block: 40px 50px; }
.hero-copy { min-width: 0; }
.hero-copy .section-kicker { border-left: 2px solid var(--copper-bright); padding-left: 11px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.65rem, 4.24vw, 4.2rem); line-height: 1.015; font-weight: 755; letter-spacing: -.052em; text-wrap: balance; }
.hero h1 span { color: var(--copper-bright); }
.hero p { font-size: 1.08rem; max-width: 42ch; color: var(--muted); margin-top: 23px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 9px 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 680; font-size: .88rem; line-height: 1.28; text-decoration: none; }
.primary { color: #fffdf9; background-color: var(--copper); }
.primary:hover { background-color: #7f2910; color: #fffdf9; }
.quiet { color: var(--ink); border-color: var(--line-dark); background-color: var(--paper); }
.quiet:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-plate { min-width: 0; background: #f4f9f7; border: 1px solid var(--line-dark); border-radius: 10px; box-shadow: 0 18px 35px -26px #27434d66; overflow: hidden; }
.hero-plate figcaption { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--slate); font: 640 .76rem/1.3 var(--mono); }
.figure-key { color: var(--copper); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.figure-key i { width: 7px; height: 7px; border-radius: 2px; background-color: var(--copper-bright); }
.hero-art { width: 100%; height: auto; display: block; }
.hero-grid { fill: none; stroke: #dfe9e5; stroke-width: 1; }
.hero-register { fill: none; stroke: #9bb3b3; stroke-width: 1.1; }
.hero-center { fill: none; stroke: #769eaa; stroke-dasharray: 4 5; opacity: .6; }
.hero-outer { fill: #b9d0d1; stroke: #597781; stroke-width: 1.5; }
.hero-face { fill: #dce8e6; stroke: #587881; stroke-width: 1.7; }
.hero-inner { fill: #66838e; stroke: #254954; stroke-width: 1.4; }
.hero-inner-line { fill: none; stroke: #a8c4c7; stroke-width: 2; }
.hero-edge { fill: none; stroke: #7d9da3; stroke-width: 1.1; }
.hero-loss { fill: #f1c3a9; stroke: #a53d19; stroke-width: 1.8; }
.hero-scar { fill: none; stroke: #b34a24; stroke-dasharray: 3 3; stroke-width: 1.3; }
.hero-measure { fill: none; stroke: #476c77; stroke-width: 1.1; }
.hero-copper { fill: var(--copper-bright); }
.hero-cyan { fill: var(--ocean); }
.hero-label { fill: #14536b; font: 650 17px var(--mono); }
.hero-label.loss-label { fill: var(--copper); }
.directory, .example-directory { padding-block: 46px; }
.example-directory { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.section-head h2, .page-title h1 { font-weight: 740; letter-spacing: -.043em; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
.section-head > a, .section-head > span { font-size: .87rem; font-weight: 630; color: var(--cyan); }
.section-head > a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.tool-group { margin-top: 25px; }
.tool-group h3 { margin-bottom: 9px; color: var(--subtle); font: 680 .76rem/1.45 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-card { min-width: 0; min-height: 173px; display: grid; grid-template-columns: 1fr auto; align-content: start; align-items: center; gap: 8px; position: relative; padding: 15px 16px 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background-color: var(--paper); text-decoration: none; box-shadow: var(--shadow); }
.tool-card:hover { border-color: #c78e70; color: var(--ink); background-color: #fffcf7; }
.tool-card.is-cp:hover { border-color: #72a9b4; background-color: #f7fcfc; }
.card-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--copper); background-color: var(--copper-soft); border-radius: 6px; }
.is-cp .card-icon { background-color: var(--cyan-soft); color: var(--cyan); }
.card-method { color: var(--muted); font: 550 .69rem/1.3 var(--mono); text-align: right; }
.tool-card strong { font-size: 1.02rem; line-height: 1.3; letter-spacing: -.023em; grid-column: 1/-1; }
.card-description { font-size: .84rem; color: var(--muted); grid-column: 1/-1; padding-right: 1.3rem; }
.tool-card > .arrow { color: var(--copper); position: absolute; right: 11px; bottom: 16px; }
.tool-card.is-cp > .arrow { color: var(--cyan); }
.section-intro { color: var(--muted); max-width: 71ch; margin-top: 9px; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; gap: 10px; align-items: start; }
.example-group { background-color: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.example-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 13px; min-height: 48px; font-weight: 660; font-size: .91rem; }
.example-group > summary:hover, .example-group[open] > summary { background-color: var(--cyan-soft); color: var(--cyan); }
.example-group > summary span { display: inline-flex; align-items: center; gap: 8px; }
.example-group .tool-icon { width: 20px; height: 20px; color: var(--cyan); }
.example-count { flex-shrink: 0; color: var(--muted); font: 550 .73rem/1.25 var(--mono); }
.example-group ul, .related ul { padding-left: 0; list-style: none; }
.example-group li { border-top: 1px solid var(--line); }
.example-group li a, .related li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 42px; padding: 6px 13px; font-size: .88rem; text-decoration: none; }
.example-group li a:hover, .related li a:hover { background-color: var(--cyan-soft); }
.footer { background-color: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 27px; }
.footer-brand { font-size: .96rem; }
.footer-brand .brand-mark { width: 27px; height: 27px; }
.footer p { color: var(--muted); font-size: .85rem; margin-top: 7px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .87rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 40px; }
.tool-top { padding-block: 24px 22px; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; font: 570 .74rem/1.3 var(--mono); color: var(--subtle); margin-bottom: 12px; }
.crumb a { color: var(--cyan); }
.tool-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.tool-heading h1 { font-size: clamp(2rem, 3.18vw, 3.1rem); font-weight: 745; letter-spacing: -.043em; line-height: 1.045; text-wrap: balance; }
.tool-heading p { color: var(--muted); max-width: 76ch; margin-top: 8px; font-size: .96rem; }
.heading-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.edit-jump { display: none; }
.units { display: inline-flex; align-items: center; gap: 3px; padding: 3px; background-color: #e8efed; border: 1px solid var(--line-dark); border-radius: 7px; }
.units button { min-width: 46px; min-height: 40px; border: 1px solid transparent; border-radius: 5px; background-color: transparent; color: var(--muted); font: 680 .86rem/1 var(--mono); }
.units button[aria-pressed="true"] { color: var(--slate); border-color: var(--line); background-color: var(--raised); box-shadow: 0 1px 2px #14313a11; }
.workspace { display: grid; grid-template-columns: minmax(294px, .98fr) minmax(0, 2.1fr); grid-template-areas: "fields results" "fields outputs"; gap: 14px 18px; align-items: start; }
.input-panel, .output-panel, .diagram-panel, .action-panel { background-color: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 0; }
.input-panel { grid-area: fields; padding: 17px; align-self: start; }
.results-panel { grid-area: results; min-width: 0; }
.output-panel { grid-area: outputs; padding: 14px 16px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-title h2, .diagram-heading h2, .output-panel h2, .print-inputs h2 { font-size: 1.04rem; line-height: 1.25; letter-spacing: -.02em; }
.panel-title > span, .diagram-heading > span { color: var(--subtle); font: 560 .69rem/1.25 var(--mono); }
.input-help { margin: 8px 0 14px; color: var(--muted); font-size: .825rem; line-height: 1.5; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; color: var(--slate); font-size: .785rem; line-height: 1.25; margin-bottom: 4px; font-weight: 660; }
.field .optional { font-size: .65rem; font-weight: 520; color: var(--muted); }
.numeric-field { display: flex; align-items: stretch; background-color: var(--raised); border: 1px solid var(--line-dark); border-radius: 5px; min-width: 0; }
.numeric-field:focus-within { outline: 2px solid var(--ocean); outline-offset: 1px; }
.field input, .field select, .share-field input { width: 100%; min-width: 0; min-height: 42px; border-radius: 5px; background-color: var(--raised); border: 1px solid var(--line-dark); color: var(--ink); }
.field input { border: 0; background-color: transparent; padding: 6px 6px 6px 8px; outline: none; font: 570 .9rem var(--mono); appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.field select { padding-inline: 8px; font-size: .88rem; }
.field-unit { display: flex; align-items: center; white-space: nowrap; color: var(--muted); padding-right: 6px; font: 560 .65rem/1 var(--mono); user-select: none; }
.field-unit:empty { display: none; }
.field-hint { display: block; color: var(--muted); font-size: .71rem; line-height: 1.35; margin-top: 4px; }
.telemetry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.telemetry-card { min-width: 0; padding: 10px 11px 11px; border: 1px solid var(--line); border-top: 2px solid #82afba; border-radius: 7px; background-color: var(--raised); box-shadow: var(--shadow); }
.telemetry-card:first-child { border-top-color: var(--copper-bright); }
[data-calculator="galvanic"] .telemetry-card:first-child,
[data-calculator="groundbed"] .telemetry-card:first-child,
[data-calculator="rectifier"] .telemetry-card:first-child { border-top-color: var(--ocean); }
.telemetry-card dt { font-size: .71rem; font-weight: 650; color: var(--muted); line-height: 1.3; }
.telemetry-card dd { margin-top: 6px; line-height: 1.15; min-height: 1.45em; }
.numeric-value, .output-unit { font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums; }
.telemetry-card .numeric-value { font-size: clamp(.98rem, 1.45vw, 1.42rem); font-weight: 720; letter-spacing: -.055em; overflow-wrap: anywhere; }
.telemetry-card .output-unit { font-size: .69rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.diagram-panel { overflow: hidden; }
.diagram-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; }
[data-diagram] { border-block: 1px solid var(--line); background-color: #eff5f3; }
[data-anatomy] { display: block; width: 100%; max-height: 335px; height: auto; margin: auto; }
.diagram-empty { display: grid; min-height: 175px; place-items: center; padding: 1rem; color: var(--copper); font-weight: 660; background-color: var(--copper-soft); }
.screening { padding: 11px 13px 10px; --screen-ink: var(--cyan); --screen-track: #ddecef; }
.screening[data-tone="alert"] { --screen-ink: var(--copper); --screen-track: #f6e4d9; background-color: #fff9f4; }
.screening[data-tone="review"] { --screen-ink: var(--warning); --screen-track: var(--warning-soft); }
.screen-title { display: flex; align-items: center; gap: 7px; color: var(--screen-ink); font-size: .88rem; }
.screen-dot { display: block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background-color: var(--screen-ink); }
.screening p { color: var(--muted); font-size: .78rem; line-height: 1.43; margin-top: 3px; }
.screening small { display: block; color: var(--subtle); font: 530 .65rem/1.35 var(--mono); }
meter { position: relative; display: block; appearance: none; width: 100%; height: 6px; margin-block: 9px 5px; border: 0; background: var(--screen-track); border-radius: 10px; }
meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 10px; background: var(--screen-track); }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: var(--screen-ink); border-radius: 10px; }
meter::-moz-meter-bar { background: var(--screen-ink); border-radius: 10px; }
.action-panel { margin-top: 10px; padding: 5px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 3px; }
.action-buttons button { display: inline-flex; align-items: center; justify-content: center; flex: 1 0 auto; gap: 5px; min-height: 40px; padding: 6px 8px; border: 1px solid transparent; border-radius: 5px; background-color: transparent; color: var(--slate); font-size: .76rem; font-weight: 660; white-space: nowrap; }
.action-buttons button[data-action="share"] { color: var(--cyan); background-color: var(--cyan-soft); }
.action-buttons button:hover:not(:disabled) { border-color: var(--line-dark); background-color: var(--cyan-soft); color: var(--cyan); }
.action-buttons button:disabled { color: #64767b; opacity: .59; }
.action-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.action-status, .share-field { margin: 4px 8px 6px; color: var(--muted); font-size: .8rem; }
.share-field label { display: block; font-weight: 650; margin-block: 5px; }
.share-field input { padding: 5px 9px; font: 500 .76rem var(--mono); }
.output-panel h2 { margin-bottom: 7px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 19px; }
.detail-list > div { min-width: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border-top: 1px solid var(--line); padding: 6px 0; }
.detail-list dt, .detail-list dd { font-size: .76rem; line-height: 1.4; }
.detail-list dt { color: var(--subtle); }
.detail-list dd { color: var(--ink); min-width: 0; text-align: right; overflow-wrap: anywhere; font-weight: 580; }
.detail-list .output-unit { color: var(--muted); white-space: nowrap; font-size: .68rem; }
.print-inputs { display: none; }
.case-notes { background-color: #faf9f0; margin-top: 26px; border: 1px solid #ddd8c4; border-left: 3px solid var(--copper-bright); border-radius: 7px; padding: 17px 19px; }
.case-notes .section-head h2 { font-size: 1.3rem; }
.case-notes .section-head span { color: var(--copper); font-family: var(--mono); font-size: .72rem; }
.case-notes ol { padding-left: 1.22rem; margin-block: 9px; }
.case-notes li, .case-notes p { color: var(--slate); font-size: .89rem; }
.case-notes li + li { margin-top: 4px; }
.technical-method, .related { margin: 30px 0; border-top: 1px solid var(--line); padding-top: 19px; }
.technical-method h2, .related h2 { font-size: 1.5rem; }
.method-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; margin-top: 13px; align-items: start; }
.equation-list { padding-left: 1.37rem; }
.equation-list li { margin: 0 0 11px; padding-left: .2rem; }
.equation-list li::marker { color: var(--copper); font: 690 .8rem var(--mono); }
.method-grid h3 { font-size: .98rem; letter-spacing: -.01em; }
.method-grid p { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.method-note { background-color: var(--cyan-soft); border: 1px solid #c7dfe2; padding: 12px 14px; border-radius: 7px; }
.references { list-style: none; padding: 0; margin-top: 8px; }
.references a { display: inline-flex; align-items: center; gap: 5px; padding-block: 9px; min-height: 40px; line-height: 1.35; font-size: .81rem; overflow-wrap: anywhere; }
.references .arrow { width: 14px; height: 14px; }
.related ul { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 13px; margin-top: 12px; }
.related li { border: 1px solid var(--line); background-color: var(--paper); border-radius: 6px; min-width: 0; }
.page-title { padding-block: 51px 24px; }
.page-title h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); margin-top: 6px; line-height: 1.03; }
.page-title p { margin-top: 12px; color: var(--muted); }
.in-page-nav { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.in-page-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: .88rem; }
.info-callout { margin-top: 16px; padding: 14px 17px; color: var(--slate); background-color: var(--cyan-soft); border: 1px solid #c7dfe2; border-radius: 6px; max-width: 80ch; }
.info-callout h2, .privacy-page section h2 { font-size: 1.22rem; margin-bottom: 4px; }
.info-page { padding-bottom: 30px; }
.info-page p { max-width: 82ch; }
.privacy-page section { margin-bottom: 21px; color: var(--slate); }
.privacy-page .page-title { margin-bottom: 0; }
.blueprint { fill: #eff5f3; }
.grid-line { stroke: #dae7e4; stroke-width: 1; }
.register { stroke: #a3b9b8; fill: none; stroke-width: 1.25; }
.legend-rail { fill: #fafcf9; stroke: #cedfdc; stroke-width: 1; }
.note { fill: #2d505b; font: 650 17px var(--mono); }
.legend-key { fill: #49616a; font: 650 12px var(--mono); letter-spacing: .055em; }
.legend-data { fill: #19323f; font: 710 17px var(--mono); }
.legend-data.compact { font-size: 13px; }
.note.centered { text-anchor: middle; }
.note.right { text-anchor: end; }
.cyan-ink { fill: #036986; }
.copper-ink { fill: #9a3412; }
.edge, .vessel, .skeleton, .rail, .dim, .grain, .soil-mark, .copper-fine, .copper-stroke, .cyan-wave, .cyan-stroke, .cyan-fine, .cyan-field, .cyan-dash, .copper-dash { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.edge { stroke: #6c8790; stroke-width: 1.4; }
.vessel, .skeleton { stroke: #284b57; stroke-width: 2; }
.rail { stroke: #79979e; stroke-width: 1.15; stroke-dasharray: 3 4; }
.dim { stroke: #425f69; stroke-width: 1.2; }
.grain { stroke: #8ba7ae; stroke-width: 1.05; }
.soil-mark { stroke: #b5a990; stroke-width: 1; }
.copper-fine { stroke: #a9401d; stroke-width: 1.3; }
.copper-stroke { stroke: #a9401d; stroke-width: 2.1; }
.copper-dash { stroke: #a9401d; stroke-width: 1.55; stroke-dasharray: 6 4; }
.cyan-wave, .cyan-stroke { stroke: #0b728c; stroke-width: 2.3; }
.cyan-dash, .cyan-fine, .cyan-field { stroke: #15859a; stroke-width: 1.55; }
.cyan-dash, .cyan-field { stroke-dasharray: 4 5; }
.cyan-field { opacity: .82; }
.cyan-solid { fill: #0e7490; }
.neutral-solid { fill: #345a65; }
.metal { fill: #c2d6d8; stroke: #627e87; stroke-width: 1.45; }
.vessel { stroke-width: 2.7; }
.electrolyte { fill: #dceef0; stroke: #a2c9cf; stroke-width: 1.1; }
.foil-opening { fill: #e8f2f1; stroke: #728a95; stroke-width: 1.3; }
.copper-fill { fill: #d48560; }
.bubble { fill: #f3fbfa; stroke: #7baeb9; stroke-width: 1.05; }
.low-wall { fill: #f2dfd3; opacity: .75; }
.plot-dot { fill: #f9fcfa; stroke: #0e7490; stroke-width: 2.3; }
.loss { fill: #f5d3bf; }
.anode { fill: #e9b494; stroke: #a34b2a; stroke-width: 1.4; }
.cathode { fill: #acd3db; stroke: #126b85; stroke-width: 1.5; }
.column { fill: #d1c8ad; stroke: #746858; stroke-width: 1.3; }
.soil { fill: #eae6d9; stroke: #cec7b3; stroke-width: 1.2; }
.component { fill: #edf7f6; stroke: #5d8189; stroke-width: 1.35; }
.band-a { fill: #f3cfba; }
.band-b { fill: #eee1cc; }
.band-c { fill: #d4e7e6; }
.band-d { fill: #afd4dc; }
.gas { fill: #f2f7f5; }
@media (min-width: 1160px) {
  .tool-group:not(:last-child) .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-group:not(:last-child) .tool-card { min-height: 132px; }
}
@media (max-width: 1159px) {
  .hero-grid-layout { min-height: 410px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { min-height: 147px; }
  .detail-list { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .site-shell { width: calc(100% - 50px); }
  .hero-grid-layout { min-height: 385px; gap: 24px; }
  .hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
  .hero p { font-size: .98rem; }
  .hero-copy .section-kicker { margin-bottom: 15px; }
  .workspace { grid-template-columns: minmax(255px, .95fr) minmax(0, 1.5fr); gap: 12px; }
  .telemetry { gap: 5px; }
  .telemetry-card { padding-inline: 8px; }
}
@media (max-width: 709px) {
  .site-shell { width: calc(100% - 32px); }
  .top-grid { min-height: 57px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav > summary { padding: 0 4px 0 10px; }
  .mobile-nav .nav-popover { width: min(308px, calc(100vw - 32px)); max-height: 76vh; overflow: auto; }
  .hero-grid-layout { padding-block: 30px 22px; grid-template-columns: 1fr; gap: 23px; }
  .hero h1 { font-size: clamp(2.45rem, 8.4vw, 3.72rem); max-width: 18ch; text-wrap: initial; }
  .hero-break { display: none; }
  .hero p { margin-top: 14px; }
  .hero-buttons { margin-top: 16px; gap: 8px; }
  .hero-plate { max-width: 530px; }
  .hero-plate figcaption { font-size: .71rem; padding: 9px 11px; }
  .directory, .example-directory { padding-block: 28px; }
  .tool-group { margin-top: 15px; }
  .tool-grid, .example-grid { grid-template-columns: 1fr; gap: 7px; }
  .tool-card { min-height: 0; gap: 5px; padding: 12px 13px; }
  .card-description { padding-right: 23px; }
  .tool-card > .arrow { bottom: 11px; }
  .footer-inner { display: block; padding-block: 18px; }
  .footer nav { margin-top: 8px; }
  .tool-top { padding-block: 17px 12px; }
  .crumb { margin-bottom: 8px; }
  .tool-heading { display: block; }
  .tool-heading h1 { font-size: clamp(1.86rem, 7vw, 2.6rem); text-wrap: initial; }
  .tool-heading p { font-size: .88rem; margin-top: 6px; }
  .heading-controls { margin-top: 10px; justify-content: space-between; }
  .edit-jump { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 4px 4px 4px 0; font-size: .83rem; font-weight: 650; }
  .edit-jump .arrow { width: 15px; height: 15px; transform: rotate(90deg); }
  .units button { min-width: 43px; }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "results" "fields" "outputs"; }
  .telemetry { grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 7px; }
  .telemetry-card { padding: 6px 8px; }
  .telemetry-card dd { margin-top: 3px; }
  .telemetry-card .numeric-value { font-size: 1.16rem; }
  .diagram-heading { padding: 8px 9px; }
  .diagram-heading h2 { font-size: .92rem; }
  .diagram-heading > span { font-size: .64rem; }
  .screening { padding: 8px 9px; }
  .action-panel { margin-top: 7px; padding: 3px; }
  .action-buttons { gap: 1px; }
  .action-buttons button { min-height: 40px; font-size: .73rem; }
  .input-panel, .output-panel { padding: 12px; }
  .field input, .field select { font-size: 1rem; }
  .field label { min-height: 1em; }
  .method-grid, .related ul { grid-template-columns: 1fr; gap: 8px; }
  .page-title { padding-block: 30px 17px; }
}
@media (max-width: 345px) {
  .site-shell { width: calc(100% - 24px); }
  .hero-buttons .button { padding-inline: 11px; }
  .brand { font-size: 1rem; gap: 8px; }
  .example-count { font-size: .66rem; }
  .example-group > summary { font-size: .82rem; }
  .diagram-heading > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { transition: none; }
}
@page { size: A4 portrait; margin: 12mm; }
@media print {
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html, body { background-color: #fff; color: #172c35; font-size: 9pt; }
  .topbar, .footer, .skip, .crumb, .heading-controls, .action-panel, .input-panel, .case-notes, .technical-method, .related { display: none !important; }
  .site-shell { width: 100%; margin: 0; }
  .tool-top { padding: 0 0 3mm; }
  .tool-heading { display: block; }
  .tool-heading h1 { font-size: 24pt; line-height: 1.07; }
  .tool-heading p { font-size: 8pt; margin-top: 2mm; }
  .workspace { display: grid; grid-template-columns: 1fr; grid-template-areas: "results" "printin" "outputs"; gap: 2mm; }
  .telemetry { grid-template-columns: repeat(4, 1fr); margin-bottom: 2mm; gap: 2mm; }
  .telemetry-card { padding: 1mm 2mm; box-shadow: none; }
  .telemetry-card dd { margin-top: .5mm; min-height: 0; }
  .telemetry-card .numeric-value { font-size: 13pt; }
  .diagram-panel, .output-panel { box-shadow: none; }
  .diagram-heading { padding: 1.4mm 3mm; }
  [data-anatomy] { max-height: 72mm; }
  .screening { padding: 1.3mm 3mm; }
  .screening p { font-size: 7.7pt; }
  .screening meter { margin-block: 1.4mm .5mm; }
  .print-inputs { display: block; grid-area: printin; padding: 2mm 3mm; border: 1px solid var(--line); border-radius: 2mm; }
  .output-panel { padding: 2mm 3mm; }
  .print-inputs h2, .output-panel h2 { margin-bottom: 1mm; }
  .detail-list { grid-template-columns: 1fr 1fr; column-gap: 5mm; }
  .detail-list > div { padding: .7mm 0; }
  .detail-list dt, .detail-list dd { font-size: 7.5pt; }
}
