/* ==========================================================================
   COURT PREP · site styles on the Cadence v0.1 brand
   The brand lives in the token block below (copied from
   Team-Handoff/Brand-Cadence-v0.1/tokens/courtprep-brand.css) and in the single
   header partial in index.html. Change the brand there, not in components.
   Rules that matter: Dawn means the last successful check and nothing else;
   say "checked", never "live"; every time carries its zone.
   ========================================================================== */

/* ---- Brand fonts, self-hosted (SIL Open Font License 1.1; see /brand/fonts/OFL-*.txt) ----
   Archivo (variable width 100-125%, weight 400-800) and Azeret Mono (400 and 500), Latin and
   Latin Extended subsets from the official Google Fonts files. No third-party font requests. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; src: url("/brand/fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; src: url("/brand/fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Azeret Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/brand/fonts/azeret-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Azeret Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/brand/fonts/azeret-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Brand tokens (Cadence v0.1) ------------------------------------------ */
:root {
  --cp-night: #0D1B2A;
  --cp-daylight: #F7F9FB;
  --cp-dawn: #F3A73A;
  --cp-dawn-text: #8A5600;
  --cp-dawn-wash: #FBF5EA;
  --cp-dawn-wash-line: #EFE2C8;
  --cp-steel: #4D5D6E;
  --cp-mist: #D9E1E8;
  --cp-body: #24313F;
  --cp-muted-on-night: #A9B6C3;
  --cp-line-on-night: #24364A;
  --cp-tick-unlit: #C9D3DC;

  --cp-font-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --cp-font-wordmark: "Archivo", "Archivo Black", "Arial Black", sans-serif;
  --cp-font-mono: "Azeret Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --cp-size-hero: 72px;
  --cp-size-board: 56px;
  --cp-size-section: 40px;
  --cp-size-headline: 28px;
  --cp-size-subhead: 20px;
  --cp-size-body: 17px;
  --cp-size-label: 14px;
  --cp-size-mono-label: 12.5px;
  --cp-leading-display: 1;
  --cp-leading-headline: 1.2;
  --cp-leading-body: 1.55;

  --cp-radius: 4px;
  --cp-radius-card: 6px;
  --cp-loader-cycle: 1.08s;

  /* Site layout (not brand) */
  --site-width: 1180px;
  --gutter: clamp(16px, 5vw, 56px);
  --card: #FFFFFF;
}

.cp-wordmark { font-family: var(--cp-font-wordmark); font-weight: 800; font-stretch: 125%; letter-spacing: .02em; word-spacing: .3em; text-transform: uppercase; line-height: 1; }
.cp-display { font-family: var(--cp-font-sans); font-weight: 800; font-stretch: 118%; letter-spacing: -.01em; line-height: var(--cp-leading-display); text-transform: uppercase; }
.cp-label-mono { font-family: var(--cp-font-mono); font-size: var(--cp-size-mono-label); letter-spacing: .06em; text-transform: uppercase; }

