:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #f1f6f2;
  --text: #17212b;
  --muted: #66737d;
  --green: #159447;
  --green-dark: #0f7a38;
  --border: #d8e2da;
  --shadow: 0 18px 36px rgba(19, 31, 23, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(21, 148, 71, 0.1), transparent 24rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: var(--green-dark); text-underline-offset: 0.18em; }
a:hover { color: #0a5e2b; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(21, 148, 71, 0.28); outline-offset: 3px; }

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav-shell, .wide-shell, .article-shell { width: min(1120px, 92vw); margin-inline: auto; }
.nav-shell { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--text); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.brand span { color: var(--green); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-nav a { color: #465461; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--green-dark); }

.breadcrumbs { padding: 22px 0 0; color: var(--muted); font-size: 0.84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #9aa49e; }

.article-shell { max-width: 780px; }
.article-hero { padding: 42px 0 24px; }
.eyebrow { color: var(--green-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); line-height: 1.18; letter-spacing: -0.035em; }
h1 { margin: 12px 0 18px; font-size: clamp(2.15rem, 7vw, 4.2rem); }
h2 { margin: 2.6rem 0 0.8rem; font-size: clamp(1.45rem, 3.5vw, 2rem); }
h3 { margin: 2rem 0 0.55rem; font-size: 1.18rem; }
p, ul, ol { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.36rem; }
.dek { color: #465461; font-size: 1.1rem; line-height: 1.65; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.86rem; }
.article-body { padding-bottom: 32px; }
.article-body > p:first-child {
  margin: 0 0 2rem;
  padding: 20px 22px;
  border: 1px solid #cde0d1;
  border-left: 4px solid var(--green);
  border-radius: 16px;
  background: var(--surface-soft);
}
.article-body strong { color: #233029; }

.table-scroll { overflow-x: auto; margin: 1.4rem 0 1.7rem; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); font-size: 0.92rem; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); font-size: 0.82rem; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: 0; }

.sources, .disclaimer, .related-panel {
  margin: 2.2rem 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.sources h2, .related-panel h2 { margin-top: 0; font-size: 1.3rem; }
.sources ol { margin-bottom: 0; overflow-wrap: anywhere; }
.sources li { padding-left: 0.2rem; }
.sources a { font-size: 0.9rem; }
.disclaimer { color: #53605a; background: #f8faf8; font-size: 0.88rem; }

.directory-hero { padding: 58px 0 28px; max-width: 800px; }
.directory-hero h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); }
.directory-hero p { color: #465461; font-size: 1.08rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; padding-bottom: 58px; }
.research-card { display: flex; min-height: 255px; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.research-card .tag { color: var(--green-dark); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.research-card h2 { margin: .65rem 0 .7rem; font-size: 1.35rem; }
.research-card p { color: #53616b; font-size: .94rem; }
.research-card a { margin-top: auto; font-weight: 800; }
.directory-note { margin: 0 0 32px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-soft); color: #465461; }

.site-footer { margin-top: 30px; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer-shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); }

@media (max-width: 720px) {
  .site-header { position: static; }
  .nav-shell { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px 0; }
  .site-nav { justify-content: flex-start; gap: 10px 15px; }
  .article-hero { padding-top: 30px; }
  .byline { flex-direction: column; gap: 2px; }
  .research-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer { display: none; } body { background: white; } .article-shell { max-width: none; } }
