/* MyCaseStatus — design system v4 "The Register"
   ===========================================================================
   Layer 1 of 3: foundation.

   Identity: an editorial legal register. The site should read like a fine
   printed legal archive translated to screen — a warm paper ground, deep ink
   type, brass rules, and one unexpected seal-red accent used sparingly enough
   that it still means something.

   What makes it distinctive rather than a template:
     - Fraunces (variable optical serif) at display sizes with italic accents.
     - Folio labels: small-caps, letter-spaced, numbered section markers.
     - Hairline rules with a brass tick, never boxes-in-boxes.
     - Real paper grain (SVG turbulence), not a flat cream.
     - Tight, precise radii (4/8/12). Pills only for chips.

   Load order: 01-base -> 02-components -> 03-pages. Nothing in a later layer
   redefines a token; later layers only compose.

   Motion contract: [data-anim] carries its pre-animation state ONLY under
   html.oc-motion, which the inline head script sets and /motion.js clears (or
   the watchdog clears). No rule here may hide content on the chance that
   JavaScript will reveal it.
   =========================================================================== */

:root{
  /* ---- ink ladder: the dark canvas stack ---- */
  --ink-900:#060709;
  --ink-800:#090b0f;
  --ink-700:#0d1015;
  --ink-600:#121620;
  --ink-500:#191f2b;
  --ink-400:#232b3a;
  --ink-300:#313b4f;
  --ink-200:#44506a;
  --ink-100:#5d6a85;

  /* ---- surface ladder ---- */
  --paper:#060709;
  --paper-2:#0a0c11;
  --paper-3:#0f1219;
  --surface:#0c0f15;
  --surface-2:#11141c;
  --line:#1d222d;
  --line-2:#171b24;
  --line-3:#2a313f;

  /* ---- text ---- */
  --ink:#eef2f9;
  --text:#ccd4e2;
  --muted:#8b95a8;
  --muted-2:#7d8699;
  --muted-3:#525b6c;

  /* ---- accent: a single cool azure, used for rules and emphasis ---- */
  --brass-900:#131c3a;
  --brass-800:#1d2a55;
  --brass-700:#2b3d7a;
  --brass:#6f8cff;
  --brass-2:#8ba4ff;
  --brass-3:#aec0ff;
  --brass-4:#dde5ff;
  --brass-glow:rgba(111,140,255,.22);

  /* ---- action: the one saturated fill on the page ---- */
  --seal:#3f5ce0;
  --seal-2:#4f6bef;
  --seal-3:#7590ff;
  --seal-wash:rgba(63,92,224,.12);

  /* ---- semantic ---- */
  --navy:#191f2b;
  --accent:var(--brass);
  --ok:#3ecf8e;
  --ok-2:#57e3a4;
  --warn:#f0b429;
  --err:#ff6b6b;
  --signal:#4fd1c5;

  /* ---- elevation: on a dark ground, depth comes from a light top edge ---- */
  --shadow-xs:0 1px 1px rgba(0,0,0,.5);
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 6px 18px -10px rgba(0,0,0,.7);
  --shadow-card:0 1px 2px rgba(0,0,0,.4), 0 10px 28px -16px rgba(0,0,0,.8);
  --shadow-lg:0 2px 4px rgba(0,0,0,.5), 0 22px 50px -26px rgba(0,0,0,.85);
  --shadow-xl:0 4px 8px rgba(0,0,0,.6), 0 36px 72px -34px rgba(0,0,0,.9);
  --ring:0 0 0 3px rgba(111,140,255,.35);
  --ring-seal:0 0 0 3px rgba(63,92,224,.35);

  /* ---- radii: near-square. Softness would fight the precision look ---- */
  --r-xs:3px;
  --r-sm:4px;
  --r:6px;
  --r-lg:9px;
  --r-xl:12px;
  --radius:6px;
  --radius-lg:9px;
  --r-pill:100px;

  /* ---- space ---- */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px;
  --s-6:24px; --s-7:32px; --s-8:40px; --s-9:56px; --s-10:72px; --s-11:96px;
  --s-section:clamp(64px, 7vw, 112px);

  /* ---- type ---- */
  --t-xs:11.5px;
  --t-sm:13px;
  --t-base:15px;
  --t-md:16.5px;
  --t-lg:18.5px;
  --t-xl:clamp(20px, 1.3vw + 15px, 24px);
  --t-2xl:clamp(25px, 2vw + 17px, 34px);
  --t-3xl:clamp(32px, 3.6vw + 18px, 50px);
  --t-4xl:clamp(44px, 6.6vw + 14px, 88px);

  --mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* `--serif` is the display slot; the face is now a geometric grotesque. */
  --serif:"Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ---- motion tokens (read by /motion.js) ---- */
  --dur-1:160ms;
  --dur-2:300ms;
  --dur-3:520ms;
  --dur-4:780ms;
  --ease-out:cubic-bezier(.16,.84,.32,1);
  --ease-in-out:cubic-bezier(.62,.05,.30,1);
  --ease-spring:cubic-bezier(.30,1.28,.46,1);
}

/* =========================================================  reset  ======= */

*{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  /* keeps anchor jumps clear of the sticky nav */
  scroll-padding-top:96px;
  /* `clip` rather than `hidden`: it kills sideways drift without turning the root
     into a scroll container, which would break position:sticky below it. */
  overflow-x:clip;
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
body{
  margin:0;
  font-family:var(--sans);
  font-size:var(--t-base);
  line-height:1.62;
  color:var(--text);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-feature-settings:"kern" 1,"liga" 1,"calt" 1;
  overflow-x:hidden;
  /* Two wide, very low-opacity glows replace the old paper grain. On a dark
     canvas texture reads as dirt; light reads as depth. */
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(111,140,255,.10), transparent 70%),
    radial-gradient(900px 520px at 8% 4%, rgba(111,140,255,.06), transparent 72%);
  background-attachment:fixed;
  background-repeat:no-repeat;
}
a{color:inherit; text-decoration:none}
button{font-family:inherit}
img,svg{max-width:100%}
::selection{background:rgba(178,138,65,.28); color:var(--ink-900)}

/* Paper grain. Inline SVG turbulence keeps it dependency-free and resolution
   independent — a tiled PNG would either be visible as a seam or be too heavy. */
:root{
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* scrollbar — the thumb stays in the paper/ink family, so it does not read as a
   bright system widget against the dark hero. */
*{scrollbar-width:thin; scrollbar-color:var(--line-3) transparent}
::-webkit-scrollbar{width:11px; height:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{
  background:var(--line-3); border-radius:99px;
  border:3px solid transparent; background-clip:content-box;
}
::-webkit-scrollbar-thumb:hover{background:var(--muted-2); background-clip:content-box}

/* Focus: visible, warm, and never removed. Keyboard users get a brass ring. */
:focus-visible{
  outline:2px solid var(--brass);
  outline-offset:3px;
  border-radius:var(--r-xs);
}
.on-ink :focus-visible{outline-color:var(--brass-3)}

/* Skip link: off-screen until focused, then the first thing a keyboard user
   meets. Without it, every page costs a tab through seven nav links. */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--seal); color:#fff;
  padding:10px 18px; border-radius:0 0 var(--r) 0;
  font-weight:600; font-size:14px;
}
.skip-link:focus{left:0; outline:2px solid var(--brass-2); outline-offset:0}

/* ===================================================  type scale  ======= */

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  letter-spacing:-.021em;
  line-height:1.08;
  margin:0;
  color:var(--ink);
  font-variation-settings:"SOFT" 0,"WONK" 0;
  text-wrap:balance;
}
h1{font-size:var(--t-4xl); font-weight:600; line-height:1.02; letter-spacing:-.03em}
h2{font-size:var(--t-2xl); line-height:1.14}
h3{font-size:var(--t-xl); line-height:1.24; letter-spacing:-.014em}
h4{font-size:var(--t-lg); line-height:1.3; letter-spacing:-.01em}
p{margin:0 0 var(--s-4)}
p:last-child{margin-bottom:0}

/* Italic display accents carry the brass — the one typographic flourish that
   repeats across every page. */
