/* Light only. Court blue for links and selection; highlighter yellow for
   search matches; red reserved for the "Unpublished" status. */
:root {
  --bg: #ffffff;
  --panel: #f5f6f8;
  --text: #1c2127;
  --muted: #5d6673;
  --line: #e3e6ea;
  --accent: #1f4e8c;
  --accent-soft: #edf2f9;
  --mark: #fff1a6;
  --mark-current: #ffcc4d;
  --warn: #a61b1b;             /* "Unpublished": red, the one status that limits citing */
  --warn-soft: #fdeaea;
  --statute: #1b6b5a;          /* statute citations: distinct from case links */
  --statute-soft: #e7f3ef;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Charter, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
mark.current { background: var(--mark-current); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.92em; }


/* page frame: header on top, the rest of the viewport below it */
html, body { height: 100%; }
body { display: flex; flex-direction: column; height: 100dvh; }
#main { flex: 1; min-height: 0; overflow: auto; }

/* top bar: search centred, account links pinned right */
.top {
  display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; gap: 16px; align-items: center;
  padding: 10px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.search { grid-column: 2; display: flex; }
.search input {
  flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-right: 0;
  border-radius: 6px 0 0 6px; background: var(--bg);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search button, .primary {
  padding: 8px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 0 6px 6px 0;
}
.primary { border-radius: 6px; }
.search .reset { margin-left: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--muted); }
.search .reset:hover { color: var(--text); background: var(--panel); }
.search .reset[hidden] { display: none; }
.account { grid-column: 3; justify-self: end; display: flex; gap: 14px; white-space: nowrap; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); }
.btn {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  font-size: 14px; white-space: nowrap;
}
.btn:hover { background: var(--panel); }

/* three panes, each scrolling on its own */
.three {
  --filters-col: 250px;
  display: grid; height: 100%;
  grid-template-columns: var(--filters-col) var(--results-col, minmax(340px, 1fr)) 6px minmax(0, 1.45fr);
}
.pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.filters { padding: 16px 16px 24px 20px; border-right: 1px solid var(--line); font-size: 14px; background: var(--panel); }
.results-pane { padding: 0 20px 24px; }

/* drag handle between results and reader */
.splitter { position: relative; cursor: col-resize; touch-action: none; outline: none; }
.splitter::after { content: ""; position: absolute; inset: 0 2px; background: var(--line); transition: background .12s; }
.splitter:hover::after, .splitter:focus-visible::after, body.resizing .splitter::after { background: var(--accent); inset: 0 1.5px; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing iframe, body.resizing .pane { pointer-events: none; }
.reader-pane { padding: 0 32px 40px; }
.placeholder { display: grid; place-items: center; height: 100%; font-size: 14px; }

/* filters */
.filters h3 { font-size: 13px; color: var(--text); margin: 20px 0 6px; font-weight: 600; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; gap: 8px; align-items: center; padding: 2px 0; cursor: pointer; }
.filters .count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters .years { display: flex; gap: 6px; align-items: center; }
.filters .years input { width: 70px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.decades { margin-top: 6px; }
.decade { display: flex; width: 100%; text-align: left; gap: 8px; background: none; border: 0;
  padding: 2px 0; color: var(--text); }
.decade:hover { color: var(--accent); }
.decade.on { color: var(--accent); font-weight: 600; }
.filters-toggle { display: none; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filters-head strong { font-size: 14px; }
.collapse-btn { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1;
  padding: 2px 6px; border-radius: 4px; }
.collapse-btn:hover { background: var(--line); color: var(--text); }
.rail { display: none; }
.three.fc { --filters-col: 40px;
  grid-template-columns: var(--filters-col) var(--results-col, minmax(340px, 1fr)) 6px minmax(0, 1.7fr); }
.three.fc .filters { padding: 12px 0; }
.three.fc .filters-inner { display: none; }
.three.fc .rail { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%;
  border: 0; background: none; color: var(--muted); font-size: 13px; padding: 4px 0; }
.three.fc .rail:hover { color: var(--accent); }
.rail .label { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; }
.rail .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.help { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.help summary { cursor: pointer; }
.help dl { display: grid; gap: 2px; margin: 8px 0 0; }
.help dt code { font-size: 12px; }
.help dd { margin: 0 0 6px; }

/* results */
.bar { position: sticky; top: 0; z-index: 2; display: flex; gap: 10px; align-items: center;
  padding: 12px 0 10px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.bar .grow { flex: 1; }
.bar select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 14px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); }
.result.selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.result h2 { font-size: 16px; margin: 0 0 2px; font-weight: 600; line-height: 1.35; }
.result .summary { margin: 2px 0 5px; font-size: 14px; line-height: 1.45; color: var(--text); }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.badge { font-size: 12px; font-weight: 500; color: var(--warn); background: var(--warn-soft);
  padding: 0 6px; border-radius: 3px; }
.badge.exact { color: var(--accent); background: var(--accent-soft); }
.badge.pub { color: #2e6b34; background: #e5f2e3; }
.badge.outcome { color: #34405a; background: #eceff5; cursor: help; }
.snip { margin: 6px 0 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.5; }
.snip a.para { font-family: var(--mono); font-size: 12px; margin-right: 6px; white-space: nowrap; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 20px 0; font-size: 14px; }
.pager button[disabled] { opacity: .4; cursor: default; }
.empty { padding: 40px 0; color: var(--muted); }

/* reader */
.opinion-view { max-width: 780px; margin: 0 auto; }
.reader-top { display: flex; justify-content: flex-end; padding-top: 10px; }
.close-reader { font-size: 22px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 4px; }
.close-reader:hover { background: var(--panel); text-decoration: none; }
.only-narrow { display: none; }
.opinion-view h1 { font-family: var(--serif); font-size: 26px; line-height: 1.25; font-weight: 600;
  margin: 0 0 10px; letter-spacing: -0.005em; }
.facts { margin-bottom: 14px; font-size: 13.5px; }
.facts .mono { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; position: relative; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; margin-bottom: 16px; }
.links details { flex-basis: 100%; }
.links details:not([open]) { flex-basis: auto; }
.links summary { cursor: pointer; color: var(--accent); }
.links ul { list-style: none; margin: 6px 0 0; padding: 8px 12px; max-height: 280px; overflow: auto;
  border: 1px solid var(--line); border-radius: 6px; }
.links li { padding: 2px 0; }
.find { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center;
  padding: 8px 0; margin-bottom: 20px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.find input { flex: 1; min-width: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.op-summary { margin: 18px 0 6px; padding: 12px 16px; background: var(--panel); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
  font-size: 14.5px; line-height: 1.5; }
.op-summary .label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }

/* opinion text */
.opinion { font-family: var(--serif); font-size: 17px; line-height: 1.72; color: #22272e;
  font-optical-sizing: auto; }
.p { display: grid; grid-template-columns: 48px minmax(0, 1fr); margin: 0 0 16px; scroll-margin-top: 64px; }
.p .n { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); padding-top: 6px;
  font-variant-numeric: tabular-nums; }
.p .n:hover { color: var(--accent); text-decoration: none; }
.p .t { white-space: pre-line; overflow-wrap: anywhere; }
.p .t b { font-weight: 600; }
.p:target .t, .p.flash .t { background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); border-radius: 2px; }

/* centred blocks: captions stay as set; short all-caps headings become small caps */
.p.k-c .t { text-align: center; }
.p.k-c { margin: 22px 0; }
.p.caption .t { line-height: 1.55; }
.p.case-caption .t { font-weight: 600; }
.p.hd { margin: 30px 0 14px; }
.p.hd .t { font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 600; font-size: 18px; }
.p.hd .t u { text-decoration: none; }
.p.k-q .t { margin-left: 8px; padding-left: 18px; border-left: 2px solid var(--line); font-size: 16px; color: #2d333b; }

/* tables: appearances and the like, one column per cell, in the UI face */
.trow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px;
  margin: 28px 0 28px 48px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trow .p { display: block; margin: 0; }
.trow .p .n { display: none; }
.trow .t { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--text); }
.trow .t b { font-weight: 600; }
.trow .cell-h { margin-bottom: 10px; }
.trow .cell-g + .cell-g { margin-top: 14px; }

/* footnotes */
.p.notes-head { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.p.k-f { font-size: 14.5px; line-height: 1.6; margin-bottom: 10px; color: #2d333b; }
.pg { color: var(--muted); font-family: var(--sans); font-size: 11.5px; }

.menu { position: absolute; top: 100%; z-index: 6; min-width: 240px; margin-top: 4px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 16px rgb(0 0 0 / .12); }
.menu label { display: flex; gap: 8px; padding: 4px 6px; font-size: 14px; cursor: pointer; }
.menu form { display: flex; gap: 6px; padding: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.menu input[type=text] { flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
/* account pages */
.page { max-width: 820px; margin: 0 auto; padding: 24px 20px; }
.page h1 { font-size: 22px; margin: 0 0 16px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.list li .grow { flex: 1; min-width: 0; }
.inline-form { display: flex; gap: 8px; margin: 0 0 20px; }
.inline-form input { flex: 1; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }

dialog { border: 1px solid var(--line); border-radius: 10px; padding: 24px; width: min(380px, 92vw);
  background: var(--bg); color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / .35); }
dialog h2 { margin: 0 0 16px; font-size: 18px; }
dialog label { display: block; font-size: 14px; margin-bottom: 12px; }
dialog input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
dialog .row { display: flex; gap: 16px; align-items: center; }
dialog .close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; color: var(--muted); }
.error { color: #c0392b; font-size: 14px; min-height: 1em; margin: 0 0 8px; }


/* medium: filters become a drawer over the results pane */
@media (max-width: 1240px) {
  .three, .three.fc { --filters-col: 0px; position: relative;
    grid-template-columns: var(--results-col, minmax(320px, 1fr)) 6px minmax(0, 1.5fr); }
  .filters { display: none; position: absolute; z-index: 5; inset: 0 auto 0 0; width: 260px;
    box-shadow: 4px 0 16px rgb(0 0 0 / .15); }
  .filters.open { display: block; }
  .filters-toggle { display: inline-block; }
  .three.fc .filters { padding: 16px 16px 24px 20px; }
  .three.fc .filters-inner { display: block; }
  .three.fc .rail, .collapse-btn { display: none !important; }
  .trow { margin-left: 0; }
  .reader-pane { padding: 0 24px 40px; }
}

/* narrow: one pane at a time; an open opinion covers the results */
@media (max-width: 820px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; gap: 10px; }
  .search { grid-column: 1; }
  .account { grid-column: 2; }
  .three, .three.fc { grid-template-columns: minmax(0, 1fr); }
  .splitter { display: none; }
  .results-pane { padding: 0 16px 24px; border-right: 0; }
  .reader-pane { display: none; padding: 0 16px 32px; }
  body.reading .results-pane { display: none; }
  body.reading .reader-pane { display: block; }
  .reader-top { justify-content: flex-start; }
  .close-reader { font-size: 15px; padding: 0; color: var(--accent); }
  .only-narrow { display: inline; }
  .only-wide { display: none; }
  .p { grid-template-columns: 34px minmax(0, 1fr); }
  .opinion { font-size: 16px; }
}

/* statute citations and their preview card */
a.stat { color: var(--statute); text-decoration: underline dotted; text-underline-offset: 3px;
  text-decoration-thickness: 1px; }
a.stat:hover, a.stat:focus-visible { background: var(--statute-soft); text-decoration-style: solid; }
.stat-pop { position: fixed; z-index: 20; overflow: auto; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 28px rgb(20 30 45 / .16); padding: 14px 16px 12px; font-size: 14px; }
.stat-pop[hidden] { display: none; }
.stat-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.stat-cite { font-weight: 600; color: var(--statute); }
.stat-title { font-weight: 600; line-height: 1.35; }
.stat-ver { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.stat-ver .link { font-size: 12.5px; }
.stat-body { font-family: var(--serif); font-size: 14.5px; line-height: 1.6; }
.stat-body p { margin: 0 0 8px; }
.stat-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 12.5px; }
.stat-label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; margin-top: 12px !important; }

/* case citations: opinions in the archive, in the site's link blue */
a.case { color: var(--accent); text-decoration: underline dotted; text-underline-offset: 3px;
  text-decoration-thickness: 1px; }
a.case:hover, a.case:focus-visible { background: var(--accent-soft); text-decoration-style: solid; }
.case-cite { font-weight: 600; color: var(--accent); }
.stat-where { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 4px !important; }
.stat-ver .badge { margin-left: 4px; }

/* notice at the top of an unpublished opinion */
.unpub-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 14px;
  border: 1px solid #f3c4c4; border-left: 4px solid var(--warn); border-radius: 6px;
  background: var(--warn-soft); color: #5c1111; font-size: 14px; line-height: 1.45; }
.unpub-note strong { color: var(--warn); }

.help-sub { margin: 12px 0 4px; font-weight: 600; color: var(--text); }
.help dd i { font-style: italic; }
.fuzzy-note { margin: 10px 0 4px; padding: 8px 12px; border-radius: 6px; background: var(--accent-soft);
  font-size: 14px; }

/* Print: just the opinion — title, details and text — in black on white. */
@media print {
  @page { margin: 0.8in 0.9in; }
  html, body { height: auto; display: block; background: #fff; }
  .top, .filters, .results-pane, .splitter, .actions, .links, .find, .reader-top,
  .stat-pop, .menu, dialog { display: none !important; }
  #main, .three, .reader-pane { display: block !important; overflow: visible !important; height: auto !important;
    padding: 0 !important; border: 0 !important; }
  .opinion-view { max-width: none; }
  .opinion-view h1 { font-size: 20pt; margin-bottom: 6pt; }
  .facts { font-size: 10pt; color: #000; margin-bottom: 14pt; }
  .badge { background: none !important; border: 1px solid #999; color: #000 !important; }
  .unpub-note { background: none; border: 1px solid #000; color: #000; }
  .unpub-note strong { color: #000; }
  .opinion { font-size: 11.5pt; line-height: 1.5; color: #000; }
  .p { grid-template-columns: 36pt 1fr; margin-bottom: 8pt; break-inside: auto; }
  .p .n { color: #444; }
  .p.hd, .p.case-caption { break-after: avoid; }
  mark, mark.current { background: none; color: inherit; }
  a, a.stat, a.case { color: #000 !important; text-decoration: none !important; background: none !important; }
  .trow { break-inside: avoid; margin-left: 36pt; }
  .p.notes-head { break-before: auto; }
}

/* collapsible filter groups: "Opinions" (and "Cases" later) */
.fgroup { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 8px; }
.fgroup-head { display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 8px 0; border: 0; background: none; color: var(--text); font-size: 15px; font-weight: 600; text-align: left; }
.fgroup-head:hover { color: var(--accent); }
.fgroup-head .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.fgroup-head[aria-expanded="false"] .chev { transform: rotate(-45deg); }
.fgroup-body { padding-bottom: 8px; }
.fgroup-body > h3:first-child { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .fgroup-head .chev { transition: none; } }

/* Opinions / Cases tabs above the results */
.tabs { display: flex; gap: 4px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.tab { padding: 6px 12px 8px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab-n { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.fgroup.inactive .fgroup-head { color: var(--muted); }
.fgroup.inactive .fgroup-head .chev { transform: rotate(-45deg); }
.loc-find { width: 100%; margin: 0 0 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.loc-list { max-height: 240px; overflow-y: auto; padding-right: 4px; }
.badge.open { color: #1f4e8c; background: #e8eef8; }
.badge.closedc { color: #4a5160; background: #eef0f3; }
.charges { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; }
.charges li { padding: 1px 0; }
.charges li::before { content: "·"; color: var(--muted); margin-right: 6px; }

/* case reader */
.case-body { font-family: var(--sans); font-size: 14.5px; line-height: 1.55; }
.case-body section { margin-bottom: 26px; }
.case-body .ch { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line); }
.parties { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.parties dt { color: var(--muted); }
.parties dt.inferred { font-style: italic; cursor: help; }
.parties dd { margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 2px 0; }
.ctable, .dtable { width: 100%; border-collapse: collapse; }
.ctable td, .dtable td { padding: 6px 8px 6px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.ctable .cn { width: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctable .st { width: 150px; text-align: right; white-space: nowrap; }
.ctable .usual { white-space: normal; font-size: 0.85em; color: var(--muted); cursor: help; }
.disp { margin-top: 3px; }
.dtable .dd, .events .dd { width: 104px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dtable .amt { width: 80px; text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.dcode { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
.events { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.events li { break-inside: avoid; padding: 2px 0; display: grid; grid-template-columns: 104px 1fr; column-gap: 8px; }
.events .dd { width: auto; }                  /* wrapped event text stays in its column, not under the date */
.events li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.small { font-size: 12px; }
@media (max-width: 820px) { .events { columns: 1; } .ctable .st { width: auto; } }

/* people: hover for case count, click to search their cases */
a.person { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--muted);
  text-underline-offset: 3px; }
a.person:hover, a.person:focus-visible { color: var(--accent); background: var(--accent-soft); text-decoration-style: solid; }
.person-total { font-size: 14px; margin: 2px 0 8px; }
.person-body { font-family: var(--sans); font-size: 13.5px; }
.person-body p { margin: 0 0 6px; }

.money dd b { font-weight: 600; }
.info { color: var(--muted); cursor: help; font-size: 12px; }

/* docket heading with the assessed total on the right */
.case-body .ch-split { display: flex; justify-content: space-between; align-items: baseline; }
.ch-amt { font-size: 14px; font-weight: 600; color: var(--text); cursor: help; }
/* links to filings on OSCN */
.doclink { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 12px; color: #b3261e; white-space: nowrap; }
.doclink:hover { text-decoration: none; background: #fdecea; border-radius: 3px; }
.pdfi { width: 14px; height: 14px; }
/* attorney / people flags */
.pflag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 0 5px; border-radius: 3px; margin-left: 4px; white-space: nowrap; }
.pflag.disc { color: #8a1c1c; background: #fdeaea; }
.pflag.maybe { color: #7a5200; background: #fbf0d9; }
a.pflag:hover { text-decoration: none; filter: brightness(.96); }
.pflag-line { margin: 4px 0; font-size: 13px; }
.pflag-line.disc { color: #8a1c1c; } .pflag-line.maybe { color: #7a5200; }
/* profile */
.flags li { padding: 6px 0; } .flags .fdisc b { color: #8a1c1c; } .flags .fmaybe b { color: #7a5200; }
.barrow { display: grid; grid-template-columns: 160px 1fr 60px; gap: 10px; align-items: center; padding: 3px 0; font-size: 13.5px; }
.bt { height: 8px; background: var(--panel); border-radius: 4px; overflow: hidden; }
.bf { display: block; height: 100%; background: var(--accent); opacity: .75; border-radius: 4px; }
.bn { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.recent li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.pflag.disc.back { color: #4a5160; background: #eef0f3; }
.flags b.back { color: #2e6b34 !important; }

/* ---- signed out: greyed-out screenshot of the search screen behind the sign-in box */
body.locked .top, body.locked #main { filter: grayscale(.9) blur(1px); opacity: .5; pointer-events: none; user-select: none; }
body.locked #main { overflow: hidden; }
.locked-bg { height: 100%; background: url(/static/locked-bg.webp) left top / max(100%, 1920px) auto no-repeat; }

dialog.gate { width: min(400px, calc(100vw - 32px)); padding: 28px 28px 24px; box-shadow: 0 18px 50px rgb(20 30 45 / .18); }
dialog.gate::backdrop { background: rgb(240 242 245 / .35); }
dialog.gate h2 { font-size: 20px; margin-bottom: 6px; }
dialog.gate p.small { margin: 0 0 18px; }
dialog .primary.wide { width: 100%; padding: 9px; }
dialog .error:empty { display: none; }
dialog .error { color: var(--warn); font-size: 14px; margin: 0 0 12px; }
.small { font-size: 13px; }

.flash { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 8px 16px; border-radius: 6px; font-size: 14px; z-index: 50; }

/* ---- account and admin pages */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.page.admin { max-width: 1000px; }
table.users { width: 100%; border-collapse: collapse; margin: 8px 0 32px; font-size: 14px; }
table.users th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; }
table.users td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
table.users .row-actions { white-space: nowrap; text-align: right; }
table.users .row-actions .link { margin-left: 12px; }
.new-user { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.new-user h2 { margin: 0 0 12px; font-size: 16px; }
.new-user .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.new-user label { display: block; font-size: 14px; }
.new-user input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.new-user .check { margin: 14px 0; display: flex; gap: 8px; align-items: center; }
.new-user .error { color: var(--warn); font-size: 14px; }
.new-user .error:empty { display: none; }
.notice { border: 1px solid #b9d3b0; background: #eef7ea; border-radius: 8px; padding: 12px 16px; margin: 0 0 20px; }
.notice p { margin: 4px 0; }
.temp-pw { font-size: 17px; padding: 3px 8px; background: #fff; border: 1px solid var(--line); border-radius: 4px; user-select: all; }
@media (max-width: 820px) { table.users th:nth-child(5), table.users td:nth-child(5) { display: none; } table.users .row-actions { white-space: normal; } }
.admin-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.admin-bar .sep { width: 14px; }
.chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 13px; }
.chip:hover { background: var(--panel); text-decoration: none; }
.chip.on { background: var(--accent-soft); border-color: #c5d3e8; color: var(--accent); font-weight: 500; }
table.users .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 18px; }
table.users .who { text-align: left; color: var(--text); }
table.users .who:hover b { color: var(--accent); text-decoration: underline; }
.activity-row td { background: var(--panel); }
.activity { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 4px 4px 8px; }
.activity h3 { font-size: 13px; font-weight: 600; margin: 4px 0 6px; }
.activity ul { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 3px 0; }
.activity li .small { margin-left: 6px; }
@media (max-width: 820px) { .activity { grid-template-columns: 1fr; } }
table.users .nowrap { white-space: nowrap; }

/* ---- picking cases for a PDF bundle */
.result.pickable { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; }
.result.pickable > .pick { margin: 4px 0 0; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.result.picked:not(.selected) { background: #f6f8fc; }
#pick-page { width: 15px; height: 15px; margin: 0 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.pickbar { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 14px; align-items: center; margin: 12px -20px -24px;
  padding: 10px 20px; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgb(20 30 45 / .06); font-size: 14px; }
.pickbar .grow { flex: 1; }
.pickbar .primary { padding: 6px 14px; }
@media print { .pick, #pick-page, .pickbar, .op-summary { display: none !important; } }
