/* Law Offices of Eric H. Hintz
   Type: Libre Caslon (headings, quotes, captions) + Public Sans (text)
   Palette: Capitol navy, oxblood, white paper, granite
   Signature: California pleading paper, used in three places only:
   the hero margin, the case-result captions and the footer line. */

@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/caslon-display.d7157ad1.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/caslon-text.1471d8a9.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/caslon-text-italic.33a3280b.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caslon-text-bold.7dc7dc90.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans.58f38522.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  /* Brand */
  --navy: #102446;          /* dark bands: hero, page headers, side cards */
  --navy-deep: #0a1a33;     /* footer */
  --red: #9b1c24;           /* oxblood: buttons, rules */
  --red-dark: #7e151c;

  /* Surfaces and text (redefined for dark mode below) */
  --paper: #ffffff;
  --granite: #eef1f5;
  --rule: #d6dce4;
  --ink: #1b2333;
  --muted: #4f596b;
  --heading: #102446;
  --link: #9b1c24;
  --link-hover: #7e151c;
  --header-bg: rgba(255, 255, 255, 0.92);
  --field-bg: #ffffff;
  --field-border: #7a8496;
  --note-bg: #fbf3f3;
  --tint-red: #f6e8e9;
  --on-navy: #ffffff;
  --on-navy-muted: #bac5d7;
  --focus: #102446;

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem);
  --step-hero: clamp(2.75rem, 1.35rem + 5.4vw, 5.6rem);

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark mode: navy-ink paper, same oxblood, lighter rose for links */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0a1730;
    --navy-deep: #060f21;
    --paper: #0f1d36;
    --granite: #142645;
    --rule: #2b3d5e;
    --ink: #e2e7ef;
    --muted: #a9b5c8;
    --heading: #f1f4f9;
    --link: #f0a4aa;
    --link-hover: #ffc9cd;
    --header-bg: rgba(15, 29, 54, 0.92);
    --field-bg: #0b172c;
    --field-border: #8090aa;
    --note-bg: rgba(240, 164, 170, 0.08);
    --tint-red: rgba(155, 28, 36, 0.32);
    --focus: #f1f4f9;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--heading);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-family: var(--font-display); font-size: var(--step-5); letter-spacing: -0.01em; }
h2 { font-size: var(--step-4); letter-spacing: -0.005em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }
em, i, cite { font-style: italic; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Phone numbers, captions and anything tabulated use lining, even-width figures */
a[href^="tel:"], a[href^="sms:"], .tnum { font-variant-numeric: lining-nums tabular-nums; }
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

.dark { --focus: #ffffff; --link: #ffffff; --link-hover: #ffffff; --heading: #ffffff; background: var(--navy); color: var(--on-navy); }
.dark a:not(.btn) { color: var(--on-navy); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 68ch; }
.section { padding-block: var(--section); }
.section--granite { background: var(--granite); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: 0.01em;
  text-decoration: none; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--heading); background: transparent; }
.btn--ghost:hover { background: var(--heading); color: var(--paper); border-color: var(--heading); }
.dark .btn--ghost { color: #fff; }
.dark .btn--ghost:hover { background: #fff; color: #102446; border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(10, 26, 51, 0.5); }
.site-header__inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }

.brand { min-width: 0; display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand:hover { color: var(--heading); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.3rem; white-space: nowrap; }
.brand__sub { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  position: relative; display: block; padding: 0.6rem 0.55rem; color: var(--ink); text-decoration: none;
  font-size: 0.9688rem; font-weight: 500; border-radius: 3px; white-space: nowrap;
}
/* A short oxblood rule grows in from the left on hover; it stays under the current page */
.nav a::after {
  content: ""; position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.3rem; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--link); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--link); border-radius: 0; }

.header-call { display: none; }

.menu-toggle {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; background: none; border: 1px solid var(--rule);
  border-radius: 3px; color: var(--heading); cursor: pointer;
}
.call-compact {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0 1rem; background: var(--red); color: #fff;
  border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.call-compact:hover { background: var(--red-dark); color: #fff; }
.call-compact__num { display: none; }
@media (min-width: 560px) { .call-compact .call-compact__num { display: inline; } }
/* The bottom bar handles calls on phones */
@media (max-width: 759px) { .call-compact { display: none; } }

/* Reading progress: a thin oxblood rule under the sticky header (long practice pages) */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: var(--red);
  pointer-events: none;
}
html:not(.js) .progress { display: none; }

/* Mobile menu: a full-screen sheet below the header */
.mobile-nav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
  background: var(--paper); border-top: 1px solid var(--rule);
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
.mobile-nav[hidden] { display: none; }
body.menu-open { overflow: hidden; }
/* backdrop-filter would make the header the containing block for the fixed sheet */
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
.mobile-nav__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 1.25rem 0 0.5rem; }
.mobile-nav__contact .btn { padding-inline: 0.75rem; flex-direction: column; gap: 0.15rem; min-height: 64px; }
.mobile-nav__contact .btn span { font-weight: 400; font-size: 0.9rem; }
.mobile-nav__pages { list-style: none; margin: 0; padding: 0.5rem 0 0; }
.mobile-nav__pages a {
  display: block; padding: 0.8rem 0; color: var(--heading); text-decoration: none;
  font-family: var(--font-serif); font-size: 1.35rem; border-bottom: 1px solid var(--rule);
}
.mobile-nav__pages a[aria-current="page"] { color: var(--link); }
.mobile-nav__index-h { font: 600 0.95rem/1.3 var(--font-sans); color: var(--muted); margin: 1.75rem 0 0.25rem; }
.mobile-nav .statutes { columns: 1; }
.mobile-nav .statutes a, .mobile-nav .statutes .statutes__row { padding-block: 0.6rem; }

@media (min-width: 1180px) {
  .site-header__inner { gap: 1rem; }
  .nav ul { gap: 0; }
  .header-call { padding-inline: 1rem; }
  .nav { display: block; }
  .menu-toggle, .call-compact, .mobile-nav { display: none !important; }
  .header-call { display: inline-flex; }
  body.menu-open { overflow: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero__grid { position: relative; display: grid; gap: 2.5rem; padding-top: clamp(3rem, 7vw, 6rem); }
.hero__copy { padding-bottom: 1rem; min-width: 0; }
.hero h1 {
  font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.022em;
  max-width: 15ch; margin-bottom: 0.4em; text-wrap: balance;
}
/* Letterhead line: rules between items; a rule that would start a wrapped line is clipped away */
.letterhead {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0; padding: 0; list-style: none;
  margin: 0 0 1.6rem calc(-0.85rem - 1px); clip-path: inset(0 0 0 calc(0.85rem + 1px));
  font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.5; color: var(--on-navy-muted);
  font-variant-numeric: lining-nums;
}
.letterhead li { padding: 0 0.85rem; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.hero__lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-navy-muted); max-width: 40ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.hero__alt { color: var(--on-navy-muted); font-size: 0.975rem; line-height: 1.45; margin: 0; }
.hero__alt a { font-weight: 600; }
.hero__portrait { position: relative; align-self: end; justify-self: start; width: min(88%, 340px); margin: 0; }
.hero__portrait img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }
.hero__portrait::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem auto auto; width: 100%; height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28); pointer-events: none;
}
.hero__caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(10, 26, 51, 0.92), rgba(10, 26, 51, 0));
  font-size: 0.875rem; color: var(--on-navy-muted); line-height: 1.4;
}
.hero__caption strong { display: block; color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; }