h1 em,h2 em,h3 em{
  font-style:italic;
  font-variation-settings:"SOFT" 40,"WONK" 1;
  color:var(--brass-700);
}

/* ---- folio label: the signature small-caps marker ---- */
.eyebrow{
  display:inline-flex; align-items:center; gap:var(--s-3);
  font-family:var(--sans);
  font-size:11px; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--brass-2);
  margin:0 0 var(--s-4);
}
.eyebrow .dot{
  width:5px; height:5px; border-radius:50%;
  background:var(--brass); flex:0 0 auto;
  box-shadow:0 0 0 3px rgba(178,138,65,.16);
}
.on-ink .eyebrow{color:var(--brass-3)}
.on-ink .eyebrow .dot{background:var(--brass-3)}

/* ====================================================  utilities  ======= */

.mono{font-family:var(--mono); font-feature-settings:"liga" 0; letter-spacing:-.01em}
.muted{color:var(--muted)}
.info{display:inline-flex; align-items:center; gap:6px; color:var(--muted)}
.wrap{max-width:1220px; margin:0 auto; padding:0 var(--s-6)}
.narrow{max-width:820px; margin:0 auto; padding:0 var(--s-6)}
.section{padding:var(--s-section) 0}
.sep{height:1px; background:var(--line); border:0; margin:0}

/* Paper surfaces used by every card-like component */
.pcard,.panel,.result,.hc-card{
  background:var(--surface);
  border:1px solid var(--line);
}

/* Section header: a folio rule, the title, and an optional count. The 1px rule
   with a brass tick is the motif that ties pages together. */
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:var(--s-4); flex-wrap:wrap;
  margin-bottom:var(--s-5);
  padding-bottom:var(--s-3);
  border-bottom:1px solid var(--line);
  position:relative;
}
.section-head::after{
  content:""; position:absolute; left:0; bottom:-1px;
  width:44px; height:2px; background:var(--brass);
}
.section-head h1,.section-head h2{
  font-size:var(--t-2xl); font-weight:600; letter-spacing:-.02em;
  margin:0; color:var(--ink);
}
.section-head .count{
  font-size:var(--t-sm); color:var(--muted); font-weight:500;
  font-variant-numeric:tabular-nums;
  letter-spacing:.01em;
}
.sec-title{
  font-family:var(--sans);
  font-size:11.5px; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted);
  margin:0 0 var(--s-3);
}
.count{font-variant-numeric:tabular-nums}

.pill{
  display:inline-flex; align-items:center; gap:7px;
  padding:5px 12px; border-radius:var(--r-pill);
  border:1px solid var(--line-3);
  background:var(--surface-2);
  font-size:12px; font-weight:500; letter-spacing:.02em;
  color:var(--muted);
}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:var(--r-pill);
  border:1px solid var(--line-3); background:var(--surface-2);
  font-size:12px; font-weight:500; color:var(--text);
  transition:border-color var(--dur-1) var(--ease-out),
             background var(--dur-1) var(--ease-out);
}
.chip:hover{border-color:var(--brass-2); background:var(--brass-4)}
.chip-cnr{font-family:var(--mono); font-size:12px; letter-spacing:-.02em}
.chip-cite{color:var(--muted); background:transparent}
.chipgroup{display:flex; flex-wrap:wrap; gap:6px}
.chipgroup-t{font-size:11.5px; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted-2); margin:0 0 var(--s-2)}
.chipwrap{display:flex; flex-wrap:wrap; gap:6px}
.badge-court{
  display:inline-block; padding:2px 8px; border-radius:var(--r-xs);
  background:var(--ink-700); color:var(--brass-3);
  font-family:var(--mono); font-size:11px; letter-spacing:.06em;
}
.code-chip{
  display:inline-block; padding:4px 9px; border-radius:var(--r-xs);
  background:var(--paper-3); border:1px solid var(--line-3);
  font-family:var(--mono); font-size:12px; line-height:1.35; color:var(--ink);
  transition:border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.code-chip:hover{border-color:var(--brass-3); background:rgba(111,140,255,.08)}
.code-chip span{color:var(--muted)}
.code-inline{
  font-family:var(--mono); font-size:.92em;
  background:var(--paper-3); padding:1px 5px; border-radius:var(--r-xs);
  border:1px solid var(--line-2);
}

/* skeleton / spinner: the loading vocabulary */
.skeleton{
  background:linear-gradient(90deg,var(--paper-3) 25%,var(--paper-2) 37%,var(--paper-3) 63%);
  background-size:400% 100%;
  animation:skeleton-sweep 1.4s ease-in-out infinite;
  border-radius:var(--r-sm);
  color:transparent;
}
@keyframes skeleton-sweep{0%{background-position:100% 50%}100%{background-position:0 50%}}
.spinner{
  width:16px; height:16px; border-radius:50%;
  border:2px solid var(--line-3); border-top-color:var(--brass);
  animation:spin .7s linear infinite;
  display:inline-block; vertical-align:-3px;
}
.spin-inline{display:inline-flex; align-items:center; gap:var(--s-2); color:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}

/* key/value pairs used by record pages */
.k{
  font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted-2); margin:0 0 3px;
}
.v{font-size:var(--t-md); color:var(--ink); margin:0; line-height:1.45}
.kk{font-variant-numeric:tabular-nums}

/* =========================================================  nav  ======= */

.nav{
  position:sticky; top:0; z-index:60;
  background:rgba(6,7,9,.72);
  backdrop-filter:saturate(160%) blur(16px);
  -webkit-backdrop-filter:saturate(160%) blur(16px);
  border-bottom:1px solid transparent;
  transition:background var(--dur-2) var(--ease-out),
             border-color var(--dur-2) var(--ease-out),
             box-shadow var(--dur-2) var(--ease-out);
}
.nav.scrolled{
  background:rgba(6,7,9,.90);
  border-bottom-color:var(--line);
  box-shadow:0 10px 30px -24px rgba(0,0,0,.9);
}
.nav-inner{
  max-width:1220px; margin:0 auto;
  padding:0 var(--s-6);
  height:72px;
  display:flex; align-items:center; gap:var(--s-7);
}
.brand{
  display:inline-flex; align-items:center; gap:10px;
  flex:0 0 auto;
  font-family:var(--serif); font-size:19px; font-weight:600;
  letter-spacing:-.02em; color:var(--ink);
}
.brand-mark{
  width:30px; height:30px; display:grid; place-items:center;
  color:var(--brass-700);
  border:1px solid var(--line-3); border-radius:var(--r-sm);
  background:linear-gradient(160deg,var(--surface),var(--paper-2));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.brand-mark svg{width:17px; height:17px; display:block}
.brand-text b{font-weight:600; color:var(--brass-700)}
.nav-links{
  display:flex; align-items:center; gap:6px;
  margin-left:auto;
}
.nav-links a{
  position:relative;
  padding:9px 16px; border-radius:var(--r-sm);
  font-size:14px; font-weight:500; letter-spacing:-.005em;
  color:var(--muted);
  transition:color var(--dur-1) var(--ease-out),
             background var(--dur-1) var(--ease-out);
}
.nav-links a:hover{color:var(--ink); background:rgba(178,138,65,.10)}
/* active = the current route. A 1px brass hairline reads more refined than a
   heavier bar at this size. */
.nav-links a.active{
  color:var(--ink); font-weight:600;
  background:transparent;
}
.nav-links a.active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:1px;
  height:1px; background:var(--brass);
}
.nav-toggle{
  display:none;
  width:42px; height:42px; margin-left:auto;
  background:transparent; border:1px solid var(--line-3); border-radius:var(--r-sm);
  cursor:pointer; padding:0;
  flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.nav-toggle span{
  display:block; width:16px; height:1.5px; background:var(--ink);
  transition:transform var(--dur-2) var(--ease-out),
             opacity var(--dur-1) var(--ease-out);
  transform-origin:center;
}
.nav-toggle.open span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

/* ========================================================  footer  ===== */

.foot{
  margin-top:var(--s-section);
  background:var(--ink-900);
  color:rgba(255,255,255,.66);
  position:relative;
  overflow:hidden;
  background-image:var(--grain);
}
/* a single brass hairline is the only decoration the footer needs */
.foot::before{
  content:""; position:absolute; top:0; left:0; right:0; height:1px;
  background:linear-gradient(90deg,transparent,var(--brass),transparent);
  opacity:.5;
}
.foot-inner{
  max-width:1220px; margin:0 auto; padding:var(--s-10) var(--s-6) var(--s-8);
  display:grid; grid-template-columns:1.4fr 1fr; gap:var(--s-9);
}
.foot-brand{
  font-family:var(--serif); font-size:22px; font-weight:600;
  color:#fff; letter-spacing:-.02em; margin-bottom:var(--s-3);
}
.foot-brand b{color:var(--brass-3)}
.foot p{font-size:13.5px; line-height:1.72; margin:0 0 var(--s-3); max-width:520px;
  color:rgba(255,255,255,.56)}
.foot-meta{display:flex; flex-direction:column; gap:var(--s-3); font-size:13px;
  color:rgba(255,255,255,.52)}
.foot-meta .dot{
  width:5px; height:5px; border-radius:50%; background:var(--brass-2);
  display:inline-block; margin-right:7px; vertical-align:1px;
}
.foot-note{
  grid-column:1 / -1;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:var(--s-5);
  font-size:12px; color:rgba(255,255,255,.58);
  line-height:1.6;
}/* MyCaseStatus — design system v4 "The Register"
   ===========================================================================
   Layer 2 of 3: components.

   Every component is built from the foundation tokens. Rules are grouped by the
   job they do, not by the page they appear on, so a component behaves the same
   wherever a template reuses it.
   =========================================================================== */

/* ==========================================================  hero  ===== */

.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1200px 640px at 50% -20%, rgba(111,140,255,.16), transparent 68%),
    linear-gradient(180deg, var(--ink-800), var(--paper));
  color:var(--ink);
  border-bottom:1px solid var(--line);
  isolation:isolate;
}
/* Layered background: a warm light source, a cool counter-light, and a fine
   rule grid. Three cheap gradients beat one image and never band. */
