:root {
  --ink: #15302c;
  --ink-soft: #47615c;
  --green: #176b52;
  --green-dark: #0d4c3b;
  --green-pale: #e8f3ed;
  --sand: #f5f1e8;
  --line: #d7e1dc;
  --white: #fff;
  --max: 1160px;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(18, 60, 49, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.025em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.35rem, 5vw, 4.8rem); max-width: 900px; }
h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 3vw, 2.65rem); }
h3 { margin: 0 0 .55rem; font-size: 1.28rem; }
p { margin: 0 0 1rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { width: auto; height: auto; padding: .7rem 1rem; overflow: visible; clip-path: none; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(215, 225, 220, .9); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 760; text-decoration: none; line-height: 1.1; }
.brand-mark { width: 34px; height: 34px; border-radius: 50% 50% 48% 52% / 60% 60% 40% 40%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: .9rem; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: .55rem .7rem; font: inherit; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: .93rem; font-weight: 680; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }

.hero { position: relative; min-height: 600px; display: grid; align-items: end; overflow: hidden; background: var(--ink); color: #fff; }
.hero img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: .8; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,30,25,.83) 0%, rgba(7,30,25,.42) 56%, rgba(7,30,25,.1) 100%), linear-gradient(0deg, rgba(7,30,25,.64), transparent 55%); }
.hero-content { position: relative; z-index: 1; padding-block: 90px; }
.hero h1, .hero p { color: #fff; }
.hero p { max-width: 690px; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.eyebrow { display: inline-block; margin-bottom: 1rem; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #bde6d3; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1.05rem; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: #fff; font-weight: 760; text-decoration: none; }
.button:hover { background: var(--green-dark); color: #fff; }
.button.secondary { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); color: #fff; }

.section { padding-block: 62px; }
.section.compact { padding-block: 45px; }
.section-tint { background: var(--sand); }
.section-green { background: var(--green-pale); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading p { max-width: 640px; color: var(--ink-soft); }
.section-heading > * { margin-bottom: 0; }
.lede { max-width: 760px; color: var(--ink-soft); font-size: 1.12rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(18,60,49,.04); }
.card img { height: 260px; object-fit: cover; }
.card-body { padding: 24px; }
.card p { color: var(--ink-soft); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: .25rem; font-weight: 760; text-decoration: none; }
.type-card { padding: 24px; }
.type-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 10px; background: var(--green-pale); color: var(--green-dark); font-weight: 850; }
.area-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area-chip { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
.area-chip strong { display: block; color: var(--ink); }
.area-chip span { display: block; color: var(--ink-soft); font-size: .89rem; }

.page-hero { padding-block: 61px 40px; background: var(--sand); }
.page-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.5vw, 4rem); }
.page-hero img { height: 390px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.breadcrumb { margin-bottom: 1rem; color: var(--ink-soft); font-size: .9rem; }
.breadcrumb a { color: var(--ink-soft); }
.article { width: min(calc(100% - 40px), 860px); margin-inline: auto; padding-block: 52px 72px; }
.article h2 { margin-top: 3rem; }
.article h3 { margin-top: 2rem; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin-bottom: .55rem; }
.callout { margin: 2rem 0; padding: 22px 24px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: var(--green-pale); }
.callout p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.photo-note { margin-top: .5rem; color: var(--ink-soft); font-size: .8rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 2rem 0; }
.photo-grid figure { margin: 0; }
.photo-grid img { height: 270px; object-fit: cover; border-radius: 14px; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; font-size: .94rem; }
.table-wrap-static { overflow-x: visible; }
.table-wrap-static table { min-width: 0; table-layout: fixed; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--green-pale); color: var(--ink); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.checklist li { position: relative; margin: 0; padding: 14px 16px 14px 45px; border: 1px solid var(--line); border-radius: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 16px; color: var(--green); font-weight: 900; }

.calculator { margin: 2.2rem 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
label { display: block; color: var(--ink); font-size: .9rem; font-weight: 760; }
input { width: 100%; min-height: 46px; margin-top: 6px; padding: .7rem .8rem; border: 1px solid #aac0b7; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
input:focus { outline: 3px solid rgba(23,107,82,.18); border-color: var(--green); }
.calculator-actions { display: flex; gap: 12px; margin-top: 20px; }
button.button { cursor: pointer; font: inherit; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.result { padding: 18px; border-radius: 10px; background: #fff; }
.result span { display: block; color: var(--ink-soft); font-size: .84rem; }
.result strong { display: block; margin-top: 3px; font-size: 1.35rem; }
.calculator-note { margin: 13px 0 0; color: var(--ink-soft); font-size: .85rem; }
.error { color: #9d2f2f; font-weight: 700; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; color: var(--ink); font-weight: 780; }
.faq details p { max-width: 800px; padding-bottom: 18px; color: var(--ink-soft); }
.sources { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; }
.sources h2 { margin-top: 0; font-size: 1.25rem; }

.site-footer { padding-block: 40px 22px; background: var(--ink); color: #dce7e3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { font-size: 1.35rem; }
.site-footer h3 { font-size: .95rem; }
.site-footer a { color: #dce7e3; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { text-decoration: none; }
.footer-note { max-width: 450px; color: #b9cac4; font-size: .91rem; }
.copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #a8bdb6; font-size: .82rem; }

.not-found { min-height: 72vh; display: grid; place-items: center; padding: 70px 20px; text-align: center; }
.not-found p { max-width: 600px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .hero { min-height: 550px; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero img { height: 330px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .container, .article { width: min(calc(100% - 28px), var(--max)); }
  .brand span:last-child { max-width: 180px; font-size: .88rem; }
  .section { padding-block: 46px; }
  .hero { min-height: 590px; }
  .hero-content { padding-block: 70px; }
  .section-heading { display: block; }
  .grid-2, .grid-3, .grid-4, .split, .form-grid, .results, .checklist { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .card img { height: 220px; }
  .page-hero { padding-block: 52px 38px; }
  .page-hero .container { gap: 30px; }
  .page-hero img { height: 250px; }
  .calculator { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-grid { grid-template-columns: 1fr; }
  .table-wrap-static { overflow-x: auto; }
  .table-wrap-static table { min-width: 620px; table-layout: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