/* Pleading margin: line numbers 1-28 beside a double rule (wide screens only) */
.pleading-margin { display: none; }
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 3.5rem; }
  .hero__copy { padding-bottom: clamp(3rem, 7vw, 6rem); padding-left: 4.25rem; }
  .hero__portrait { justify-self: end; width: min(100%, 400px); }
  .pleading-margin {
    display: flex; flex-direction: column; justify-content: space-between;
    position: absolute; top: 0; bottom: 0; left: var(--gutter); width: 3rem;
    margin: 0; padding: 1.25rem 0.75rem 1.25rem 0; list-style: none; text-align: right;
    font: 0.72rem/1 var(--font-serif); font-variant-numeric: lining-nums tabular-nums;
    color: rgba(255, 255, 255, 0.17);
    border-right: 3px double rgba(255, 255, 255, 0.13);
    pointer-events: none; user-select: none;
  }
}

/* Hero chooser: two disclosures */
.chooser { margin-top: 2.25rem; max-width: 40rem; }
.chooser__prompt { margin: 0 0 0.75rem; color: var(--on-navy-muted); font-size: 0.975rem; }
.chooser__btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chooser__btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.7rem 1.1rem;
  font: 500 1rem/1.25 var(--font-sans); color: #fff; text-align: left;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 3px; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chooser__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.chooser__btn[aria-expanded="true"] { background: #fff; color: #102446; border-color: #fff; }
