:root {
  --ink: #1d2b26;
  --muted: #58665e;
  --green: #174c3d;
  --paper: #fffefa;
  --line: #dce1d8;
  --soft: #f0f3ed;
  --gold: #a27a30;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; background: #fff; padding: 12px; z-index: 20; }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: #fff; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 13px; line-height: 1.35; }
.wordmark strong { display: block; font-size: 15px; font-weight: 650; }
.mark { display: grid; place-content: center; width: 40px; height: 40px; background: var(--green); color: #fff; font: 18px var(--serif); border-radius: 2px; }
.draft-label { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 20px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; font-size: 14px; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* layout */
.layout { max-width: 880px; margin: 0 auto; padding: 32px 24px 64px; }
.layout.wide { max-width: 1400px; }
.layout.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; max-width: 1180px; }
.layout.with-toc.wide { max-width: 1500px; }
.toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; font-size: 13px; line-height: 1.4; padding-right: 8px; }
.toc-title { font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin: 4px 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 7px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .layout.with-toc { display: block; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); background: var(--soft); padding: 12px 16px; margin-bottom: 24px; }
  .site-header { padding: 14px 18px; }
  .draft-label { border-left: 0; padding-left: 0; width: 100%; }
  .site-nav { margin-left: 0; width: 100%; }
}

/* document */
.doc { min-width: 0; }
.doc h1 { font: 600 30px/1.2 var(--serif); margin: 0 0 16px; color: var(--green); }
.doc h2 { font: 600 22px/1.25 var(--serif); margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc h4 { font-size: 15px; margin: 20px 0 6px; }
.doc h2 .header-anchor, .doc h3 .header-anchor { margin-left: 8px; color: var(--line); text-decoration: none; font-size: .8em; }
.doc h2:hover .header-anchor, .doc h3:hover .header-anchor { color: var(--muted); }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 3px 0; }
.doc code { font: 13px var(--mono); background: var(--soft); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.doc a code { color: var(--green); }
.doc blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.lede { font-size: 19px; line-height: 1.5; }
.note { color: var(--muted); font-size: 14px; }
:target { scroll-margin-top: 16px; }
tr:target, tr:target td { background: #fbf3df !important; }

/* tables */
.table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--line); background: #fff; }
.doc table { border-collapse: collapse; font-size: 13.5px; line-height: 1.4; min-width: 100%; }
.doc th, .doc td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: var(--soft); font-weight: 650; position: sticky; top: 0; }
.doc tbody tr:nth-child(even) td { background: #fafbf8; }
.doc td:first-child, .doc th:first-child { position: sticky; left: 0; background: inherit; }
.doc th:first-child { background: var(--soft); z-index: 1; }
.doc tbody td:first-child { background: #fff; }
.doc tbody tr:nth-child(even) td:first-child { background: #fafbf8; }
.layout.wide .doc td { overflow-wrap: normal; }
.layout.wide .doc td:last-child { min-width: 260px; }

/* home and lists */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 28px 0; }
.card { display: block; padding: 16px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--green); }
.card strong { display: block; color: var(--green); margin-bottom: 6px; font-size: 16px; }
.card span { font-size: 14px; color: var(--muted); }
.jurisdictions { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 18px; list-style: none; padding: 0 !important; }
.jurisdictions a { display: block; padding: 8px 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.jurisdictions a:hover { border-color: var(--green); }
.button { display: inline-block; padding: 9px 16px; background: var(--green); color: #fff; text-decoration: none; border-radius: 3px; }
.button:hover { background: #0f3a2e; }

.site-footer { border-top: 1px solid var(--line); padding: 18px 32px 28px; font-size: 13px; color: var(--muted); }

@media print {
  .site-header .site-nav, .toc, .skip-link { display: none; }
  .layout.with-toc { display: block; }
  .table-wrap { overflow: visible; border: 0; }
  .doc th { position: static; }
}
