:root {
  --ink: #222e2a;
  --muted: #59685f;
  --accent: #17594d;
  --paper: #fffefa;
  --surface: #f5f4ee;
  --line: #dedfd5;
  --soft: #e7efe6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #bc651d; outline-offset: 4px; border-radius: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .7rem 1rem; z-index: 10; background: var(--paper); }
.skip-link:focus { top: .7rem; }
.site-header { height: 84px; padding: 0 3.2vw; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; font-size: 1.3rem; font-weight: 750; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-divider { margin: 0 .65rem; color: #9aab9e; font-weight: 400; }
.brand-subtitle { font-weight: 450; font-size: 1rem; letter-spacing: -.02em; }
.search-link { display: flex; gap: 2rem; font-size: .875rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); padding: .45rem .85rem; border-radius: 5px; }
.site-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1600px; margin: auto; }
.sidebar { border-right: 1px solid var(--line); padding: 2rem 1.1rem 3rem 2rem; background: var(--surface); }
.guide-menu > summary { display: none; }
.nav-overview { display: block; margin-bottom: 1.4rem; }
.nav-section { margin-bottom: 1.45rem; }
.nav-label { color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; margin: 0 0 .5rem; }
.sidebar ul, .page-toc ul { padding: 0; margin: 0; list-style: none; }
.sidebar a { padding: .4rem .65rem; border-radius: 4px; font-size: .82rem; line-height: 1.45; text-decoration: none; color: var(--muted); }
.nav-section a { display: block; }
.sidebar a:hover { color: var(--accent); background: #ebece3; }
.sidebar a[aria-current] { background: var(--soft); color: var(--accent); font-weight: 650; }
main { min-width: 0; padding: 3.5rem 4vw 5rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.1rem, 3.3vw, 3.7rem); line-height: 1.13; letter-spacing: -.045em; font-weight: 650; margin-bottom: 1.25rem; text-wrap: balance; }
h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -.025em; }
h3 { font-size: 1.06rem; line-height: 1.4; letter-spacing: -.015em; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: var(--accent); margin-bottom: 1.2rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .8rem 1.15rem; color: white; border: 1px solid var(--accent); background: var(--accent); border-radius: 5px; font-weight: 600; font-size: .875rem; text-decoration: none; }
.button:hover { background: #104639; }
.home { max-width: 1000px; margin: auto; }
.home-heading { padding: .75rem 0 2.8rem; }
.home-heading .button { margin-top: .6rem; }
.quick-paths { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: 3.4rem; }
.quick-paths a { display: flex; align-items: center; gap: .8rem; padding: 1.4rem 1rem; color: var(--ink); text-decoration: none; font-size: .82rem; line-height: 1.45; }
.quick-paths a + a { border-left: 1px solid var(--line); }
.quick-paths a:hover { background: var(--surface); }
.quick-paths a > span:last-child { margin-left: auto; color: var(--accent); }
.step-number { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.7rem; }
.section-heading h2 { margin: 0; }
.section-heading > span { font-size: .75rem; color: var(--muted); }
.directory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 3rem; }
.directory-section { border-top: 2px solid var(--line); padding-top: 1.25rem; }
.directory-section h3 { margin-bottom: .45rem; }
.directory-section > p { font-size: .85rem; color: var(--muted); min-height: 2.8rem; }
.directory-section ul { list-style: none; padding: 0; margin: 0; }
.directory-section a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .9rem; }
.directory-section a:hover { text-decoration: underline; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 740px) 165px; gap: 3vw; justify-content: center; }
.page-heading { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; margin-bottom: 2rem; }
.guide h1 { font-size: clamp(2.1rem, 3vw, 3.2rem); }
.page-toc { align-self: start; position: sticky; top: 2rem; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.page-toc a { display: block; padding: .35rem 0; font-size: .76rem; color: var(--muted); text-decoration: none; line-height: 1.5; }
.page-toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: 2.6rem; scroll-margin-top: 2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose p, .prose ol, .prose ul { margin-bottom: 1.2rem; }
.prose li { padding-left: .25rem; margin-bottom: .5rem; }
.prose strong { font-weight: 650; }
.prose blockquote { background: var(--soft); border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: 1rem 1.3rem; font-size: .95rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.4rem 0; }
.prose th, .prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 650; }
.prose kbd { padding: .1rem .3rem; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: .85em; }
.guide-end { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.search-page { max-width: 760px; margin: 0 auto; }
#guide-search label { font-size: .85rem; font-weight: 650; }
.search-field { display: flex; gap: .6rem; margin: .5rem 0 1rem; }
.search-field input { width: 100%; min-width: 0; border: 1px solid #98a39a; background: white; border-radius: 5px; padding: .7rem .85rem; color: var(--ink); }
#search-status { color: var(--muted); font-size: .9rem; }
.search-results { list-style: none; margin: 2rem 0; padding: 0; }
.search-results li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.search-results h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.search-results p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 3.2vw; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
@media (max-width: 1150px) {
  .site-shell { grid-template-columns: 225px minmax(0, 1fr); }
  .sidebar { padding-left: 1.1rem; }
  .guide-layout { grid-template-columns: minmax(0, 740px); }
  .page-toc { display: none; }
  .quick-paths { grid-template-columns: 1fr; }
  .quick-paths a { padding: 1rem .5rem; }
  .quick-paths a + a { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .site-header { height: 72px; padding: 0 1.1rem; }
  .brand { font-size: 1.15rem; gap: .5rem; }
  .brand-subtitle { font-size: .85rem; }
  .brand-divider { margin: 0 .35rem; }
  .brand-mark { width: 30px; height: 30px; }
  .search-link { font-size: .75rem; padding: .4rem .55rem; gap: .5rem; }
  .site-shell { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 1.25rem; }
  .guide-menu > summary { display: list-item; font-size: .85rem; font-weight: 600; padding: .85rem 0; }
  .guide-menu nav { padding-top: .5rem; }
  main { padding: 2.3rem 1.25rem 3.5rem; }
  .home-heading { padding-top: 0; }
  .home-heading br { display: none; }
  .lead { font-size: 1rem; }
  .directory-grid { grid-template-columns: 1fr; gap: 2rem; }
  .directory-section > p { min-height: 0; }
  .section-heading { display: block; }
  .section-heading > span { display: block; margin-top: .5rem; }
  .prose th, .prose td { padding: .6rem .4rem; font-size: .82rem; }
}
@media print {
  .site-header, .sidebar, .page-toc, .guide-end, .site-footer, .skip-link { display: none !important; }
  .site-shell, .guide-layout { display: block; }
  main { padding: 0; }
  body { color: black; background: white; font-size: 11pt; }
  h2, h3 { break-after: avoid; }
  a { color: inherit; }
}
