/* Chapter framing for existing research pages; map and evidence styles stay intact. */
body.chapter-reference{--paper:#f7f6f2;--ink:#243331;--green:#285641;--line:#a2afa5;--focus:#9a4a00;background:var(--paper);color:var(--ink);font:18px/1.65 system-ui,-apple-system,sans-serif;overflow-wrap:anywhere}
.chapter-reference>header,.chapter-reference>main,.chapter-reference>footer{max-width:1060px;margin:auto;width:100%;padding-left:28px;padding-right:28px}
.chapter-reference>header{padding-top:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.chapter-reference>main{padding-top:28px;padding-bottom:70px;min-height:65vh}
.chapter-reference>footer{border-top:1px solid var(--line);padding-top:24px;padding-bottom:24px;font-size:15px;color:var(--ink)}
.chapter-reference>header .brand{font:750 25px/1.65 system-ui,-apple-system,sans-serif;letter-spacing:normal;color:var(--green)}
.chapter-reference>header .preview-label{font-size:15px;margin:4px 0 18px}
.chapter-reference>header nav{display:flex;gap:15px 26px;flex-wrap:wrap;padding:0;margin:0;border:0;background:transparent}
.chapter-reference>header nav a{display:inline-block;border:0;padding:0;border-radius:0;box-shadow:none;background:transparent;font:650 18px/1.65 system-ui,-apple-system,sans-serif;color:var(--green);text-decoration:underline;text-underline-offset:4px;min-height:0}
.chapter-reference>main>h1{font-size:clamp(30px,4.5vw,46px);line-height:1.18;max-width:850px;margin:30px 0 22px;letter-spacing:normal;font-family:inherit}
.chapter-reference>main>.lede{font-size:21px;line-height:1.55;max-width:72ch}
.chapter-reference .breadcrumbs,.chapter-reference .reference-label{font-size:15px}
.chapter-reference .breadcrumbs a,.chapter-reference>main>h1+a,.chapter-reference>footer a{color:var(--green);text-underline-offset:4px}
.chapter-reference .reference-label{font-weight:650;margin-top:24px}
.chapter-reference>header a:hover,.chapter-reference>footer a:hover{text-decoration-thickness:2px}
.chapter-reference a:focus-visible,.chapter-reference summary:focus-visible,.chapter-reference button:focus-visible,.chapter-reference select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.chapter-reference>footer p{max-width:78ch;margin:8px 0}
@media(max-width:650px){.chapter-reference>header,.chapter-reference>main,.chapter-reference>footer{padding-left:18px;padding-right:18px}.chapter-reference>header nav{gap:12px 20px}.chapter-reference>main>.lede{font-size:20px}}
/* Visible reference-page reading links and project footer. */
.chapter-reference .reference-related{margin:24px 0 14px}
.chapter-reference .reference-related h2{font:650 18px/1.4 system-ui,-apple-system,sans-serif;margin:0 0 8px}
.chapter-reference .reference-related p{font-size:15px;margin:6px 0}
.chapter-reference .reference-page-links{display:flex;flex-wrap:wrap;gap:10px 22px;margin:16px 0}
.chapter-reference .reference-project-support{border-top:1px solid var(--line);padding-top:18px;margin-top:22px}
.chapter-reference .reference-project-support>p{margin:8px 0;font-size:15px;line-height:1.6}
.chapter-reference .reference-project-support>.reference-project-note{font-size:13px}
.chapter-reference .reference-project-credit img{width:22px;height:auto;vertical-align:middle;margin-right:5px}
