:root {
  --ink: #17332a;
  --ink-soft: #52665f;
  --forest: #1f6045;
  --forest-dark: #154632;
  --leaf: #73a942;
  --lime: #d8e9b9;
  --cream: #f7f5ed;
  --paper: #fffefa;
  --line: #dce3dd;
  --white: #fff;
  --orange: #da7a34;
  --shadow: 0 18px 50px rgba(28, 63, 49, .09);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 9px 14px; transform: translateY(-150%); background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--forest); background: var(--lime); }
.brand-mark svg { width: 34px; height: 34px; fill: var(--forest); }
.brand-mark path:last-child { fill: none; stroke: var(--paper); stroke-width: 2.3; stroke-linecap: round; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 28px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.institution { margin-left: auto; padding-left: 28px; border-left: 1px solid var(--line); line-height: 1.35; text-align: right; }
.institution span { display: block; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.institution strong { font-size: 14px; }
.main-nav { background: var(--forest-dark); }
.nav-scroll { display: flex; justify-content: center; }
.main-nav a { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 8px 13px; color: rgba(255,255,255,.79); text-decoration: none; font-size: 12px; line-height: 1.2; text-align: center; letter-spacing: .025em; }
.main-nav a::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 3px; border-radius: 3px 3px 0 0; background: var(--lime); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,.06); }
.main-nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 42px; padding: 10px; border: 0; border-radius: 10px; background: var(--forest); }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: white; }