/* Status vocabulary: checked, check failed, not covered */
.cp-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--cp-radius); font-family: var(--cp-font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.cp-status--checked { background: var(--cp-daylight); border: 1px solid var(--cp-mist); color: var(--cp-night); }
.cp-status--checked::before { content: ""; flex: none; width: 3px; height: 16px; background: var(--cp-dawn); }
.cp-status--failed { background: var(--cp-dawn-wash); border: 1px solid var(--cp-dawn-wash-line); color: var(--cp-dawn-text); }
.cp-status--failed::before { content: ""; flex: none; width: 8px; height: 3px; background: var(--cp-dawn-text); }
.cp-status--not-covered { border: 1.5px dashed var(--cp-steel); color: var(--cp-steel); }

/* The mark as the loading indicator: ticks brighten clockwise from 09 to 02, 60 ms apart. */
@keyframes cp-tick { 0% { opacity: 1; } 50% { opacity: .14; } 100% { opacity: .14; } }
.cp-loader .cp-tick { animation: cp-tick var(--cp-loader-cycle) linear infinite; }
.cp-loader .cp-check { display: none; }
.cp-loader .cp-tick:nth-child(1) { animation-delay: -1.08s; } .cp-loader .cp-tick:nth-child(2) { animation-delay: -1.02s; }
.cp-loader .cp-tick:nth-child(3) { animation-delay: -.96s; } .cp-loader .cp-tick:nth-child(4) { animation-delay: -.9s; }
.cp-loader .cp-tick:nth-child(5) { animation-delay: -.84s; } .cp-loader .cp-tick:nth-child(6) { animation-delay: -.78s; }
.cp-loader .cp-tick:nth-child(7) { animation-delay: -.72s; } .cp-loader .cp-tick:nth-child(8) { animation-delay: -.66s; }
.cp-loader .cp-tick:nth-child(9) { animation-delay: -.6s; } .cp-loader .cp-tick:nth-child(10) { animation-delay: -.54s; }
.cp-loader .cp-tick:nth-child(11) { animation-delay: -.48s; } .cp-loader .cp-tick:nth-child(12) { animation-delay: -.42s; }
.cp-loader .cp-tick:nth-child(13) { animation-delay: -.36s; } .cp-loader .cp-tick:nth-child(14) { animation-delay: -.3s; }
.cp-loader .cp-tick:nth-child(15) { animation-delay: -.24s; } .cp-loader .cp-tick:nth-child(16) { animation-delay: -.18s; }
.cp-loader .cp-tick:nth-child(17) { animation-delay: -.12s; } .cp-loader .cp-tick:nth-child(18) { animation-delay: -.06s; }
@media (prefers-reduced-motion: reduce) { .cp-loader .cp-tick { animation: none; } }

/* ---- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cp-daylight); color: var(--cp-body); font: 400 var(--cp-size-body)/var(--cp-leading-body) var(--cp-font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--cp-night); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .masthead :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--cp-daylight); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--cp-daylight); color: var(--cp-night); padding: 10px 14px; border-radius: var(--cp-radius); font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main:focus { outline: none; }
.mono, .time, code { font-family: var(--cp-font-mono); font-variant-numeric: tabular-nums; }
code { font-size: .9em; }

/* ---- Header ---------------------------------------------------------------- */
.site-header { background: var(--cp-night); color: var(--cp-daylight); border-bottom: 1px solid var(--cp-line-on-night); }
.bar { max-width: var(--site-width); margin: 0 auto; padding: 0 var(--gutter); min-height: 72px; display: flex; align-items: center; gap: 32px; }
.cp-lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--cp-daylight); text-decoration: none; flex: none; }
.cp-lockup .cp-wordmark { font-size: 18px; white-space: nowrap; }
.site-header nav { display: flex; gap: 28px; margin: 0 auto; }
.site-header nav a, .watchnav { color: var(--cp-mist); text-decoration: none; font-size: var(--cp-size-label); font-weight: 600; letter-spacing: .01em; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-header nav a:hover, .watchnav:hover { color: var(--cp-daylight); }
.site-header nav a[aria-current], .watchnav[aria-current] { color: var(--cp-daylight); border-bottom-color: var(--cp-daylight); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.account { display: flex; align-items: center; }
.accountlink { display: inline-flex; align-items: center; gap: 8px; color: var(--cp-daylight); text-decoration: none; font-size: var(--cp-size-label); font-weight: 600; max-width: 280px; padding: 7px 12px; border: 1px solid var(--cp-line-on-night); border-radius: var(--cp-radius); }
.accountlink:hover { border-color: var(--cp-muted-on-night); }
.accountname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rolebadge { flex: none; font: 500 11px/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-muted-on-night); }
.accountnote { font: 500 11px/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-muted-on-night); }

/* ---- Loading ------------------------------------------------------------------ */
.cp-loading { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52vh; color: var(--cp-night); }