.hero-aurora{
  position:absolute; inset:-20% -10% auto -10%; height:150%;
  z-index:-1;
  background:
    radial-gradient(760px 460px at 14% -6%, rgba(111,140,255,.28), transparent 62%),
    radial-gradient(620px 420px at 88% 4%, rgba(139,164,255,.14), transparent 64%),
    radial-gradient(900px 600px at 50% 120%, rgba(63,92,224,.20), transparent 70%);
  pointer-events:none;
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background-image:
    linear-gradient(rgba(255,255,255,.062) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.062) 1px, transparent 1px);
  background-size:68px 68px;
  mask-image:radial-gradient(ellipse 78% 62% at 50% 32%, #000 34%, transparent 80%);
  -webkit-mask-image:radial-gradient(ellipse 78% 62% at 50% 32%, #000 34%, transparent 80%);
  pointer-events:none;
}
.hero-inner{
  max-width:920px; margin:0 auto;
  /* Lifted from the previous rhythm: the gap under the nav was reading as
     top-heavy emptiness rather than deliberate margin. */
  padding:clamp(58px, 8.4vw, 112px) var(--s-6) clamp(58px, 8.6vw, 108px);
  text-align:center; position:relative;
}
.hero h1{
  color:var(--ink);
  font-size:clamp(40px, 6.4vw, 84px);
  line-height:1.02; letter-spacing:-.032em;
  margin:0 auto var(--s-6);
  max-width:16ch;
}
/* The italic marks the one word that carries the offer. It stays in the same
   azure family as the actions so the page has one accent, not two blues. */
.hero h1 em{
  font-style:italic;
  color:var(--brass-2);
}
/* The hero paragraph carries no class of its own, so this must target the element. */
.hero p{
  font-size:clamp(15px, .6vw + 13px, 18px);
  line-height:1.7;
  color:var(--text);
  margin:0 auto var(--s-8);
  max-width:58ch;
}
/* the small print under the search box */
.hero .search-hint{color:var(--muted); margin-top:var(--s-5)}
.hero .search-hint a{color:var(--brass-2)}
.hero .search-hint a:hover{color:var(--brass-3)}
/* The hero is on ink but does not carry .on-ink, so the eyebrow must be told
   explicitly. Falling through to the brass-800 default measured 3.17:1 on the ink
   ground — below AA for 11px text. */
.hero .eyebrow{color:var(--brass-3)}
.hero .eyebrow .dot{background:var(--brass-3); box-shadow:0 0 0 3px rgba(227,198,141,.18)}
.on-ink{color:var(--ink)}
.on-ink h1,.on-ink h2,.on-ink h3{color:var(--ink)}
.on-ink .muted{color:var(--muted)}

/* ========================================================  search  ===== */

.searchbox{margin:0 auto; max-width:780px; position:relative}
.search-row{
  display:flex; gap:var(--s-2); align-items:center;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-lg);
  padding:6px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:border-color var(--dur-2) var(--ease-out),
             box-shadow var(--dur-2) var(--ease-out),
             background var(--dur-2) var(--ease-out);
}
.search-row:focus-within{
  border-color:rgba(205,166,97,.55);
  background:rgba(255,255,255,.10);
  box-shadow:0 0 0 4px rgba(178,138,65,.12);
}
.search-field{
  flex:1 1 auto; min-width:0;
  display:flex; align-items:center; gap:10px;
  padding:0 4px 0 14px;
  color:var(--muted);
}
.search-field svg{width:17px; height:17px; flex:0 0 auto; color:var(--brass-2)}
.search-field input{
  flex:1 1 auto; min-width:0;
  background:transparent; border:0; outline:0;
  font-family:var(--sans); font-size:15.5px;
  color:var(--ink); padding:13px 0;
}
.search-field input::placeholder{color:rgba(255,255,255,.52)}
.search-hint{
  margin:var(--s-4) 0 0; font-size:13px; color:var(--muted);
  letter-spacing:.005em;
}
.search-hint a{color:var(--brass-2); border-bottom:1px solid rgba(139,164,255,.4)}
.search-hint a:hover{color:var(--seal)}

/* search filters used by the district and index pages */
.search-filters{
  display:flex; flex-wrap:wrap; gap:var(--s-3);
  align-items:flex-end;
  margin:0 0 var(--s-5);
}

/* ========================================================  buttons  ===== */

.btn-search{
  flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:0 var(--s-6); height:50px;
  border:1px solid var(--seal);
  border-radius:var(--r-sm);
  background:var(--seal);
  color:#fff; font-family:var(--sans); font-size:14.5px; font-weight:600;
  letter-spacing:.005em; cursor:pointer;
  transition:background var(--dur-1) var(--ease-out),
             transform var(--dur-1) var(--ease-out),
             box-shadow var(--dur-2) var(--ease-out);
  /* Flatter than v1: a flat fill with a hairline reads newer than a drop shadow,
     and the colour change on hover carries the affordance. */
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.btn-search:hover{background:var(--seal-2); transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);}
.btn-search:active{transform:translateY(0)}

.btn-inline{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:9px 16px;
  border:1px solid var(--line-3); border-radius:var(--r-sm);
  background:var(--surface); color:var(--ink);
  font-family:var(--sans); font-size:13.5px; font-weight:500;
  cursor:pointer;
  transition:border-color var(--dur-1) var(--ease-out),
             background var(--dur-1) var(--ease-out),
             color var(--dur-1) var(--ease-out);
}
.btn-inline:hover{border-color:var(--brass-2); background:var(--brass-4); color:var(--ink-900)}

/* the compact keyboard-hint button used in the hero */
.kbtn{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:var(--r-xs);
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-family:var(--mono); font-size:11px;
  min-height:32px;
}
/* Search-type chips are the primary control on the district page. At 26px they
   sat just above the 24px minimum but were fiddly to hit on a phone. */
@media (pointer:coarse){ .kbtn{min-height:38px; padding:9px 11px} }
.kbtn-badge{
  padding:1px 5px; border-radius:3px;
  background:rgba(255,255,255,.12); color:var(--ink);
}
.kbtn-l{opacity:.6}

/* ==========================================================  forms  ===== */

