:root {
  --bg: #fbfaf7; --fg: #1d1f21; --muted: #5b6066; --line: #e2ded6; --accent: #1f4e79; --accent-bg: #eaf1f8;
  --warn-bg: #fff4e0; --warn-fg: #6b4300; --banner-bg: #8a1c1c; --banner-fg: #fff;
  --read: Georgia, "Noto Serif", "Times New Roman", serif; --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171a; --fg: #e7e5e1; --muted: #a3a8ae; --line: #2c3036; --accent: #8cb8e6; --accent-bg: #1c2833;
    --warn-bg: #3a2a10; --warn-fg: #f3d7a6; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--read); }
a { color: var(--accent); text-underline-offset: 2px; }
.preview-banner { background: var(--banner-bg); color: var(--banner-fg); font: 600 14px/1.4 var(--ui); padding: 8px 16px; text-align: center; }
.site-header, .site-footer, main { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-family: var(--ui); }
.brand { font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.site-header nav a { margin-left: 14px; font-size: 15px; }
.site-header nav a:first-child { margin-left: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font: 14px/1.4 var(--ui); color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 18rem; }
h1 { font-size: 1.65rem; line-height: 1.25; margin: 18px 0 14px; overflow-wrap: anywhere; }
h2 { font: 700 1.05rem/1.3 var(--ui); margin: 32px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
h3 { font: 700 1rem/1.35 var(--ui); margin: 24px 0 8px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 16px; font: 15px/1.45 var(--ui); border: 1px solid var(--line); border-radius: 8px; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.hint, .meta, .status, .tag, .equiv { color: var(--muted); font: 14px/1.4 var(--ui); }
.labels { list-style: none; padding: 10px 12px; margin: 0 0 16px; background: var(--accent-bg); border-radius: 8px; font: 14px/1.5 var(--ui); }
.labels li + li { margin-top: 4px; }
.warn { background: var(--warn-bg); color: var(--warn-fg); padding: 10px 12px; border-radius: 8px; font: 14px/1.5 var(--ui); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--ui); }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.court-text p { margin: 0 0 1em; text-align: left; }
.byline { font: 600 15px/1.4 var(--ui); color: var(--muted); }
.court-text h3 { margin-top: 28px; }
blockquote { margin: 0 0 1em; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); color: var(--fg); }
blockquote p { margin: 0; }
sup { line-height: 0; font: 600 12px var(--ui); }
sup a { text-decoration: none; padding: 0 2px; }
.footnotes ol { padding-left: 1.6em; font-size: 15px; }
.source p, .pair, .code, .coverage { font-size: 16px; }
.list { padding-left: 1.1em; }
.list li { margin: 0 0 10px; }
.list .meta { display: block; }
.site-footer { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font: 14px/1.5 var(--ui); }
@media (max-width: 30rem) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.4rem; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
}
@media print {
  .site-header nav, .crumbs, .preview-banner, .site-footer a { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
}
