/* Layout: a court-docket index. Slim masthead + nav, then the page. Search page: filter rail left, entries right. */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #16202e;
  --muted: #5a6474;
  --rule: #d9dde4;
  --accent: #8a5a12;
  --accent-soft: #f4ead9;
  --focus: #2b5fb4;
  --st-reported: #8a5d00;  --st-reported-bg: #fbf1d6;
  --st-pending: #a8441b;   --st-pending-bg: #fbe7dd;
  --st-finding: #a3222c;   --st-finding-bg: #f9e0e2;
  --st-resolved: #4d5868;  --st-resolved-bg: #e8ebef;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161e; --surface: #19202b; --ink: #e6e9ee; --muted: #9aa4b3; --rule: #2c3543;
    --accent: #d9a24a; --accent-soft: #2e2617; --focus: #7aa7f0;
    --st-reported: #e8c261; --st-reported-bg: #34290f;
    --st-pending: #f0936a;  --st-pending-bg: #3a2016;
    --st-finding: #f08a92;  --st-finding-bg: #3a1a1f;
    --st-resolved: #b3bcc9; --st-resolved-bg: #262e3a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead and nav */
.mast { background: var(--surface); border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 16px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }

/* Page intro */
.intro { padding-block: 32px 8px; max-width: 72ch; }
.intro h1 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
.intro p { margin: 0; color: var(--muted); font-size: 16px; }

/* Prose pages */
.prose { max-width: 70ch; padding-block: 32px 56px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); line-height: 1.2; margin: 0 0 12px; }
.prose h2 { font-family: var(--font-display); font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose li { font-size: 16px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; display: grid; gap: 6px; }
.prose .lead { font-size: 18px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--accent-soft); border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.email { font-family: var(--font-mono); font-size: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; display: inline-block; user-select: all; }

/* Footer */
.foot { border-top: 1px solid var(--rule); margin-top: 48px; }
.foot .wrap { padding-block: 20px 32px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Search app */
#app { padding-block: 16px 0; }
.app-top { display: grid; gap: 10px; margin-bottom: 24px; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar input { flex: 1 1 300px; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); }
.searchbar input::placeholder { color: var(--muted); }
.tabs { display: flex; gap: 4px; }
.tabs button { font: inherit; font-size: 14px; font-weight: 500; padding: 10px 14px; border: 1px solid var(--rule); background: var(--surface); color: var(--muted); border-radius: 8px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.stats { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.main { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; }
@media (max-width: 820px) { .main { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.rail { display: grid; gap: 22px; align-content: start; }
.label { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.chip span { color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; margin-left: 4px; }
.rail select { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.linkbtn { font: inherit; font-size: 13px; background: none; border: none; color: var(--accent); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; justify-self: start; }
.legend { font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.legend div { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.list { display: grid; gap: 14px; min-width: 0; }
.entry { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; display: grid; gap: 8px; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.st-reported { color: var(--st-reported); background: var(--st-reported-bg); }
.st-pending { color: var(--st-pending); background: var(--st-pending-bg); }
.st-finding { color: var(--st-finding); background: var(--st-finding-bg); }
.st-resolved { color: var(--st-resolved); background: var(--st-resolved-bg); }
.entry h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0; text-wrap: balance; }
.who { font-size: 14px; color: var(--muted); }
.who button, .dir button { font: inherit; font-weight: 600; color: var(--ink); background: none; border: none; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.who button:hover, .dir button:hover { text-decoration-color: var(--accent); }
.entry p { margin: 0; max-width: 68ch; }
.src { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.src b { font-weight: 600; }
.empty { background: var(--surface); border: 1px dashed var(--rule); border-radius: 10px; padding: 28px; color: var(--muted); text-align: center; }
.profile { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; display: grid; gap: 12px; }
.profile h2 { font-family: var(--font-display); font-size: 28px; margin: 0; line-height: 1.2; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0; }
.facts dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.section-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 8px 0 -4px; }
.dir { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow-x: auto; }
.dir table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 540px; }
.dir th, .dir td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.dir th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dir tr:last-child td { border-bottom: none; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .entry { transition: border-color .15s; } .entry:hover { border-color: var(--muted); } }
