/* Docket site, Digital Defenders Group edition. No external fonts or assets. */
:root {
  --brand: #8038b4;          /* the purple of the DDG logo */
  --brand-deep: #5b2391;
  --brand-bright: #ba3ce4;
  --ink-950: #150a24;
  --ink-900: #1f0f36;
  --bg: #f7f5fa;
  --surface: #ffffff;
  --soft: #f0ebf6;
  --ink: #1a1424;
  --muted: #655d72;
  --line: #e4dcee;
  --line-strong: #cbbfdc;
  --accent: #6f2ca6;
  --accent-soft: #f1e8fa;
  --accent-ink: #ffffff;
  --mark: #ffe48f;
  --warn-bg: #fff6dc;
  --warn-line: #ecd58f;
  --shadow: 0 1px 2px rgba(31, 15, 54, 0.06), 0 8px 24px rgba(31, 15, 54, 0.08);
  --shadow-lg: 0 2px 6px rgba(31, 15, 54, 0.08), 0 24px 60px rgba(31, 15, 54, 0.18);
  --display: Montserrat, "Avenir Next", Avenir, "Century Gothic", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 70rem;
  --logo-filter: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110a1b; --surface: #1b1229; --soft: #221733; --ink: #efe9f6; --muted: #a99fb9;
    --line: #2e2240; --line-strong: #453660; --accent: #c592ff; --accent-soft: #2b1c42;
    --accent-ink: #160b25; --mark: #6a5810; --warn-bg: #2b2413; --warn-line: #5b4d1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
    --logo-filter: brightness(1.75) saturate(0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110a1b; --surface: #1b1229; --soft: #221733; --ink: #efe9f6; --muted: #a99fb9;
  --line: #2e2240; --line-strong: #453660; --accent: #c592ff; --accent-soft: #2b1c42;
  --accent-ink: #160b25; --mark: #6a5810; --warn-bg: #2b2413; --warn-line: #5b4d1c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
  --logo-filter: brightness(1.75) saturate(0.9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.18; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); }
code { font-size: 0.9em; background: var(--soft); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
mark { background: var(--mark); color: inherit; padding: 0 0.1em; border-radius: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 0.5rem 1rem; z-index: 30; }
.skip:focus { left: 0; }
.eyebrow { font: 700 0.74rem/1.4 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem; }
.note { color: var(--muted); font-size: 0.92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright) 45%, transparent 85%); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-logo { width: 3.4rem; height: auto; flex: none; filter: var(--logo-filter); transition: transform 0.25s ease; }
.brand:hover .brand-logo { transform: scale(1.06) rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-org { font: 800 0.86rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.brand-sub { font: 500 0.76rem var(--mono); color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 0.2rem; }
.nav a { color: var(--muted); text-decoration: none; font: 600 0.9rem var(--display); padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav a:hover { color: var(--accent); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.theme-toggle { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; flex: none; transition: border-color 0.15s, transform 0.15s; }
.theme-toggle:hover { border-color: var(--brand); transform: rotate(20deg); }
.theme-toggle span { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4rem 0 5.5rem; color: #fff;
  background: radial-gradient(60rem 30rem at 85% -10%, rgba(186, 60, 228, 0.42), transparent 60%),
              linear-gradient(135deg, var(--ink-950) 0%, #2c1250 48%, #57218f 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: url(circuit.svg) right -4rem top -3rem / 34rem repeat-y; opacity: 0.1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.hero .wrap { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 0.72rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #ecdcff; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 0.4rem 0.9rem 0.4rem 0.5rem; margin: 0 0 1.6rem; }
.hero-badge img { width: 1.5rem; height: auto; filter: brightness(0) invert(1); }
.hero .eyebrow { color: #d9bcff; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.025em; max-width: 19ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.case-meta span { font-size: 0.92rem; color: #f1e6ff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 0.32rem 0.85rem; }
.case-meta span:first-child { font-family: var(--mono); font-size: 0.86rem; background: #fff; color: var(--brand-deep); border-color: #fff; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: 2.4rem 0 0; }
.stats div { padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); transition: transform 0.2s ease, background 0.2s ease; }
.stats div:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.13); }
.stats dt { font: 700 0.68rem var(--display); letter-spacing: 0.13em; text-transform: uppercase; color: #cdb2ee; }
.stats dd { margin: 0.25rem 0 0; font: 800 1.9rem/1.1 var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.stats dd.dates { font: 500 0.88rem/1.45 var(--mono); letter-spacing: 0; padding-top: 0.3rem; }

/* Search card, lifted over the hero */
.finder { position: relative; z-index: 2; margin-top: -3.2rem; }
.finder > .wrap { max-width: calc(var(--wrap) - 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem 1.1rem; }
.search label { display: block; font: 700 0.95rem var(--display); margin-bottom: 0.6rem; }
.search-row { display: flex; gap: 0.6rem; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field svg { position: absolute; left: 1rem; top: 50%; width: 1.2rem; height: 1.2rem; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 0.9rem 1rem 0.9rem 2.9rem; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-bright) 22%, transparent); }
.search button, .btn { font: 700 0.9rem var(--display); padding: 0.68rem 1.15rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; white-space: nowrap; transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s, background 0.15s; }
.search button, .btn.primary { background: linear-gradient(135deg, var(--brand-deep), var(--brand) 60%, var(--brand-bright) 140%); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(111, 44, 166, 0.32); }
.btn:hover, .search button:hover { transform: translateY(-1px); border-color: var(--brand); }
.btn.primary:hover, .search button:hover { box-shadow: 0 10px 22px rgba(111, 44, 166, 0.42); }
.btn:active, .search button:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; margin: 1rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font: 600 0.85rem var(--display); padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.chip:hover { border-color: var(--brand); color: var(--accent); }
.chip span { font-variant-numeric: tabular-nums; opacity: 0.75; margin-left: 0.25rem; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.status { min-height: 1.4rem; margin: 0.8rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Full-text hits */
.hits { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.hits h2 { font-size: 1.15rem; margin: 0 0 0.8rem; }
.hit { border: 1px solid var(--line); background: var(--surface); border-radius: 6px 16px 16px 6px; padding: 1rem 1.2rem; margin: 0 0 0.7rem; box-shadow: var(--shadow); border-left: 4px solid var(--brand); }
.hit h3 { font: 700 1rem/1.35 var(--display); }
.hit h3 a { text-decoration: none; }
.hit h3 a:hover { text-decoration: underline; }
.hit .meta { font-size: 0.83rem; color: var(--muted); margin: 0.15rem 0 0.5rem; }
.hit ul { list-style: none; margin: 0; padding: 0; }
.hit li { font-size: 0.93rem; padding: 0.35rem 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: minmax(4.8rem, max-content) 1fr; gap: 0.8rem; }
.hit li a { font: 600 0.82rem var(--mono); white-space: nowrap; }
.more-hits { margin-top: 0.4rem; }

/* Docket list */
.docket { padding-top: 1rem; padding-bottom: 4.5rem; }
.docket.rev, .docket.rev .entries { display: flex; flex-direction: column-reverse; }
.docket.rev #empty { order: -1; }
.month h2 { display: flex; align-items: center; gap: 0.7rem; font: 800 0.8rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); padding: 1.7rem 0 0.7rem; position: sticky; top: 4.25rem; background: linear-gradient(var(--bg) 82%, transparent); z-index: 2; }
.month h2::before { content: ""; width: 1.6rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright)); }
.month h2::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 6.4rem 3.6rem minmax(0, 1fr); gap: 0 1rem; padding: 1rem 0.9rem; margin: 0 -0.9rem; border-radius: 14px; border-bottom: 1px solid var(--line); transition: background 0.15s ease, box-shadow 0.15s ease; }
.entry:hover { background: var(--surface); box-shadow: var(--shadow); border-bottom-color: transparent; }
.entry .when { font: 500 0.84rem/2.1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.entry .ecf { display: inline-grid; place-items: center; min-width: 2.7rem; height: 2.3rem; padding: 0 0.45rem; font: 800 1.02rem var(--display); font-variant-numeric: tabular-nums lining-nums; text-decoration: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; transition: all 0.15s; }
.entry a.ecf:hover, .entry:hover a.ecf { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.entry .ecf.none { background: none; color: var(--line-strong); font-size: 1.4rem; }
.entry h3 { font-size: 1.04rem; font-weight: 700; padding-top: 0.25rem; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--accent); }
.docket-text { font-size: 0.91rem; line-height: 1.55; color: var(--muted); margin: 0.3rem 0 0; overflow-wrap: anywhere; }
.entry .docket-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.more { font: 600 0.8rem var(--display); color: var(--accent); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; }
.entry .docs { font-size: 0.84rem; margin: 0.45rem 0 0; color: var(--muted); }
.entry .docs a { font-weight: 600; }
.entry[data-type="minute_order"] h3, .entry[data-type="case_event"] h3 { font: 700 0.78rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.55rem; }
.empty { padding: 2rem 0; color: var(--muted); }

/* Document page */
.doc { padding-top: 1.5rem; padding-bottom: 4.5rem; }
.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.doc-head { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 2rem 2rem 1.8rem; box-shadow: var(--shadow-lg);
  background: radial-gradient(40rem 20rem at 95% -20%, rgba(186, 60, 228, 0.45), transparent 60%), linear-gradient(135deg, var(--ink-950), #2c1250 55%, #57218f); }
.doc-head::before { content: ""; position: absolute; inset: 0; background: url(circuit.svg) right -6rem top -8rem / 30rem no-repeat; opacity: 0.1; pointer-events: none; }
.doc-head > * { position: relative; }
.doc-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; max-width: 30ch; }
.doc-head .eyebrow { font: 600 0.86rem var(--mono); letter-spacing: 0.02em; text-transform: none; color: #d9bcff; }
.parent { margin: 0.7rem 0 0; color: #e3d2f7; }
.parent a { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.4rem 0 0; }
.doc-head .btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; box-shadow: none; }
.doc-head .btn:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.doc-head .btn.primary { background: #fff; color: var(--brand-deep); border-color: #fff; }
.record { margin: 1.5rem 0 0; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface); border-radius: 6px 16px 16px 6px; box-shadow: var(--shadow); }
.record h2, .in-entry h2 { font: 800 0.76rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.55rem; }
.record h2 .muted { text-transform: none; letter-spacing: 0; font: 400 0.84rem var(--sans); margin-left: 0.5rem; }
.record .docket-text { color: var(--ink); font-size: 0.97rem; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0 1.5rem; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font: 700 0.68rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-size: 0.95rem; font-weight: 600; }
.facts code { background: none; padding: 0; font-size: 0.8rem; font-weight: 400; }
.in-entry { margin: 2rem 0; overflow-x: auto; }
.doclist, .plain { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doclist th, .doclist td, .plain th, .plain td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doclist thead th, .plain thead th { font: 700 0.7rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line-strong); }
.doclist tbody th { font: 700 0.88rem var(--mono); white-space: nowrap; padding-left: 0.7rem; }
.doclist thead th:first-child { padding-left: 0.7rem; }
.doclist tbody tr { transition: background 0.12s; }
.doclist tbody tr:hover { background: var(--soft); }
.doclist .n, .plain .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doclist .acts { white-space: nowrap; text-align: right; padding-right: 0.7rem; }
.doclist .acts a { margin-left: 0.7rem; font-size: 0.84rem; font-weight: 600; }
.doclist tr.here { background: var(--accent-soft); }
.doclist tr.here th { box-shadow: inset 4px 0 0 var(--brand); }
.doclist tr.off { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.tabs { display: inline-flex; gap: 0.25rem; margin-top: 2rem; padding: 0.3rem; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.tabs button { font: 700 0.9rem var(--display); padding: 0.55rem 1.2rem; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.tabs button:hover { color: var(--accent); }
.tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); box-shadow: 0 4px 12px rgba(111, 44, 166, 0.3); }
.panel { padding-top: 1rem; }
.pdf { width: 100%; height: min(88vh, 70rem); border: 1px solid var(--line-strong); border-radius: 16px; background: var(--soft); display: block; box-shadow: var(--shadow); }
.pg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.4rem 1.2rem; margin: 0 0 0.9rem; }
.pg h3 { font: 800 0.72rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.pg h3 a { color: var(--muted); text-decoration: none; }
.pg h3 a:hover { color: var(--accent); }
.pg .pdf-jump { margin-left: auto; text-transform: none; letter-spacing: 0; font: 600 0.82rem var(--sans); color: var(--accent); }
.pg:target { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-bright) 25%, transparent); }
.badge { font: 700 0.64rem var(--display); letter-spacing: 0.08em; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.page-text { font: 400 1rem/1.7 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; max-width: 46rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pager a { text-decoration: none; font: 700 0.95rem var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1.1rem; min-width: 9rem; transition: all 0.15s; }
.pager a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.pager a span { display: block; font: 700 0.66rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.pager a[rel="next"] { text-align: right; margin-left: auto; }

/* Prose pages */
.prose { padding-top: 3rem; padding-bottom: 4.5rem; max-width: 52rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.prose h1::after { content: ""; display: block; width: 4.5rem; height: 5px; border-radius: 3px; margin-top: 1rem; background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright)); }
.prose h2 { font-size: 1.3rem; margin: 2.5rem 0 0.8rem; }
.prose h2 .h-note { font: 400 0.9rem var(--sans); letter-spacing: 0; margin-left: 0.4rem; }
.prose .lede { font-size: 1.12rem; line-height: 1.6; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.7rem; }
.prose li::marker { color: var(--brand); }
.prose .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0.3rem 1.1rem; box-shadow: var(--shadow); }
.prose .table-wrap tr:last-child th, .prose .table-wrap tr:last-child td { border-bottom: 0; }
.plain tbody th { font-weight: 600; white-space: nowrap; padding-right: 1.25rem; }
.code { background: var(--ink-950); color: #eadcff; border-radius: 14px; padding: 1rem 1.15rem; overflow-x: auto; font-size: 0.84rem; line-height: 1.55; }
textarea.code { width: 100%; border: 0; }
.callout { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 14px; padding: 0.95rem 1.15rem; margin: 1.2rem 0 1.6rem; }
.callout p { margin: 0; font-size: 0.95rem; }

/* Ask page */
.ask-form label, .key-row label { display: block; font: 700 0.92rem var(--display); margin-bottom: 0.4rem; }
.ask-form textarea, .key-row input[type="password"], .key-row select { width: 100%; font: inherit; padding: 0.8rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.ask-form textarea:focus, .key-row input:focus, .key-row select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-bright) 22%, transparent); }
.ask-form textarea { resize: vertical; }
.ask-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.7rem; }
.ask-row .status { margin: 0; }
.key-box { border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem 1.15rem; margin: 1.4rem 0; background: var(--surface); }
.key-box summary { cursor: pointer; font: 700 0.95rem var(--display); }
.key-box summary .muted { font: 400 0.88rem var(--sans); margin-left: 0.5rem; }
.key-box p { font-size: 0.92rem; margin: 0.8rem 0; }
.key-row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; margin: 0.8rem 0; }
.key-row > label:first-child { flex-basis: 100%; margin: 0; }
.key-row input[type="password"], .key-row select { flex: 1 1 16rem; width: auto; }
.key-row .check { font: 400 0.92rem var(--sans); display: flex; align-items: center; gap: 0.4rem; margin: 0; padding-bottom: 0.7rem; }
.answer { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 6px 16px 16px 6px; background: var(--surface); padding: 1.15rem 1.3rem; margin: 1.2rem 0; box-shadow: var(--shadow); }
.answer .q { font: 700 1.05rem/1.4 var(--display); margin-bottom: 0.7rem; }
.answer .a p, .answer .a li { font-size: 0.98rem; }
.answer .a ul, .answer .a ol { padding-left: 1.3rem; }
.answer .a a.cite { font: 600 0.8rem var(--mono); white-space: nowrap; background: var(--accent-soft); padding: 0.1rem 0.45rem; border-radius: 999px; text-decoration: none; }
.answer .src { font-size: 0.83rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.8rem; }
.answer .src a { font-family: var(--mono); margin-right: 0.5rem; white-space: nowrap; }
.answer .tag { font: 700 0.68rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.answer.err { border-color: var(--warn-line); background: var(--warn-bg); }
.handoff { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0; }

/* Footer */
.site-footer { position: relative; overflow: hidden; color: #d9cdea; font-size: 0.88rem; padding: 3.5rem 0 2.5rem;
  background: radial-gradient(50rem 24rem at 10% 120%, rgba(186, 60, 228, 0.28), transparent 60%), linear-gradient(160deg, var(--ink-950), #24103f); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url(circuit.svg) right -5rem bottom -10rem / 32rem no-repeat; opacity: 0.08; pointer-events: none; }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright), var(--brand-deep)); }
.foot { position: relative; display: grid; grid-template-columns: minmax(14rem, 20rem) 1fr; gap: 3rem; align-items: start; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.foot-logo { width: 9.5rem; height: auto; filter: brightness(1.75) saturate(0.9) drop-shadow(0 6px 22px rgba(186, 60, 228, 0.35)); transition: transform 0.3s ease; }
.foot-brand a:hover .foot-logo { transform: scale(1.04); }
.foot-org { font: 800 0.95rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0.6rem 0 0; }
.foot-brand p { margin: 0; }
.site-footer p { margin: 0 0 0.7rem; max-width: 46rem; }
.site-footer a { color: #e6c9ff; }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1.2rem !important; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 3rem; }
  .site-header { position: static; }
  .bar { flex-wrap: wrap; gap: 0.2rem 0.8rem; padding-top: 0.55rem; padding-bottom: 0.5rem; min-height: 0; }
  .brand { flex: 1 1 0; }
  .brand-logo { width: 2.7rem; }
  .brand-text { overflow: hidden; }
  .brand-org { font-size: 0.74rem; letter-spacing: 0.07em; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; }
  .nav a { padding: 0.4rem 0.75rem; font-size: 0.86rem; }
  .hero { padding: 2.5rem 0 4.8rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .stats div:last-child { grid-column: 1 / -1; }
  .stats dd { font-size: 1.6rem; }
  .finder > .wrap { margin: 0 0.8rem; padding: 1.1rem 1rem 0.9rem; border-radius: 18px; }
  .search-row { flex-direction: column; }
  .entry { grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; padding: 0.9rem 0.6rem; margin: 0 -0.6rem; }
  .entry .when { order: 2; align-self: center; }
  .entry .num { order: 1; }
  .entry .what { order: 3; grid-column: 1 / -1; }
  .entry .ecf.none { display: none; }
  .month h2 { top: 0; }
  .doc-head { padding: 1.4rem 1.2rem 1.3rem; border-radius: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doclist .acts a { display: block; margin: 0 0 0.25rem; }
  .pg { padding: 0.9rem 1rem 1rem; }
  .pdf { height: 75vh; }
  .hit li { grid-template-columns: 1fr; gap: 0; }
  .foot { grid-template-columns: 1fr; gap: 2rem; }
  .pager a { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .site-header, .finder, .site-footer, .tabs, #panel-pdf, .actions, .pager { display: none; }
  #panel-text { display: block !important; }
  .doc-head { color: #000; background: none; box-shadow: none; }
}

/* Case overview: parties, lawyers, court */
.block { padding-top: 3.2rem; }
.doc .block { padding-top: 2.4rem; }
.block-head { margin-bottom: 1.3rem; max-width: 48rem; }
.block-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }
.block-head .eyebrow { margin-bottom: 0.5rem; }
.block-head .note { margin: 0.7rem 0 0; }
.party-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr)); gap: 1rem; }
.party { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.35rem 1.4rem 1.2rem; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s; }
.party::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright)); }
.party:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.party.court { background: linear-gradient(150deg, var(--ink-950), #2c1250 70%, #4a1b7c); color: #fff; border-color: transparent; }
.party .role { font: 800 0.68rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0.2rem 0 0.45rem; }
.party.court .role { color: #d9bcff; }
.party h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.015em; }
.party h3 a { color: inherit; text-decoration: none; }
.party h3 a::after { content: ""; position: absolute; inset: 0; }
.party-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; align-items: end; gap: 0 1.2rem; margin: 1rem 0 0; }
.party-facts dt { font: 700 0.62rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.party.court .party-facts dt { color: #cdb2ee; }
.party-facts dd { margin: 0.1rem 0 0; font: 600 0.84rem var(--mono); white-space: nowrap; }
.party-facts div:first-child dd { font: 800 1.5rem/1.1 var(--display); letter-spacing: -0.02em; }
.kinds { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.95rem 0 0; }
.kinds span { font-size: 0.78rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0.18rem 0.6rem; white-space: nowrap; }
.kinds b { font-weight: 800; }
.party.court .kinds span, .kinds.on-dark span { background: rgba(255, 255, 255, 0.12); color: #f1e6ff; }
.key-filings { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin: 0.8rem 0 0; font: 600 0.84rem var(--sans); }
.counsel { margin: 0.9rem 0 0; font-size: 0.9rem; line-height: 1.5; }
.counsel > span:first-child { display: block; font: 700 0.62rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.party.court .counsel > span:first-child { color: #cdb2ee; }
.more-link { margin-top: auto; padding-top: 1.1rem; font: 700 0.86rem var(--display); text-decoration: none; }
.party.court .more-link { color: #fff; }
.more-link span { display: inline-block; transition: transform 0.15s ease; }
.party:hover .more-link span { transform: translateX(4px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0.3rem 1.2rem; box-shadow: var(--shadow); }
.card tr:last-child th, .card tr:last-child td { border-bottom: 0; }
.lawyers tbody th { white-space: nowrap; font-weight: 700; }
.lawyers td { font-size: 0.9rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; padding-bottom: 4.5rem; }
.page-head { padding-top: 2.6rem; padding-bottom: 1.4rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.page-head .lede { font-size: 1.05rem; color: var(--muted); max-width: 46rem; margin: 0; }
.finder.flat { margin-top: 0; }
.top-note { margin: 1.2rem 0 0; }
.plainlist { padding: 0; }
.plainlist .month h2 { position: static; background: none; }
.doc-head .kinds { margin-top: 1.1rem; }
@media (max-width: 760px) {
  .party-grid { grid-template-columns: 1fr; }
  .lawyers tbody th { white-space: normal; }
  .card { padding: 0.2rem 0.9rem; }
}
.card-note { position: relative; z-index: 1; font-size: 0.82rem; margin: 0.8rem 0 0; }
.hero-sub { font-size: 1.08rem; line-height: 1.55; color: #e3d2f7; max-width: 44rem; margin: 1.1rem 0 0; }

/* Header: brand, search and theme button on top; the menu on its own row beneath */
.site-header .bar { min-height: 4rem; }
.head-search { position: relative; display: flex; flex: 0 1 26rem; margin-left: auto; }
.head-search svg { position: absolute; left: 0.9rem; top: 50%; width: 1.05rem; height: 1.05rem; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.head-search input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; padding: 0.55rem 0.9rem 0.55rem 2.5rem; border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--bg); color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.head-search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.head-search button { font: 700 0.86rem var(--display); padding: 0 1rem; border: 0; border-radius: 0 999px 999px 0; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.head-search button:hover { filter: brightness(1.1); }
.navbar { border-top: 1px solid var(--line); }
.navbar .nav { padding: 0.35rem 0; margin: 0 -0.5rem; overflow-x: auto; }
.month h2 { top: 6.75rem; }
html { scroll-padding-top: 8.2rem; }
@media (max-width: 760px) {
  html { scroll-padding-top: 3rem; }
  .head-search { order: 3; flex: 1 1 100%; margin: 0.35rem 0 0.2rem; }
  .navbar .nav { margin: 0 -0.4rem; padding: 0.3rem 0; }
  .month h2 { top: 0; }
}

/* Live search results, under whichever search box is being typed in */
.live { position: absolute; z-index: 40; top: calc(100% + 0.5rem); right: 0; width: min(40rem, calc(100vw - 2rem)); max-height: min(72vh, 40rem); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 0.5rem; text-align: left; }
.search { position: relative; }
.search .live { left: 0; right: 0; width: auto; top: calc(100% + 0.6rem); }
.live-count { font: 700 0.72rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 0.5rem 0.8rem 0.3rem; }
.live-group h4 { font: 800 0.66rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0; padding: 0.7rem 0.8rem 0.25rem; }
.live-item { display: block; padding: 0.5rem 0.8rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.live-item:hover, .live-item:focus { background: var(--accent-soft); outline: none; }
.live-item b { display: block; font: 700 0.92rem/1.35 var(--display); }
.live-item span { display: block; font-size: 0.82rem; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.live-item.go b { color: var(--accent); }
.live-note { margin: 0; padding: 0.7rem 0.8rem; font-size: 0.88rem; color: var(--muted); }
.live-all { display: block; margin: 0.4rem 0.3rem 0.3rem; padding: 0.6rem 0.8rem; border-radius: 12px; text-align: center; font: 700 0.88rem var(--display); text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.live-all:hover { filter: brightness(1.1); }
@media (max-width: 760px) { .live { left: 0; right: 0; width: auto; } }

/* Timelines */
:root { --k-pleading: #4a1b7c; --k-motion: #c026d3; --k-response: #2563eb; --k-routine: #b6abc6; --k-court: #d97706; }
:root[data-theme="dark"] { --k-pleading: #b98cff; --k-motion: #f07cf5; --k-response: #7fb0ff; --k-routine: #655a78; --k-court: #f5b041; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-pleading: #b98cff; --k-motion: #f07cf5; --k-response: #7fb0ff; --k-routine: #655a78; --k-court: #f5b041; } }
.timeline { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1rem 1rem 0.9rem; }
.tl-scroll { overflow-x: auto; }
.timeline svg { display: block; width: 100%; min-width: 46rem; height: auto; }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-grid.yr { stroke: var(--line-strong); stroke-width: 1.5; }
.tl-axis { fill: var(--muted); font: 600 10.5px var(--sans); }
.tl-axis.yr { fill: var(--ink); font-weight: 800; }
.tl-track { stroke: var(--line-strong); stroke-width: 1.5; }
.tl-lane { fill: var(--ink); font: 700 12px var(--display); }
.timeline.compact .tl-lane { font-size: 11.5px; }
.tl-m { stroke: var(--surface); stroke-width: 1.5; }
.timeline a:hover .tl-m, .timeline a:focus .tl-m { stroke: var(--ink); stroke-width: 2; }
.timeline a:focus { outline: none; }
.tl-num { fill: #fff; font-weight: 800; font-family: var(--display); pointer-events: none; }
:root[data-theme="dark"] .tl-num { fill: #160b25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-num { fill: #160b25; } }
.k-pleading { fill: var(--k-pleading); } .k-motion { fill: var(--k-motion); } .k-response { fill: var(--k-response); }
.k-routine { fill: var(--k-routine); } .k-court { fill: var(--k-court); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.8rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.tl-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.lg { width: 0.8rem; height: 0.8rem; border-radius: 50%; display: inline-block; }
.lg.k-pleading { background: var(--k-pleading); } .lg.k-motion { background: var(--k-motion); } .lg.k-response { background: var(--k-response); }
.lg.k-routine { background: var(--k-routine); width: 0.5rem; height: 0.5rem; } .lg.k-court { background: var(--k-court); border-radius: 2px; transform: rotate(45deg) scale(0.8); }
.tl-hint { flex-basis: 100%; }
.strip { margin: 0.9rem 0 0; }
.strip svg { display: block; width: 100%; height: 1.35rem; }
.strip .tl-m { stroke: none; }
.strip-ends { display: flex; justify-content: space-between; font: 600 0.62rem var(--mono); color: var(--muted); margin-top: 0.1rem; }
.party.court .strip .tl-track { stroke: rgba(255, 255, 255, 0.3); }
.party.court .strip-ends { color: #cdb2ee; }

/* Key filings: a vertical timeline */
.keylist { list-style: none; margin: 0; padding: 0; position: relative; }
.keylist::before { content: ""; position: absolute; left: 7.35rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--line-strong); }
.key { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 0 2rem; position: relative; margin-bottom: 0.9rem; }
.key::before { content: ""; position: absolute; left: 6.9rem; top: 1.25rem; width: 1rem; height: 1rem; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--line-strong); }
.key.k-pleading::before { background: var(--k-pleading); } .key.k-motion::before { background: var(--k-motion); } .key.k-response::before { background: var(--k-response); }
.key-when { font: 600 0.84rem var(--mono); color: var(--muted); padding-top: 1.2rem; text-align: right; }
.key-body { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0.95rem 1.2rem 1rem; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.key-body:hover { border-color: var(--brand); transform: translateX(3px); }
.key-kind { font: 800 0.66rem var(--display); letter-spacing: 0.13em; text-transform: uppercase; margin: 0 0 0.3rem; }
.k-pleading .key-kind { color: var(--k-pleading); } .k-motion .key-kind { color: var(--k-motion); } .k-response .key-kind { color: var(--k-response); }
.key h3 { font-size: 1.05rem; }
.key h3 a { color: var(--ink); text-decoration: none; }
.key h3 a:hover { color: var(--accent); }
.key-ecf { display: inline-block; font: 800 0.8rem var(--display); background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 0.1rem 0.5rem; margin-right: 0.35rem; vertical-align: 0.08em; }
.key .docs { font-size: 0.84rem; color: var(--muted); margin: 0.45rem 0 0; }
.key-cites { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.45rem; margin: 0.65rem 0 0; font-size: 0.82rem; }
.key-cites span { font: 700 0.64rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 0.2rem; }
.key-cites a { text-decoration: none; font: 600 0.8rem var(--mono); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.08rem 0.55rem; }
.key-cites a:hover { border-color: var(--brand); background: var(--accent-soft); }
.key-cites.court a { border-color: color-mix(in srgb, var(--k-court) 55%, transparent); color: var(--ink); }
@media (max-width: 760px) {
  .keylist::before { left: 0.45rem; }
  .key { grid-template-columns: 1fr; padding-left: 1.7rem; }
  .key::before { left: 0; top: 0.2rem; }
  .key-when { text-align: left; padding: 0 0 0.3rem; }
}
.key .docket-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* Parties drop-down in the menu */
.navbar .wrap { position: relative; }
.navbar .nav { overflow: visible; align-items: center; }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; color: var(--muted); font: 600 0.9rem var(--display); padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: "▾"; margin-left: 0.35rem; font-size: 0.8em; }
.nav-drop summary:hover, .nav-drop[open] summary { color: var(--accent); background: var(--accent-soft); }
.nav-drop summary.on { color: #fff; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.drop-panel { position: absolute; z-index: 45; top: calc(100% + 0.4rem); left: 0; width: 21rem; max-width: calc(100vw - 2rem); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 0.4rem; }
.drop-panel a { display: block; padding: 0.5rem 0.8rem; border-radius: 11px; text-decoration: none; color: var(--ink); white-space: normal; font: inherit; }
.drop-panel a:hover, .drop-panel a:focus { background: var(--accent-soft); outline: none; }
.drop-panel b { display: block; font: 700 0.92rem/1.3 var(--display); }
.drop-panel span { display: block; font: 600 0.66rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .navbar .nav { overflow-x: auto; }
  .nav-drop { position: static; }
  .drop-panel { left: 1rem; right: 1rem; width: auto; }
}

/* Timeline pop-up and right-click menu */
.tl-tip, .tl-menu { position: fixed; z-index: 60; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); }
.tl-tip { width: min(22rem, calc(100vw - 1rem)); padding: 0.75rem 0.9rem 0.65rem; pointer-events: none; }
.tl-tip p { margin: 0; }
.tl-tip-kind { display: flex; align-items: center; gap: 0.4rem; font: 800 0.66rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tl-tip-title { font: 700 0.95rem/1.35 var(--display); margin-top: 0.3rem !important; }
.tl-tip-line { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem !important; }
.tl-tip-text { font-size: 0.82rem; line-height: 1.45; margin-top: 0.3rem !important; }
.tl-tip-hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem !important; padding-top: 0.45rem; border-top: 1px solid var(--line); }
.tl-menu { width: 17.5rem; padding: 0.35rem; }
.tl-menu-head { margin: 0; padding: 0.45rem 0.7rem 0.35rem; font: 800 0.68rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tl-menu-item { display: block; width: 100%; text-align: left; font: 500 0.9rem var(--sans); padding: 0.45rem 0.7rem; border: 0; border-radius: 9px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.tl-menu-item:hover, .tl-menu-item:focus { background: var(--accent-soft); color: var(--accent); outline: none; }
.tl-menu hr { border: 0; border-top: 1px solid var(--line); margin: 0.3rem 0.4rem; }

/* "As of" date, top right of every page */
.navbar .wrap { display: flex; align-items: center; gap: 1rem; }
.navbar .nav { flex: 1 1 auto; min-width: 0; }
.asof { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; font: 400 0.76rem var(--sans); color: var(--muted); text-decoration: none; white-space: nowrap; padding: 0.2rem 0; }
.asof:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.asof time { font-weight: 600; }
.asof-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #d9a100; opacity: 0.8; }
@media (max-width: 1040px) { .asof-more { display: none; } }
@media (max-width: 760px) {
  .navbar .wrap { flex-wrap: wrap; gap: 0; }
  .navbar .nav { flex-basis: 100%; }
  .asof { margin: 0 0 0.45rem; font-size: 0.74rem; }
  .asof-more { display: inline; }
}

/* The name the site uses for a party, with the docket's own spelling said once */
.aka { font-size: 0.8rem; color: var(--muted); margin: 0.15rem 0 0; }
.aka.on-dark { color: #d9c6f3; font-size: 0.92rem; margin-top: 0.35rem; }
.drop-panel small { font: 500 0.8rem var(--sans); color: var(--muted); }
.hero-caption { font: 600 clamp(1.05rem, 2.2vw, 1.4rem)/1.35 var(--display); color: #e9dcff; margin: 0.9rem 0 0; max-width: 44rem; }
.hero-sub { margin-top: 0.6rem; }
.foot { grid-template-columns: minmax(16rem, 25rem) 1fr; }
.foot-brand p { margin: 0 0 0.45rem; }
.foot-rights { font-size: 0.8rem; opacity: 0.85; margin-top: 0.4rem !important; }

/* Footer: mark and name, who publishes, what this is; then links and a base line, both centred */
.site-footer { padding: 3.2rem 0 2rem; }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
.foot-brand { align-items: flex-start; gap: 0.9rem; }
.foot-logo { width: 8.5rem; }
.foot-org { margin: 0; white-space: nowrap; }
.foot-text p { max-width: none; margin: 0 0 0.7rem; font-size: 0.92rem; line-height: 1.6; }
.foot-text .foot-cov { font-size: 0.8rem; opacity: 0.8; margin: 0; }
.foot-links { justify-content: center; gap: 0.3rem 0; margin: 2rem 0 0 !important; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.foot-links a { padding: 0 0.9rem; }
.foot-links a + a { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.3rem 0; margin: 1.1rem 0 0 !important; max-width: none !important; font-size: 0.86rem; text-align: center; }
.foot-base > * { padding: 0 0.9rem; }
.foot-base > * + * { border-left: 1px solid rgba(255, 255, 255, 0.18); }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .foot-links a + a, .foot-base > * + * { border-left: 0; }
  .foot-links a, .foot-base > * { padding: 0.15rem 0.6rem; }
}

/* Background drawing: one wide circuit board that never repeats (assets/circuit.svg) */
.hero::before { background: url(circuit.svg) right center / auto 135% no-repeat; opacity: 0.16;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 62%); mask-image: linear-gradient(90deg, transparent 18%, #000 62%); }
.doc-head::before { background: url(circuit.svg) right 35% / auto 330% no-repeat; opacity: 0.15;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.site-footer::before { background: url(circuit.svg) right bottom / auto 170% no-repeat; opacity: 0.1;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 80%); mask-image: linear-gradient(90deg, transparent 35%, #000 80%); }