.cascade{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:var(--s-5);
  box-shadow:var(--shadow-card);
}
.cas-title{
  display:flex; align-items:center; gap:9px;
  font-family:var(--serif); font-size:16px; font-weight:600;
  color:var(--ink); margin:0 0 var(--s-4);
  padding-bottom:var(--s-3);
  border-bottom:1px solid var(--line-2);
}
.cas-title svg{width:16px; height:16px; color:var(--brass-700); flex:0 0 auto}
.cas-title em{
  font-family:var(--sans); font-size:12.5px; font-style:normal;
  font-weight:400; color:var(--muted); margin-left:auto;
}
.ff-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:var(--s-4)}
.ff{display:flex; flex-direction:column; gap:6px; min-width:0}
.ff.wide{grid-column:1 / -1}
.ff label{
  font-size:11px; font-weight:700; letter-spacing:.13em;
  text-transform:uppercase; color:var(--muted-2);
}
.ff input,.ff select,.ff textarea{
  width:100%;
  padding:11px 13px;
  border:1px solid var(--line-3); border-radius:var(--r-sm);
  background:var(--surface-2);
  font-family:var(--sans); font-size:14.5px; color:var(--ink);
  transition:border-color var(--dur-1) var(--ease-out),
             box-shadow var(--dur-1) var(--ease-out),
             background var(--dur-1) var(--ease-out);
  appearance:none;
}
.ff select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236a6456' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center;
  padding-right:34px;
}
.ff input:focus,.ff select:focus,.ff textarea:focus{
  outline:0; border-color:var(--brass-2); background:var(--surface);
  box-shadow:0 0 0 3px rgba(178,138,65,.16);
}
.ff input::placeholder{color:var(--muted-3)}

/* ==========================================================  cards  ===== */

.pcard{
  border-radius:var(--r-lg);
  padding:var(--s-5);
  box-shadow:var(--shadow-card);
  transition:border-color var(--dur-2) var(--ease-out),
             box-shadow var(--dur-2) var(--ease-out),
             transform var(--dur-2) var(--ease-out);
}
.pcard:hover{border-color:var(--line-3); box-shadow:var(--shadow-lg)}
.pcard-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:var(--s-4); margin:0 0 var(--s-3);
  padding-bottom:var(--s-3); border-bottom:1px solid var(--line-2);
}
.pcard-head h3{margin:0; font-size:var(--t-lg)}
.pcard-foot{
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--s-3); margin-top:var(--s-4);
  padding-top:var(--s-3); border-top:1px solid var(--line-2);
}

.panel{
  border-radius:var(--r-lg);
  padding:var(--s-5);
  box-shadow:var(--shadow-xs);
}

/* search result row */
.result{
  border-radius:var(--r);
  padding:var(--s-4) var(--s-5);
  box-shadow:var(--shadow-xs);
  transition:border-color var(--dur-2) var(--ease-out),
             box-shadow var(--dur-2) var(--ease-out),
             transform var(--dur-2) var(--ease-out);
}
.result:hover{transform:translateY(-1px); border-color:var(--brass-3); box-shadow:var(--shadow)}
.result h3{margin:0 0 4px; font-size:var(--t-md); font-family:var(--sans); font-weight:600;
  letter-spacing:-.005em; line-height:1.4}
.result h3 a:hover{color:var(--seal)}
.result + .result{margin-top:var(--s-2)}

/* high-court directory cards */
.hc-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:var(--s-3)}
.hc-card{
  border-radius:var(--r);
  padding:var(--s-5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  transition:border-color var(--dur-2) var(--ease-out),
             box-shadow var(--dur-2) var(--ease-out),
             transform var(--dur-2) var(--ease-out);
}
.hc-card:hover{transform:translateY(-2px); border-color:var(--brass-3); box-shadow:var(--shadow)}
.hc-head{display:flex; align-items:flex-start; justify-content:space-between; gap:var(--s-3)}
.hc-name{font-family:var(--serif); font-size:16px; font-weight:600; color:var(--ink);
  line-height:1.25; letter-spacing:-.012em}
.hc-state{font-size:11.5px; color:var(--muted-2); letter-spacing:.04em; flex:0 0 auto}

.state-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:var(--s-2)}
.state-chip{
  display:flex; align-items:baseline; justify-content:space-between; gap:var(--s-2);
  padding:9px 13px;
  border:1px solid var(--line); border-radius:var(--r-sm);
  background:var(--surface); font-size:13.5px; color:var(--text);
  transition:border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.state-chip:hover{border-color:var(--brass-3); background:var(--brass-4)}
.state-chip .n{font-family:var(--mono); font-size:12px; color:var(--muted)}

/* the three entry paths on the homepage */
.paths{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:0;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  background:var(--surface);
}
.path{
  position:relative;
  padding:var(--s-6);
  display:flex; flex-direction:column; gap:var(--s-2);
  transition:background var(--dur-2) var(--ease-out);
}
.path + .path{border-left:1px solid var(--line)}
.path:hover{background:var(--surface-2)}
.path-icon{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid var(--line-3); border-radius:var(--r-sm);
  color:var(--brass-700); background:var(--paper-2);
  margin-bottom:var(--s-2);
}
.path-icon svg{width:17px; height:17px}
.path-t{font-family:var(--serif); font-size:17px; font-weight:600; color:var(--ink);
  letter-spacing:-.012em}
.path-d{font-size:13.5px; line-height:1.6; color:var(--muted); margin:0}
.path-go{
  margin-top:auto; padding-top:var(--s-3);
  font-size:12.5px; font-weight:600; letter-spacing:.05em;
  text-transform:uppercase; color:var(--brass-2);
  display:inline-flex; align-items:center; gap:6px;
}
.path-go::after{content:"→"; transition:transform var(--dur-2) var(--ease-out)}
.path:hover .path-go::after{transform:translateX(4px)}

/* =========================================================  stats  ===== */

.stats-strip{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
}
.stat{
  background:var(--surface);
  padding:var(--s-5) var(--s-4);
  text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  transition:background var(--dur-2) var(--ease-out);
}
.stat:hover{background:var(--surface-2)}
.stat .n{
  font-family:var(--serif);
  font-size:clamp(22px, 1.6vw + 16px, 31px);
  font-weight:600; letter-spacing:-.028em;
  color:var(--ink); line-height:1.1;
  font-variant-numeric:tabular-nums;
}
.stat .l{
  margin-top:9px; font-size:11.5px; font-weight:600;
  letter-spacing:.11em; text-transform:uppercase; color:var(--muted);
}
/* A hairline above each figure replaces the heavy grid gap, so the strip reads as
   a set of totals rather than four boxes. */
.stat{position:relative}
.stat + .stat::before{
  content:""; position:absolute; left:0; top:18%; bottom:18%; width:1px;
  background:var(--line);
}

/* horizontal bars used by the coverage page */
.bars{display:flex; flex-direction:column; gap:var(--s-3)}
.bar-row{display:grid; grid-template-columns:minmax(120px,1.4fr) 2.4fr auto;
  align-items:center; gap:var(--s-3)}
.bar-track{
  height:7px; border-radius:99px;
  background:var(--paper-3); overflow:hidden;
  position:relative;
}
.bar-fill{
  height:100%; width:100%;
  background:linear-gradient(90deg,var(--brass),var(--brass-2));
  border-radius:99px;
  transform-origin:left center;
  transition:transform var(--dur-4) var(--ease-out);
}
/* The proportion is an inline width, so scaleX is purely the entrance. It must be
   gated on .oc-motion — leaving scaleX(0) unconditional would make every bar
   invisible to a reader whose JavaScript never ran. */
html.oc-motion .bar-fill{transform:scaleX(0)}
html.oc-motion .bar-fill.revealed{transform:none}
.bar-fill.navy{background:linear-gradient(90deg,var(--ink-600),var(--ink-300))}
.bar-val{font-family:var(--mono); font-size:12px; color:var(--muted);
  font-variant-numeric:tabular-nums; min-width:56px; text-align:right}

/* =========================================================  tables  ==== */

.table-wrap{
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:auto;
  background:var(--surface);
  -webkit-overflow-scrolling:touch;
}
.rtable,.src-table{
  width:100%; border-collapse:collapse;
  font-size:13.5px;
}
.rtable thead th,.src-table thead th{
  position:sticky; top:0; z-index:1;
  background:var(--paper-3);
  font-family:var(--sans);
  font-size:10.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--text);
  text-align:left; padding:12px 16px;
  border-bottom:1px solid var(--line-3);
  white-space:nowrap;
}
.rtable tbody td,.src-table tbody td{
  padding:13px 16px;
  border-bottom:1px solid var(--line);
  color:var(--text); vertical-align:top;
  line-height:1.45;
}
.rtable tbody tr:last-child td,.src-table tbody tr:last-child td{border-bottom:0}
.rtable tbody tr{transition:background var(--dur-1) var(--ease-out)}
.rtable tbody tr:hover td{background:var(--paper-2)}
.rtable td a{color:var(--ink); font-weight:500; border-bottom:1px solid transparent}
.rtable td a:hover{color:var(--seal); border-bottom-color:var(--seal-3)}
.rtable .muted{color:var(--muted-2); font-size:12.5px}

