:root {
  --primary: #17643a;
  --primary-dark: #0b4226;
  --accent: #d64045;
  --highlight: #f2c14e;
  --ink: #1d2528;
  --muted: #586468;
  --line: #d9e2dc;
  --surface: #f5f8f5;
  --white: #ffffff;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}
.brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-size: 0.94rem; font-weight: 700; text-decoration: none; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #b92e34; }
.button.secondary { background: transparent; border-color: var(--white); }
.button.secondary:hover { background: rgba(255,255,255,0.12); }
.button.dark { background: var(--primary-dark); }

.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background-position: center;
  background-size: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 30, 0.66);
}
.hero .container { position: relative; z-index: 1; padding: 88px 0 76px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--highlight);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero p {
  max-width: 690px;
  margin: 22px 0 0;
  color: #eef7f5;
  font-size: 1.15rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.fact-band { background: var(--primary-dark); color: var(--white); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 24px; border-right: 1px solid rgba(255,255,255,0.2); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--highlight); font-size: 1.05rem; }
.fact span { font-size: 0.9rem; color: #d7e9e7; }

section { padding: 74px 0; }
.section-muted { background: var(--surface); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.15; }
.section-heading p { margin: 14px 0 0; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--ink);
  font-weight: 900;
}

.guide-callout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
  border-left: 6px solid var(--accent);
  padding: 30px;
  background: var(--surface);
}
.guide-callout h2 { margin-top: 0; }
.guide-callout p { color: var(--muted); }

.article-shell { max-width: 980px; margin: 0 auto; }
.article-hero { padding: 72px 0 54px; background: var(--surface); border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 880px; margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.08; }
.article-hero .lede { max-width: 780px; margin-top: 20px; font-size: 1.12rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.88rem; }

.direct-answer {
  margin: 0 0 34px;
  padding: 26px;
  border-left: 6px solid var(--accent);
  background: #fff7f4;
}
.direct-answer h2 { margin: 0 0 10px; font-size: 1.35rem; }
.direct-answer p { margin: 0; font-size: 1.08rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--primary-dark); color: var(--white); font-size: 0.9rem; }
tr:last-child td { border-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.checklist { margin: 0; padding-left: 20px; }
.checklist li { margin-bottom: 10px; }

.planner {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.planner label { display: block; margin-bottom: 8px; font-weight: 800; }
.planner select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #9eaeaa;
  border-radius: 4px;
  background: var(--white);
}
.planner-result { margin: 18px 0 0; font-size: 1.35rem; font-weight: 900; color: var(--primary-dark); }
.fine-print { color: var(--muted); font-size: 0.84rem; }

.sources { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 10px; }
.sources a { color: var(--primary); }

.cta-band { background: var(--primary); color: var(--white); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 8px 0 0; color: #d9f0ed; }

footer { padding: 38px 0; background: var(--ink); color: #d9e1e3; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--white); }
.disclaimer { max-width: 980px; margin: 28px 0 0; color: #aebcc0; font-size: 0.75rem; line-height: 1.45; }

@media (max-width: 820px) {
  .nav-links a:not(.button) { display: none; }
  .fact-grid, .grid-3, .split, .guide-callout, .footer-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .fact:last-child { border-bottom: 0; }
  .cta-band .container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav { min-height: 62px; }
  .brand { font-size: 0.98rem; }
  .nav-links { gap: 8px; }
  .button { padding: 0 13px; }
  .hero .container { padding: 68px 0 60px; }
  section { padding: 56px 0; }
  .card, .planner, .direct-answer { padding: 20px; }
}
