/* ==========================================================================
   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%; }

/* ---- App shell for the public court records (v6 materials) ----------------------------------
   Lays out the newer markup in the v6 shell above: the brief beside its sources, the case record
   beside its details, and the "Public site" link with the account. The records carry court dates
   and no observation times, so rows show no check stamp and sources no tick strip or check status;
   the stamp, strip and status rules above stay for records that do carry real checks. */
.workspace-public { color: var(--cp-muted-on-night); font-size: var(--cp-size-label); font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.workspace-public:hover { color: var(--cp-daylight); text-decoration: underline; }

.brief-layout, .case-record { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.brief-changes, .brief-sources, .case-activity { min-width: 0; }

/* Sources: a white card on the coverage page; inside the brief they sit in an aside like a record's details. */
.checks-head .headline { font: 500 var(--cp-size-mono-label)/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); }
.check-name:only-child { grid-column: 1 / -1; }
.brief-sources { background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); padding: 22px 22px 8px; position: sticky; top: 20px; }
.brief-sources .checks-head { margin-bottom: 6px; }
.brief-sources .checks { background: none; border: 0; border-radius: 0; }
.brief-sources .check-row { padding: 12px 0; }

/* Case record: the docket title and the details title are labels, level with each other. */
.case-title, .case-details h2 { font: 500 var(--cp-size-mono-label)/1.4 var(--cp-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-steel); }
.case-title { margin: 36px 0 12px; }
.case-title:first-child { margin-top: 23px; }
.case-details h2 { margin-bottom: 6px; }

/* Event rows: the first column holds a check stamp only when the entry carries an observation time;
   an entry without one (every public court record) gives the column back to the entry. */
.event { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0; }
.event-stamp { grid-column: 1; width: 48px; margin-right: 18px; }
.event-stamp:empty { display: none; }
.event-main { grid-column: 2; min-width: 0; }
.event-time { grid-column: 3; margin-left: 18px; }

/* Header: one row where the lockup, the navigation, the public-site link and the account fit;
   below that the navigation takes its own row under the lockup, as on phones. */
@media (max-width: 1179px) {
  .bar { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 14px; }
  .header-actions { margin-left: auto; gap: 18px; }
  .site-header nav { order: 3; width: 100%; margin: 0; gap: 28px; padding: 12px 0 10px; overflow-x: auto; }
}
@media (max-width: 960px) {
  .brief-layout, .case-record { grid-template-columns: 1fr; }
  .brief-sources { position: static; }
}
@media (max-width: 760px) {
  .workspace-public { display: none; }
  .header-actions { gap: 14px; }
  .site-header nav { flex-wrap: wrap; gap: 0 18px; }
  .event { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; }
  .event-stamp { width: 40px; margin-right: 14px; }
  .event-time { grid-column: 2; margin-left: 0; }
}
/* Phones: all five sections on one line from 360 px, and a signed-in account beside the lockup from 375 px. */
@media (max-width: 480px) {
  .cp-lockup .cp-wordmark { font-size: 16px; }
  .accountlink { max-width: 170px; }
  .accountlink .rolebadge { display: none; }
  .site-header nav { justify-content: space-between; gap: 0 8px; }
}
@media (max-width: 420px) {
  .site-header nav a { font-size: 13px; }
  .accountlink { max-width: 132px; }
}

/* A panel inside an aside (the matter form on Reviews) keeps its panel heading, not the aside's label. */
.aside .panel h3 { font: 700 var(--cp-size-subhead)/var(--cp-leading-headline) var(--cp-font-sans); letter-spacing: -.01em; text-transform: none; color: var(--cp-night); margin-bottom: 8px; }

/* ---- Production additions, in the v6 materials (Release 1.1) ------------------------------------
   The case summary facts, the workspace sections navigation and the research desk button are newer than
   v6; they take the v6 palette and type instead of production's blue-grey restyle. Section icons are not
   part of the v6 bar: the labels carry the navigation. */
.site-header nav a svg, .site-header nav a .cpw-icon { display: none; }
.case-summary { margin: 0 0 clamp(24px, 3.5vw, 44px); padding: clamp(16px, 2vw, 26px); background: var(--card); border: 1px solid var(--cp-mist); border-radius: var(--cp-radius-card); }
.case-summary .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr)); gap: 16px 24px; }
.case-summary .facts div { display: block; padding: 0; border: 0; }
.case-summary dt { margin: 0 0 6px; }
.case-summary dd, .case-summary dd .mono { font-size: 1rem; font-weight: 600; }
.brief-research-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--cp-night); color: var(--cp-daylight); border: 1px solid var(--cp-night); border-radius: var(--cp-radius); font-weight: 600; text-decoration: none; }
.brief-research-primary:hover { background: #1B2E42; color: var(--cp-daylight); }
@media (max-width: 760px) {
  .site-header nav.workspace-sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: 2px 8px; padding-block: 8px; }
  .site-header nav.workspace-sections a { min-width: 0; font-size: .8rem; }
}
