:root {
  color-scheme: light;
  --ground: #f7f3e9;
  --sheet: #fdfbf5;
  --ink: #21313e;
  --secondary: #4c5c65;
  --rule: #c4ccc8;
  --blue: #214d98;
  --navy: #1b3451;
  --copper: #a64324;
  --copper-light: #ffae85;
  --error: #9b301d;
  --sans: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], .print-only { display: none !important; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1rem/1.58 var(--sans);
  font-feature-settings: "tnum";
}
a { color: var(--blue); text-underline-offset: .19em; }
a:hover { color: var(--copper); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); }
h2 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
svg { display: block; max-width: 100%; }
.site-width { width: min(1184px, calc(100% - 4rem)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 5;
  padding: .65rem 1rem;
  background: var(--navy);
  color: white;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.header-inner { min-height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-accent { color: var(--copper); }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--navy);
}
.brand-mark::before {
  position: absolute;
  inset: 8px;
  border: 1px solid #efe5d5;
  content: "";
}
.brand-mark span {
  width: 9px;
  height: 9px;
  border-top: 2px solid #efe5d5;
  border-right: 2px solid #efe5d5;
  transform: translateY(1px) rotate(-45deg);
}
.brand-mark::after {
  position: absolute;
  bottom: 11px;
  left: 12px;
  width: 11px;
  border-bottom: 2px solid var(--copper-light);
  content: "";
}
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.header-inner nav a, .footer-inner nav a {
  padding-block: .35rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.header-inner nav a:hover, .footer-inner nav a:hover, .header-inner nav a[aria-current] {
  color: var(--copper);
  text-decoration: underline;
}
.site-footer { margin-top: clamp(3.5rem, 7vw, 6.25rem); border-top: 1px solid var(--rule); background: var(--sheet); }
.footer-inner { min-height: 116px; padding-block: 1.1rem; }
.footer-inner strong { font-size: 1.12rem; letter-spacing: -.045em; }
.footer-inner p { color: var(--secondary); font-size: .87rem; }

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: .58rem .94rem;
  font-size: .9rem;
  font-weight: 720;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button-primary { color: #fffdf7; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { color: #fffdf7; background: #17366c; border-color: #17366c; }
.button-outline { color: var(--ink); background: var(--sheet); border-color: #a9b6ba; }
.button-outline:hover { color: var(--blue); border-color: var(--blue); }
.button:disabled { color: #59636a; background: #efece4; border-color: var(--rule); cursor: default; opacity: .68; }
.text-link { display: inline-block; font-weight: 680; }

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(1.5rem, 6vw, 5.5rem);
  align-items: center;
  padding-block: clamp(2.65rem, 5vw, 4.55rem);
}
.landing-copy h1 { font-size: clamp(3.1rem, 5.65vw, 5.3rem); font-weight: 700; letter-spacing: -.047em; line-height: .99; }
.landing-copy > p:first-of-type { max-width: 32rem; margin-top: 1.45rem; color: var(--secondary); font-size: clamp(1.04rem, 1.7vw, 1.25rem); }
.landing-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.55rem; }
.local-line { display: flex; gap: .52rem; align-items: center; margin-top: 1rem; color: var(--secondary); font-size: .87rem; }
.local-line span { width: .46rem; height: .46rem; border: 1px solid var(--copper); transform: rotate(45deg); }
.sample-sheet {
  position: relative;
  border: 1px solid #16334e;
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    linear-gradient(#b4cad214 1px, transparent 1px) 0 0 / 21px 21px,
    linear-gradient(90deg, #b4cad214 1px, transparent 1px) 0 0 / 21px 21px,
    var(--navy);
  box-shadow: 6px 6px 0 #d6d5c9;
  color: #f9f4e8;
}
.sample-sheet::before, .sample-sheet::after {
  position: absolute;
  width: 11px;
  height: 11px;
  border: solid #d8e4e6;
  content: "";
}
.sample-sheet::before { inset: 7px auto auto 7px; border-width: 1px 0 0 1px; }
.sample-sheet::after { inset: auto 7px 7px auto; border-width: 0 1px 1px 0; }
.sheet-top, .sheet-dimension, .sheet-ledger > div, .sheet-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem .8rem;
}
.sheet-top, .sheet-dimension { font: 650 .76rem/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.sheet-top { padding-bottom: .75rem; border-bottom: 1px solid #51687b; }
.sheet-top span:last-child { color: var(--copper-light); }
.sheet-total { display: grid; gap: .05rem; margin-block: 1.15rem; }
.sheet-total > span { font-size: .92rem; color: #d5e1e9; }
.sheet-total strong { font: 700 clamp(2.1rem, 5vw, 4.1rem)/1.05 var(--mono); letter-spacing: -.07em; overflow-wrap: anywhere; }
.sheet-dimension { padding-block: .25rem .38rem; border-top: 1px dashed #93a8b6; color: #d5e1e9; }
.sheet-segments { display: flex; height: 24px; border: 1px solid #e6e4d7; }
.sheet-segments span + span { border-left: 1px solid #1b3451; }
.sheet-segments span:nth-child(1) { width: 80%; background: #e6e4d7; }
.sheet-segments span:nth-child(2) { width: 12%; background: #7299cc; }
.sheet-segments span:nth-child(3) { width: 8%; background: #ed9e73; }
.sheet-ledger { display: grid; gap: .3rem; margin-top: .95rem; font-size: .85rem; }
.sheet-ledger dt { display: flex; align-items: center; gap: .48rem; }
.sheet-ledger dd, .sheet-bottom b { font-family: var(--mono); font-weight: 700; }
.chip { width: .55rem; height: .55rem; }
.chip-cost { background: #e6e4d7; }
.chip-overhead { background: #7299cc; }
.chip-profit { background: #ed9e73; }
.sheet-bottom { align-items: center; margin-top: 1rem; padding-top: .7rem; border-top: 1px solid #51687b; font-size: .83rem; }
.sheet-link { color: var(--copper-light); font-weight: 700; }
.sheet-link:hover { color: white; }
.sample-sheet a:focus-visible { outline-color: var(--copper-light); }

.model-boundary {
  display: grid;
  grid-template-columns: minmax(9.5rem, .21fr) minmax(0, 1fr);
  gap: .25rem .85rem;
  padding: .82rem 1rem;
  border: 1px solid #d6c9ba;
  border-left: 3px solid var(--copper);
  background: #f5ecdf;
}
.model-boundary strong { align-self: start; color: #753620; font-size: .86rem; line-height: 1.4; }
.model-boundary p { color: #483e38; font-size: .86rem; line-height: 1.52; }
.tool-directory, .examples-directory, .core-page .faq-list { margin-top: clamp(2.6rem, 6vw, 4.65rem); }
.section-heading { display: flex; flex-wrap: wrap; gap: .38rem 1.2rem; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.section-heading p { color: var(--secondary); }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 174px;
  gap: .55rem;
  padding: 1.05rem 1.14rem .85rem;
  background: var(--sheet);
}
.tool-card:hover { background: #f2f3ee; }
.trade-label, .case-count, .result-title span {
  font: 650 .72rem/1.35 var(--mono);
  letter-spacing: .065em;
  text-transform: uppercase;
}
.trade-label { color: var(--copper); }
.tool-card h3 { font-size: 1.14rem; }
.tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.tool-card > p:not(.trade-label) { color: var(--secondary); font-size: .9rem; }
.card-rule {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid var(--rule);
}
.card-rule span { width: .52rem; height: .52rem; border: 1px solid var(--copper); }
.card-action { font-size: .85rem; font-weight: 670; }
.example-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .58rem; }
.example-categories details, .faq-list details { border: 1px solid var(--rule); background: var(--sheet); }
.example-categories summary, .faq-list summary, .optional-group > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: .78rem 2.25rem .78rem .9rem;
  font-weight: 650;
}
.example-categories summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker, .optional-group summary::-webkit-details-marker { display: none; }
.example-categories summary::after, .faq-list summary::after, .optional-group > summary::after {
  position: absolute;
  right: .9rem;
  top: .8rem;
  color: var(--blue);
  content: "+";
  font: 700 1.1rem var(--mono);
}
.example-categories details[open] summary::after, .faq-list details[open] summary::after, .optional-group[open] summary::after { content: "−"; }
.example-categories summary { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.case-count { color: var(--secondary); white-space: nowrap; }
.guide-links { list-style: none; padding: 0; margin: 0; }
.guide-links li { border-top: 1px solid var(--rule); }
.guide-links a { display: block; padding: .6rem .85rem; font-weight: 620; font-size: .92rem; overflow-wrap: anywhere; }
.faq-list h2, .related-guides h2 { margin-bottom: .75rem; }
.faq-list details + details { margin-top: .5rem; }
.faq-list details p { max-width: 48rem; padding: 0 .9rem .88rem; color: var(--secondary); font-size: .94rem; }

.page-hero { padding-block: 1.7rem 1.5rem; }
.page-hero h1 { max-width: 64rem; font-size: clamp(2.25rem, 4.8vw, 4.15rem); font-weight: 700; letter-spacing: -.037em; line-height: 1.04; }
.page-hero > p { max-width: 51rem; margin-top: .8rem; color: var(--secondary); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.breadcrumb { margin-bottom: .8rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .15rem .55rem; padding: 0; margin: 0; list-style: none; }
.breadcrumb li { color: var(--secondary); font-size: .83rem; }
.breadcrumb li:not(:first-child)::before { margin-right: .55rem; color: var(--copper); content: "/"; }
.method-stack, .about-grid { display: grid; gap: .85rem; margin-top: 1.4rem; }
.method-card, .info-card, .scenario-notes {
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--sheet);
  padding: clamp(.95rem, 3vw, 1.45rem);
}
.method-card { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: 1rem 1.5rem; }
.method-card p, .info-card p, .scenario-notes p { margin-top: .55rem; color: var(--secondary); }
.method-card a, .info-card a, .scenario-notes a { margin-top: .75rem; }
.formula {
  border-left: 3px solid var(--blue);
  padding: .75rem .85rem;
  background: #e8edf1;
  color: #243e5d;
  font: 550 .86rem/1.65 var(--mono);
  overflow-wrap: anywhere;
}
.about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.not-found { min-height: 54vh; display: grid; align-content: center; justify-items: start; gap: .65rem; padding-block: 3rem; }
.not-found h1 { font-size: clamp(3.5rem, 9vw, 6.25rem); letter-spacing: -.06em; }

.worksheet { margin-top: 1.25rem; }
.worksheet-glance { display: none; }
.worksheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: start;
  gap: 1rem;
}
.input-sheet, .result-sheet { min-width: 0; }
.input-sheet {
  container-type: inline-size;
  border: 1px solid var(--rule);
  padding: clamp(.9rem, 2.15vw, 1.4rem);
  background: var(--sheet);
}
.panel-heading, .result-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem .8rem; align-items: center; }
.panel-heading h2, .result-title h2 { font-size: 1.54rem; }
.button-reset { min-height: 35px; padding: .24rem .65rem; color: var(--blue); background: transparent; border-color: #aebcc5; }
.button-reset:hover { border-color: var(--blue); }
.display-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  align-items: end;
  margin-top: .75rem;
  padding: .75rem;
  background: #e8edf1;
  border-top: 1px solid #c4d0d9;
}
.display-controls > div { min-width: 0; }
.display-controls > div:only-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.display-controls > div:only-child label { margin-bottom: 0; }
.display-controls > div:only-child .select-wrap { width: min(65%, 11rem); }
.display-controls label, .share-panel label, .field label { display: block; margin-bottom: .25rem; font-size: .88rem; font-weight: 650; line-height: 1.34; }
.form-group {
  min-inline-size: 0;
  margin: 1.03rem 0 0;
  padding: .66rem .75rem .8rem;
  border: 1px solid var(--rule);
}
.form-group legend { padding: 0 .38rem; color: var(--blue); font-size: .92rem; font-weight: 740; }
.optional-group { padding: 0; }
.optional-group > summary { padding-left: .75rem; color: var(--blue); font-size: .92rem; }
.optional-group .field-grid, .optional-group .group-help { padding: 0 .75rem .8rem; }
.group-help { margin-bottom: .62rem; color: var(--secondary); font-size: .83rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .78rem .65rem; align-items: start; }
.field { min-width: 0; }
.field-choice, .field-text { grid-column: 1 / -1; }
@container (min-width: 465px) {
  .sov-group .field-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.field-help, .field-error { display: block; margin-top: .23rem; font-size: .76rem; line-height: 1.36; }
.field-help { color: var(--secondary); }
.field-error { color: var(--error); font-weight: 650; }
.worksheet-errors { margin-top: .7rem; padding: .55rem .7rem; border-left: 3px solid var(--error); color: var(--error); background: #fbece1; font-size: .88rem; }
.input-wrap { display: flex; align-items: stretch; min-width: 0; min-height: 45px; border: 1px solid #a2b1b8; background: #fffefa; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.input-wrap:has([aria-invalid]) { border-color: var(--error); }
.input-wrap input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: .43rem .48rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 .91rem/1.25 var(--mono);
}
.input-wrap input[type="text"] { font: 550 .93rem var(--sans); }
.input-wrap input:focus { outline: none; }
.input-wrap input[type="number"] { appearance: textfield; }
.input-wrap input::-webkit-inner-spin-button, .input-wrap input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.input-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-inline: .37rem;
  border-left: 1px solid #d6dedf;
  background: #f0f2ee;
  color: #42586a;
  font: 650 .67rem/1.2 var(--mono);
  white-space: nowrap;
}
.select-wrap { position: relative; min-width: 0; }
.select-wrap::after {
  position: absolute;
  top: calc(50% - 5px);
  right: .87rem;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  pointer-events: none;
  content: "";
}
select, .share-address input {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  border: 1px solid #a2b1b8;
  border-radius: 0;
  padding: .46rem 2rem .46rem .63rem;
  appearance: none;
  color: var(--ink);
  background: #fffefa;
  font-size: .92rem;
  font-weight: 640;
  line-height: 1.3;
}
select[aria-invalid] { border-color: var(--error); }
.share-address input { padding-right: .6rem; font: 550 .82rem var(--mono); }

.result-sheet {
  padding: clamp(.9rem, 2.15vw, 1.4rem);
  border: 1px solid #142b45;
  background: var(--navy);
  color: #fbf7ed;
}
.result-title span { color: #d4e0e8; }
.primary { display: grid; gap: .27rem; padding-block: .88rem; margin-top: .75rem; border-block: 1px solid #708398; }
.primary-label { font-size: .91rem; font-weight: 650; line-height: 1.35; }
.primary-value {
  display: block;
  color: var(--copper-light);
  font: 740 clamp(1.73rem, 4vw, 3.11rem)/1.02 var(--mono);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .82rem; }
.metric { min-width: 0; padding: .56rem 0; border-bottom: 1px solid #536b83; }
.metric dt { color: #d9e4ec; font-size: .81rem; line-height: 1.3; }
.metric dd { margin-top: .12rem; font: 670 .99rem/1.3 var(--mono); overflow-wrap: anywhere; }
.metric dd.negative { color: var(--copper-light); }
.worksheet-chart {
  margin-top: 1rem;
  border: 1px solid #bccad1;
  background: var(--sheet);
  color: var(--ink);
}
.worksheet-chart figcaption { padding: .58rem .65rem .4rem; font-size: .9rem; font-weight: 750; }
.worksheet-chart svg { width: 100%; height: auto; }
.worksheet-notes { display: grid; gap: .43rem; margin: .71rem 0 0; padding-left: 1.02rem; color: #e3ebee; font-size: .82rem; }
.worksheet-notes li::marker { color: var(--copper-light); }
.export-bar { margin-top: .85rem; padding: .72rem; border: 1px solid var(--rule); background: var(--sheet); }
.action-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
.action-message { min-height: 0; color: var(--secondary); font-size: .8rem; }
.action-message:not(:empty) { margin-top: .45rem; }
.share-panel {
  display: grid;
  grid-template-columns: minmax(8rem, .25fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: .6rem;
  margin-top: .72rem;
  border-top: 1px solid var(--rule);
  padding-top: .78rem;
}
.share-panel p { grid-column: 1 / -1; color: var(--secondary); font-size: .82rem; }
.share-panel .button { min-height: 45px; }
.data-section { margin-top: 1.2rem; }
.data-section h2 { margin-bottom: .65rem; font-size: 1.55rem; }
.data-section table { width: 100%; border: 1px solid var(--rule); border-collapse: collapse; background: var(--sheet); text-align: left; }
.data-section th, .data-section td { padding: .62rem .72rem; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.data-section thead th { background: #e8edf1; color: #324c61; font-size: .82rem; line-height: 1.35; }
.data-section tbody th { font-size: .91rem; font-weight: 650; }
.data-section td { font: 580 .85rem/1.35 var(--mono); text-align: right; }
.data-section th[scope="col"]:not(:first-child) { text-align: right; }
.scenario-notes, .support-grid { margin-top: 1.5rem; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 1rem; align-items: start; }
.related-guides .guide-links { border: 1px solid var(--rule); background: var(--sheet); }
.related-guides .guide-links li:first-child { border-top: 0; }

@media (max-width: 1050px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { min-height: 149px; }
}
@media (max-width: 840px) {
  .site-width { width: calc(100% - 2.5rem); }
  .header-inner nav, .footer-inner nav { column-gap: .85rem; }
  .landing { gap: 1.25rem; }
  .landing-copy h1 { font-size: clamp(2.65rem, 6.9vw, 4.7rem); }
  .worksheet-grid { grid-template-columns: minmax(0, 1fr); }
  .worksheet-glance {
    position: sticky;
    z-index: 2;
    top: 0;
    display: block;
    margin-bottom: .65rem;
    background: var(--navy);
    border: 1px solid #142b45;
  }
  .worksheet-glance a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .48rem .72rem;
    color: #fffdf7;
    text-decoration: none;
    font-size: .8rem;
    line-height: 1.24;
  }
  .worksheet-glance strong { display: block; color: var(--copper-light); font: 700 1.06rem var(--mono); overflow-wrap: anywhere; }
  .worksheet-glance a > span:last-child { flex-shrink: 0; text-decoration: underline; text-underline-offset: .18em; }
  #result-heading { scroll-margin-top: 4.5rem; }
  .worksheet-chart { max-width: 620px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site-width { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: .54rem; }
  .header-inner { padding-block: .67rem .55rem; }
  .header-inner nav, .footer-inner nav { gap: .05rem .82rem; }
  .header-inner nav a, .footer-inner nav a { font-size: .82rem; }
  .landing { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 1.65rem; }
  .landing-copy h1 { font-size: clamp(3.15rem, 11vw, 4.95rem); }
  .landing-copy > p:first-of-type { margin-top: .9rem; }
  .landing-actions { margin-top: 1rem; }
  .sample-sheet { margin-top: .4rem; margin-right: 5px; }
  .model-boundary, .support-grid, .example-categories, .method-card { grid-template-columns: minmax(0, 1fr); }
  .tool-card { padding: .8rem; min-height: 155px; }
  .tool-card h3 { font-size: 1.07rem; }
  .tool-card > p:not(.trade-label) { font-size: .83rem; }
  .page-hero { padding-block: 1.15rem 1rem; }
  .page-hero h1 { font-size: clamp(2.05rem, 7.9vw, 3.1rem); }
  .field-grid { gap: .7rem .55rem; }
  .display-controls { padding: .58rem; }
  .share-panel { grid-template-columns: minmax(0, 1fr) auto; }
  .share-address { grid-column: 1 / -1; grid-row: 2; }
  .share-panel .button { grid-column: 2; grid-row: 1; }
  .data-section table, .data-section tbody, .data-section tr { display: block; }
  .data-section thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .data-section tbody th { display: block; padding-block: .47rem; color: var(--blue); background: #e8edf1; }
  .data-section td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .4rem;
    padding-block: .4rem;
    border-bottom-color: #e1e4db;
  }
  .data-section td::before {
    content: attr(data-label);
    font: 650 .79rem/1.35 var(--sans);
    text-align: left;
    color: var(--secondary);
  }
}
@media (max-width: 365px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-card { min-height: 0; }
  .input-sheet, .result-sheet { padding: .7rem; }
}

@page { size: Letter; margin: 12mm; }
@media print {
  .worksheet-page { background: white; color: #192733; }
  .worksheet-page .site-header, .worksheet-page .site-footer, .worksheet-page .skip-link, .worksheet-page .screen-sheet { display: none !important; }
  .worksheet-page main { width: 100%; margin: 0; }
  .worksheet-page .print-only { display: block !important; }
  .print-only { color: #192733; font: 9.5pt/1.24 var(--sans); }
  .print-brand { color: #214d98; font: bold 10pt var(--mono); }
  .print-title { margin-block: 2.5mm 3mm; font-size: 20pt; line-height: 1.05; }
  .print-primary { padding: 2mm 0; border-block: 1px solid #506773; }
  .print-primary .primary-value { margin-top: 1mm; color: #253e5a; font-size: 17pt; }
  .print-primary .primary-label { font-size: 9.5pt; }
  .print-metrics, .print-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 4mm; }
  .print-metrics .metric { padding: 1.4mm 0; border-bottom-color: #d6dcde; }
  .print-metrics .metric dt { color: #3c505c; font-size: 8pt; }
  .print-metrics .metric dd { margin-top: .5mm; color: #263b50; font-size: 9pt; }
  .print-chart { margin-top: 2.5mm; break-inside: avoid; }
  .print-chart figcaption { font-weight: 750; padding: .6mm 0; }
  .print-chart svg { width: 96mm; max-height: 46mm; height: auto; print-color-adjust: exact; }
  .print-only h2:not(.print-title) { margin: 2.2mm 0; font-size: 11pt; }
  .print-inputs > div { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: .65mm; padding: 1.1mm 0; border-bottom: 1px solid #e1e3df; }
  .print-inputs dt { font-size: 7.8pt; }
  .print-inputs dd { color: #253e5a; font: 650 7.8pt/1.2 var(--mono); overflow-wrap: anywhere; text-align: right; }
  .print-disclaimer { margin-top: 3mm; color: #3c4d55; font-size: 7.4pt; }
}
