:root {
  --forest: #0d5138;
  --forest-deep: #083b2a;
  --leaf: #21734f;
  --orange: #f07f2f;
  --orange-dark: #c85b1e;
  --cream: #fff7dc;
  --cream-light: #fffaf0;
  --cream-deep: #f4e8bf;
  --ink: #1d3329;
  --ink-soft: #405448;
  --muted: #6c7b70;
  --white: #ffffff;
  --line: #ddd7bb;
  --shadow: 0 16px 38px rgba(13, 81, 56, .11);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

.site-header {
  background: var(--forest);
  color: var(--white);
  border-bottom: 4px solid var(--orange);
}
.header-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: .08em;
  font-weight: 850;
}
.brand-mark { display: none; }
.brand-name { white-space: nowrap; }
.brand-accent { color: var(--orange); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #f5f4df; text-decoration: none; font-size: .88rem; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--orange); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  padding: 78px 24px 86px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(240, 127, 47, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(240,127,47,.08), 0 0 0 44px rgba(240,127,47,.05);
}
.hero-inner { position: relative; z-index: 1; width: min(100%, var(--max)); margin: 0 auto; }
.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 850;
  margin: 0 0 18px;
}
h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.75rem, 6.4vw, 5.7rem);
  line-height: .98;
  font-weight: 850;
  letter-spacing: -.055em;
}
.hero-meta { margin-top: 26px; color: #d4e2c8; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 750; }
.hero-note { max-width: 680px; margin: 24px 0 0; color: #f1f2dc; font-size: 1.05rem; }

.layout {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding: 76px 0 90px;
}
.toc { position: sticky; top: 24px; align-self: start; }
.toc-title { margin: 0 0 16px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 850; }
.toc a { display: block; padding: 9px 0; color: var(--ink-soft); text-decoration: none; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 650; }
.toc a:last-child { border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--orange-dark); }

.prose { min-width: 0; }
.lead {
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.42;
  font-weight: 650;
  margin: 0 0 48px;
  color: var(--forest-deep);
}
.section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
h2 { margin: 0 0 18px; color: var(--forest); font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.12; font-weight: 850; letter-spacing: -.04em; }
h3 { margin: 28px 0 10px; color: var(--forest); font-size: 1.03rem; line-height: 1.35; font-weight: 800; }
p { margin: 0 0 18px; }
strong { color: var(--forest-deep); }
blockquote { margin: 24px 0; padding: 20px 24px; background: var(--cream-deep); border-left: 5px solid var(--orange); color: var(--ink-soft); }
ul, ol { margin: 12px 0 22px; padding-left: 1.25rem; }
li { margin: 7px 0; }

.callout { padding: 25px 28px; margin: 24px 0 28px; border-radius: var(--radius); background: var(--forest); color: var(--white); box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.callout h3 { margin-top: 0; color: var(--orange); }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: #ffd29b; }
.notice { background: var(--cream-light); border: 1px solid #e3c883; border-left: 5px solid var(--orange); color: #5c4b2b; padding: 18px 20px; border-radius: 10px; margin-bottom: 28px; }

.data-table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: .92rem; background: rgba(255,255,255,.22); }
.data-table th, .data-table td { padding: 15px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--forest); background: var(--cream-deep); text-transform: uppercase; letter-spacing: .08em; font-size: .69rem; font-weight: 850; }
.data-table tr:first-child th { border-top: 2px solid var(--orange); }
.data-table td:first-child { font-weight: 750; color: var(--forest-deep); }

.footer { background: var(--forest-deep); color: #d7e2c9; padding: 42px 24px; border-top: 5px solid var(--orange); }
.footer-inner { width: min(100%, var(--max)); margin: 0 auto; display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .85rem; }
.footer a { color: #ffd29b; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 840px) {
  .header-inner { width: min(calc(100% - 32px), var(--max)); }
  .nav { gap: 13px; }
  .nav a { font-size: .76rem; }
  .layout { width: min(calc(100% - 32px), var(--max)); grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .toc { position: static; }
  .toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .hero { padding: 62px 16px 68px; }
  .header-inner { min-height: 68px; }
}

@media (max-width: 560px) {
  .brand { font-size: 1.05rem; }
  .nav { gap: 10px; }
  .nav a:nth-child(4) { display: none; }
  .data-table { display: block; overflow-x: auto; white-space: normal; }
  .footer-inner { display: block; }
  .footer-nav { margin-top: 18px; }
}

@media print {
  .site-header, .toc, .footer { display: none; }
  .hero { padding: 24px 0; color: #000; background: #fff; }
  .hero .eyebrow, .hero-meta, .hero-note { color: #333; }
  .layout { display: block; width: 100%; padding: 28px 0; }
  a { color: #000; }
}
