/* Scope & Margin — offline-first editorial calculator system */
:root {
  color-scheme: light;
  --ink: #183440;
  --ink-2: #284955;
  --muted: #60757a;
  --quiet: #7c8c8d;
  --line: #d9dfd9;
  --line-dark: rgba(245, 245, 239, .19);
  --paper: #f5f5ef;
  --white: #fffefa;
  --wash: #e9ece4;
  --navy: #183440;
  --navy-2: #244955;
  --lime: #d7e98a;
  --lime-ink: #30451d;
  --orange: #a34f30;
  --orange-wash: #f6e9df;
  --green: #315e49;
  --green-wash: #e4eee5;
  --focus: #718a25;
  --shadow: 0 18px 48px rgba(24, 52, 64, .08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin: 24px 0; overscroll-behavior-inline: contain; }
.table-scroll:focus-visible { outline: 2px solid #71834d; outline-offset: 4px; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}

button,
input,
select,
textarea { color: inherit; font: inherit; }

button,
a,
input,
select,
textarea { -webkit-tap-highlight-color: transparent; }

button,
input,
select,
textarea { min-width: 0; }

a { color: inherit; }

img,
svg,
video,
canvas { max-width: 100%; }

.shell {
  width: min(1320px, 100% - clamp(32px, 7vw, 104px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(24, 52, 64, .2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  color: var(--lime);
  background: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.brand-mark::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.brand-name {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 38px);
}

.site-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 630;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .16s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.menu-toggle {
  display: none;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 11px;
  color: #657b4e;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .155em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: center;
  gap: clamp(42px, 8vw, 112px);
  padding-block: clamp(64px, 9vw, 118px) clamp(57px, 8vw, 104px);
}

.hero-copy { min-width: 0; }

.hero-copy .eyebrow { margin-bottom: 17px; }

.hero-copy h1,
.page-intro h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8.6vw, 112px);
  font-weight: 400;
  letter-spacing: -.073em;
  line-height: .94;
  text-wrap: balance;
}

.hero-copy h1 em,
.page-intro h1 em { color: #647b43; font-weight: 400; }

.lede {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 730;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }

.button:disabled,
button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(.25);
}

.button-primary {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover:not(:disabled) { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.button-secondary {
  border-color: rgba(24, 52, 64, .37);
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover:not(:disabled) { border-color: var(--ink); background: rgba(255, 254, 250, .65); }

.button-text {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #8b9a72;
  text-underline-offset: 4px;
  cursor: pointer;
}

.button-text:hover:not(:disabled) { color: #536c2e; }

.text-link {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration-color: #91a16c;
  text-underline-offset: 4px;
}

.text-link:hover { color: #526e31; }

.hero-ledger {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 4vw, 43px);
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-ledger::before {
  position: absolute;
  top: -72px;
  right: -48px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(215, 233, 138, .3);
  border-radius: 50%;
  content: "";
}

.hero-ledger::after {
  position: absolute;
  top: -33px;
  right: -9px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(215, 233, 138, .23);
  border-radius: 50%;
  content: "";
}

.hero-ledger > * { position: relative; z-index: 1; }

.hero-ledger .eyebrow { color: var(--lime); }

.hero-ledger h2,
.hero-ledger h3 {
  max-width: 390px;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.hero-ledger p { max-width: 390px; color: #c2d0cc; font-size: 12px; line-height: 1.65; }

.hero-ledger .ledger-line,
.hero-ledger .ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dark);
  color: #c7d3d0;
  font-size: 11px;
}

.hero-ledger .ledger-row strong,
.hero-ledger .ledger-line strong { color: var(--paper); font-size: 13px; font-variant-numeric: tabular-nums; }

.hero-ledger .ledger-total,
.hero-ledger .ledger-highlight {
  margin-top: 15px;
  padding: 15px 16px;
  color: var(--lime-ink);
  background: var(--lime);
}

.hero-ledger .ledger-total strong,
.hero-ledger .ledger-highlight strong { color: var(--lime-ink); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.hero-stats > * {
  min-width: 0;
  padding: 14px 17px 0 0;
  margin-right: 17px;
  border-right: 1px solid var(--line);
}

.hero-stats > *:last-child { margin-right: 0; border-right: 0; }

.hero-stats strong,
.hero-stats b {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hero-stats span,
.hero-stats small { display: block; margin-top: 4px; color: var(--quiet); font-size: 10px; line-height: 1.45; }

.section { padding-block: clamp(66px, 9vw, 112px); border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 35px;
}

.section-head > div { min-width: 0; }

.section-head h2,
.method-grid h2,
.article-body h2 {
  max-width: 740px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.4vw, 53px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.section-head p:not(.eyebrow) { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.tool-list { border-top: 1px solid var(--ink); }

.tool-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 20px;
  min-height: 102px;
  padding: 17px 7px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: padding .18s ease, background-color .18s ease;
}

.tool-row:hover { padding-inline: 16px; background: rgba(255, 254, 250, .68); }

.tool-number {
  align-self: start;
  padding-top: 5px;
  color: #71834d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.tool-copy { min-width: 0; }

.tool-copy h3,
.tool-copy strong {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.18;
}

.tool-copy p { max-width: 690px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.tool-meta { color: var(--quiet); font-size: 10px; white-space: nowrap; }

.tool-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 14px;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.tool-row:hover .tool-arrow { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-card {
  min-width: 0;
  padding: 25px clamp(18px, 3vw, 35px) 28px 0;
}

.guide-card + .guide-card { padding-left: clamp(18px, 3vw, 35px); border-left: 1px solid var(--line); }

.guide-card .guide-index,
.guide-card .eyebrow { color: #71834d; font: 400 18px/1.25 Georgia, "Times New Roman", serif; letter-spacing: 0; }

.guide-card h3 { margin: 18px 0 8px; color: var(--ink); font: 400 clamp(20px, 2.5vw, 27px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }

.guide-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.guide-card a { display: inline-block; margin-top: 15px; font-size: 11px; font-weight: 700; text-underline-offset: 4px; }

.site-footer { border-top: 1px solid var(--line); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  padding-block: 30px 40px;
}

.footer-brand { max-width: 420px; color: var(--muted); font-size: 11px; line-height: 1.65; }

.footer-brand strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px 24px; }

.footer-links a { color: var(--muted); font-size: 11px; text-decoration: none; }

.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #678f55;
  vertical-align: middle;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 9px;
}

/* Interior pages and SEO articles */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 22px;
  color: var(--quiet);
  font-size: 10px;
}

.breadcrumb a { color: var(--muted); text-underline-offset: 3px; }

.page-intro { max-width: 920px; padding-block: clamp(48px, 7vw, 84px) 44px; }

.page-intro .eyebrow { margin-bottom: 14px; }

.page-intro h1 { font-size: clamp(43px, 7vw, 84px); }

.page-intro .lede { max-width: 700px; }

.article { padding-bottom: clamp(64px, 9vw, 105px); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(190px, .32fr) minmax(0, .68fr);
  align-items: start;
  gap: clamp(34px, 7vw, 95px);
  border-top: 1px solid var(--line);
}

.article-toc {
  position: sticky;
  top: 22px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.article-toc h2 { margin: 0 0 12px; color: var(--quiet); font-size: 9px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }

.article-toc ol,
.article-toc ul { display: grid; gap: 8px; margin: 0; padding-left: 17px; color: var(--muted); font-size: 11px; }

.article-toc a { text-decoration-color: transparent; text-underline-offset: 3px; }

.article-toc a:hover { color: var(--ink); text-decoration-color: #869766; }

.article-body { min-width: 0; padding-block: 30px 0; }

.article-body > :first-child { margin-top: 0; }

.article-body h2 { margin: 43px 0 14px; font-size: clamp(28px, 4vw, 40px); }

.article-body h3 { margin: 31px 0 9px; color: var(--ink); font: 400 clamp(21px, 3vw, 28px)/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }

.article-body p,
.article-body li { color: #4d646a; font-size: 14px; line-height: 1.82; }

.article-body p { margin: 0 0 17px; }

.article-body ul,
.article-body ol { padding-left: 22px; margin: 0 0 21px; }

.article-body li + li { margin-top: 6px; }

.article-body a { color: #375d3e; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.article-body a:hover { color: var(--ink); }

.article-body blockquote {
  margin: 25px 0;
  padding: 17px 22px;
  border-left: 3px solid #a4b46d;
  color: var(--ink-2);
  background: #eceee4;
  font: 400 19px/1.5 Georgia, "Times New Roman", serif;
}

.article-body blockquote > :last-child { margin-bottom: 0; }

.table-wrap { max-width: 100%; margin: 23px 0; overflow-x: auto; overscroll-behavior-inline: contain; border-block: 1px solid var(--line); }

.article-body table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }

.article-body th,
.article-body td { min-width: 95px; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }

.article-body th { color: var(--ink); background: rgba(233, 236, 228, .7); font-size: 10px; font-weight: 730; }

.article-body td { color: #4d6469; }

.article-body details,
.disclosure {
  margin: 13px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}

.article-body details summary,
.disclosure summary { padding: 14px 0; color: var(--ink); font-size: 13px; font-weight: 690; cursor: pointer; }

.article-body details[open] summary,
.disclosure[open] summary { border-bottom: 1px solid var(--line); }

.article-body details > :not(summary),
.disclosure > :not(summary) { padding-inline: 2px; }

/* Calculator workbench */
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: start;
  gap: clamp(14px, 2.4vw, 28px);
  padding-block: 16px 62px;
}

.input-panel,
.results-panel { min-width: 0; }

.input-panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #dce2da;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .eyebrow { margin-bottom: 5px; }

.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(23px, 2.8vw, 32px)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.currency-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-block: 17px 11px;
}

.currency-field { width: min(100%, 220px); }

.currency-note { max-width: 310px; margin: 0 0 8px; color: var(--quiet); font-size: 10px; line-height: 1.45; }

.field-group {
  min-width: 0;
  margin: 15px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.field-group legend {
  width: 100%;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 730;
}

.group-help { margin: 6px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 13px;
}

.field-group .input-grid + .input-grid { margin-top: 15px; }

.field-group .input-grid:has(.target-field) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.field label { color: #3f5a62; font-size: 11px; font-weight: 690; line-height: 1.4; }

.field small { color: var(--quiet); font-size: 9px; line-height: 1.5; }

.field input,
.field select,
.field textarea,
.amount-input,
.currency-field select,
.currency-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cdd7d3;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.field input,
.field select,
.field textarea,
.currency-field select,
.currency-row select { padding: 9px 11px; }

.field input::placeholder,
.field textarea::placeholder { color: #93a0a0; opacity: 1; }

.field input:hover,
.field select:hover,
.field textarea:hover,
.currency-field select:hover,
.currency-row select:hover,
.amount-input:hover { border-color: #9aaa9e; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.currency-field select:focus,
.currency-row select:focus { border-color: var(--focus); outline: 0; box-shadow: 0 0 0 3px rgba(215, 233, 138, .42); }

.amount-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.amount-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(215, 233, 138, .42); }

.amount-input input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 10px 8px 3px;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.amount-input input:focus { outline: 0; box-shadow: none; }

.currency-prefix { flex: 0 0 auto; padding: 0 1px 0 11px; color: #60777c; font-size: 12px; }

.currency-field select,
.currency-row select { max-width: 250px; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.amount-input[aria-invalid="true"] { border-color: #a64a35; background-color: #fffaf7; }

.field-error {
  display: block;
  margin: 0;
  color: #8f3727;
  font-size: 10px;
  font-weight: 620;
  line-height: 1.45;
}

.field-error:empty { display: none; }

.error-panel,
.form-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #dfb29f;
  border-left: 3px solid #a64a35;
  color: #793d2e;
  background: var(--orange-wash);
  font-size: 11px;
  line-height: 1.55;
}

.error-panel:empty,
.form-error:empty { display: none; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.form-actions .button { flex: 0 0 auto; }

.results-column,
.sticky-result { min-width: 0; }

.sticky-result { position: sticky; top: 18px; }

.results-panel {
  min-height: 360px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.results-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.results-placeholder .eyebrow { margin-top: 27px; color: var(--lime); }

.results-placeholder h2 {
  max-width: 440px;
  margin: 0;
  color: var(--paper);
  font: 400 clamp(28px, 3.4vw, 40px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}

.results-placeholder > p:not(.eyebrow) { max-width: 430px; margin: 11px 0 0; color: #c3cfcd; font-size: 12px; line-height: 1.7; }

.placeholder-mark {
  position: relative;
  width: 57px;
  height: 57px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(245, 245, 239, .27);
}

.placeholder-mark span { width: 6px; border: 1px solid var(--lime); background: var(--lime); }
.placeholder-mark span:nth-child(1) { height: 12px; opacity: .58; }
.placeholder-mark span:nth-child(2) { height: 25px; }
.placeholder-mark span:nth-child(3) { height: 18px; opacity: .78; }
.placeholder-mark b { position: absolute; top: 3px; right: 6px; color: var(--lime); font-size: 13px; font-weight: 600; }

.placeholder-equation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 245, 239, .2);
  color: #cad4cb;
  font-size: 10px;
}

.placeholder-equation b { color: var(--lime); font-size: 13px; }

.result-content { padding: clamp(19px, 3vw, 30px); }

.result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.result-title .eyebrow { margin-bottom: 4px; color: var(--lime); }

.result-title h2 { margin: 0; color: var(--paper); font: 400 clamp(22px, 2.8vw, 29px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }

.currency-badge,
.badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(245, 245, 239, .3);
  color: #d8e1d9;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
}

.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

.comparison-card { min-width: 0; padding: 14px 0 4px; border-top: 1px solid rgba(245, 245, 239, .24); }

.comparison-card + .comparison-card { border-left: 1px solid rgba(245, 245, 239, .2); padding-left: 14px; }

.comparison-card.scenario-card { border-top-color: var(--lime); }

.comparison-top {
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
}

.comparison-index {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: #b9cbc1;
  font-size: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.scenario-card .comparison-index { color: var(--lime-ink); background: var(--lime); }

.comparison-top h3 { margin: 0; color: var(--paper); font-size: 11px; font-weight: 730; line-height: 1.35; }

.comparison-top small { display: block; margin-top: 3px; color: #adbfbd; font-size: 8px; line-height: 1.4; }

.result-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245, 245, 239, .14);
}

.result-metric > span { color: #c2cfce; font-size: 9px; line-height: 1.35; }

.result-metric > strong { color: var(--paper); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.result-metric > small { grid-column: 1 / -1; color: #a9bcba; font-size: 8px; line-height: 1.4; }

.result-metric:last-child { border-bottom: 0; }

.result-metric.strong-metric > span { color: var(--paper); font-weight: 680; }

.result-metric.strong-metric > strong { color: var(--lime); font-size: 15px; }

.impact-strip { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; margin-top: 14px; }

.impact-change {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 245, 239, .22);
}

.impact-change > span { color: #c5d2ce; font-size: 9px; line-height: 1.4; }

.impact-change > strong { color: var(--paper); font-size: clamp(16px, 2vw, 21px); font-weight: 680; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.impact-change > small { min-height: 24px; color: #aec0bb; font-size: 8px; line-height: 1.45; }

.impact-change.positive > strong { color: var(--lime); }

.impact-change.negative > strong,
.impact-change.warning > strong { color: #ffbb91; }

.impact-change.target-impact { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }

.impact-change.target-impact > span,
.impact-change.target-impact > strong,
.impact-change.target-impact > small { color: var(--lime-ink); }

.price-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
  padding: 11px 12px;
  border-left: 2px solid #97b477;
  color: #d9e4dd;
  background: rgba(245, 245, 239, .07);
}

.price-check p { margin: 0; font-size: 10px; line-height: 1.55; }
.results-panel .price-check { color: #e4eee7; }
.results-panel .price-check.warning { color: #ffe0c8; }
.results-panel .price-check p { color: inherit; }
.results-panel .result-notice.notice-orange { color: #f6decf; background: rgba(175, 81, 44, .24); }
.percent-input { display: flex; align-items: center; position: relative; }
.percent-input input { width: 100%; padding-right: 34px; }
.percent-input > span { position: absolute; right: 13px; }
.panel-heading > .text-button { border: 0; background: transparent; color: #183440; text-decoration: underline; text-underline-offset: 4px; min-height: 38px; cursor: pointer; }

.price-check-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
  font-weight: 850;
}

.price-check.warning { border-color: #d88050; color: #ffe0c8; background: rgba(185, 91, 44, .17); }

.price-check.warning .price-check-icon { color: #3d271b; background: #f4b17d; }

.result-notice {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 11px 12px;
  color: #f6decf;
  background: rgba(175, 81, 44, .24);
  font-size: 9px;
  line-height: 1.5;
}

.result-notice strong { color: #fff0e6; font-size: 10px; }

.result-notice.notice-green { color: #e1eee3; background: rgba(117, 157, 111, .2); }

.result-notice.notice-green strong { color: var(--lime); }

.result-notice.notice-amber { color: #f8e6bc; background: rgba(183, 137, 56, .22); }

.result-formula { margin: 13px 0 0; color: #adbfbd; font-size: 8px; line-height: 1.55; }

.positive { color: #456e47; }
.negative { color: #98462f; }
.warning { color: #8a4a25; }

.notice-orange { color: #7c3e2e; background: var(--orange-wash); }
.notice-green { color: #355943; background: var(--green-wash); }

.result-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.result-tools .button { min-height: 39px; }

.result-tools .button-primary { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.result-tools .button-primary:hover:not(:disabled) { color: var(--paper); background: var(--navy-2); border-color: var(--navy-2); }

.method-grid {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  gap: clamp(26px, 5vw, 64px);
  padding-block: 54px;
  border-top: 1px solid var(--line);
}

.method-grid h2 { font-size: clamp(29px, 3.8vw, 43px); }

.method-grid h3 { margin: 0 0 8px; color: var(--ink); font: 400 22px/1.2 Georgia, "Times New Roman", serif; }

.method-grid p,
.note { color: var(--muted); font-size: 12px; line-height: 1.7; }

.method-grid > div { min-width: 0; }

.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }

.method-steps > * { min-width: 0; padding: 0 17px; border-left: 1px solid var(--line); }

.method-steps > *:first-child { padding-left: 0; border-left: 0; }

.method-steps .step-index { color: #75884c; font: 400 19px/1 Georgia, "Times New Roman", serif; }

.formula {
  margin: 15px 0;
  padding: 14px 16px;
  border-left: 2px solid #a3b776;
  color: var(--ink);
  background: #e9ece2;
  font: 600 12px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.note { margin: 12px 0; padding: 12px 14px; border-left: 2px solid #a5b276; background: #eceee5; }

.note.warning,
.note.notice-orange { border-color: #c87c52; color: #764430; background: var(--orange-wash); }

.note.notice-green { border-color: #6c956d; color: #355943; background: var(--green-wash); }

.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }

.table-wrap table { width: 100%; border-collapse: collapse; font-size: 11px; }

.table-wrap th,
.table-wrap td { padding: 10px 12px; border-bottom: 1px solid rgba(245, 245, 239, .17); text-align: left; vertical-align: top; }

.table-wrap th { color: #c5d4d0; font-size: 9px; font-weight: 720; }

.table-wrap td { color: #e2e9e3; }

.metric-large { display: block; color: var(--ink); font: 400 clamp(30px, 5vw, 52px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.result-bars { display: grid; gap: 10px; margin-block: 16px; }

.bar-row { display: grid; grid-template-columns: minmax(85px, .3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 9px; }

.bar-row > span:first-child { color: #c2cfce; }

.bar-track { min-width: 0; height: 7px; overflow: hidden; background: rgba(245, 245, 239, .15); }

.bar-fill { height: 100%; background: var(--lime); transform-origin: left center; }

.bar-row strong { color: var(--paper); font-size: 10px; font-variant-numeric: tabular-nums; }

.tool-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.tool-tabs button,
.tool-tabs a {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}

.tool-tabs [aria-selected="true"],
.tool-tabs [aria-current="page"] { color: var(--ink); border-bottom-color: #71884b; }

.disclosure { color: var(--muted); }

.print-only { display: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-offset: 1px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(275px, .95fr); gap: 34px; }
  .hero-copy h1 { font-size: clamp(49px, 8vw, 82px); }
  .workbench { grid-template-columns: minmax(0, 1fr) minmax(285px, .82fr); gap: 13px; }
  .input-panel { padding: 21px; }
  .result-content { padding: 20px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-card + .comparison-card { padding-left: 0; border-left: 0; }
  .comparison-card { display: grid; grid-template-columns: minmax(125px, .43fr) minmax(0, .57fr); gap: 0 15px; }
  .comparison-top { grid-row: 1 / span 4; }
  .comparison-card .result-metric { grid-column: 2; }
  .comparison-card .result-metric:first-of-type { grid-row: 1; }
  .comparison-card .result-metric:nth-of-type(2) { grid-row: 2; }
  .comparison-card .result-metric:nth-of-type(3) { grid-row: 3; }
  .impact-strip { grid-template-columns: 1fr; }
  .impact-change > small { min-height: 0; }
  .method-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(150px, .3fr) minmax(0, .7fr); gap: 35px; }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 70px; gap: 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { max-width: 155px; font-size: 13px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 10px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 57px 56px; }
  .hero-copy h1 { max-width: 620px; font-size: clamp(49px, 14vw, 76px); }
  .lede { margin-top: 17px; font-size: 15px; }
  .hero-ledger { max-width: 540px; }
  .hero-stats { margin-top: 37px; }
  .hero-stats > * { padding-right: 10px; margin-right: 10px; }
  .hero-stats strong,
  .hero-stats b { font-size: 18px; }
  .hero-stats span,
  .hero-stats small { font-size: 9px; }
  .section { padding-block: 57px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 24px; }
  .section-head h2 { font-size: 39px; }
  .section-head p:not(.eyebrow) { font-size: 12px; }
  .tool-row { grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 12px; min-height: 91px; padding-block: 14px; }
  .tool-meta { grid-column: 2; grid-row: 2; white-space: normal; }
  .tool-arrow { grid-column: 3; grid-row: 1 / span 2; width: 26px; height: 26px; }
  .tool-copy h3,
  .tool-copy strong { font-size: 22px; }
  .tool-copy p { font-size: 11px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { padding: 19px 0 21px; }
  .guide-card + .guide-card { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .guide-card h3 { margin-top: 11px; }
  .footer-grid { grid-template-columns: 1fr; gap: 19px; }
  .footer-links { justify-content: flex-start; }
  .footer-meta { flex-direction: column; }
  .page-intro { padding-block: 39px 32px; }
  .page-intro h1 { font-size: clamp(42px, 12vw, 65px); }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { position: static; }
  .article-body { padding-top: 28px; }
  .workbench { grid-template-columns: 1fr; gap: 14px; padding-block: 6px 45px; }
  .sticky-result { position: static; }
  .input-panel { padding: 20px 17px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .panel-heading h2 { font-size: 27px; }
  .currency-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .currency-note { margin: 0; }
  .input-grid,
  .field-group .input-grid:has(.target-field) { grid-template-columns: 1fr; gap: 13px; }
  .field-group { margin-top: 12px; padding-top: 13px; }
  .group-help { font-size: 10px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .results-panel,
  .results-placeholder { min-height: 0; }
  .results-placeholder { min-height: 280px; }
  .result-content { padding: 19px 17px; }
  .comparison-card { display: block; }
  .comparison-top { min-height: 0; }
  .impact-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .method-grid { padding-block: 41px; }
  .method-steps { grid-template-columns: 1fr; gap: 17px; }
  .method-steps > *,
  .method-steps > *:first-child { padding: 0 0 0 14px; border-left: 1px solid var(--line); }
  .method-steps h3 { margin-top: 5px; }
  .bar-row { grid-template-columns: minmax(72px, .34fr) minmax(0, 1fr) auto; gap: 7px; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 28px); }
  .site-header { min-height: 64px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-name { max-width: 125px; font-size: 12px; }
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 9px; }
  .hero { gap: 27px; padding-block: 44px 43px; }
  .hero-copy h1 { font-size: clamp(45px, 13.5vw, 54px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > *,
  .hero-stats > *:last-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats > *:last-child { border-bottom: 0; }
  .hero-stats span,
  .hero-stats small { margin: 0; text-align: right; }
  .hero-ledger { padding: 21px 18px; }
  .hero-ledger h2,
  .hero-ledger h3 { font-size: 27px; }
  .section { padding-block: 44px; }
  .section-head h2 { font-size: 34px; }
  .tool-row { grid-template-columns: 26px minmax(0, 1fr) 23px; gap: 9px; }
  .tool-number { font-size: 15px; }
  .tool-copy h3,
  .tool-copy strong { font-size: 20px; }
  .input-panel { padding: 17px 13px; }
  .field-group legend { font-size: 12px; }
  .group-help { font-size: 9px; }
  .result-content { padding: 17px 13px; }
  .comparison-grid { gap: 0; }
  .comparison-card { padding-top: 12px; }
  .impact-strip { grid-template-columns: 1fr; }
  .impact-change { padding: 11px; }
  .article-body p,
  .article-body li { font-size: 13px; }
  .footer-links { gap: 11px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  :root { color-scheme: light; --ink: #111; --paper: #fff; }
  body { color: #111; background: #fff; font-size: 10pt; }
  .shell { width: 100%; }
  .site-header,
  .site-nav,
  .hero-actions,
  .form-actions,
  .button,
  .result-tools,
  .tool-tabs,
  .article-toc,
  .footer-links,
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .hero,
  .section,
  .method-grid,
  .article { padding-block: 14pt; }
  .workbench { display: block; padding: 0; }
  .input-panel { display: none; }
  .sticky-result { position: static; }
  .results-panel { min-height: 0; color: #111; border: 1px solid #555; background: #fff; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .results-placeholder { display: none; }
  .result-title h2,
  .comparison-top h3,
  .result-metric > strong,
  .impact-change > strong { color: #111; }
  .result-title .eyebrow,
  .comparison-top small,
  .result-metric > span,
  .result-metric > small,
  .impact-change > span,
  .impact-change > small,
  .result-formula { color: #333; }
  .comparison-grid { grid-template-columns: 1fr 1fr; }
  .comparison-card,
  .comparison-card + .comparison-card,
  .result-metric { border-color: #aaa; }
  .impact-strip { grid-template-columns: 1fr 1fr; }
  .impact-change,
  .price-check,
  .result-notice { color: #111; border: 1px solid #aaa; background: #fff; }
  .impact-change.target-impact { color: #111; background: #eef2d9; }
  .impact-change.target-impact > span,
  .impact-change.target-impact > strong,
  .impact-change.target-impact > small { color: #111; }
  a { color: #111; text-decoration: none; }
  .site-footer { break-inside: avoid; }
}

/* Homepage refinements against the generated build markup. */
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  transform: translateY(calc(-100% - 14px));
  padding: 9px 13px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.brand-mark {
  display: block;
  overflow: hidden;
  padding-right: 2px;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: -.12em;
  line-height: 34px;
  text-align: center;
  white-space: nowrap;
}

.brand-mark > span {
  display: inline;
  font-size: .78em;
  letter-spacing: -.12em;
  vertical-align: .08em;
}

.hero-copy h1 { font-size: clamp(49px, 5.3vw, 84px); line-height: .98; }

.hero-copy > .form-actions {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  padding: 0;
  border: 0;
}

.hero-copy > .form-actions .button {
  min-height: 46px;
  padding-inline: 18px;
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.hero-copy > .form-actions .button:hover { border-color: var(--lime); color: var(--lime-ink); background: var(--lime); }

.hero-copy > .hero-stats {
  display: block;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.6;
}

.hero-copy > .hero-stats span {
  display: inline;
  min-width: 0;
  padding: 0 5px;
  margin: 0;
  border: 0;
  color: #71834d;
}

.hero-ledger .ledger-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(245, 245, 239, .22);
  color: var(--lime);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.4;
}

.hero-ledger .ledger-heading span:last-child { flex: 0 0 auto; font-size: 15px; letter-spacing: 0; }

.hero-ledger .ledger-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, .88fr);
  align-items: center;
  gap: 6px 18px;
  margin: 19px 0 16px;
  padding: 18px 20px 17px;
  color: var(--lime-ink);
  background: var(--lime);
}

.hero-ledger .ledger-total small {
  grid-column: 1;
  color: #405525;
  font-size: 10px;
  font-weight: 710;
  letter-spacing: .04em;
  line-height: 1.35;
}

.hero-ledger .ledger-total strong {
  grid-column: 1;
  color: #26391a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .95;
  white-space: nowrap;
}

.hero-ledger .ledger-total strong span { color: inherit; font-size: .6em; letter-spacing: -.04em; vertical-align: .12em; }

.hero-ledger .ledger-total p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 170px;
  margin: 0;
  color: #405525;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.5;
}

.hero-ledger .ledger-lines { margin: 0; }

.hero-ledger .ledger-lines p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(245, 245, 239, .17);
  color: #cbd7d3;
  font-size: 10px;
  line-height: 1.45;
}

.hero-ledger .ledger-lines p span { min-width: 0; color: #cbd7d3; }

.hero-ledger .ledger-lines p b {
  flex: 0 0 auto;
  color: var(--paper);
  font-size: 11px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-ledger .ledger-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #bbcbc6;
  font-size: 9px;
  line-height: 1.5;
}

.hero-ledger .ledger-footer .status-dot { flex: 0 0 auto; margin: 0; background: var(--lime); box-shadow: 0 0 0 3px rgba(215, 233, 138, .15); }

@media (max-width: 900px) {
  .hero-copy h1 { font-size: clamp(48px, 6.1vw, 72px); }
  .hero-ledger { padding: 24px; }
  .hero-ledger .ledger-total { grid-template-columns: minmax(0, 1fr) minmax(110px, .82fr); gap: 6px 12px; padding-inline: 15px; }
  .hero-ledger .ledger-total strong { font-size: clamp(39px, 5.3vw, 49px); }
  .hero-ledger .ledger-total p { font-size: 10px; }
}

@media (max-width: 600px) {
  .brand-mark { line-height: 30px; }
  .hero-copy h1 { font-size: clamp(49px, 12vw, 72px); }
  .hero-ledger .ledger-total { grid-template-columns: minmax(0, 1fr) minmax(130px, .85fr); }
  .hero-ledger .ledger-total strong { font-size: clamp(42px, 11vw, 54px); }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-ledger { width: min(100%, 560px); }
}

@media (max-width: 390px) {
  .brand-mark { line-height: 27px; }
  .hero-copy h1 { font-size: clamp(45px, 12.7vw, 54px); }
  .hero-ledger { padding: 21px 18px; }
  .hero-ledger .ledger-total { grid-template-columns: 1fr; gap: 5px; padding: 15px; }
  .hero-ledger .ledger-total p { grid-column: 1; grid-row: auto; max-width: none; margin-top: 4px; }
  .hero-ledger .ledger-total strong { font-size: 49px; }
}

/* Calculator result polish: generated pricing and forecast markup. */
.results-panel .result-content > .eyebrow {
  color: var(--lime);
}

.results-panel .result-content > .metric-large {
  margin: 4px 0 16px;
  color: var(--paper);
  font-size: clamp(50px, 5.1vw, 60px);
  line-height: 1;
}

.results-panel .result-content > p:not(.eyebrow):not(.metric-large):not(.result-formula) {
  color: #d0dcda;
  font-size: 11px;
  line-height: 1.6;
}

.results-panel .result-bars {
  display: grid;
  gap: 13px;
  margin-block: 17px 19px;
}

.results-panel .result-bars .bar-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}

.results-panel .result-bars .bar-row > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.results-panel .result-bars .bar-row > div:first-child span {
  min-width: 0;
  color: #d0dcda;
  font-size: 10px;
  line-height: 1.4;
}

.results-panel .result-bars .bar-row > div:first-child strong {
  flex: 0 0 auto;
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.results-panel .result-bars .bar-track {
  width: 100%;
  min-width: 0;
  height: 8px;
  overflow: hidden;
  background: rgba(245, 245, 239, .16);
}

.results-panel .result-bars .bar-fill {
  min-width: 2px;
  background: var(--lime);
}

.results-panel .result-metric { min-width: 0; }

.results-panel .result-metric > span { color: #d0dcda; font-size: 10px; }

.results-panel .result-metric > strong { color: var(--paper); font-size: 11px; }

.results-panel .result-metric > small { color: #b7c9c7; font-size: 9px; line-height: 1.45; }

.input-panel form > button.button[type="submit"] {
  min-height: 43px;
  padding-inline: 17px;
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.input-panel form > button.button[type="submit"]:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime-ink);
  background: var(--lime);
}

.input-panel .panel-heading > button.text-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  appearance: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #91a16c;
  text-underline-offset: 4px;
  cursor: pointer;
}

.input-panel .panel-heading > button.text-link:hover { color: #526e31; }

@media print {
  .results-panel .result-content > .eyebrow,
  .results-panel .result-content > .metric-large,
  .results-panel .result-metric > span,
  .results-panel .result-metric > strong,
  .results-panel .result-metric > small,
  .results-panel .result-bars .bar-row > div:first-child span,
  .results-panel .result-bars .bar-row > div:first-child strong { color: #111; }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 0;
    align-items: center;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .site-nav {
    width: 100%;
    flex: 1 0 100%;
    order: 2;
    justify-content: flex-start;
    gap: 0;
    padding-top: 2px;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    padding-inline: 11px;
    font-size: 12px;
  }
}