/* ====================================================  record layout  == */

.dgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden}
.detail-cell{background:var(--surface); padding:var(--s-4)}
.detail-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1px; background:var(--line); border:1px solid var(--line);
  border-radius:var(--r-lg); overflow:hidden}
.dgroup{background:var(--surface); padding:var(--s-4) var(--s-5)}
.dgroup-t{font-size:10.5px; font-weight:700; letter-spacing:.15em;
  text-transform:uppercase; color:var(--muted-2); margin:0 0 3px}

/* sidebar + main split used by the district lookup */
.dside{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:var(--s-4);
  box-shadow:var(--shadow-xs);
}
.dside-head{
  font-size:10.5px; font-weight:700; letter-spacing:.15em;
  text-transform:uppercase; color:var(--muted-2);
  padding-bottom:var(--s-3); margin-bottom:var(--s-3);
  border-bottom:1px solid var(--line-2);
}
.dmain{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:var(--s-5);
  box-shadow:var(--shadow-card);
  min-width:0;
}

/* =======================================================  chromium  ==== */

.back-link{
  display:inline-flex; align-items:center; gap:7px;
  font-size:12.5px; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted);
  transition:color var(--dur-1) var(--ease-out);
}
.back-link:hover{color:var(--seal)}
.back-link svg{width:14px; height:14px}

.pager{display:flex; gap:var(--s-2); align-items:center; flex-wrap:wrap}

.empty{
  padding:var(--s-9) var(--s-5);
  text-align:center;
  border:1px dashed var(--line-3);
  border-radius:var(--r-lg);
  background:var(--surface-2);
}
.empty h3{margin:0 0 var(--s-2); font-size:var(--t-lg)}
.empty p{margin:0 auto; max-width:46ch; color:var(--muted); font-size:14px}

/* modal */
.modal-card{
  position:fixed; inset:auto;
  top:50%; left:50%; transform:translate(-50%,-50%);
  width:min(440px, calc(100vw - 40px));
  background:var(--surface);
  border:1px solid var(--line-3);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-xl);
  padding:var(--s-5);
  z-index:120;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--s-4); margin:0 0 var(--s-2);
}
.modal-head h3{margin:0; font-size:var(--t-lg)}
.modal-x{
  width:30px; height:30px; display:grid; place-items:center;
  border:0; background:transparent; cursor:pointer;
  color:var(--muted); border-radius:var(--r-xs);
}
.modal-x:hover{background:var(--paper-3); color:var(--ink)}
.modal-foot{display:flex; justify-content:flex-end; gap:var(--s-2); margin-top:var(--s-4)}

/* captcha panel — the one place a live portal image appears */
.cap-wrap{
  position:relative; width:100%; max-width:420px;
  border:1px solid var(--line-3); border-radius:var(--r);
  background:var(--surface-2); padding:var(--s-4);
  text-align:center;
}
.cap-wrap img{display:block; margin:0 auto var(--s-3); max-width:100%; height:auto;
  border-radius:var(--r-xs); border:1px solid var(--line-2); background:#fff}
.cap-in{
  width:100%; padding:10px 13px;
  border:1px solid var(--line-3); border-radius:var(--r-sm);
  background:var(--surface); font-family:var(--mono); font-size:15px;
  text-align:center; letter-spacing:.24em; color:var(--ink);
}
.cap-in:focus{outline:0; border-color:var(--brass-2); box-shadow:var(--ring)}
.cap-msg{font-size:12.5px; color:var(--muted); margin:var(--s-2) 0 0}
.cap-refresh{
  margin-top:var(--s-3);
  border:1px solid var(--line-3); border-radius:var(--r-sm);
  background:var(--surface); padding:7px 14px;
  font-size:12.5px; color:var(--muted); cursor:pointer;
}
.cap-refresh:hover{border-color:var(--brass-2); color:var(--brass-3)}

/* notes that sit inside a page body */
.dir-note{
  font-size:13.5px; line-height:1.7; color:var(--muted);
  background:var(--surface-2);
  border-left:2px solid var(--brass-2);
  padding:var(--s-3) var(--s-4);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
  margin:0 0 var(--s-5);
}
.dir-note a{color:var(--brass-2); border-bottom:1px solid rgba(139,164,255,.4)}
.banner{
  border:1px solid var(--line-3);
  border-left:2px solid var(--brass);
  background:var(--brass-4);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
  padding:var(--s-3) var(--s-4);
  font-size:13.5px; color:var(--brass-2);
}
.cc-banner{
  display:flex; align-items:center; gap:var(--s-3);
  padding:var(--s-3) var(--s-4);
  border:1px solid var(--line); border-radius:var(--r);
  background:var(--surface); font-size:13.5px;
}
.cc-clear{margin-left:auto; border:0; background:transparent; cursor:pointer;
  color:var(--muted); font-size:12px; text-decoration:underline}

/* ======================================================  directory  === */

.dir-head{text-align:center; margin:0 auto var(--s-7); max-width:680px}
.dir-head h1{margin:0 0 var(--s-3)}
.dir-head p{font-size:var(--t-md); color:var(--muted); margin:0}
.dir-sec{margin-top:var(--s-8)}
.dir-stats{display:flex; gap:var(--s-5); flex-wrap:wrap; margin:var(--s-5) 0 0}
.dir-count{font-family:var(--sans); font-size:12px; font-weight:500;
  color:var(--muted-2); letter-spacing:.04em; margin-left:6px}

/* ==========================================================  misc  ==== */

.prose{
  max-width:760px; font-size:var(--t-md); line-height:1.78; color:var(--text);
}
.prose h2{margin:var(--s-8) 0 var(--s-3); font-size:var(--t-2xl)}
.prose h3{margin:var(--s-6) 0 var(--s-2); font-size:var(--t-lg)}
.prose p{margin:0 0 var(--s-4)}
.prose ul,.prose ol{margin:0 0 var(--s-4); padding-left:1.3em}
.prose li{margin:0 0 var(--s-2)}
.prose a{color:var(--brass-2); border-bottom:1px solid rgba(139,164,255,.4)}
.prose code{font-family:var(--mono); font-size:.9em; background:var(--paper-3);
  padding:1px 5px; border-radius:var(--r-xs)}

.ref-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:var(--s-2)}
/* A run of court codes. Without the wrap it is a single flex row, and a state with
   thirty codes pushes the whole page sideways. */
.code-row{
  display:flex; align-items:center; flex-wrap:wrap;
  gap:var(--s-2); font-size:12.5px;
}

.pdf-link{
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 14px; border:1px solid var(--line-3); border-radius:var(--r-sm);
  background:var(--surface); font-size:13px; color:var(--ink);
}
.pdf-link:hover{border-color:var(--brass-2); background:var(--brass-4)}

/* court page hero */
.court-hero{
  background:var(--ink-800); color:var(--ink);
  border-radius:var(--r-lg);
  overflow:hidden; position:relative;
  background-image:var(--grain);
}
.court-hero-in{max-width:1000px; margin:0 auto; padding:var(--s-8) var(--s-6)}
.court-code{font-family:var(--mono); font-size:12px; letter-spacing:.1em;
  color:var(--brass-3)}