.page-hero { position: relative; overflow: hidden; padding: 75px 0 72px; color: white; background: var(--forest); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(circle at 10% 20%, transparent 0 55px, #b6d787 56px 57px, transparent 58px), radial-gradient(circle at 90% 120%, #b6d787 0 220px, transparent 221px); }
.page-hero::after { content: ""; position: absolute; top: -90px; right: 7%; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.18); border-radius: 56% 44% 64% 36%; transform: rotate(28deg); }
.hero-narrow { position: relative; z-index: 2; max-width: 830px; text-align: center; }
.eyebrow { display: inline-block; color: var(--leaf); font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.page-hero .eyebrow { color: #d6efa8; }
.page-hero h1 { max-width: 820px; margin: 8px auto 14px; font: 600 clamp(38px, 6vw, 64px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.page-hero p { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.6; }

.reading-layout, .content-stack { padding-top: 54px; padding-bottom: 82px; }
.content-stack { display: grid; gap: 28px; }
.article-card, .data-card, .filter-card { background: var(--paper); border: 1px solid rgba(25,83,59,.09); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-card { max-width: 900px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); }
.legacy-content { color: #344e45; }
.legacy-content > h2:first-of-type { margin-top: 0; }
.legacy-content h2 { margin: 2.2em 0 .6em; padding-bottom: .45em; color: var(--ink); border-bottom: 1px solid var(--line); font: 600 27px/1.25 Georgia, "Times New Roman", serif; }
.legacy-content h3 { margin: 2em 0 .5em; color: var(--forest); font-size: 18px; line-height: 1.45; }
.legacy-content p { margin: 0 0 1.25em; text-align: left; }
.legacy-content ul, .legacy-content ol { margin: 1em 0 1.6em; padding-left: 1.4em; }
.legacy-content li { margin-bottom: .65em; padding-left: .25em; }
.legacy-content li::marker { color: var(--leaf); font-weight: bold; }
.legacy-content img { margin: 34px auto; border-radius: 12px; box-shadow: 0 12px 35px rgba(29,67,52,.13); }
.legacy-content br:first-child { display: none; }
.legacy-content .chfc { padding: 22px 25px; color: var(--forest-dark); background: #edf5e4; border-left: 4px solid var(--leaf); border-radius: 0 12px 12px 0; }
.publications ul { padding: 0; list-style: none; }
.publications li { position: relative; margin: 0; padding: 20px 15px 20px 49px; border-bottom: 1px solid var(--line); }
.publications li::before { content: "PDF"; position: absolute; top: 22px; left: 0; padding: 3px 5px; color: #a74437; background: #f8e5e0; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.publications li:last-child { border-bottom: 0; }
.publications li > a { color: var(--ink); text-decoration: none; }
.publications li > a:hover { color: var(--forest); }
.publications .wlk { color: var(--ink-soft); font-size: 13px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { min-height: 160px; padding: 26px; border-radius: 16px; background: var(--forest); color: white; box-shadow: var(--shadow); }
.stat-card:nth-child(2) { background: #347656; }
.stat-card:nth-child(3) { color: var(--ink); background: var(--lime); }
.stat-card:nth-child(4) { background: #b76834; }
.stat-card strong { display: block; margin-bottom: 5px; font: 600 48px/1 Georgia, serif; }
.stat-card span { display: block; color: inherit; opacity: .8; font-size: 13px; line-height: 1.4; }
.prose-intro { max-width: none; }
.prose-intro h2 { margin: 0 0 14px; font: 600 30px/1.2 Georgia, serif; }
.prose-intro p { max-width: 890px; color: var(--ink-soft); }
.data-card { overflow: hidden; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 28px 30px 23px; }
.section-heading h2 { margin: 4px 0 0; font: 600 29px/1.2 Georgia, serif; }
.section-heading p { margin: 0; }
.text-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.35; }
th, td { padding: 14px 13px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
thead th { position: sticky; top: 0; z-index: 1; color: #5b6f67; background: #f3f5f1; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
tbody th, tbody td:first-child { text-align: left; }
tbody tr:hover { background: #f5f8f3; }
tbody th a { color: var(--ink); }
tfoot { color: white; background: var(--forest); font-weight: bold; }
.percent-badge { display: inline-flex; min-width: 42px; justify-content: center; padding: 4px 7px; color: var(--forest); background: var(--lime); border-radius: 99px; font-weight: 800; }

.maps-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 28px; padding-top: 54px; padding-bottom: 82px; }
.map-index { position: sticky; top: 20px; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.aside-label { display: block; padding: 10px 13px 14px; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.map-index a { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--ink-soft); border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 650; line-height: 1.3; }
.map-index a span { color: #8ca097; font: 600 13px Georgia, serif; }
.map-index a:hover, .map-index a.active { color: var(--forest-dark); background: #edf4e8; }
.map-index a.active span { color: var(--forest); }
.map-viewer { min-width: 0; }
.map-panel { display: none; scroll-margin-top: 20px; padding: clamp(24px, 5vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-panel.active { display: block; }
.map-panel h2 { margin: 5px 0 9px; font: 600 clamp(26px, 4vw, 39px)/1.15 Georgia, serif; }
.map-panel > p { margin: 0 0 24px; color: var(--ink-soft); }
.map-panel figure { margin: 0; padding: 18px; background: #edf0e9; border-radius: 12px; }
.map-panel figure img { width: min(100%, 700px); margin: auto; border-radius: 5px; }
.map-panel figcaption { padding: 11px 4px 0; color: var(--ink-soft); font-size: 11px; text-align: center; text-transform: uppercase; letter-spacing: .09em; }

.filter-card { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 25px 30px; }
.filter-card form { display: flex; align-items: end; gap: 12px; flex: 1; }
.filter-card form > div { flex: 1; max-width: 520px; }
.filter-card label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-card select { width: 100%; height: 48px; padding: 0 42px 0 14px; color: var(--ink); background: white; border: 1px solid #cbd7d0; border-radius: 9px; }
.filter-card button { height: 48px; padding: 0 22px; color: white; background: var(--forest); border: 0; border-radius: 9px; cursor: pointer; font-weight: 750; }
.filter-card button:hover { background: var(--forest-dark); }
.result-count { display: flex; align-items: center; gap: 10px; padding-left: 25px; border-left: 1px solid var(--line); }
.result-count strong { font: 600 34px Georgia, serif; }
.result-count span { max-width: 110px; color: var(--ink-soft); font-size: 11px; line-height: 1.3; }
.legend { color: var(--ink-soft); font-size: 11px; }
.dot, .factor { display: inline-block; border-radius: 50%; }
.dot { width: 8px; height: 8px; margin: 0 3px 0 9px; }
.dot.yes, .factor.yes { background: var(--leaf); }
.dot.no, .factor.no { background: #dfe5e1; }
.factor { width: 13px; height: 13px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.register-table { max-height: 720px; }
.register-table table { min-width: 1040px; }
.register-table th:first-child, .register-table td:first-child { padding-left: 24px; }
.register-table tbody th { font-weight: 650; }
.register-table tr.factor-4 { box-shadow: inset 4px 0 #c45e4c; }
.register-table tr.factor-3 { box-shadow: inset 4px 0 #dd9b3e; }
.register-table tr.factor-2 { box-shadow: inset 4px 0 #5d91aa; }
.register-table tr.factor-1 { box-shadow: inset 4px 0 #72a85a; }
.sum-badge { display: inline-grid; place-items: center; width: 27px; height: 27px; color: white; background: var(--forest); border-radius: 7px; }

.site-footer { padding-top: 58px; color: rgba(255,255,255,.67); background: #102c22; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.site-footer h2 { margin: 0 0 11px; color: white; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer a { color: #cfe7a2; }
.footer-brand { display: inline-block; margin-bottom: 12px; color: white !important; font: 600 25px Georgia, serif; text-decoration: none; }
.footer-brand span { color: var(--leaf); }
.footer-bottom { margin-top: 45px; padding: 19px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }

@media (max-width: 980px) {
  .topbar { min-height: 76px; }
  .institution { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-scroll { display: grid; grid-template-columns: repeat(2, 1fr); padding: 10px 0; }
  .main-nav a { justify-content: flex-start; min-height: 43px; padding: 9px 12px; text-align: left; }
  .main-nav a::after { right: auto; top: 9px; bottom: 9px; left: 0; width: 3px; height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .maps-layout { grid-template-columns: 1fr; }
  .map-index { position: static; display: flex; overflow-x: auto; gap: 5px; }
  .map-index .aside-label { display: none; }
  .map-index a { min-width: max-content; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand small { max-width: 175px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-hero { padding: 56px 0 54px; }
  .page-hero h1 { font-size: 39px; }
  .page-hero p { font-size: 16px; }
  .reading-layout, .content-stack, .maps-layout { padding-top: 28px; padding-bottom: 48px; }
  .article-card { padding: 27px 22px; border-radius: 14px; }
  .legacy-content h2 { font-size: 24px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 135px; padding: 20px 17px; }
  .stat-card strong { font-size: 38px; }
  .section-heading { align-items: flex-start; flex-direction: column; padding: 23px 20px 18px; }
  .section-heading h2 { font-size: 25px; }
  .filter-card { align-items: stretch; flex-direction: column; gap: 20px; padding: 21px; }
  .filter-card form { align-items: stretch; flex-direction: column; }
  .filter-card form > div { max-width: none; }
  .result-count { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .map-panel { padding: 24px 18px; }
  .map-panel figure { padding: 7px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

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