.chooser__btn svg { width: 14px; height: 14px; flex: none; transition: transform 0.2s var(--ease); }
.chooser__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.chooser__panel {
  margin-top: 0.75rem; padding: 1.4rem 1.5rem 1.5rem; background: #fff; color: #1b2333; border-radius: 3px;
  border-top: 3px solid var(--red);
  --focus: #102446; --link: #9b1c24; --link-hover: #7e151c; --heading: #102446;
}
.chooser__panel[hidden] { display: none; }
.chooser__panel h2 { font-size: 1.35rem; margin-bottom: 0.6rem; color: #102446; }
.chooser__panel ul { margin: 0 0 1.25rem; padding-left: 1.15rem; }
.chooser__panel li { margin-bottom: 0.4rem; }
.chooser__panel li::marker { color: var(--red); }
.chooser__panel a:not(.btn) { color: #9b1c24; }
.chooser__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chooser__panel .btn--ghost { color: #102446; }
.chooser__panel .btn--ghost:hover { background: #102446; color: #fff; border-color: #102446; }
html:not(.js) .chooser__btns { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .chooser__panel:not([hidden]) { animation: open 0.25s var(--ease); }
}
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* The one orchestrated load moment: headline, then portrait */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) 0.05s forwards; }
  .js .hero .letterhead { opacity: 0; animation: fade 0.8s var(--ease) 0.35s forwards; }
  .js .hero__portrait { opacity: 0; animation: fade 1.1s var(--ease) 0.2s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Split blocks */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.muted { color: var(--muted); }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; width: 100%; border: 0; cursor: pointer; color: #fff; font: 500 1rem var(--font-sans);
  background: linear-gradient(rgba(10, 26, 51, 0.55), rgba(10, 26, 51, 0.8)), url("../img/sacramento-skyline.jpg") center / cover;
}
.video__play {
  width: 72px; height: 72px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; transition: background-color 0.2s var(--ease);
}
.video__poster:hover .video__play { background: var(--red-dark); }
.video__note { font-size: var(--step--1); color: var(--muted); margin-top: 0.75rem; }

/* DMV deadline notice */
.deadline {
  display: grid; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--red);
}
.deadline__days { margin: 0; font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 0.9; color: var(--link); }
.deadline__days span { display: block; font-family: var(--font-sans); font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.3; }
.deadline h2 { font-size: var(--step-3); margin-bottom: 0.4em; }
.deadline p:last-child { margin-bottom: 0; }
@media (min-width: 760px) { .deadline { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; } }

/* DMV 10-day calculator (DUI page) */
.dmv-calc { margin: 2rem 0 2.5rem; padding: clamp(1.25rem, 4vw, 2rem); background: var(--granite); border-left: 4px solid var(--red); }
.dmv-calc h2 { margin-top: 0 !important; font-size: var(--step-3); }
.dmv-calc__form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem; margin: 1.25rem 0 1rem; }
.dmv-calc__form .field { min-width: 14rem; }
.dmv-calc__result { margin: 0 0 1.25rem; font-size: 1.1rem; }
.dmv-calc__result[hidden] { display: none; }
.dmv-calc__date { display: block; font-family: var(--font-serif); font-weight: 400; font-size: var(--step-2); color: var(--heading); line-height: 1.3; margin-top: 0.15rem; font-variant-numeric: lining-nums; }
.dmv-calc__left { display: block; color: var(--muted); font-size: 0.975rem; margin-top: 0.25rem; }
.dmv-calc__note { font-size: var(--step--1); color: var(--muted); margin: 1rem 0 0; }
html:not(.js) .dmv-calc__form, html:not(.js) .dmv-calc__result { display: none; }

/* Section heading row */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }

/* ---------- Practice areas as a statute index ---------- */
.statutes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
@media (min-width: 820px) {
  .statutes { columns: 2; column-gap: 4rem; column-rule: 1px solid var(--rule); border-top: 0; }
  .statutes li { break-inside: avoid; }
}
.statutes li { border-bottom: 1px solid var(--rule); }
.statutes a, .statutes__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.25rem 1.25rem;
  padding: 1rem 0; color: var(--ink); text-decoration: none;
}
.statutes__name { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; color: var(--heading); }
.statutes a .statutes__name { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.statutes a:hover .statutes__name { color: var(--link); text-decoration-color: currentColor; }
.statutes__code { font-size: 0.9rem; color: var(--muted); text-align: right; font-variant-numeric: lining-nums; white-space: nowrap; }
.statutes__desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.975rem; margin: 0; max-width: 60ch; }
@media (max-width: 480px) {
  .statutes a, .statutes__row { grid-template-columns: 1fr; }
  .statutes__code { text-align: left; white-space: normal; }
}
.statutes-key { margin: 1.25rem 0 0; color: var(--muted); font-size: var(--step--1); max-width: 70ch; }