.court-sub{font-size:14px; color:var(--muted); margin:var(--s-2) 0 0}
.court-actions{display:flex; gap:var(--s-2); flex-wrap:wrap; margin-top:var(--s-5)}

/* small utilities referenced by templates */
.show{display:initial}
.static{position:static}
.solid{background:var(--ink-700); color:#fff; border-color:var(--ink-700)}
.sub{font-size:12px; color:var(--muted)}
.active{color:var(--ink)}
.l{letter-spacing:.02em}
.wide{grid-column:1 / -1}
.spin-inline .spinner{flex:0 0 auto}
.hero .kbtn{margin-top:var(--s-4)}/* MyCaseStatus — design system v4 "The Register"
   ===========================================================================
   Layer 3 of 3: page patterns, decorative systems, responsiveness, motion.

   Everything that is specific to one kind of page lives here, plus the shared
   pre-animation contract. Keeping it last means a page pattern can specialise a
   component without any earlier layer having to know about that page.
   =========================================================================== */

/* ======================================================  page head  ==== */

.page-head{
  position:relative;
  background:var(--ink-800);
  color:var(--ink);
  overflow:hidden;
  background-image:var(--grain);
}
.page-head::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(560px 320px at 8% -10%, rgba(190,146,74,.22), transparent 64%),
    radial-gradient(520px 340px at 92% 110%, rgba(50,86,132,.26), transparent 66%);
  pointer-events:none;
}
.page-head .wrap{position:relative; z-index:1; padding-top:var(--s-9); padding-bottom:var(--s-9)}
.page-head h1{
  color:var(--ink);
  font-size:clamp(30px, 3.6vw + 14px, 54px);
  line-height:1.06; letter-spacing:-.028em;
  margin:0 0 var(--s-3); max-width:20ch;
}
.page-head p{color:var(--text); margin:0; max-width:62ch; font-size:var(--t-md)}
.page-head .searchbox{max-width:640px; margin-top:var(--s-6); text-align:left}
.page-head .search-hint{color:var(--muted)}

/* =====================================================  case hero  ===== */

.case-hero{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:var(--s-6);
  box-shadow:var(--shadow-card);
  position:relative;
  overflow:hidden;
}
/* a brass margin rule, like a bound page */
.case-hero::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg,var(--brass),var(--brass-4));
}
.case-hero h1{font-size:clamp(25px, 2.4vw + 14px, 38px); line-height:1.1; margin:0 0 var(--s-3)}
.case-hero .meta{
  display:flex; flex-wrap:wrap; gap:var(--s-2) var(--s-4);
  font-size:12.5px; color:var(--muted);
}
.meta{display:flex; flex-wrap:wrap; gap:var(--s-2) var(--s-4); font-size:12.5px; color:var(--muted)}

/* ===============================================  state semantics  ===== */

.ok{color:var(--ok)}
.err{color:var(--seal)}
.ok,.err{font-weight:600}
.chip-static{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:var(--r-pill);
  border:1px solid var(--line); background:var(--surface-2);
  font-size:12px; color:var(--muted);
}

/* court-index table: a fixed-width identifier must never wrap */
.ci-table th:nth-child(1),.ci-table td:nth-child(1){white-space:nowrap}
.ci-table th:nth-child(2),.ci-table td:nth-child(2){white-space:nowrap}
.ci-table th:nth-child(5),.ci-table td:nth-child(5){min-width:15rem}
.ci-table th:nth-child(6),.ci-table td:nth-child(6){white-space:nowrap}
.ci-table th:last-child,.ci-table td:last-child{width:1%; white-space:nowrap}
.ci-table td a.btn-inline{padding:.32rem .75rem}
/* Even-row tint is what lets the eye track a wide row across seven columns. */
.rtable tbody tr:nth-child(even) td{background:rgba(255,255,255,.014)}
.rtable tbody tr:hover td{background:rgba(111,140,255,.055)}
/* The row action carries the accent; the rest of the row stays neutral. */
.ci-table td a.btn-inline{
  color:var(--brass-3);
  border-color:rgba(111,140,255,.34);
  background:rgba(111,140,255,.08);
}
.ci-table td a.btn-inline:hover{
  color:#fff;
  background:var(--seal);
  border-color:var(--seal);
}

/* ============================================  decorative systems  ===== */

/* Gradient mesh: used on light sections that need depth without an image. */
.mesh{
  position:relative;
  background:
    radial-gradient(700px 420px at 12% 0%, rgba(178,138,65,.10), transparent 62%),
    radial-gradient(620px 400px at 92% 20%, rgba(38,109,106,.07), transparent 60%),
    var(--paper);
}

/* A wax-seal motif. Pure CSS, no asset, scales cleanly. */
.seal{
  width:74px; height:74px; border-radius:50%;
  display:grid; place-items:center;
  color:var(--seal);
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.55), transparent 46%),
    radial-gradient(circle at 50% 50%, var(--seal-wash), transparent 70%);
  border:1px solid rgba(140,47,40,.35);
  box-shadow:inset 0 0 0 4px rgba(140,47,40,.06), 0 6px 18px -12px rgba(140,47,40,.5);
  font-family:var(--serif); font-size:26px; font-weight:600;
  flex:0 0 auto;
}

/* Folio rule: the numbered section divider that repeats page to page. */
.folio{
  display:flex; align-items:center; gap:var(--s-4);
  margin:0 0 var(--s-5);
  font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:var(--muted-2);
}
.folio::after{
  content:""; flex:1 1 auto; height:1px;
  background:linear-gradient(90deg,var(--line-3),transparent);
}
.folio b{color:var(--brass-700); font-weight:700}

/* Line-art block: an SVG that draws itself. Sits behind hero copy. */
.line-art{
  position:absolute; right:-40px; bottom:-30px;
  width:min(420px, 46vw); opacity:.5;
  color:var(--brass-2);
  pointer-events:none; z-index:-1;
}
.line-art svg{width:100%; height:auto; display:block}
.line-art svg path,.line-art svg circle,.line-art svg line{
  stroke-dasharray:var(--len,900); stroke-dashoffset:var(--len,900);
}
html:not(.oc-motion) .line-art svg path,
html:not(.oc-motion) .line-art svg circle,
html:not(.oc-motion) .line-art svg line{stroke-dashoffset:0}

/* ==============================================  motion contract  ====== */
/* Everything below is gated on .oc-motion, which only exists when JavaScript
   is about to drive the animation. Without it the page is simply visible. */

html.oc-motion [data-anim]{opacity:0; will-change:transform,opacity}
html.oc-motion [data-anim="up"]{transform:translate3d(0,22px,0)}
html.oc-motion [data-anim="down"]{transform:translate3d(0,-18px,0)}
html.oc-motion [data-anim="fade"]{transform:none}
html.oc-motion [data-anim="scale"]{transform:scale(.965)}
html.oc-motion [data-anim].revealed{opacity:1; transform:none}

/* Heading reveals are driven per-line by /motion.js; the wrapper only needs to
   keep its layout while the lines are masked. */
html.oc-motion .lines{display:block}
html.oc-motion .lines .ln{display:block; overflow:hidden}
html.oc-motion .lines .ln > span{display:block; transform:translate3d(0,110%,0)}
html.oc-motion .lines.revealed .ln > span{transform:none}

/* Reduced motion removes the contract entirely at the source, so nothing is
   ever hidden and no tween is scheduled. */
@media (prefers-reduced-motion: reduce){
  html.oc-motion [data-anim],
  html.oc-motion [data-anim].revealed{opacity:1; transform:none}
  html.oc-motion .lines .ln > span{transform:none}
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; scroll-behavior:auto !important}
}

/* ======================================================  responsive  == */

@media (max-width:1080px){
  .hero-inner{padding-top:clamp(64px,9vw,110px)}
  .paths{grid-template-columns:1fr}
  .path + .path{border-left:0; border-top:1px solid var(--line)}
  .foot-inner{grid-template-columns:1fr; gap:var(--s-6)}
}