/* ---- Mastheads: Night band with one display heading per screen --------------- */
.masthead { background: var(--cp-night); color: var(--cp-daylight); }
.masthead-inner { max-width: var(--site-width); margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(28px, 4vw, 44px); }
.masthead .crumb { margin-bottom: 18px; font-size: var(--cp-size-label); font-weight: 600; }
.masthead .crumb a { color: var(--cp-muted-on-night); text-decoration: none; }
.masthead .crumb a::before { content: "← "; }
.masthead .crumb a:hover { color: var(--cp-daylight); }
.eyebrow { color: var(--cp-muted-on-night); margin-bottom: 14px; }
.masthead .cp-display { font-size: clamp(40px, 6.4vw, var(--cp-size-hero)); overflow-wrap: anywhere; }
.masthead .cp-display.is-long { font-size: clamp(32px, 4.6vw, var(--cp-size-board)); line-height: 1.04; }
.masthead .lead { margin-top: 18px; max-width: 62ch; color: var(--cp-mist); font-size: 18px; }
.masthead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.sample { display: inline-flex; align-items: center; font: 500 11.5px/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius); padding: 4px 9px; }
.masthead .sample, .hero .sample { color: var(--cp-muted-on-night); border-color: var(--cp-line-on-night); }
.checkline { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-mist); }
.checkline::before { content: ""; width: 3px; height: 16px; background: var(--cp-dawn); }
.checkline .when { color: var(--cp-dawn); }
.checkline.failed::before { width: 8px; height: 0; border-top: 2px dashed var(--cp-mist); background: none; }

/* ---- Page body ----------------------------------------------------------------- */
.page { max-width: var(--site-width); margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gutter) 64px; }
.section + .section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head .cp-label-mono { color: var(--cp-steel); margin-bottom: 6px; }
.headline { font-family: var(--cp-font-sans); font-weight: 700; font-size: var(--cp-size-headline); line-height: var(--cp-leading-headline); letter-spacing: -.01em; color: var(--cp-night); }
.subhead { font-weight: 700; font-size: var(--cp-size-subhead); line-height: var(--cp-leading-headline); letter-spacing: -.01em; color: var(--cp-night); margin: 32px 0 14px; }
.sectiontitle { font: 500 var(--cp-size-mono-label)/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); margin: 36px 0 12px; }
.lead-body { font-size: 19px; color: var(--cp-body); max-width: 62ch; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.aside { background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); padding: 22px 22px 8px; position: sticky; top: 20px; }
.aside h3 { font: 500 var(--cp-size-mono-label)/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); margin-bottom: 6px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--cp-mist); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 13px; color: var(--cp-steel); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; color: var(--cp-night); overflow-wrap: anywhere; }
.facts dd .mono { font-size: 13.5px; }
.empty { padding: 28px 0; color: var(--cp-steel); max-width: 62ch; }
.textlink { color: var(--cp-night); font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--cp-mist); text-underline-offset: .28em; }
.textlink:hover { text-decoration-color: var(--cp-night); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }

/* ---- Buttons ----------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--cp-night); border-radius: var(--cp-radius); background: transparent; color: var(--cp-night); font-size: var(--cp-size-label); font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--cp-night); color: var(--cp-daylight); }
.btn.primary { background: var(--cp-night); color: var(--cp-daylight); }
.btn.primary:hover { background: #1B2E42; }
.btn.small { min-height: 36px; padding: 7px 13px; font-size: 13.5px; }
.btn[aria-pressed="true"] { background: var(--cp-night); color: var(--cp-daylight); }
.btn[aria-pressed="true"]::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.masthead .btn, .hero .btn { border-color: var(--cp-daylight); color: var(--cp-daylight); }
.masthead .btn:hover, .hero .btn:hover, .masthead .btn[aria-pressed="true"], .hero .btn.primary { background: var(--cp-daylight); color: var(--cp-night); }
.hero .btn.primary:hover { background: #FFFFFF; }
.watchctl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.readonly, .firmtag { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: var(--cp-radius); font: 500 12px/1.3 var(--cp-font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--cp-steel); border: 1px dashed var(--cp-steel); }
.firmtag { border-style: solid; border-color: var(--cp-mist); color: var(--cp-night); }
.masthead .readonly { color: var(--cp-muted-on-night); border-color: var(--cp-muted-on-night); }
.masthead .firmtag { color: var(--cp-daylight); border-color: var(--cp-line-on-night); }

/* ---- Home hero with the cadence dial -------------------------------------------- */
.hero { background: var(--cp-night); color: var(--cp-daylight); overflow: hidden; }
.hero-inner { max-width: var(--site-width); margin: 0 auto; padding: clamp(44px, 7vw, 88px) var(--gutter) clamp(44px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-title { font-size: clamp(44px, 7vw, var(--cp-size-hero)); }
.hero-line { margin-top: 22px; font-weight: 700; font-size: clamp(20px, 2.4vw, var(--cp-size-headline)); color: var(--cp-daylight); }
.hero .lead { margin-top: 10px; max-width: 52ch; color: var(--cp-mist); font-size: 18px; }
.dial { margin: 0; display: grid; justify-items: center; gap: 22px; }
.dial svg { width: min(100%, 340px); height: auto; }
.dial .dial-unlit { fill: none; stroke: var(--cp-line-on-night); stroke-width: 4; }
.dial .dial-lit { fill: none; stroke: var(--cp-mist); stroke-width: 4; }
.dial .dial-miss { fill: none; stroke: var(--cp-muted-on-night); stroke-width: 3; stroke-dasharray: 3 3; }
.dial .dial-check { fill: none; stroke: var(--cp-dawn); stroke-width: 6; }
.dial .dial-hour { fill: var(--cp-muted-on-night); font: 500 4.6px var(--cp-font-mono); letter-spacing: .06em; text-anchor: middle; dominant-baseline: middle; }
.dial .dial-date { fill: var(--cp-daylight); font: 500 9px var(--cp-font-mono); letter-spacing: .04em; text-anchor: middle; }
.dial .dial-note { fill: var(--cp-muted-on-night); font: 500 3.6px var(--cp-font-mono); letter-spacing: .1em; text-anchor: middle; }
.dial figcaption { width: min(100%, 380px); display: grid; gap: 10px; }
.legend { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; color: var(--cp-mist); }
.legend .when { font-family: var(--cp-font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--cp-daylight); }
.legend .key { width: 16px; height: 0; align-self: center; border-top: 3px solid var(--cp-dawn); }
.legend .key.miss { border-top: 2px dashed var(--cp-muted-on-night); }
.legend .key.none { border-top: 1.5px dashed var(--cp-steel); }
.legend .is-dawn { color: var(--cp-dawn); }

/* ---- Brief rows: check stamp, change, time ---------------------------------------- */
.count-line { font: 500 var(--cp-size-mono-label)/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); margin: 4px 0 14px; }
.event { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; padding: 22px 0; border-top: 1px solid var(--cp-mist); align-items: start; }
.event:last-child { border-bottom: 1px solid var(--cp-mist); }
.event-stamp { padding-top: 2px; }
.event-meta { color: var(--cp-steel); margin-bottom: 6px; }
.event-title { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--cp-night); }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.event-case { margin-top: 4px; font-size: 15px; color: var(--cp-steel); }
.event-case a { text-decoration-color: var(--cp-mist); }
.change { margin-top: 12px; display: grid; gap: 2px; }
.change .was { color: var(--cp-steel); font-size: 14.5px; text-decoration-thickness: 1.5px; }
.change .now { color: var(--cp-night); font-weight: 600; font-size: 17px; }
.reasons { margin-top: 10px; font: 500 12px/1.5 var(--cp-font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--cp-night); }
.reasons::before { content: "↳ "; color: var(--cp-steel); }
.event-time { display: grid; justify-items: end; gap: 4px; text-align: right; padding-top: 2px; }
.event-time .mono { font-size: 14px; color: var(--cp-night); }
.event-source { font-size: 13px; color: var(--cp-steel); }

/* Check stamp: a 24-position dial on each finding (Dawn tick at the check hour). */
.stamp { width: 40px; height: 40px; }
.stamp-ticks { fill: none; stroke: var(--cp-night); stroke-width: 5.5; }
.stamp.is-stale .stamp-ticks { stroke: var(--cp-tick-unlit); }
.stamp-check { fill: none; stroke: var(--cp-dawn); stroke-width: 7.5; }
.stamp-check.stale { stroke: var(--cp-dawn-text); stroke-width: 5; stroke-dasharray: 4 3; }

/* Tick strip: 24 hours, Dawn at the last successful check, dashed marker for a failed one. */
.ticks { display: inline-grid; grid-template-columns: repeat(24, 3px); gap: 3px; align-items: end; height: 18px; flex: none; }
.ticks i { display: block; width: 3px; height: 11px; background: var(--cp-tick-unlit); border-radius: 1px; }
.ticks i.lit { height: 18px; background: var(--cp-dawn); }
.ticks i.miss { height: 18px; background: none; border-left: 2px dashed var(--cp-dawn-text); width: 2px; border-radius: 0; }
.masthead .ticks i { background: var(--cp-line-on-night); }
.masthead .ticks i.lit { background: var(--cp-dawn); }
.masthead .ticks i.miss { background: none; border-left-color: var(--cp-muted-on-night); }

