:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5d6971;
  --line: #dbe3e7;
  --paper: #ffffff;
  --soft: #f5f7f7;
  --green: #17644e;
  --blue: #2c5d90;
  --gold: #8d681e;
  --cream: #f7f0e3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 850;
  color: var(--green);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a { text-decoration: none; }

.hero, .page-title, .section, .cta-band, .article, .article-layout, .category-jump {
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(245, 247, 247, 0.95), rgba(255, 255, 255, 0.84)),
    url("/assets/hero-spreadsheet.7a881de0a388.svg");
  background-size: cover;
  background-position: center;
}

.hero h1, .page-title h1, .article-header h1 {
  max-width: 980px;
  margin: 8px 0 18px;
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.lede, .page-title p, .article-header p {
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.hero-actions, .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 780;
}

.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.button.secondary {
  background: white;
}

.button.text-button {
  background: transparent;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
}

.metric {
  color: var(--ink);
  font-size: 48px;
  font-weight: 850;
  line-height: 1;
}

.page-title {
  padding-top: 80px;
  padding-bottom: 52px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.category-jump {
  padding-top: 52px;
  padding-bottom: 52px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  max-width: 760px;
}

.category-select {
  width: min(100%, 440px);
  min-height: 48px;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 720;
}

.section.compact { padding-top: 36px; }

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2, .cta-band h2, .article h2, .prose h2, .inline-cta h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p, .cta-band p, .article p, .prose p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.article-card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.article-card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.22;
}

.article-card h3 a { text-decoration: none; }

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.badge, .status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.badge {
  color: var(--green);
  background: #e9f4ef;
}

.status {
  color: var(--blue);
  background: #edf3fa;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--cream);
  border-top: 1px solid #eadfc9;
  border-bottom: 1px solid #eadfc9;
}

.pill-row, .related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill, .related-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  text-decoration: none;
  font-weight: 720;
  font-size: 14px;
}

.article-layout {
  padding-top: 76px;
  padding-bottom: 44px;
}

.article-header {
  max-width: 960px;
}

.article-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 860px);
  gap: 44px;
  align-items: start;
  margin-top: 48px;
}

.toc {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.toc-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 850;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.prose {
  max-width: 860px;
}

.prose section {
  padding-bottom: 36px;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 17px;
}

.prose a {
  color: var(--green);
  font-weight: 760;
}

.inline-cta {
  padding: 24px;
  margin: 8px 0 36px;
  border: 1px solid #d8c9a9;
  border-radius: 8px;
  background: #fff9ec;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: white;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.article {
  max-width: 920px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.site-footer {
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--soft);
}

.site-footer a {
  color: var(--green);
  font-weight: 760;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero, .cta-band, .article-body {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .hero h1, .page-title h1, .article-header h1 {
    font-size: 42px;
  }

  .toc {
    position: static;
  }
}