@media (max-width:820px){
  :root{--s-6:18px; --s-9:40px; --s-10:52px}
  .nav-inner{height:64px; gap:var(--s-4)}
  .nav-toggle{display:flex}
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    margin:0; padding:var(--s-3) var(--s-4) var(--s-4);
    background:var(--paper);
    border-bottom:1px solid var(--line);
    box-shadow:0 20px 40px -28px rgba(10,16,27,.5);
    max-height:0; overflow:hidden;
    opacity:0; pointer-events:none;
    transition:max-height var(--dur-2) var(--ease-out),
               opacity var(--dur-2) var(--ease-out);
  }
  .nav-links.open{
    max-height:70vh; overflow:auto; opacity:1; pointer-events:auto;
  }
  .nav-links a{padding:12px 10px; font-size:15px; border-radius:var(--r-sm)}
  .nav-links a.active::after{left:10px; right:auto; width:18px}

  .hero-inner{padding:clamp(48px,12vw,76px) var(--s-5) clamp(52px,10vw,72px)}
  .hero h1{max-width:100%}
  .search-row{flex-direction:column; gap:var(--s-2); padding:var(--s-2)}
  .search-field{padding:0 var(--s-3)}
  .search-field input{padding:10px 0}
  .btn-search{height:46px; width:100%}

  .wrap,.narrow{padding:0 var(--s-5)}
  .section{padding:var(--s-8) 0}
  .stats-strip{grid-template-columns:repeat(2,1fr)}
  .dgrid,.detail-grid{grid-template-columns:1fr}
  .state-grid{grid-template-columns:repeat(2,1fr)}
  .hc-grid{grid-template-columns:1fr}
  .ff-grid{grid-template-columns:1fr}
  .cas-title{flex-wrap:wrap}
  .cas-title em{margin-left:0; width:100%}
  .bar-row{grid-template-columns:1fr auto; gap:6px}
  .bar-track{grid-column:1 / -1; order:3}
  .page-head .wrap{padding-top:var(--s-7); padding-bottom:var(--s-7)}
  .table-wrap{border-radius:var(--r)}
  .rtable{font-size:13px}
  .rtable thead th,.rtable tbody td{padding:10px 11px}
  .line-art{display:none}
}

@media (max-width:520px){
  h1{letter-spacing:-.024em}
  .stat .n{font-size:24px}
  .stats-strip{grid-template-columns:1fr 1fr}
  .state-grid{grid-template-columns:1fr}
  .foot-inner{padding:var(--s-8) var(--s-5) var(--s-6)}
  .seal{width:56px; height:56px; font-size:20px}
  .court-hero-in{padding:var(--s-6) var(--s-4)}
}

/* Very wide screens: the register keeps its measure rather than stretching. */
@media (min-width:1500px){
  .wrap{max-width:1280px}
}

/* ==========================================================  print  === */