/* Source checks panel */
.checks { background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); }
.check-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--cp-mist); }
.check-row:first-child { border-top: 0; }
.check-name a { font-weight: 700; color: var(--cp-night); text-decoration: none; }
.check-name a:hover { text-decoration: underline; }
.check-name .row-sub { display: block; font-size: 13.5px; }
.checks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.checks-head .textlink, .section-head .textlink { white-space: nowrap; }
.checks-head .cp-label-mono { color: var(--cp-steel); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 28px 0 10px; }
.filters label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cp-steel); }
.filters input, .filters select { min-height: 44px; padding: 9px 12px; border: 1px solid #9AA8B6; border-radius: var(--cp-radius); background: var(--card); color: var(--cp-night); min-width: 180px; }
.filters input { width: min(78vw, 360px); }
.filters input:focus, .filters select:focus { border-color: var(--cp-night); }

/* Rows: directory, linked matters, watchlists */
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); margin-bottom: 10px; }
.row-main { min-width: 0; }
.row-main .cp-label-mono { color: var(--cp-steel); margin-bottom: 4px; }
.row-title { font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; color: var(--cp-night); }
.row-title a { text-decoration: none; }
.row-title a:hover { text-decoration: underline; }
.row-sub { color: var(--cp-steel); font-size: 14.5px; margin-top: 2px; }
.row-side { flex: none; }
.prov { display: grid; gap: 8px; margin-top: 12px; }
.prov-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--cp-body); }
.prov-line .cp-status { padding: 5px 9px; font-size: 11.5px; }

/* Entry: the change, the wording, the history */
.change-block { background: var(--card); border: 1px solid var(--cp-mist); border-left: 4px solid var(--cp-night); border-radius: var(--cp-radius-card); padding: 22px 24px; }
.change-block .was { display: block; color: var(--cp-steel); font-size: 16px; text-decoration-thickness: 1.5px; margin-bottom: 6px; }
.change-block .now { display: block; color: var(--cp-night); font-weight: 700; font-size: clamp(22px, 3vw, var(--cp-size-headline)); line-height: 1.2; }
.change-block .cp-label-mono { color: var(--cp-steel); margin-bottom: 10px; }
.sourcecopy { margin-top: 10px; font-size: 19px; line-height: 1.6; color: var(--cp-night); border-left: 2px solid var(--cp-mist); padding-left: 18px; max-width: 62ch; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--cp-mist); }
.history .mono { font-size: 13px; color: var(--cp-steel); }
.history p { color: var(--cp-night); font-weight: 600; }

/* Banners and panels */
.banner { margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--cp-mist); border-left: 4px solid var(--cp-night); border-radius: var(--cp-radius); background: var(--card); color: var(--cp-night); font-weight: 600; font-size: 15.5px; }
.banner.alert { background: var(--cp-night); color: var(--cp-daylight); border-color: var(--cp-night); }
.panel { background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); padding: 22px 24px; margin-bottom: 14px; }
.panel h3 { font-weight: 700; font-size: var(--cp-size-subhead); color: var(--cp-night); margin-bottom: 8px; }
.panel p + p, .panel p + .actions { margin-top: 10px; }
.notice { display: inline-flex; font: 500 11.5px/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius); padding: 5px 10px; margin-bottom: 18px; }
.consent { border-color: var(--cp-night); }
fieldset { border: 1px solid var(--cp-mist); border-radius: var(--cp-radius); padding: 10px 16px; margin: 14px 0; }
legend { font: 500 11.5px/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); padding: 0 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--cp-night); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cp-night); flex: none; }
.rejected { margin: 8px 0 12px; padding-left: 20px; color: var(--cp-steel); font-size: 14.5px; }
.loading { padding: 20px 0; color: var(--cp-steel); }

/* Sign-in identities */
.identities { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.identity { display: grid; gap: 3px; text-align: left; padding: 16px 18px; border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); background: var(--card); color: var(--cp-night); cursor: pointer; transition: border-color .15s; }
.identity:hover { border-color: var(--cp-night); }
.identity strong { font-size: 17px; font-weight: 700; }
.identity span { font-size: 14px; color: var(--cp-body); }
.identity .sub { font: 500 11.5px/1.5 var(--cp-font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--cp-steel); margin-top: 6px; }
.sub { color: var(--cp-steel); }

