:root {
  --ink: #15201c;
  --muted: #5d6964;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --line: #dce1d9;
  --green: #0c6651;
  --green-dark: #084838;
  --lime: #c7ed9c;
  --warm: #f0eadc;
  --danger: #a13c33;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(22, 35, 29, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ink); color: white; padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 10px; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(248,247,242,.94); border-bottom: 1px solid rgba(220,225,217,.8); backdrop-filter: blur(12px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); font-weight: 800; font-size: 1.24rem; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--green); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: .92rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--green); }
.hero { padding: 90px 0 52px; max-width: 930px; margin-left: max(20px, calc((100% - 1120px) / 2)); }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 800px; margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
.lede { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 1.1rem; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid var(--green); border-radius: 9px; color: white; background: var(--green); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.button:hover, button:hover { color: white; background: var(--green-dark); transform: translateY(-1px); }
.text-link { font-weight: 700; }
.notice { margin-bottom: 76px; padding: 14px 18px; border-left: 4px solid var(--green); color: #345048; background: #e8f1e8; font-size: .92rem; }
.calculator-section { padding: 76px 0; scroll-margin-top: 68px; }
.calculator-section.alternate { background: var(--warm); }
.section-intro { max-width: 730px; margin-bottom: 30px; }
.section-intro > p:last-child { margin: 0; color: var(--muted); }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); gap: 24px; align-items: stretch; }
.calculator-card, .result-card, .boundary-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.calculator-card { padding: 28px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 16px; font-weight: 800; font-size: 1rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; color: #38463f; font-size: .88rem; font-weight: 650; }
input { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #bbc6bd; border-radius: 7px; outline: none; color: var(--ink); background: white; font: inherit; font-variant-numeric: tabular-nums; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,102,81,.14); }
input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; accent-color: var(--green); }
.override-row { display: grid; gap: 14px; margin: 20px 0; padding: 16px; border-radius: 10px; background: #f4f7f3; }
.check-label { display: flex; align-items: center; gap: 9px; }
.form-note { margin: 15px 0 0; color: var(--muted); font-size: .82rem; }
.result-card { display: flex; flex-direction: column; padding: 30px; color: #edf8f2; border-color: #154e40; background: linear-gradient(145deg, #145b49, #0a4135); }
.result-kicker { margin: 0; color: #c9ead8; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.big-result { display: block; margin: 20px 0 2px; color: white; font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-label { margin: 0 0 26px; color: #c9ead8; }
.result-list { display: grid; gap: 0; margin: auto 0 0; }
.result-list div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid rgba(226,247,234,.2); }
.result-list dt { color: #c9ead8; font-size: .89rem; }
.result-list dd { margin: 0; color: white; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.boundary-card { margin-top: 25px; padding: 25px 28px; box-shadow: none; background: #f4f7f3; }
.boundary-card p { margin: 8px 0; color: #3d5048; }
.methodology { padding: 76px 0; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 25px; }
.method-grid article { padding: 23px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); }
.method-grid p { margin: 0; color: var(--muted); font-size: .93rem; }
.site-footer { padding: 38px 0; color: #c7d8ce; background: #152a23; }
.site-footer .brand { color: white; }
.site-footer p { max-width: 680px; margin: 12px 0 0; }
.site-footer .small { color: #9eb5a8; font-size: .82rem; }
.negative { color: #ffc0b9; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .nav { min-height: auto; padding: 14px 0; align-items: flex-start; }
  .nav-links { gap: 9px 13px; font-size: .8rem; }
  .hero { width: min(100% - 28px, 1120px); margin-inline: auto; padding: 58px 0 38px; }
  .notice { margin-bottom: 30px; }
  .calculator-section { padding: 52px 0; }
  .calculator-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .calculator-card, .result-card { padding: 22px; }
  .methodology { padding: 52px 0; }
  .method-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

.page-hero { padding: 76px 0 20px; max-width: 930px; margin-left: max(20px, calc((100% - 1120px) / 2)); }
.content-section { padding: 52px 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 25px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.tool-card h3, .tool-card p { margin: 0; }
.tool-card p { color: var(--muted); }
.prose { max-width: 800px; padding: 26px 0 76px; }
.prose h2 { margin-top: 42px; font-size: clamp(1.45rem, 3vw, 2rem); }
.prose p, .prose li { color: #3d5048; }
.prose details { margin: 12px 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.prose summary { cursor: pointer; font-weight: 750; }
.prose details p { margin: 10px 0 0; }
.related { margin-top: 32px; }
.legal { min-height: calc(100vh - 200px); padding-top: 72px; }
.site-footer a { color: #e6f5eb; }
@media (max-width: 760px) { .page-hero { width: min(100% - 28px, 1120px); margin-inline: auto; padding: 50px 0 14px; } .tool-grid { grid-template-columns: 1fr; } .content-section { padding: 36px 0; } .prose { padding: 20px 0 52px; } }

/* Long-form guides: a readable editorial column rather than a continuous block of body copy. */
.guide-prose { max-width: 860px; margin: 28px auto 76px max(20px, calc((100% - 1120px) / 2)); padding: 48px 56px 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.guide-prose > p:first-of-type { max-width: 67ch; margin-bottom: 28px; color: #2d4138; font-size: 1.12rem; line-height: 1.7; }
.guide-prose h2 { margin: 48px 0 16px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.15rem); }
.guide-prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.guide-prose h3 { margin: 30px 0 10px; color: var(--ink); font-size: 1.18rem; }
.guide-prose p { max-width: 68ch; margin: 0 0 20px; line-height: 1.72; }
.guide-prose ul, .guide-prose ol { max-width: 67ch; margin: 0 0 24px; padding-left: 1.35rem; }
.guide-prose li { padding-left: .22rem; line-height: 1.68; }
.guide-prose li + li { margin-top: 9px; }
.guide-prose strong { color: var(--ink); }
.guide-prose details { max-width: 68ch; margin: 12px 0; padding: 17px 19px; }
.guide-prose .related { max-width: none; margin: 38px -56px -56px; padding: 24px 56px; border-radius: 0 0 var(--radius) var(--radius); color: #345048; background: #edf5ed; }
@media (max-width: 760px) { .guide-prose { width: min(100% - 28px, 860px); margin: 18px auto 52px; padding: 32px 22px 36px; } .guide-prose h2 { margin-top: 38px; padding-top: 32px; } .guide-prose > p:first-of-type { font-size: 1.05rem; } .guide-prose .related { margin: 30px -22px -36px; padding: 21px 22px; border-radius: 0 0 var(--radius) var(--radius); } }