/* ---------- Case results as California case captions ---------- */
.captions { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.caption { background: var(--paper); border: 1px solid var(--rule); border-top: 3px double var(--rule); padding: clamp(1.25rem, 3vw, 2rem); }
.section--granite .caption { border-color: transparent; border-top-color: var(--rule); }
.caption__head {
  display: grid; gap: 1rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.caption__left, .caption__right { min-width: 0; }
.caption__title { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.2; margin: 0 0 0.6rem; color: var(--heading); }
.caption__title i { font-style: italic; }
.caption__label { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.15rem; }
.caption__charge { margin: 0; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.45; color: var(--ink); }
.caption__court { margin: 0 0 0.75rem; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.4; color: var(--heading); }
.caption__outcome { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.35; color: var(--link); }
.caption__bracket { display: none; }
.caption__body { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: 68ch; }
.caption__body p { margin-bottom: 0.6rem; }
.caption__body p:last-child { margin-bottom: 0; }
@media (max-width: 619px) {
  .caption__right { border-top: 1px solid var(--rule); padding-top: 1rem; }
}
@media (min-width: 620px) {
  .caption__head { grid-template-columns: minmax(0, 1fr) 1.25rem minmax(0, 1fr); gap: 0 1.25rem; }
  .caption__bracket {
    display: block; position: relative; overflow: hidden; align-self: stretch;
    font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.45; color: var(--muted);
  }
  .caption__bracket::before {
    content: ")\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)\A)";
    white-space: pre; position: absolute; top: 0; left: 0; line-height: 1.5rem; overflow: hidden;
    height: 100%; height: round(down, 100%, 1.5rem);
  }
  .caption__right { padding-top: 0.15rem; }
}
.disclaimer { font-size: var(--step--1); color: var(--muted); margin-top: 1.5rem; max-width: 70ch; }

/* ---------- Quotes ---------- */
.pullquote { margin: 0; max-width: 52rem; }
.pullquote blockquote { margin: 0; }
.pullquote p { font-family: var(--font-serif); font-style: italic; font-size: var(--step-3); line-height: 1.4; color: var(--heading); }
.pullquote figcaption { font-size: 1rem; color: var(--muted); }
.dark .pullquote p { color: #fff; }
.dark .pullquote figcaption { color: var(--on-navy-muted); }

/* Hanging quotation marks */
.hang { position: relative; }
.hang::before { content: "\201C"; position: absolute; right: 100%; padding-right: 0.06em; color: var(--red); }
.dark .hang::before, .chooser__panel .hang::before { color: inherit; }

.quote-trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .quote-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem; } }
.quote { margin: 0; padding-left: 0.6em; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; line-height: 1.45;
  color: var(--heading); margin: 0 0 1rem;
}
.quote figcaption { font-family: var(--font-sans); font-size: 0.975rem; font-weight: 600; color: var(--ink); }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); }
.quotes-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.quotes-foot .disclaimer { margin: 0; }
.quotes-foot a { font-weight: 600; }

/* Testimonials page: pull quote + full text */
.testimonials { display: grid; gap: 0; }
.testimonial { display: grid; gap: 1.25rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.testimonial:last-child { border-bottom: 1px solid var(--rule); }
.testimonial__lead { padding-left: 0.6em; }
.testimonial__pull { font-family: var(--font-serif); font-style: italic; font-size: var(--step-3); line-height: 1.3; color: var(--heading); margin: 0 0 0.9rem; }
.testimonial__who { margin: 0; font-weight: 600; color: var(--ink); }
.testimonial__full { margin: 0; max-width: 66ch; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.75; }
.testimonial__full p { margin-bottom: 1em; }
.testimonial__full p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .testimonial { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; } }
.testimonials-note { margin: 0 0 1rem; }

/* ---------- Page header (interior) ---------- */
.page-header { background: var(--navy); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-header h1 { font-size: var(--step-5); letter-spacing: -0.015em; max-width: 20ch; margin-bottom: 0.3em; }
.page-header p { color: var(--on-navy-muted); font-size: var(--step-1); max-width: 52ch; margin: 0; }
.breadcrumb { font-size: var(--step--1); margin-bottom: 1.5rem; color: var(--on-navy-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.dark .breadcrumb a { color: var(--on-navy-muted); }
.dark .breadcrumb a:hover { color: #fff; }

/* ---------- Article layout with sidebar ---------- */
.layout { display: grid; gap: 3.5rem; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; } }
.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--red); }
.prose .lede { font-size: inherit; line-height: inherit; color: inherit; margin-bottom: 1.1em; }
.prose .link-list { padding-left: 0; }

.callout { margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--granite); border-left: 4px solid var(--red); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--heading); }

.sidebar { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 980px) {
  /* Long sidebars scroll within the viewport instead of being cut off */
  .sidebar {
    position: sticky; top: calc(var(--header-h) + 1.5rem);
    max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; padding: 4px; margin: -4px;
  }
  /* While there is more below, the bottom edge fades instead of cutting a line in half */
  .sidebar.is-scrollable {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3.5rem), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 3.5rem), transparent);
  }
}
.side-nav h2, .side-card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.side-nav a {
  display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.side-nav a:hover { color: var(--link); }
.side-nav a[aria-current="page"], .side-nav a[aria-current="true"] { color: var(--link); font-weight: 600; }
.toc a { font-weight: 400; padding: 0.55rem 0 0.55rem 0.9rem; border-left: 2px solid transparent; margin-left: -0.9rem; }
.toc a[aria-current="true"] { border-left-color: var(--red); }
.side-card { padding: 1.75rem; }
.side-card p { color: var(--on-navy-muted); font-size: 0.975rem; }
.side-card .btn { width: 100%; margin-top: 0.5rem; }
.side-card__line { display: flex; flex-direction: column; margin-bottom: 0.75rem; }
.side-card__line span { font-size: var(--step--1); color: var(--on-navy-muted); }
.side-card__line a { font-family: var(--font-serif); font-size: 1.35rem; text-decoration: none; }
.side-card__line a:hover { text-decoration: underline; }

.figure { margin: 0 0 2rem; }
.figure img { width: 100%; }
.figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }

/* About facts */
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.facts dd a { color: inherit; text-decoration: none; }
.facts dd a:hover { color: var(--link); text-decoration: underline; }
@media (min-width: 640px) { .facts div { grid-template-columns: 170px 1fr; gap: 1.5rem; } }
.sidebar .facts div { grid-template-columns: 1fr; gap: 0.2rem; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }

/* FAQ accordions */
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group > h2 { font-size: var(--step-3); }
.faq-group > p { color: var(--muted); max-width: 68ch; }
.accordion { border-top: 1px solid var(--rule); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--heading); line-height: 1.35;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--link); }
.accordion__icon { position: relative; width: 18px; height: 18px; flex: none; color: var(--red); }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor;
  transition: transform 0.25s var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion details[open] .accordion__icon::after { transform: rotate(0deg); }
.accordion__body { padding: 0 0 1.5rem; max-width: 68ch; }
.accordion__body ul { padding-left: 1.25rem; }
.accordion__body li::marker { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .accordion details[open] .accordion__body { animation: open 0.3s var(--ease); }
}

.faq-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.faq-tools a { padding: 0.5rem 1rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.faq-tools a:hover { border-color: var(--heading); color: var(--heading); }

/* Contact */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 3px;
}
.field input[type="date"] { font-variant-numeric: lining-nums tabular-nums; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--link); font-size: 0.9rem; min-height: 0; }
.field__error:empty { display: none; }
.form__note { padding: 1rem 1.15rem; border: 1px dashed var(--red); background: var(--note-bg); font-size: 0.9375rem; color: var(--ink); }
.form__note strong { color: var(--link); }
.form__fine { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form__status { padding: 1rem 1.15rem; background: var(--granite); border-left: 4px solid var(--heading); }
.form__status[hidden] { display: none; }

.dark .field input, .dark .field textarea { border-color: transparent; background: #fff; color: #1b2333; }
.dark .field label span { color: var(--on-navy-muted); }
.dark .field__error { color: #ffb3b8; }
.dark .form__note { background: rgba(255,255,255,0.06); border-color: #e48a90; color: #fff; }
.dark .form__note strong { color: #ffb3b8; }
.dark .form__fine { color: var(--on-navy-muted); }
.dark .form__status { background: rgba(255,255,255,0.08); color: #fff; border-left-color: #fff; }
.dark .field input:focus-visible, .dark .field textarea:focus-visible { outline-color: #fff; }

.contact-lines { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.contact-line { display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; align-items: start; }
.contact-line svg { width: 22px; height: 22px; color: var(--link); margin-top: 0.2rem; }
.contact-line span { display: block; font-size: var(--step--1); color: var(--muted); }
.contact-line a, .contact-line address { font-family: var(--font-serif); font-size: 1.3rem; font-style: normal; color: var(--heading); text-decoration: none; line-height: 1.35; }
.contact-line a:hover { color: var(--link); text-decoration: underline; }

.map { aspect-ratio: 4 / 3; background: var(--granite); border: 1px solid var(--rule); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* ---------- Counties map ---------- */
.counties { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .counties { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4.5rem; } }
.counties__map { margin: 0; }
.counties__map svg { width: 100%; height: auto; display: block; max-width: 560px; }
.counties__map figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.75rem; }
.county { stroke: var(--heading); stroke-width: 1.25; stroke-linejoin: round; fill: none; }
.county--neighbor { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; }
.county--home { fill: var(--red); stroke: var(--red); }
.county--cases { fill: var(--tint-red); stroke: var(--red); }
.county-label { font: 15px var(--font-serif); fill: var(--heading); }
.county-label--muted { fill: var(--muted); font-style: italic; font-size: 13px; }
.county-label--on { fill: #fff; }
.office-dot { fill: #fff; stroke: var(--red); stroke-width: 2; }
.county-list { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.county-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.county-list strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; color: var(--heading); }
.county-list span { color: var(--muted); font-size: 0.95rem; text-align: right; }
.key { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.45em; vertical-align: -0.05em; border: 1px solid var(--red); }
.key--home { background: var(--red); }
.key--cases { background: var(--tint-red); }

/* ---------- Office band ---------- */
.office-band { display: grid; background: var(--navy); color: #fff; --focus: #fff; --heading: #fff; --link: #fff; }
.office-band__img { display: block; min-height: 280px; position: relative; }
.office-band__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.office-band__copy { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); max-width: 640px; }
.office-band h2 { color: #fff; font-size: var(--step-4); }
.office-band p { color: var(--on-navy-muted); }
.office-band address { font-style: normal; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.45; margin-bottom: 1.5rem; color: #fff; font-variant-numeric: lining-nums; }
.office-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.office-band .btn--ghost { color: #fff; }
.office-band .btn--ghost:hover { background: #fff; color: #102446; border-color: #fff; }
@media (min-width: 900px) {
  .office-band { grid-template-columns: 1fr 1fr; }
  .office-band__img { min-height: 100%; }
  .office-band__copy { padding-left: clamp(2.5rem, 5vw, 5rem); }
}

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; } }
.step { border-top: 2px solid var(--heading); padding-top: 1.25rem; }
.step__num { display: block; font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--heading); margin-bottom: 0.9rem; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; }

/* Closing band */
.cta-band { background: var(--granite); border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { font-size: var(--step-4); margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem 0 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem 0.85rem 0.85rem;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.badge:hover { color: var(--ink); border-color: var(--muted); }
.badge img { width: 64px; height: auto; margin: 0 !important; background: #fff; border-radius: 3px; }
.badge strong { display: block; font-weight: 600; line-height: 1.3; }
.badge span span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.3; }
.badge__score {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 4px;
  background: #102446; color: #fff; font-family: var(--font-display); font-size: 1.7rem; line-height: 1;
}

/* Office details (contact) */
.office-details { margin: 2rem 0; }
.office-details h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.office-details__note { font-size: 0.9375rem; padding: 0.75rem 1rem; border: 1px dashed var(--red); background: var(--note-bg); }
.office-details__note strong { color: var(--link); }
.office-details dl { margin: 0; border-top: 1px solid var(--rule); }
.office-details dl div { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.office-details dt { color: var(--muted); font-size: 0.95rem; }
.office-details dd { margin: 0; }
.placeholder { color: var(--muted); font-style: italic; }

/* ---------- Tools & guides ---------- */
.tool { margin: 0 0 2.5rem; padding: clamp(1.25rem, 4vw, 2rem); background: var(--granite); border-left: 4px solid var(--red); }
.tool--plain { background: none; border-left: 0; padding: 0; }
.prose .tool h2 { margin-top: 0; font-size: var(--step-3); }
.tool__form { margin: 1rem 0; display: grid; gap: 1rem; }
.tool__grid { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.tool__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.tool__set legend { font-weight: 600; padding: 0; margin-bottom: 0.5rem; }
.choices { display: grid; gap: 0.4rem; }
.choice, .check { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.55rem 0.75rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); cursor: pointer; line-height: 1.45; }
.choice input, .check input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--red); }
.choice:has(input:checked) { border-color: var(--heading); box-shadow: inset 3px 0 0 var(--red); }
.choice:has(input:focus-visible), .check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tool__hint { font-size: 0.95rem; color: var(--muted); margin: 0.25rem 0 0.75rem; }
.tool__result { margin: 1rem 0 0; }
.tool__result:empty { display: none; }
.tool__empty { color: var(--muted); margin: 0; }
/* Search with no matches: a short, designed empty state with a way back */
.search-empty { display: block; padding: 1rem 1.15rem; border: 1px dashed var(--rule); color: var(--muted); }
.search-empty__h { display: block; font-family: var(--font-serif); font-size: 1.15rem; color: var(--heading); margin-bottom: 0.2rem; }
.search-empty .link-btn { min-height: 0; padding: 0; }
html:not(.js) [data-reset] { display: none; }
.tool__big { font-family: var(--font-serif); font-size: var(--step-2); color: var(--heading); line-height: 1.25; margin: 0.25rem 0 0.5rem; font-variant-numeric: lining-nums; }
.tool__result-h { font-size: 1.25rem; margin: 0 0 0.5rem; }
.tool__fine, .tool__note { font-size: var(--step--1); color: var(--muted); }
.tool__note { margin: 1rem 0 0; }
.tool__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1rem 0 0; }
.tool .facts { margin-top: 0.5rem; }
.tool .facts dd, .tool .facts dt { font-variant-numeric: lining-nums; }
.field select {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 3px;
}
.field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field input[type="number"], .field input[type="time"] { font-variant-numeric: lining-nums tabular-nums; }
.link-btn { background: none; border: 0; padding: 0.4rem 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 44px; }
.link-btn:hover { color: var(--link-hover); }
button[disabled] { opacity: 0.5; cursor: not-allowed; }

.warning { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--red); background: var(--note-bg); }
.warning strong { color: var(--link); }
.verdict { padding: 1rem 1.25rem; background: var(--paper); border-left: 4px solid var(--heading); }
.verdict--likely { border-left-color: #2f6b45; }
.verdict--not-yet { border-left-color: #a2690b; }
.verdict--talk { border-left-color: var(--red); }
.verdict__h { font-family: var(--font-serif); font-size: var(--step-2); color: var(--heading); margin: 0 0 0.35rem; }
.verdict p:last-child { margin-bottom: 0; }

.tool-foot { margin: 2.5rem 0; padding: 1.25rem 0; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); }
.tool-foot p { margin: 0 0 1rem; color: var(--muted); font-size: 0.975rem; }
.tool-foot__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.law-cited { font-size: var(--step--1); color: var(--muted); margin-top: 2rem; font-variant-numeric: lining-nums; }

/* Tables in long-form content */
.table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.975rem; font-variant-numeric: lining-nums; }
.table caption { text-align: left; font-size: var(--step--1); color: var(--muted); padding-bottom: 0.5rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--rule); }
.table thead th { font-weight: 600; border-bottom: 2px solid var(--heading); }
.prose .table { display: block; overflow-x: auto; }
@media (min-width: 560px) { .prose .table { display: table; } }

/* Lists of links styled as an index inside long-form content */
.prose .statutes { padding-left: 0; }
.prose .statutes li { margin: 0; }
.prose .statutes li::marker { content: none; }
.prose .statutes { columns: 1; }
.prose .statutes li:first-child > * { border-top: 1px solid var(--rule); }
.prose .accordion { margin-bottom: 1rem; }
.faq-group .statutes { columns: 1; }

/* Tabs */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0.35rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.tabs__list [role="tab"] {
  font: 500 1rem var(--font-sans); color: var(--ink); background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 0.7rem 0.9rem; min-height: 44px; cursor: pointer; margin-bottom: -1px;
}
.tabs__list [role="tab"][aria-selected="true"] { color: var(--heading); border-bottom-color: var(--red); font-weight: 600; }
.tabs__panel:focus-visible { outline-offset: 4px; }
.tabs__panel .facts div { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tabs__panel .facts div { grid-template-columns: 9rem 1fr; } }

/* Timeline (a real sequence, so numbered) */
.tl__controls { margin: 0 0 0.5rem; }
.tl { list-style: none; padding: 0 !important; margin: 0 0 1rem; border-top: 1px solid var(--rule); counter-reset: none; }
.tl__step { margin: 0 !important; border-bottom: 1px solid var(--rule); }
.tl__step::marker { content: none; }
.tl summary { display: grid; grid-template-columns: 2.25rem 1fr 18px; align-items: center; gap: 0.75rem; padding: 1rem 0; cursor: pointer; list-style: none; }
.tl summary::-webkit-details-marker { display: none; }
.tl__num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--heading); font-variant-numeric: lining-nums; }
.tl__title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--heading); line-height: 1.3; }
.tl summary:hover .tl__title { color: var(--link); }
.tl details[open] .accordion__icon::after { transform: rotate(0deg); }
.tl__body { padding: 0 0 1.25rem 3rem; }
.tl__eric { padding-left: 0.9rem; border-left: 2px solid var(--red); }
@media (prefers-reduced-motion: no-preference) { .tl details[open] .tl__body { animation: open 0.25s var(--ease); } }

/* Wallet card */
.wallet {
  max-width: 340px; aspect-ratio: 85.6 / 54; padding: 1rem 1.15rem; border: 1px solid var(--heading); border-radius: 6px;
  background: var(--paper); font-size: 0.82rem; line-height: 1.4; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--rule);
}
.wallet p { margin: 0; }
.wallet__lead { font-family: var(--font-serif); font-size: 1.05rem; color: var(--heading); }
.wallet__who { color: var(--muted); }

/* Checklist */
.checklist__group { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.checklist__group legend { font-family: var(--font-serif); font-size: 1.2rem; color: var(--heading); padding: 0; margin-bottom: 0.5rem; }
.checklist ul { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 0.4rem; }
.checklist li { margin: 0 !important; }
.checklist li::marker { content: none; }
.check:has(input:checked) span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rule); }

/* Glossary */
.glossary__jump { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.75rem 0 1rem; }
.glossary__jump a { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; text-decoration: none; border: 1px solid var(--rule); border-radius: 3px; color: var(--heading); font-variant-numeric: lining-nums; }
.glossary__jump a:hover { border-color: var(--heading); }
.glossary { margin: 0; border-top: 1px solid var(--rule); }
.glossary__item { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 1rem); }
.glossary__item[hidden] { display: none; }
.glossary dt { font-family: var(--font-serif); font-size: 1.2rem; color: var(--heading); margin-bottom: 0.2rem; }
.glossary dd { margin: 0; }
.glossary__more { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.35rem; font-size: 0.9rem; color: var(--muted); }

/* County finder + California map */
.finder { margin-top: 1.5rem; }
.finder__card { margin-top: 1rem; padding: 1.25rem 1.4rem; background: var(--paper); border: 1px solid var(--rule); border-top: 3px double var(--rule); }
.finder__county { font-family: var(--font-serif); font-size: var(--step-2); color: var(--heading); margin: 0; line-height: 1.2; }
.finder__court { font-family: var(--font-serif); font-style: italic; color: var(--muted); margin: 0.2rem 0 0.75rem; }
.finder__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ca-map { width: 100%; max-width: 380px; height: auto; display: block; margin-inline: auto; }
.ca-shape { fill: var(--tint-red); stroke: var(--heading); stroke-width: 1.25; stroke-linejoin: round; }
.ca-city { fill: var(--muted); }
.ca-label { font: 12px var(--font-sans); fill: var(--muted); }
.ca-label--office { font: 15px var(--font-serif); fill: var(--heading); }
.ca-office { fill: var(--red); stroke: var(--paper); stroke-width: 2; }
.ca-office-ring { fill: none; stroke: var(--red); stroke-width: 1; opacity: 0.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 0.95rem; --focus: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
/* Links that sit inside running text are underlined, so they don't rely on color alone */
.footer-brand p a, .site-footer li a[href^="tel:"] { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 0.2em; }
.footer-brand p a:hover, .site-footer li a[href^="tel:"]:hover { text-decoration-color: currentColor; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand__sub { color: var(--on-navy-muted); }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 18px; height: 18px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.875rem;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal p { margin: 0; }
.footer-disclaimer { font-size: 0.8125rem; max-width: 90ch; padding-bottom: 1.5rem; margin: 0; opacity: 0.85; }

/* Pleading footer line: firm, address, document title */
.pleading-foot {
  display: grid; gap: 0.2rem; margin: 0; padding: 0.7rem 0 1.75rem;
  border-top: 3px double rgba(255, 255, 255, 0.22);
  font: 0.8125rem/1.45 var(--font-serif); color: var(--on-navy-muted); font-variant-numeric: lining-nums;
}
.pleading-foot span:last-child { font-style: italic; }
@media (min-width: 760px) {
  .pleading-foot { grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: baseline; }
  .pleading-foot span:nth-child(2) { text-align: center; }
  .pleading-foot span:last-child { text-align: right; }
}

/* Mobile call/text bar */
.action-bar { display: none; }
@media (max-width: 759px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr;
    background: #102446; box-shadow: 0 -8px 24px -12px rgba(10, 26, 51, 0.45);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px;
    color: #fff; font-weight: 600; text-decoration: none;
  }
  .action-bar__call { background: var(--red); }
  .action-bar a:focus-visible { outline-color: #fff; outline-offset: -4px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.menu-open .action-bar { display: none; }
}

/* Page transitions (multi-page, supporting browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media (max-width: 360px) {
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.1rem; }
  .call-compact { padding: 0 0.75rem; }
}

.prose img[src*="awards"], .prose img[src^="data:image/png"] { margin: 0.5rem 0 1rem; }

/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  :root { --paper: #fff; --ink: #000; --muted: #333; --heading: #000; --link: #000; --rule: #999; --granite: #fff; --navy: #fff; --navy-deep: #fff; --on-navy: #000; --on-navy-muted: #333; --tint-red: #eee; }
  body { font-size: 11pt; line-height: 1.5; background: #fff; color: #000; padding: 0 !important; }
  .site-header { position: static; border: 0; box-shadow: none; background: #fff; backdrop-filter: none; }
  .nav, .menu-toggle, .call-compact, .header-call, .mobile-nav, .action-bar, .skip-link, .progress,
  .chooser__btns, .video, .video__note, .dmv-calc__form, .social, .cta-band__actions, .office-band__img,
  .office-band__actions, .side-nav, .pleading-margin, .hero__portrait, .map, .map-links, .form, .faq-tools,
  .footer-grid > div:not(:nth-child(3)), .footer-legal ul { display: none !important; }
  .dark, .hero, .page-header, .office-band, .side-card, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  .dark *, .site-footer * { color: #000 !important; }
  .hero__grid, .office-band, .layout, .split { display: block; }
  .hero__copy { padding: 0; }
  .section { padding-block: 1.25rem; }
  .chooser__panel[hidden] { display: block !important; }
  .chooser__panel { border: 1px solid #999; padding: 0.75rem; margin-bottom: 0.75rem; }
  .caption, .testimonial, .step, .statutes li, .quote { break-inside: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  main a[href$=".html"]::after, main a[href*=".html#"]::after { content: " (hintz.law/" attr(href) ")"; font-size: 0.85em; }
  main a.btn::after { content: none !important; }
  .btn, .cta-band, .chooser { display: none !important; }
  a[href^="tel:"]::after { content: ""; }
  .footer-grid { display: block; padding: 0; }
  .site-footer { border-top: 1px solid #000; }
  .pleading-foot { border-top: 3px double #000; }
  .tool { background: #fff; border-left: 2px solid #000; }
  .tool-foot__actions, .tool__actions, .tl__controls, .glossary__jump, .glossary .field, [data-filter-table] .field, .sidebar, [data-reset] { display: none !important; }
  .sidebar.is-scrollable { -webkit-mask-image: none; mask-image: none; }
  .tl details > .tl__body { display: block; }
  .tl details:not([open]) > .tl__body { display: block; }
  body.print-card * { visibility: hidden; }
  body.print-card .wallet, body.print-card .wallet * { visibility: visible; }
  body.print-card .wallet { position: absolute; left: 0; top: 0; width: 85.6mm; max-width: none; border: 1px solid #000; }
  .check span { text-decoration: none !important; color: #000 !important; }
  .choice, .check { border: 0; padding: 0.15rem 0; }
}