@media print{
  .nav,.foot,.searchbox,.search-filters,.pager,.back-link{display:none !important}
  body{background:#fff}
  .pcard,.panel,.case-hero,.rtable{border-color:#ccc; box-shadow:none}
  a[href^="http"]::after{content:" (" attr(href) ")"; font-size:10px; color:#555}
}/* MyCaseStatus — layer 4 of 4: "The Public Record"
   ===========================================================================
   A light, document-led skin layered over the existing component system.

   Why a layer and not a rewrite: 01-base/02-components/03-pages define the
   structure, spacing and behaviour. Only colour, elevation and the dark-only
   garnish (aurora glows, grid overlay, paper grain) change here, so the layout
   logic that has already been verified across five viewports stays intact.

   If this ever needs to be undone, drop `04-paper.css` from the build line in
   bin/build-css.sh and rebuild: the dark theme returns byte for byte.

   Contrast targets, all AA at normal size:
     ink on paper        #14161a on #fcfcfa  -> 17.4
     body on paper       #2c3138 on #fcfcfa  -> 12.1
     muted on paper      #5f6672 on #fcfcfa  ->  5.6
     indigo link on paper #2b3a8c on #fcfcfa -> 10.9
     white on indigo     #ffffff on #2b3a8c  ->  9.1
   =========================================================================== */

:root{
  /* ---- canvas: paper, not ink ---- */
  --paper:#fcfcfa;
  --paper-2:#f4f3ee;
  --paper-3:#eceae3;
  --surface:#ffffff;
  --surface-2:#f8f7f2;

  /* ---- rules ---- */
  --line:#dcdad2;
  --line-2:#e8e6de;
  --line-3:#cbc8bd;

  /* ---- text ---- */
  --ink:#14161a;
  --text:#2c3138;
  /* #4e5560 rather than #5f6672: secondary labels sit on the tinted stat strip
     (#eceae3) as well as on paper, and 5f6672 only reached 4.13:1 there. */
  --muted:#4e5560;
  --muted-2:#4e5560;
  --muted-3:#6b7280;

  /* ---- the ink ladder was a dark canvas stack; invert it so any component
         that paints with --ink-800/--ink-700 becomes a light wash instead of
         a black slab ---- */
  --ink-900:#fbfaf6;
  --ink-800:#f7f5ef;
  --ink-700:#f2efe7;
  --ink-600:#eae7dd;
  --ink-500:#e2ded2;
  --ink-400:#d5d1c4;
  --ink-300:#c2bdae;
  --ink-200:#a39d8c;
  --ink-100:#7d7767;

  /* ---- accent: one deep indigo, replacing the azure ---- */
  --brass-900:#eef1fb;
  --brass-800:#e3e8f8;
  --brass-700:#c9d2f0;
  --brass:#2b3a8c;
  --brass-2:#1f2a66;
  --brass-3:#4a5bb5;
  --brass-4:#dfe3f8;
  --brass-glow:rgba(43,58,140,.10);

  --seal:#2b3a8c;
  --seal-2:#243178;
  --seal-3:#4a5bb5;
  --seal-wash:rgba(43,58,140,.07);

  /* ---- semantic ---- */
  --navy:#eef0f4;
  --accent:var(--brass);
  --ok:#1c6b45;
  --ok-2:#14563a;
  --warn:#8a5a00;
  --err:#a3282d;
  --signal:#0f6f7a;

  /* ---- elevation: on paper, depth is a shadow, not a light top edge ---- */
  --shadow-xs:0 1px 1px rgba(20,22,26,.05);
  --shadow:0 1px 2px rgba(20,22,26,.06), 0 6px 16px -10px rgba(20,22,26,.12);
  --shadow-card:0 1px 2px rgba(20,22,26,.05), 0 10px 26px -18px rgba(20,22,26,.16);
  --shadow-lg:0 2px 4px rgba(20,22,26,.06), 0 20px 44px -26px rgba(20,22,26,.2);
  --shadow-xl:0 4px 8px rgba(20,22,26,.07), 0 34px 66px -34px rgba(20,22,26,.24);
  --ring:0 0 0 3px rgba(43,58,140,.22);
  --ring-seal:0 0 0 3px rgba(43,58,140,.22);
}

/* ---- kill the dark-only garnish --------------------------------------- */
.hero-aurora,
[class*="aurora"],
[class*="grain"],
[class*="noise"],
.hero-grid,
.grid-overlay,
[data-grain]{
  display:none !important;
}

html, body{ background:var(--paper); color:var(--text); }
body{
  background-image:none !important;
}

/* ---- icon sizing -------------------------------------------------------- */
/* Every inline glyph was pinned at 17px, which reads as a hairline next to
   15–18px text and worse on a phone where the whole interface scales down.
   Sizes now follow the text they sit beside instead of a single fixed value. */
.brand-mark svg{ width:22px; height:22px; }
.search-field svg, .searchbox svg{ width:19px; height:19px; }
.path-icon svg, .path-icon{ width:19px; height:19px; }
.eyebrow .dot{ width:6px; height:6px; }
.btn-inline svg, .link svg{ width:16px; height:16px; }
@media (max-width:520px){
  .brand-mark svg{ width:20px; height:20px; }
  .search-field svg, .searchbox svg{ width:18px; height:18px; }
}

/* ---- header / footer --------------------------------------------------- */
/* The wordmark's second half used --brass-700, which was a light tint on a dark
   canvas. On paper it drops to 1.4:1 — invisible. Both halves are ink here. */
.brand, .brand-text, .brand-text b{ color:var(--ink); }
.brand-text b{ font-weight:700; }
.nav{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  backdrop-filter:none;
}
.nav-links a{ color:var(--text); }
.nav-links a.active{ color:var(--brass); }
.foot{ background:var(--paper-2); border-top:1px solid var(--line); }
.foot, .foot p, .foot a{ color:var(--muted); }
.foot-brand{ color:var(--ink); }

/* ---- hero -------------------------------------------------------------- */
.hero{
  background:linear-gradient(180deg,var(--paper-2),var(--paper)) !important;
  border-bottom:1px solid var(--line);
  color:var(--ink);
}
.hero h1, .hero .lede, .hero p{ color:var(--ink); }
.hero .lede{ color:var(--text); }
.eyebrow{ color:var(--muted); }
.eyebrow .dot{ background:var(--brass); }

/* ---- surfaces ---------------------------------------------------------- */
.card, .panel, .court-card, .hc-card, .case-card, .dc-card,
.searchbox, .kbtn, .chip, .badge, .code-chip, .cc-banner,
.stat, .bench-tag, .dir-card, .empty{
  background:var(--surface);
  border-color:var(--line);
  color:var(--text);
  box-shadow:var(--shadow-xs);
}
.card:hover, .court-card:hover, .hc-card:hover, .dir-card:hover{
  border-color:var(--line-3);
  box-shadow:var(--shadow-card);
}

/* ---- the stat strip ---------------------------------------------------- */
.stats-strip{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats-strip .stat{ background:transparent; box-shadow:none; border:0; }
.stats-strip .stat .n{ color:var(--ink); }
.stats-strip .stat .l{ color:var(--muted); }

/* ---- forms ------------------------------------------------------------- */
input, select, textarea{
  background:#fff; color:var(--ink);
  border:1px solid var(--line-3);
}
input::placeholder, textarea::placeholder{ color:var(--muted-3); }
input:focus, select:focus, textarea:focus{
  border-color:var(--brass);
  outline:none; box-shadow:var(--ring);
}

/* ---- buttons ----------------------------------------------------------- */
.btn-primary, .btn-solid, button.primary{ background:var(--seal); color:#fff; }
.btn-inline{ color:var(--brass); }

/* ---- tables ------------------------------------------------------------ */
table{ background:transparent; }
thead th, .rtable th, .ci-table th{
  color:var(--muted);
  background:var(--paper-2);
  border-bottom:1px solid var(--line-3);
}
tbody td, .rtable td, .ci-table td{
  color:var(--text);
  border-bottom:1px solid var(--line-2);
}
tbody tr:nth-child(even) td{ background:var(--paper-2); }
tbody tr:hover td{ background:var(--brass-900); }
a, .link{ color:var(--brass); }

/* ---- misc -------------------------------------------------------------- */
/* Small print used the light tints (--brass-4 / --brass-900) that were legible
   white-on-dark but vanish on paper: 1.1:1. Every secondary label is --muted
   (#5f6672, 5.16:1) which clears AA at these sizes. */
.foot, .foot *, .foot-note, .foot-brand + p,
.note, .dir-note, .stat .l, .stat-note, .section-head .count,
.kv .k, .kv-label, .muted, .small-print{
  color:var(--muted) !important;
}
hr, .rule{ border-color:var(--line); }
.section-head .count{ color:var(--muted); }
.empty h3, .section-head h1, h1, h2, h3{ color:var(--ink); }
.note, .dir-note{ color:var(--muted); }

/* Status language: the same three meanings everywhere. */
.status-ok, .badge.ok{ background:#e7f4ec; color:#1c6b45; border-color:#c9e5d5; }
.status-warn, .badge.warn{ background:#fdf3e0; color:#8a5a00; border-color:#f0dcb4; }
.status-err, .badge.err{ background:#fbeaea; color:#a3282d; border-color:#f0cccc; }

/* ---- motion stays additive; reduced motion still stands it down -------- */
/* ---- hero: the 3D advocate --------------------------------------------- */
/* CSS transforms only: no WebGL, no engine, no downloaded asset. The figure is
   geometry, so it survives a slow connection and a phone that cannot do 3D.
   Shown from 1080px up. Below that the hero stays text-only on purpose — the
   visitor is on a phone holding one question, and a 400px illustration only
   pushes the search field below the fold. */
.hero{ position:relative; }
.hero-inner{ position:relative; z-index:2; }
.hero-scene{ display:none; }
@media (min-width:1080px){
  .hero-scene{
    display:block; position:absolute; right:4%; top:50%; width:340px; height:430px;
    margin-top:-215px; z-index:1; pointer-events:none;
  }
  .hero-inner{ padding-right:380px; }
}
.hs-seal{
  position:absolute; left:50%; top:50%; width:300px; height:300px; margin:-150px 0 0 -150px;
  border-radius:50%; border:1px solid rgba(43,58,140,.24);
}
.hs-seal:after{
  content:""; position:absolute; inset:28px; border-radius:50%;
  border:1px dashed rgba(43,58,140,.2);
}
.hs-ring{
  position:absolute; left:50%; top:52%; width:302px; height:302px; margin:-151px 0 0 -151px;
  border:2px solid rgba(43,58,140,.4); border-radius:50%;
  border-left-color:transparent; border-right-color:transparent;
  animation:hs-spin 30s linear infinite;
}
@keyframes hs-spin{ to{ transform:rotate(360deg); } }
.hs-figure{ position:absolute; left:50%; top:50%; width:280px; height:380px; margin:-190px 0 0 -140px; }
.hs-figure svg{ width:100%; height:100%; display:block;
  filter:drop-shadow(0 24px 30px rgba(20,22,26,.18)); }
.float{ animation:hs-float 7s ease-in-out infinite; }
@keyframes hs-float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-9px) } }
.hs-chip{
  position:absolute; background:#fff; border:1px solid var(--line); border-radius:4px;
  box-shadow:0 10px 24px -16px rgba(20,22,26,.35); padding:9px 12px;
}
.hs-chip span{ display:block; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.hs-chip b{ font-size:14.5px; color:var(--ink); font-variant-numeric:tabular-nums; }
.hs-c1{ left:-14px; top:18%; }
.hs-c2{ right:-18px; bottom:20%; }
.float2{ animation:hs-float 8s ease-in-out infinite; animation-delay:-3s; }
.hs-c2.float2{ animation-delay:-5s; }

/* ---- 3D in the shell, not in the data ----------------------------------- */
/* Rule for this section: depth belongs to navigation and identity surfaces.
   It never goes inside a table of hearing dates, where the job is to read one
   cell fast. Everything here is transform + box-shadow, so it composites on the
   GPU and costs no layout. */
@media (min-width:900px){
  .grid, .court-grid{
    perspective:1400px;
  }
  .court-card, .hc-card, .dir-card, .grid > a{
    transform-style:preserve-3d;
    transition:transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease;
    will-change:transform;
  }
  .court-card:hover, .hc-card:hover, .dir-card:hover, .grid > a:hover{
    transform:translateZ(26px) translateY(-4px) rotateX(1.4deg);
    box-shadow:0 18px 38px -22px rgba(20,22,26,.30);
    z-index:3;
  }
  /* the directory reads as a tiered stack when you move across it */
  .grid:hover > a:not(:hover){ transform:translateZ(-12px) scale(.995); opacity:.92; }
}

/* A seal marker after each section heading — the same geometry as the hero's
   ring, so the depth language is consistent rather than decorative noise. */
.section-head{ position:relative; }
.section-head:after{
  content:""; position:absolute; right:0; top:50%; width:34px; height:34px; margin-top:-17px;
  border-radius:50%; border:2px solid rgba(43,58,140,.30);
  border-left-color:transparent; border-right-color:transparent;
  animation:hs-spin 34s linear infinite;
}
@media (max-width:900px){ .section-head:after{ display:none; } }

@media (prefers-reduced-motion:reduce){
  .court-card:hover, .hc-card:hover, .dir-card:hover, .grid > a:hover,
  .grid:hover > a:not(:hover){ transform:none !important; }
  .section-head:after{ animation:none !important; }
}

@media (prefers-reduced-motion:reduce){
  .hero-aurora,[class*="aurora"]{ display:none !important; }
  .float,.float2,.hs-ring{ animation:none !important; }
}