:root {
  color-scheme: light;
  --ink: #172620;
  --muted: #52655b;
  --pine: #173d2e;
  --green: #226448;
  --mint: #b5f6ca;
  --paper: #fbfcf9;
  --line: #dce6de;
  --soft: #eef4ed;
  font: 16px/1.62 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #3a9370; outline-offset: 4px;
}
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.wrap { width: min(1140px, calc(100% - 3.5rem)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .5rem 1rem; background: #fff; }
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { min-height: 4.6rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: inherit; font-weight: 820; font-size: 1.07rem; text-decoration: none; white-space: nowrap; }
.brand span span { font-weight: 570; }
.topbar nav { display: flex; gap: clamp(1rem, 3vw, 2.15rem); flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: #314e40; font-size: .94rem; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: #174e36; text-decoration: underline; }
.head-search { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: .65rem; display: grid; place-items: center; flex: 0 0 auto; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: .35rem 0 1rem; font-size: clamp(2.35rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
h3 { font-size: 1.17rem; }
.hero { color: #f1faf3; background: radial-gradient(ellipse at 79% 26%, #246447 0%, #163e30 44%, #10271f 84%); }
.hero-grid { min-height: 30rem; padding: clamp(2.7rem, 7vw, 5.8rem) 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 7vw, 5.6rem); align-items: center; }
.eyebrow { display: inline-flex; gap: .55rem; align-items: center; color: var(--mint); font-weight: 720; font-size: .88rem; }
.eyebrow span { width: .48rem; height: .48rem; border-radius: 50%; background: #85e7a8; }
.hero h1 { margin: .8rem 0 1.1rem; font-size: clamp(2.35rem, 4.65vw, 3.75rem); }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-copy > p { margin: 0 0 1.5rem; max-width: 46ch; color: #d7e9de; font-size: 1.08rem; }
.route-panel { background: #112b23; border: 1px solid #48745e; padding: 1.3rem 1.45rem; border-radius: 1.25rem; box-shadow: 0 1.5rem 4rem #07181145; }
.route-title { display: flex; gap: .65rem; align-items: center; color: #fff; margin-bottom: .75rem; }
.route-title svg { color: var(--mint); vertical-align: middle; }
.route-panel > a { padding: .65rem 0; display: grid; grid-template-columns: 2.45rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; color: #e4f3e9; text-decoration: none; border-top: 1px solid #365748; font-size: .93rem; }
.route-panel > a:hover { color: var(--mint); }
.route-panel > a > svg, .topic-arrow svg { width: 1.15rem; }
.hero-icon, .topic-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .65rem; color: #237352; background: #e5f1e6; }
.hero-icon { color: #9fe8bb; background: #214837; }
.hero-icon svg, .topic-icon svg { width: 1.25rem; }
.search-box { display: flex; align-items: center; gap: .7rem; background: #fff; padding: .38rem .4rem .38rem .85rem; border: 1px solid #bdcfc3; color: var(--green); border-radius: .8rem; width: min(100%, 34rem); }
.search-box > svg { flex: 0 0 auto; width: 1.2rem; }
.search-box input { min-width: 0; flex: 1; background: #fff; color: var(--ink); border: 0; padding: .48rem .15rem; }
.search-box:focus-within { outline: 3px solid #71b894; outline-offset: 3px; }
.search-box input:focus-visible { outline: 0; }
.search-box button, .text-button { color: #fff; background: var(--pine); border: 0; border-radius: .55rem; font-weight: 680; padding: .5rem 1.1rem; cursor: pointer; text-decoration: none; }
.home-main { padding-block: 3.25rem 4.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.3rem; }
.section-head a { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; white-space: nowrap; }
.section-head a svg { width: 1.1rem; }
.topic-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; }
.topic-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; color: var(--ink); text-decoration: none; }
.topic-card:hover, .card:hover { border-color: #63a887; }
.topic-card strong, .topic-card small { display: block; }
.topic-card small { line-height: 1.4; color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.topic-arrow { color: var(--green); }
.featured { margin-top: 3.3rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: .85rem; }
.card a { display: block; padding: 1.18rem 1.12rem; color: inherit; text-decoration: none; height: 100%; }
.card h2, .card h3 { margin: .5rem 0; font-size: 1.17rem; }
.card p { color: var(--muted); margin: .55rem 0; font-size: .9rem; line-height: 1.54; }
.card-topic { color: var(--green); font-size: .78rem; font-weight: 730; }
.card-arrow { display: inline-flex; align-items: center; margin-top: .2rem; color: var(--green); }
.card-arrow svg { width: 1rem; }
.listing { min-height: 62vh; padding: 2rem 0 4rem; }
.lead { color: var(--muted); max-width: 68ch; margin-bottom: 1.65rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.filter-row button { padding: .28rem .72rem; color: var(--green); background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; cursor: pointer; font-size: .86rem; }
.filter-row button[aria-pressed="true"] { background: #e1eee4; border-color: #afcdb8; color: #234434; }
.status { color: var(--muted); font-size: .9rem; min-height: 1.45em; }
.crumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; margin-bottom: 1.45rem; color: var(--muted); }
.crumb a { color: var(--green); }
.article-shell { padding: 2.2rem 0 4rem; }
.article-head { padding-bottom: 1.5rem; max-width: 54rem; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.45rem); overflow-wrap: anywhere; }
.article-head > p { color: var(--muted); font-size: 1.06rem; }
.article-meta { display: flex; gap: .5rem 1rem; flex-wrap: wrap; color: var(--muted); font-size: .83rem; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 15rem; align-items: start; gap: 1.4rem; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.toc summary { color: var(--pine); font-weight: 720; cursor: pointer; }
.toc ol { margin: .45rem 0 0; padding-left: 1.2rem; font-size: .87rem; }
.toc li { margin: .35rem 0; line-height: 1.45; }
.article-paper { grid-column: 1; grid-row: 1; background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 4vw, 2.7rem); overflow-wrap: anywhere; }
.article-paper p { max-width: 77ch; }
.article-paper > p:first-child { color: #223c30; font-size: 1.08rem; font-weight: 630; margin-top: 0; }
.article-paper h2 { font-size: clamp(1.45rem, 3.2vw, 1.95rem); margin: 2.05rem 0 .7rem; scroll-margin: 1rem; }
.article-paper h3 { margin-top: 1.5rem; }
.article-paper li + li { margin-top: .35rem; }
.article-paper .explainer { margin: 1.35rem 0; background: #f2f6f2; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.explainer img { display: block; width: 100%; }
.explainer figcaption { color: var(--muted); margin: .5rem .85rem; font-size: .81rem; }
.table-wrap { margin: 1rem 0; overflow: auto; border: 1px solid var(--line); border-radius: .55rem; }
table { min-width: 500px; width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
td, th { padding: .62rem; border-bottom: 1px solid var(--line); }
th { background: var(--soft); }
tr:last-child td { border-bottom: 0; }
blockquote { margin-inline: 0; padding: .4rem .9rem; border-left: 3px solid #66a787; background: var(--soft); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: .73rem .15rem; color: var(--pine); font-weight: 640; cursor: pointer; }
.faq details div { padding: 0 0 .4rem .9rem; }
.sources { padding-left: 1.3rem; }
.related { margin-top: 2rem; }
.related > h2 { margin-bottom: 1rem; }
.rules { max-width: 51rem; }
.site-foot { border-top: 1px solid #d0ded4; padding-block: 1.85rem; background: #eaf2ea; }
.foot { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.foot p { color: var(--muted); margin: .35rem 0 0; font-size: .87rem; }
.foot > div:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .89rem; }

@media (max-width: 980px) {
  .topic-grid, .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-grid { gap: 2rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar { gap: .45rem .8rem; padding: .6rem 0; flex-wrap: wrap; }
  .topbar nav { order: 3; width: 100%; gap: .35rem .9rem; }
  .topbar nav a { font-size: .83rem; }
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding-block: 2.75rem; }
  .toc, .article-paper { grid-column: 1; grid-row: auto; position: static; }
  .toc { max-height: none; }
  .section-head { align-items: start; }
}
@media (max-width: 460px) {
  .topic-grid, .card-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head a { margin-top: .45rem; }
  .search-box { gap: .3rem; }
}