/* Members */
.members { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); overflow: hidden; }
.members th, .members td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--cp-mist); vertical-align: middle; }
.members th { border-top: 0; font: 500 11.5px/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); }
.members td:first-child { color: var(--cp-night); font-weight: 600; }
.members .sub { font-weight: 400; font-size: 13.5px; }
.members select { min-height: 36px; padding: 6px 8px; border: 1px solid #9AA8B6; border-radius: var(--cp-radius); background: var(--card); color: var(--cp-night); }
.rolecell { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Coverage boxes inside the workspace brief */
.coveragebox { background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); padding: 14px 18px; margin: 0 0 16px; }
.coveragebox .cp-label-mono { color: var(--cp-steel); margin-bottom: 4px; }

/* ---- Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--cp-night); color: var(--cp-mist); }
.footer-inner { max-width: var(--site-width); margin: 0 auto; padding: 44px var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 56px; }
.footer-word { font-size: 16px; color: var(--cp-daylight); }
.footer-line { margin-top: 12px; color: var(--cp-daylight); font-weight: 700; }
.footer-domain, .footer-preview { color: var(--cp-muted-on-night); margin-top: 10px; }
.footer-notes p { font-size: 14.5px; max-width: 62ch; }
.noscript { max-width: var(--site-width); margin: 0 auto; padding: 16px var(--gutter); }

/* ---- Responsive ------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .dial svg { width: min(78vw, 300px); }
  .grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 14px; }
  .header-actions { margin-left: auto; gap: 14px; }
  .site-header nav { order: 3; width: 100%; margin: 0; gap: 22px; padding: 12px 0 10px; overflow-x: auto; }
  .accountlink { max-width: 190px; padding: 6px 10px; }
  .event { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .event-time { grid-column: 2; justify-items: start; text-align: left; grid-template-columns: auto auto; justify-content: start; gap: 10px; }
  .check-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .members thead { display: none; }
  .members tr { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--cp-mist); }
  .members tr:first-child { border-top: 0; }
  .members td { border-top: 0; padding: 10px 16px; }
}
@media (max-width: 420px) {
  .cp-lockup .cp-wordmark { font-size: 16px; }
  .accountlink .rolebadge { display: none; }
  .site-header nav { gap: 18px; }
  .masthead .cp-display { font-size: 36px; }
  .masthead .cp-display.is-long { font-size: 28px; }
  .ticks { grid-template-columns: repeat(24, 2px); gap: 3px; }
  .ticks i { width: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.checkline.none::before { width: 8px; height: 0; border-top: 1.5px dashed var(--cp-muted-on-night); background: none; }
.ticks.is-empty { width: 141px; height: 18px; border-bottom: 1px dashed var(--cp-tick-unlit); }
.watchbar { display: inline-flex; }
.aside-status { margin: 4px 0 10px; }
.aside-status .cp-status { display: flex; width: 100%; }

/* Reviews: assigned changes on the firm's matters */
.review h3 { margin-bottom: 6px; }
.review .sourcecopy { margin-top: 10px; }
.review .facts { margin-top: 14px; }
.review.is-superseded { opacity: .72; }
.review.is-superseded .now { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.matter { padding: 12px 0; border-top: 1px solid var(--cp-mist); }
.matter:first-of-type { border-top: 0; }
.matterform { margin-top: 18px; }
.matterform .filters { display: grid; gap: 10px; margin-top: 12px; }
.matterform label { display: grid; gap: 4px; font-size: 13px; color: var(--cp-steel); }
.matterform .filters select, .matterform .filters input { min-width: 0; width: 100%; }

/* Court Prep workspace. The permanent rail groups research and review tools; the phone layout
   uses the same navigation in a compact, labelled row. */
:root {
  --cp-night:#2b2139; --cp-body:#3d3449; --cp-steel:#62586c;
  --cp-daylight:#fbf8f2; --cp-mist:#ded8e1; --cp-line-on-night:#5d4d70; --cp-muted-on-night:#ddd3e6;
  --card:#fff; --paper-violet:#eee7f7; --action:#563b82; --rail-width:214px; --site-width:1280px;
}
body { background:#f6f3f7; color:var(--cp-body); }
a { color:var(--action); }
main { min-width:0; min-height:65vh; }
.cp-display,.headline,.row-title,.event-title,.panel h3,.aside h3,.sectiontitle { font-family:var(--cp-font-sans); text-transform:none; }
.masthead { color:var(--cp-night); background:#fdfaf4; border:0; border-bottom:1px solid var(--cp-mist); }
.masthead-inner { padding-block:clamp(26px,3.5vw,53px); }
.masthead .cp-display,.masthead .cp-display.is-long { font-weight:650; font-size:clamp(2.2rem,4.2vw,4.3rem); line-height:1.035; letter-spacing:-.068em; font-stretch:100%; color:var(--cp-night); overflow-wrap:anywhere; }
.masthead .eyebrow { color:#7a3d49; }
.masthead .crumb a,.masthead .crumb { color:var(--action); }
.masthead .lead { color:#574d60; max-width:64ch; font-size:clamp(1rem,1.45vw,1.17rem); line-height:1.55; }
.masthead .sample,.masthead .firmtag,.masthead .readonly,.masthead .checkline { color:#4f415b; border-color:#c6bacd; }
.masthead .checkline.failed { background:#fff0d6; color:#684400; }
.masthead .watchbtn { color:var(--action); border-color:#a393b4; }
.masthead :focus-visible,main :focus-visible { outline:3px solid #8b53b6; outline-offset:3px; }
.site-header :focus-visible,.site-footer :focus-visible { outline-color:#ffd1bc; }
#main[data-screen="brief"] .masthead,#main[data-screen="courts"] .masthead,#main[data-screen="judges"] .masthead { background:var(--paper-violet); }
#main[data-screen="entries"] .masthead,#main[data-screen="cases"] .masthead { background:#f7ece2; }
#main[data-screen="signin"] .masthead-inner { position:relative; overflow:hidden; }
#main[data-screen="signin"] .masthead-inner::after { content:''; position:absolute; top:15%; right:var(--gutter); width:24%; height:70%; border-radius:10px; background:center 50%/cover url('/marketing/evidence.jpg'); }
#main[data-screen="signin"] .masthead .lead { max-width:min(65%,62ch); }
.site-header { background:#2b2237; color:#fff; z-index:20; }
.site-header .cp-lockup,.site-header .cp-wordmark,.site-header .cp-mark,.site-header .accountlink { color:#fff; }
.site-header nav a { display:flex; align-items:center; gap:.8rem; min-height:43px; padding:.65rem .8rem; border:0; border-radius:8px; font:570 1rem/1.2 var(--cp-font-sans); color:#e6dfea; text-decoration:none; }
.site-header nav a[aria-current] { background:#e4d6f5; color:#30223f; border:0; }
.site-header nav a:hover { background:#473752; color:white; }
.site-header .accountlink,.site-header .accountnote { color:#fff; border-color:#796889; }
.site-header .rolebadge { color:#d9cadd; }
.workspace-public { font-weight:530; font-size:.92rem; color:#dfd1e7; text-decoration:underline; text-underline-offset:.24em; }
.workspace-public:hover { color:white; }
.page { padding-block:clamp(25px,3.5vw,51px) 52px; }
.brief-layout { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(190px,.85fr); gap:clamp(16px,2.2vw,38px); align-items:start; }
.brief-changes,.brief-sources,.case-activity,.panel,.aside { min-width:0; }
.brief-changes > .headline { font:620 clamp(1.35rem,2vw,1.9rem)/1.1 var(--cp-font-sans); margin-bottom:1rem; letter-spacing:-.05em; }
.brief-sources { padding:20px; border:1px solid #d9d0df; background:#fdfbf7; border-radius:13px; }
.brief-sources .checks-head { align-items:start; flex-direction:column; gap:.35rem; }
.brief-sources .check-row { display:flex; flex-direction:column; align-items:start; gap:7px; padding:15px 0; }
.brief-sources .checks { border:0; }
.brief-sources .cp-label-mono { color:#594962; }
.case-record,.grid { display:grid; align-items:start; grid-template-columns:minmax(0,1.8fr) minmax(200px,.78fr); gap:clamp(16px,2.6vw,40px); }
.case-details { position:static; }
.case-title,.aside h2,.headline,.row-title,.event-title,.panel h3,.aside h3 { color:var(--cp-night); letter-spacing:-.04em; font-weight:640; }
.case-title,.headline { font-size:clamp(1.5rem,2.3vw,2.2rem); }
.aside h2 { font-size:1.3rem; margin-bottom:.7rem; }
.case-activity .lead-body { margin-bottom:1rem; }
.event,.row,.panel,.aside,.empty,.change-block { background:white; border:1px solid #ded7e2; border-radius:12px; }
.event,.row { padding:clamp(15px,1.5vw,24px); margin-block:.65rem; }
.event { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.65rem 1rem; }
.event .event-stamp { grid-column:1/-1; }
.event-title,.row-title { line-height:1.17; }
.event-title a,.row-title a { color:var(--cp-night); text-underline-offset:.2em; }
.event-title a:hover,.row-title a:hover { color:var(--action); }
.change .now,.change-block .now { color:#472a6b; font-weight:650; text-transform:none; font-stretch:100%; }
.change-block { padding:clamp(20px,2.8vw,37px); background:#eee7f7; }
.sectiontitle { font-weight:640; font-size:1.05rem; letter-spacing:-.02em; color:var(--cp-night); }
.filters { border:1px solid #dad2df; border-radius:10px; background:#fff; padding:12px 15px; }
.filters input,.filters select,button,input,select { border-radius:6px; }
.filters select:focus,.filters input:focus { outline-color:#704b9f; }
.page .btn.primary,.panel .btn.primary { color:white; background:var(--action); border-color:var(--action); }
.page .btn,.panel .btn,.watchbtn,.identity { border-radius:7px; }
.page .aside,.page .panel { padding:clamp(17px,2vw,29px); }
.section-head,.checks-head { gap:.65rem; }
.site-footer { background:#ede7f0; border-top:1px solid #ded4e1; color:#443a50; }
.site-footer .footer-line,.site-footer .footer-word { color:var(--cp-night); }
.site-footer .footer-preview,.site-footer .footer-domain,.site-footer .footer-notes p { color:#5d4f68; }
@media(min-width:1000px) {
  body { padding-left:var(--rail-width); }
  .site-header { position:fixed; inset:0 auto 0 0; width:var(--rail-width); border:0; }
  .site-header .bar { min-height:100%; height:100%; display:flex; flex-direction:column; align-items:stretch; padding:27px 18px 20px; gap:2.1rem; }
  .site-header .cp-lockup { align-self:flex-start; margin:3px 4px 14px; gap:7px; }
  .site-header .cp-wordmark { font-size:16px; }
  .site-header nav { display:flex; flex-direction:column; align-items:stretch; margin:0; gap:.3rem; }
  .site-header .header-actions { display:grid; justify-items:start; align-content:end; gap:.8rem; margin-top:auto; border-top:1px solid #5c4c68; padding-top:1.2rem; }
  .site-header .account,.site-header .accountlink { max-width:100%; }
}
@media(max-width:999px) {
  body { padding-left:0; }
  .site-header .bar { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:12px var(--gutter) 8px; gap:9px 10px; }
  .site-header nav { grid-row:2;grid-column:1/-1; display:flex; justify-content:space-between; margin:0; gap:.25rem; overflow-x:auto; }
  .site-header nav a { flex:1; justify-content:center; gap:6px; font-size:.88rem; padding:.47rem .32rem; min-height:39px; }
  .site-header .header-actions { grid-column:2;grid-row:1; margin:0; }
  .workspace-public { display:none; }
}
@media(max-width:760px) {
  .brief-layout,.case-record,.grid { grid-template-columns:1fr; }
  .brief-sources { max-width:none; }
  .event .event-time { grid-column:1/-1; text-align:left; }
  #main[data-screen="signin"] .masthead-inner::after { display:none; }
  #main[data-screen="signin"] .masthead .lead { max-width:100%; }
}
@media(max-width:520px) {
  .site-header .bar { padding-inline:12px; }
  .site-header nav a { flex-direction:column; font-size:.75rem; line-height:1.1; gap:4px; }
  .site-header .header-actions { max-width:125px; }
  .site-header .accountlink { max-width:125px; }
}
