/* workbench-surfaces.css — Workbench-specific styling.
 *
 * Extracted from the inline <style> block in index.html so that:
 *  (1) the browser can cache it independently of the HTML shell;
 *  (2) the CSS isn't reparsed on every page load when the SW serves
 *      a fresh index.html;
 *  (3) source navigation lands on a real file with line numbers.
 *
 * Depends on CSS variables defined in styles.css (which loads first).
 * New Workbench-only classes belong here. Classes that match the
 * existing styles.css naming convention (BEM, etc.) belong in
 * styles.css. The css-classes hygiene test scans BOTH.
 *
 * The CSP `style-src 'self' 'unsafe-inline'` directive in _headers
 * still requires `unsafe-inline` because hundreds of `style="..."`
 * attributes remain in the render template literals. That's a
 * separate (large) refactor.
 */

/* ---------- Accessibility globals (apply across all surfaces) ---------- */

/* WCAG 2.3.3 + Success Criterion: prefers-reduced-motion. Single override
   for all transitions / animations across the app. The user-pref attribute
   data-motion="reduced" (set by theme-init.js + Settings) takes precedence
   over the OS-level signal. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
  scroll-behavior: auto !important;
}

/* WCAG 1.4.1 (Use of Color) backstop. Surface cards encode category via
   border-left-color, which (a) is invisible to ~8% of men with red/green
   colorblindness, (b) disappears entirely in forced-colors / Windows High
   Contrast where author colors are overridden by system colors.

   Two-layer fix:
     1. ALL modes — render the category as a visually-hidden ::before so
        screen readers announce "Category: <key>" before the title. Uses
        the standard sr-only clip-rect pattern.
     2. Forced-colors mode — promote the same ::before to a visible badge
        so sighted Windows-HC users can see the category text. */
[class$="-card"][data-category]::before {
  content: "Category: " attr(data-category) ". ";
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (forced-colors: active) {
  [class$="-card"][data-category]::before {
    content: attr(data-category);
    position: static;
    width: auto;
    height: auto;
    padding: .1rem .4rem;
    margin: 0 0 .35rem 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: inline-block;
    border: 1px solid CanvasText;
    border-radius: .2rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: CanvasText;
    background: Canvas;
  }
  /* Ensure interactive controls get visible system-color borders since
     author background-color is overridden. */
  button, .subnav-tab, .btn, .ifp-btn {
    border: 1px solid ButtonText !important;
  }
  button:focus-visible, .subnav-tab:focus-visible, .btn:focus-visible, .ifp-btn:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
  /* Keep the surface-card border-left thick + system-colored so cards
     remain visually grouped even when author colors are erased. */
  [class$="-card"][data-category] {
    border-left: 6px solid CanvasText !important;
  }
  /* DB-state banner: force a high-contrast border + system colors so
     it stays visible when author red is erased. */
  .db-state-banner,
  .sw-update-banner {
    border: 2px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
  }
  .db-state-banner button,
  .sw-update-banner-btn,
  .read-aloud-control {
    background: Canvas !important;
    color: ButtonText !important;
    border: 1px solid ButtonText !important;
  }
  .read-aloud-control--speaking {
    background: Highlight !important;
    color: HighlightText !important;
  }
  /* PR-SEARCH: recents/suggestions chips need a system-color border so
     they remain distinguishable when author background-color is erased. */
  .gs-recent-chip,
  .gs-suggestion-chip {
    background: Canvas !important;
    color: ButtonText !important;
    border: 1px solid ButtonText !important;
  }
  .gs-recent-chip:focus-visible,
  .gs-suggestion-chip:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
  .db-state-banner button:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
  /* Glossary term — keep the dotted underline visible under high-contrast.
     Author opacity is suppressed; LinkText keeps it distinguishable. */
  .glossary-term {
    text-decoration-color: LinkText !important;
    color: LinkText !important;
    opacity: 1 !important;
  }
  .glossary-popover {
    background: Canvas !important;
    color: CanvasText !important;
    border: 2px solid CanvasText !important;
  }
  .glossary-popover-link {
    color: LinkText !important;
  }
  /* Deadline pill — under forced-colors, all tiers strip down to system
     colors. The text label ("OVERDUE", "TODAY", "Tomorrow", "in N days")
     remains the dominant signal; color is suppressed but the pill stays
     visible. */
  .deadline-pill {
    background: Canvas !important;
    color: CanvasText !important;
    border: 2px solid CanvasText !important;
  }
  .deadline-pill[data-tier="overdue"],
  .deadline-pill[data-tier="urgent"],
  .deadline-pill[data-tier="today"] {
    /* Use Mark for elevated alert tiers — system "highlighted-text" color */
    background: Mark !important;
    color: MarkText !important;
    border-color: MarkText !important;
  }
}

/* ---------- Workbench-only additions ---------- */
.pin-badge,
.case-badge,
.search-btn,
.deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--c-border, #d1d5db);
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* WCAG 2.5.5 — chrome pills (No court pinned / Search / etc.) need ≥44×44 hit area. */
  min-height: 44px;
  min-width: 44px;
}
.search-btn-kbd {
  font-family: inherit;
  font-size: .7rem;
  padding: 1px 5px;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: 3px;
  color: var(--c-text-muted, #6b7280);
  background: var(--c-bg, #f3f4f6);
}
@media (max-width: 640px) {
  .search-btn-label, .search-btn-kbd { display: none; }
  .pin-badge, .case-badge { max-width: 7rem; }
  .deadline-pill { max-width: 9rem; }
}

/* PR-D: i18n α' honest-disclosure banner.
   Surfaces below the chrome whenever the active locale is non-English,
   until the user dismisses it for that language. Visual treatment is
   informational (sky-blue, neutral) — not alarming, not suppressible
   without explicit dismiss. Per NCSC 2025 we never machine-translate
   legal content; the banner is the alternative. */
.i18n-disclosure {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem .75rem;
  align-items: start;
  background: #ecfeff;
  color: #0c4a6e;
  border-left: 4px solid #0284c7;
  border-radius: .25rem;
  margin: .5rem .75rem;
  padding: .65rem .85rem;
  font-size: .9rem;
  line-height: 1.45;
}
.i18n-disclosure[hidden] { display: none; }
.i18n-disclosure-body strong { display: block; margin-bottom: .25rem; }
.i18n-disclosure-peers {
  list-style: disc;
  margin: .35rem 0 0 1.25rem;
  padding: 0;
}
.i18n-disclosure-peers li { margin-bottom: .15rem; }
.i18n-disclosure-peers a {
  color: var(--clr-primary, #0c4a6e);
  font-weight: 500;
}
.i18n-disclosure-fallback {
  margin: .35rem 0 0;
  font-size: .85rem;
  color: #475569;
}
.i18n-disclosure-dismiss {
  background: transparent;
  border: 0;
  color: #0c4a6e;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: .25rem;
}
.i18n-disclosure-dismiss:hover { background: rgba(2, 132, 199, .1); }
.i18n-disclosure-dismiss:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

/* PR-E2: pre-filing exhaustion interstitial.
   Shown ONCE per claim type (eeoc / civil-rights-1983 / habeas)
   before the user reaches a page where exhaustion is mandatory.
   Per the research: conditional gates avoid the ~70% form
   abandonment of unconditional interstitials. Visual treatment is
   informational + decisive — not panic-styled, but unmistakably a
   checkpoint. */
.exhaustion-interstitial {
  max-width: 640px;
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
  background: #fffbeb;
  border: 2px solid #b45309;
  border-radius: .5rem;
  box-shadow: 0 4px 16px rgba(180, 83, 9, .15);
}
.exhaustion-interstitial-title {
  margin: 0 0 .5rem;
  color: #78350f;
  font-size: 1.25rem;
  font-weight: 700;
}
.exhaustion-interstitial-claim {
  margin: 0 0 .85rem;
  font-size: .95rem;
  line-height: 1.5;
  color: #1a2233;
}
.exhaustion-interstitial-question {
  margin: 0 0 1rem;
  padding: .5rem .75rem;
  background: rgba(180, 83, 9, .08);
  border-left: 3px solid #b45309;
  border-radius: .25rem;
  font-size: 1rem;
  line-height: 1.4;
}
.exhaustion-interstitial-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.exhaustion-interstitial-yes,
.exhaustion-interstitial-no {
  flex: 1 1 220px;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}
.exhaustion-interstitial-disclaimer {
  margin: 0;
  font-size: .8rem;
  color: var(--c-text-muted, #6b7280);
  line-height: 1.4;
}

/* PR-C: stage-of-case chip picker on the topical router.
   Visually distinguishes from the category chips below it via a
   different chip shape (rounded-rect, not pill) so the user can tell
   the two filters apart. Per GOV.UK Step-by-Step research: explicit
   "where are you" framing helps users who don't know the legal
   vocabulary find the right starting point. */
.stage-picker {
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  padding: .35rem .5rem .5rem;
  margin: 0 0 .65rem;
}
.stage-picker-legend {
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-text, #1a2233);
  padding: 0 .35rem;
}
.stage-picker-chips {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.stage-chip {
  border: 1px solid var(--c-border, #d1d5db);
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
  border-radius: .4rem;
  padding: .35rem .65rem;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.stage-chip:hover { background: var(--c-surface-hover, #f3f4f6); }
.stage-chip[aria-pressed="true"] {
  background: var(--clr-primary-bg, #1a3a5c);
  color: #fff;
  border-color: var(--clr-primary-bg, #1a3a5c);
}
.stage-chip:focus-visible {
  outline: 2px solid var(--clr-primary, #1a3a5c);
  outline-offset: 2px;
}

/* PR-E1: persistent admin-exhaustion welcome banner.
   Surfaced on the Navigate landing for new and returning users until
   dismissed. Per the research thread (FJC pro-se data, NCSC plain-
   language guide): supplementary cue, not primary nav; phrased as a
   question form ("Did you file with an agency first?") to avoid the
   jargon "administrative exhaustion" that pro se litigants don't
   recognize. */
.exhaustion-prompt {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .5rem .75rem;
  align-items: center;
  background: #fef3c7;
  color: #78350f;
  border-left: 4px solid #b45309;
  border-radius: .25rem;
  margin: .5rem .75rem;
  padding: .65rem .85rem;
  font-size: .9rem;
  line-height: 1.4;
}
.exhaustion-prompt-icon {
  font-size: 1.25rem;
  align-self: start;
  padding-top: .1rem;
}
.exhaustion-prompt-body strong { display: block; margin-bottom: .15rem; }
.exhaustion-prompt-cta {
  white-space: nowrap;
  font-weight: 600;
  color: #78350f;
  /* WCAG 2.5.5 — "Read first →" CTA needs ≥44×44 hit area. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .65rem;
}
.exhaustion-prompt-cta:hover { text-decoration: underline; }
.exhaustion-prompt-dismiss {
  background: transparent;
  border: 0;
  color: #78350f;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  /* WCAG 2.5.5 — × dismiss needs ≥44×44; explicit width/height to
     defeat parent grid/flex shrinking. */
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: .25rem;
}
.exhaustion-prompt-dismiss:hover { background: rgba(180, 83, 9, .15); }
.exhaustion-prompt-dismiss:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}
/* On narrow viewports, stack the CTA and dismiss vertically below the
   text instead of crowding the row. */
@media (max-width: 480px) {
  .exhaustion-prompt {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon body dismiss"
      ".    cta  cta";
  }
  .exhaustion-prompt-icon { grid-area: icon; }
  .exhaustion-prompt-body { grid-area: body; }
  .exhaustion-prompt-cta { grid-area: cta; justify-self: end; }
  .exhaustion-prompt-dismiss { grid-area: dismiss; align-self: start; }
}

/* PR-H: Plain-language summary block.
   Per the research thread (Plain Writing Act 2010, NCSC + NACM plain-
   language guides): top-of-page TL;DR with a safety wrapper that
   names the binding source. Visual treatment is informational, NOT
   alarming — it should signal "quick read" without panicking the
   user. Citation link uses the regular hyperlink color. */
.page-summary {
  background: var(--c-surface, #f0f9ff);
  border-left: 4px solid var(--clr-primary, #1a3a5c);
  padding: .75rem 1rem;
  border-radius: .25rem;
  margin: .5rem 0 1rem;
  font-size: .95rem;
  line-height: 1.5;
}
.page-summary-tldr {
  margin: 0 0 .35rem;
  font-weight: 600;
}
.page-summary-disclaimer {
  margin: 0;
  font-size: .8rem;
  color: var(--c-text-muted, #6b7280);
}
.page-summary-source {
  margin: .35rem 0 0;
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
  font-style: italic;
}

/* PR-G: Inline glossary terms + popover.
   Per the research thread: 1 px dotted underline at 70% opacity is the
   dominant convention for "definable term" — distinct from solid-
   underline hyperlinks. <button> element so it's keyboard-focusable
   and doesn't lose tap-targetability on mobile (NN/g 44 px target
   guidance is met via inline-block + padding). */
.glossary-term {
  display: inline;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: help;
  text-decoration: underline dotted currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  opacity: .85;
}
.glossary-term:hover { opacity: 1; }
.glossary-term:focus-visible {
  outline: 2px solid var(--clr-primary, #1a3a5c);
  outline-offset: 2px;
  border-radius: 2px;
  opacity: 1;
}

.glossary-popover {
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .5rem;
  padding: .75rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  z-index: 200;
  font-size: .9rem;
  line-height: 1.45;
}
.glossary-popover[hidden] { display: none; }
.glossary-popover-term {
  margin: 0 0 .25rem 0;
  font-size: 1rem;
  font-weight: 700;
  padding-right: 1.75rem; /* room for close button */
}
.glossary-popover-def {
  margin: 0 0 .5rem 0;
}
.glossary-popover-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-primary, #1a3a5c);
}
.glossary-popover-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text-muted, #6b7280);
}
.glossary-popover-close:focus-visible {
  outline: 2px solid var(--clr-primary, #1a3a5c);
  outline-offset: 2px;
  border-radius: 2px;
}

/* PR-F: Deadline countdown pill — urgency tiers.
   Per the research (NN/g visibility + error-prevention; Section 508
   guidance on color-not-only signaling), each tier pairs color with
   a text/icon channel. The text "OVERDUE"/"TODAY"/etc. is set in the
   pill's content (formatDeadlineLabel), so the visual color is a
   supplement, not the sole signal.

   forced-colors handling lives further down in this file alongside
   the existing forced-colors block. */
.deadline-pill {
  display: none; /* shown by JS when there's an upcoming deadline */
  white-space: nowrap;
}
.deadline-pill:not([hidden]) { display: inline-flex; }
.deadline-pill[data-tier="future"] {
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
  border-color: var(--c-border, #d1d5db);
}
.deadline-pill[data-tier="soon"] {
  background: #fef3c7;
  color: #78350f;
  border-color: #b45309;
}
.deadline-pill[data-tier="urgent"],
.deadline-pill[data-tier="today"] {
  background: #fee2e2;
  color: #991b1b;
  border-color: #b91c1c;
  font-weight: 700;
}
.deadline-pill[data-tier="overdue"] {
  background: var(--clr-danger, #b91c1c);
  color: #fff;
  border-color: var(--clr-danger, #b91c1c);
  font-weight: 700;
}
.search-btn:hover { background: var(--c-surface-hover, #f3f4f6); }

/* Header language switcher */
.header-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .4rem;
  border-radius: 999px;
  border: 1px solid var(--c-border, #d1d5db);
  background: var(--c-surface, #fff);
  font-size: .8125rem;
}
.header-lang-select {
  border: 0;
  background: transparent;
  color: var(--c-text, #1a2233);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 9rem;
}
.header-lang-select:focus { outline: 2px solid var(--c-primary, #1a3a5c); border-radius: 3px; }

/* Welcome page — fully self-contained. The welcome-frame has its own
   logo, app heading, and language picker, so the global chrome would
   duplicate those (and on mobile show only a bare scale icon + a
   redundant language select, since .app-title is hidden ≤640px).
   Hide the chrome header entirely while welcome is showing. */
body[data-route="welcome"] .app-header,
body[data-route="welcome"] .bottom-nav,
body[data-route="welcome"] .subnav,
body[data-route="welcome"] #jurisdiction-pin,
body[data-route="welcome"] #active-case-badge,
body[data-route="welcome"] #global-search-btn { display: none !important; }
.welcome-frame {
  max-width: 36rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 14px;
  background: var(--c-surface, #fff);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.welcome-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.welcome-logo { font-size: 1.75rem; }
.welcome-title { margin: 0; font-size: 1.4rem; flex: 1; }
.welcome-language { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--c-text-muted, #6b7280); }
.welcome-language-label { font-size: .8rem; }
.welcome-language select {
  padding: .35rem .55rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .35rem;
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
  font-size: .9rem;
}
.welcome-intro { font-size: 1rem; color: var(--c-text-muted, #4b5563); line-height: 1.55; margin: 0 0 1rem; }
.welcome-section { margin: 1.25rem 0; }
.welcome-section-heading { font-size: 1rem; margin: 0 0 .5rem; }
.welcome-bullets { margin: 0 0 0 1.25rem; padding: 0; line-height: 1.6; }
.welcome-bullets li { margin-bottom: .25rem; }
.welcome-privacy {
  padding: .65rem .85rem;
  background: var(--c-bg, #f3f4f6);
  border-left: 3px solid var(--c-primary, #1a3a5c);
  border-radius: .25rem;
  margin: 1.25rem 0;
  font-size: .9rem;
}
.welcome-radio {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .5rem .65rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .35rem;
  margin-bottom: .35rem;
  cursor: pointer;
  font-size: .9rem;
}
.welcome-radio input { margin-top: .2rem; }
.welcome-disclaimer {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin: 1.25rem 0 .5rem;
  font-size: .9rem;
}
.welcome-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.welcome-translation-note {
  margin: 1rem 0 0;
  padding: .75rem .9rem;
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #d97706;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
}

/* Procedural-pending banner — shown above any block of procedural
   content the active locale hasn't translated yet. Loud yellow per
   BBB sign-off (Tier-2 fallback policy). */
.procedural-pending-banner {
  padding: .75rem 1rem;
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #d97706;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .5rem 0 1rem;
}
.procedural-pending-banner strong { color: #78350f; }

/* Judge roster — Houston Division SDTX */
.judge-warning {
  padding: .65rem .85rem;
  background: #fef9c3;
  color: #713f12;
  border-left: 4px solid #ca8a04;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.45;
  margin: .5rem 0 .75rem;
}
.judge-warning strong { color: #422006; }
.judge-warning a { color: #713f12; text-decoration: underline; }
.judge-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.judge-card {
  padding: .65rem .75rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  margin-bottom: .5rem;
  background: var(--c-surface, #fff);
}
.judge-card[data-status="senior"]  { border-left: 3px solid #2563eb; }
.judge-card[data-status="active"]  { border-left: 3px solid #15803d; }
.judge-card[data-status="group"]   { border-left: 3px solid #6b7280; }
.judge-card[data-status="pointer"] { border-left: 3px solid #d97706; }
.judge-name { font-weight: 700; font-size: .95rem; }
.judge-title { font-size: .8rem; color: var(--c-text-muted, #6b7280); margin: .15rem 0 .35rem; }
.judge-practices { list-style: disc; padding-left: 1.1rem; margin: .25rem 0 .4rem; font-size: .85rem; }
.judge-practices li { margin: .15rem 0; }

/* PR-EXT-RESOURCES: external-resources block (Watch & Learn).
   Used at the bottom of select Reference modules (pacer, eeoc,
   immigration, appellate, 5th-cir). Each card has a scope chip
   making provenance visible at a glance — sdtx (no chip), federal-
   system-wide (blue), other-district (yellow), state (green-ish).
   The chip color taxonomy mirrors the existing court-system color
   conventions (blue = federal authority, yellow = "verify before
   relying", green = adjacent jurisdiction). */
.ext-resources-block {
  margin-top: 1.5rem;
  padding: .85rem 1rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
}
.ext-resources-heading {
  font-size: 1rem;
  margin: 0 0 .25rem;
}
.ext-resources-intro {
  margin: 0 0 .65rem;
  font-size: .85rem;
  color: var(--c-text-muted, #6b7280);
  line-height: 1.45;
}
.ext-resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.ext-resource-card {
  padding: .65rem .8rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .35rem;
  background: var(--c-surface, #fff);
}
.ext-resource-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin-bottom: .25rem;
}
.ext-resource-glyph {
  font-size: 1rem;
  flex-shrink: 0;
}
.ext-resource-title {
  font-weight: 600;
  font-size: .95rem;
  flex: 1;
  min-width: 0;
}
.ext-resource-desc {
  margin: .1rem 0 .35rem;
  font-size: .85rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.45;
}
.ext-resource-note {
  margin: .25rem 0 .5rem;
  padding: .5rem .65rem;
  background: #fef9c3;
  color: #713f12;
  border-left: 3px solid #ca8a04;
  border-radius: .25rem;
  font-size: .8rem;
  line-height: 1.45;
}
.ext-resource-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.ext-scope-chip {
  display: inline-block;
  font-size: .68rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ext-scope-chip[data-scope="sdtx"] {
  background: #dcfce7;
  color: #14532d;
}
.ext-scope-chip[data-scope="federal-system-wide"] {
  background: #dbeafe;
  color: #1e3a8a;
}
.ext-scope-chip[data-scope="other-district"] {
  background: #fef3c7;
  color: #78350f;
}
.ext-scope-chip[data-scope="state"] {
  background: #ede9fe;
  color: #4c1d95;
}
.ext-scope-chip[data-scope="unknown"] {
  background: #e5e7eb;
  color: #4b5563;
}

/* Admin-exhaustion page — "Before you make it to federal court" */
.exhaustion-banner {
  padding: .85rem 1rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-left: 4px solid #b91c1c;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
}
.exhaustion-banner strong { color: #450a0a; }
.exhaustion-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #d97706;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.exhaustion-claim { font-weight: 700; font-size: 1rem; }
.exhaustion-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; }
.exhaustion-section { margin: .35rem 0; }
.exhaustion-section summary { cursor: pointer; font-size: .9rem; padding: .15rem 0; }
.exhaustion-section ul { margin: .35rem 0 .35rem 1.1rem; padding: 0; font-size: .85rem; line-height: 1.5; }
.exhaustion-section li { margin: .2rem 0; }
.exhaustion-where {
  padding: .4rem .65rem;
  background: var(--c-bg, #f3f4f6);
  border-radius: .25rem;
  font-size: .85rem;
  margin: .5rem 0;
}
.exhaustion-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.exhaustion-failure strong { color: #451a03; }
.exhaustion-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.exhaustion-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .5rem; font-style: italic; }

/* Motion templates page */
.template-disclaimer {
  padding: .65rem .85rem;
  background: #fef3c7;
  color: #78350f;
  border-left: 4px solid #d97706;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.45;
  margin: .5rem 0;
}
.template-disclaimer strong { color: #451a03; }
.template-list { margin: 0; }
.template-card {
  padding: .5rem .75rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  margin-bottom: .5rem;
  background: var(--c-surface, #fff);
}
.template-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.template-card summary::-webkit-details-marker { display: none; }
.template-title { font-weight: 700; font-size: .95rem; }
.template-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); font-family: monospace; }
.template-summary { margin: .35rem 0; font-size: .85rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.template-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin: .35rem 0; }
.template-preview {
  margin-top: .5rem;
  padding: .75rem;
  background: var(--c-bg, #f3f4f6);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .25rem;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  max-height: 24rem;
  overflow-y: auto;
}

/* Court accommodations page */
.accommodation-banner {
  padding: .85rem 1rem;
  background: #dbeafe;
  color: #1e3a8a;
  border-left: 4px solid #2563eb;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
}
.accommodation-banner strong { color: #1e293b; }
.accommodation-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #2563eb;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.accommodation-title { font-weight: 700; font-size: 1rem; }
.accommodation-meta { font-size: .8rem; color: var(--c-text-muted, #6b7280); margin: .25rem 0 .35rem; }
.accommodation-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.accommodation-houston {
  padding: .5rem .75rem;
  background: #f0fdf4;
  color: #166534;
  border-left: 3px solid #16a34a;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.accommodation-houston strong { color: #14532d; }
.accommodation-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.accommodation-failure strong { color: #451a03; }
.accommodation-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.accommodation-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .5rem; font-style: italic; }

/* Statute of limitations page */
.sol-banner {
  padding: .85rem 1rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-left: 4px solid #b91c1c;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
}
.sol-banner strong { color: #450a0a; }
.sol-calculator {
  padding: .65rem .85rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  background: var(--c-surface, #fff);
  margin: .75rem 0;
}
.sol-calculator summary { cursor: pointer; font-size: .95rem; }
.sol-calc-result {
  padding: .75rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: .4rem;
  margin-top: .5rem;
  font-size: .9rem;
}
.sol-calc-warn {
  font-size: .8rem;
  color: var(--c-text-muted, #6b7280);
  font-style: italic;
}
.sol-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #b91c1c;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.sol-card[data-category="tolling"] { border-left-color: #2563eb; }
.sol-card[data-category="appellate"] { border-left-color: #d97706; }
.sol-claim-title { font-weight: 700; font-size: 1rem; }
.sol-period {
  display: inline-block;
  margin: .25rem 0;
  padding: .25rem .55rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-weight: 700;
  font-size: .9rem;
}
.sol-statute { font-size: .8rem; color: var(--c-text-muted, #6b7280); font-family: monospace; margin: .15rem 0 .35rem; }
.sol-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.sol-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.sol-failure strong { color: #451a03; }
.sol-source { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.sol-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Dismissal-traps page */
.trap-banner {
  padding: .85rem 1rem;
  background: #fef2f2;
  color: #7f1d1d;
  border-left: 4px solid #b91c1c;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
}
.trap-banner strong { color: #450a0a; }
.trap-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #7c3aed;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.trap-card[data-category="smj"]      { border-left-color: #b91c1c; }
.trap-card[data-category="pj"]       { border-left-color: #d97706; }
.trap-card[data-category="venue"]    { border-left-color: #ca8a04; }
.trap-card[data-category="service"]  { border-left-color: #65a30d; }
.trap-card[data-category="merits"]   { border-left-color: #2563eb; }
.trap-card[data-category="capacity"] { border-left-color: #9333ea; }
.trap-card[data-category="immunity"] { border-left-color: #be185d; }
.trap-title { font-weight: 700; font-size: 1rem; }
.trap-rule { font-size: .75rem; color: var(--c-text-muted, #6b7280); font-family: monospace; margin: .15rem 0 .35rem; }
.trap-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.trap-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.trap-failure strong { color: #451a03; }
.trap-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.trap-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Pleading guide page */
.pleading-banner {
  padding: .85rem 1rem;
  background: #dbeafe;
  color: #1e3a8a;
  border-left: 4px solid #2563eb;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
}
.pleading-banner strong { color: #1e293b; }
.pleading-list { margin: 0; }
.pleading-claim {
  padding: .65rem .85rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #2563eb;
  border-radius: .4rem;
  margin-bottom: .5rem;
  background: var(--c-surface, #fff);
}
.pleading-claim[data-category="employment"]   { border-left-color: #2563eb; }
.pleading-claim[data-category="civil-rights"] { border-left-color: #b91c1c; }
.pleading-claim[data-category="consumer"]     { border-left-color: #d97706; }
.pleading-claim[data-category="benefits"]     { border-left-color: #65a30d; }
.pleading-claim[data-category="contract"]     { border-left-color: #9333ea; }
.pleading-claim summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.pleading-claim summary::-webkit-details-marker { display: none; }
.pleading-claim-title { font-weight: 700; font-size: .95rem; }
.pleading-claim-statute { font-size: .75rem; color: var(--c-text-muted, #6b7280); font-family: monospace; }
.pleading-summary { margin: .35rem 0 .5rem; font-size: .85rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.pleading-elements { margin: .5rem 0 .5rem 1.25rem; padding: 0; }
.pleading-element {
  margin: .5rem 0;
  padding: .5rem;
  background: var(--c-bg, #f9fafb);
  border-radius: .25rem;
}
.pleading-element-name { font-weight: 600; font-size: .9rem; margin-bottom: .15rem; }
.pleading-element-facts { font-size: .85rem; line-height: 1.5; margin: .25rem 0; }
.pleading-element-facts strong { color: #1e293b; }
.pleading-example { margin-top: .35rem; }
.pleading-example summary { font-size: .8rem; cursor: pointer; color: #2563eb; }
.pleading-example pre {
  margin: .35rem 0;
  padding: .5rem;
  background: #f3f4f6;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .25rem;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  max-height: 16rem;
  overflow-y: auto;
}
.pleading-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.pleading-failure strong { color: #451a03; }
.pleading-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.pleading-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Procedural defaults page */
.default-banner {
  padding: .85rem 1rem;
  background: #fef3c7;
  color: #78350f;
  border-left: 4px solid #d97706;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
}
.default-banner strong { color: #451a03; }
.default-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #d97706;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.default-card[data-category="appellate"]      { border-left-color: #b91c1c; }
.default-card[data-category="motion-practice"] { border-left-color: #d97706; }
.default-card[data-category="discovery"]      { border-left-color: #2563eb; }
.default-card[data-category="trial-prep"]     { border-left-color: #7c3aed; }
.default-card[data-category="trial-evidence"] { border-left-color: #be185d; }
.default-card[data-category="post-trial"]     { border-left-color: #65a30d; }
.default-title { font-weight: 700; font-size: 1rem; }
.default-rule { font-size: .75rem; color: var(--c-text-muted, #6b7280); font-family: monospace; margin: .15rem 0 .35rem; }
.default-deadline {
  display: inline-block;
  margin: .25rem 0;
  padding: .25rem .55rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-radius: .25rem;
  font-size: .9rem;
}
.default-deadline strong { color: #450a0a; }
.default-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.default-consequence {
  padding: .55rem .75rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.default-consequence strong { color: #450a0a; }
.default-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.default-failure strong { color: #451a03; }
.default-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.default-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Pre-suit guidance + demand-letter library */
.presuit-banner {
  padding: .85rem 1rem;
  background: #ecfdf5;
  color: #14532d;
  border-left: 4px solid #16a34a;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
}
.presuit-banner strong { color: #052e16; }
.presuit-card {
  padding: .75rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #16a34a;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.presuit-title { font-weight: 700; font-size: .95rem; }
.presuit-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.presuit-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.presuit-failure {
  padding: .5rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.presuit-failure strong { color: #451a03; }
.presuit-tmpl-list { margin: 0; }
.presuit-tmpl {
  padding: .5rem .75rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  margin-bottom: .5rem;
  background: var(--c-surface, #fff);
}
.presuit-tmpl summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.presuit-tmpl summary::-webkit-details-marker { display: none; }
.presuit-tmpl-title { font-weight: 700; font-size: .95rem; }
.presuit-tmpl-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); font-family: monospace; }
.presuit-tmpl-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin: .35rem 0; }
.presuit-tmpl-pre {
  margin-top: .5rem;
  padding: .75rem;
  background: var(--c-bg, #f3f4f6);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .25rem;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  max-height: 24rem;
  overflow-y: auto;
}

/* Deadline calculator page */
.dlcalc-banner {
  padding: .85rem 1rem;
  background: #dbeafe;
  color: #1e3a8a;
  border-left: 4px solid #2563eb;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.dlcalc-banner strong { color: #1e293b; }
.dlcalc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .75rem;
  margin: .75rem 0;
}
.dlcalc-field { display: flex; flex-direction: column; gap: .25rem; }
.dlcalc-label { font-size: .85rem; font-weight: 600; }
.dlcalc-field input,
.dlcalc-field select {
  padding: .4rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .4rem;
  font-size: .9rem;
}
.dlcalc-result {
  padding: 1rem;
  border: 1px solid #86efac;
  background: #f0fdf4;
  border-radius: .4rem;
  margin: .75rem 0;
}
.dlcalc-deadline {
  font-size: 1.05rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: .5rem;
}
.dlcalc-explanation summary { cursor: pointer; }
.dlcalc-explanation ol { margin: .5rem 0 0 1.25rem; padding: 0; }
.dlcalc-explanation li { margin: .25rem 0; font-size: .85rem; line-height: 1.5; }
.dlcalc-actions { margin-top: .75rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.dlcalc-save-status { font-size: .85rem; color: var(--c-text-muted, #6b7280); }
.dlcalc-holidays {
  padding: .65rem .85rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  background: var(--c-surface, #fff);
  margin-top: .75rem;
}
.dlcalc-holidays summary { cursor: pointer; font-size: .9rem; }
.dlcalc-holidays ul { margin: .35rem 0 0 1.25rem; padding: 0; font-size: .85rem; }
.dlcalc-recent {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: .75rem 0;
  padding: .55rem .75rem;
  background: #f1f5f9;
  border-radius: .35rem;
  font-size: .85rem;
}
.dlcalc-recent-label { font-weight: 600; color: var(--c-text-muted, #475569); padding-top: .25rem; }
.dlcalc-recent-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.dlcalc-recent-chip {
  padding: .25rem .55rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--c-primary, #1a3a5c);
  cursor: pointer;
}
.dlcalc-recent-chip:hover { background: #eff6ff; border-color: #93c5fd; }
.dlcalc-recent-clear {
  padding: .25rem .55rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--c-text-muted, #64748b);
  cursor: pointer;
}
.dlcalc-recent-clear:hover { color: #b91c1c; text-decoration: underline; }

/* Service-of-process page */
.svc-banner {
  padding: .85rem 1rem;
  background: #ecfeff;
  color: #155e75;
  border-left: 4px solid #06b6d4;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.svc-banner strong { color: #083344; }
.svc-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #06b6d4;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.svc-card[data-category="overview"]        { border-left-color: #2563eb; }
.svc-card[data-category="method"]          { border-left-color: #06b6d4; }
.svc-card[data-category="defendant-type"]  { border-left-color: #9333ea; }
.svc-card[data-category="troubleshooting"] { border-left-color: #d97706; }
.svc-title { font-weight: 700; font-size: 1rem; }
.svc-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.svc-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.svc-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.svc-section li { margin: .15rem 0; }
.svc-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.svc-failure strong { color: #451a03; }
.svc-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.svc-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Discovery guide page */
.disc-banner {
  padding: .85rem 1rem;
  background: #f5f3ff;
  color: #4c1d95;
  border-left: 4px solid #7c3aed;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.disc-banner strong { color: #2e1065; }
.disc-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #7c3aed;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.disc-card[data-category="overview"]    { border-left-color: #2563eb; }
.disc-card[data-category="vehicle"]     { border-left-color: #7c3aed; }
.disc-card[data-category="protection"]  { border-left-color: #65a30d; }
.disc-card[data-category="enforcement"] { border-left-color: #b91c1c; }
.disc-card[data-category="self"]        { border-left-color: #d97706; }
.disc-title { font-weight: 700; font-size: 1rem; }
.disc-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.disc-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.disc-section summary { cursor: pointer; }
.disc-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.disc-section li { margin: .15rem 0; }
.disc-deadline {
  padding: .4rem .65rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  margin: .5rem 0;
}
.disc-deadline strong { color: #451a03; }
.disc-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.disc-failure strong { color: #451a03; }
.disc-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.disc-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Removal & remand page */
.rmv-banner {
  padding: .85rem 1rem;
  background: #fef9c3;
  color: #713f12;
  border-left: 4px solid #ca8a04;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.rmv-banner strong { color: #422006; }
.rmv-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #ca8a04;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.rmv-card[data-category="overview"]     { border-left-color: #2563eb; }
.rmv-card[data-category="removal"]      { border-left-color: #d97706; }
.rmv-card[data-category="remand"]       { border-left-color: #65a30d; }
.rmv-card[data-category="post-removal"] { border-left-color: #7c3aed; }
.rmv-title { font-weight: 700; font-size: 1rem; }
.rmv-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.rmv-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.rmv-section summary { cursor: pointer; }
.rmv-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.rmv-section li { margin: .15rem 0; }
.rmv-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.rmv-failure strong { color: #451a03; }
.rmv-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.rmv-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Appellate basics page */
.app-banner {
  padding: .85rem 1rem;
  background: #fef2f2;
  color: #7f1d1d;
  border-left: 4px solid #b91c1c;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.app-banner strong { color: #450a0a; }
.app-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #b91c1c;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.app-card[data-category="overview"]           { border-left-color: #2563eb; }
.app-card[data-category="filing"]             { border-left-color: #b91c1c; }
.app-card[data-category="record"]             { border-left-color: #d97706; }
.app-card[data-category="briefing"]           { border-left-color: #7c3aed; }
.app-card[data-category="trial-preservation"] { border-left-color: #ca8a04; }
.app-card[data-category="framing"]            { border-left-color: #65a30d; }
.app-card[data-category="argument"]           { border-left-color: #06b6d4; }
.app-card[data-category="after"]              { border-left-color: #6b7280; }
.app-title { font-weight: 700; font-size: 1rem; }
.app-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.app-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.app-section summary { cursor: pointer; }
.app-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.app-section li { margin: .15rem 0; }
.app-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.app-failure strong { color: #451a03; }
.app-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.app-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Texas eviction defense page */
.evic-banner {
  padding: .85rem 1rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-left: 4px solid #b91c1c;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.evic-banner strong { color: #450a0a; }
.evic-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #b91c1c;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.evic-card[data-category="overview"]   { border-left-color: #2563eb; }
.evic-card[data-category="pre-suit"]   { border-left-color: #d97706; }
.evic-card[data-category="answer"]     { border-left-color: #ca8a04; }
.evic-card[data-category="trial"]      { border-left-color: #b91c1c; }
.evic-card[data-category="appeal"]     { border-left-color: #7c3aed; }
.evic-card[data-category="houston"]    { border-left-color: #65a30d; }
.evic-card[data-category="subsidized"] { border-left-color: #06b6d4; }
.evic-card[data-category="resources"]  { border-left-color: #16a34a; }
.evic-title { font-weight: 700; font-size: 1rem; }
.evic-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.evic-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.evic-section summary { cursor: pointer; }
.evic-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.evic-section li { margin: .15rem 0; }
.evic-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.evic-failure strong { color: #451a03; }
.evic-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.evic-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Settlement guide page */
.stl-banner {
  padding: .85rem 1rem;
  background: #ecfdf5;
  color: #14532d;
  border-left: 4px solid #16a34a;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.stl-banner strong { color: #052e16; }
.stl-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #16a34a;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.stl-card[data-category="overview"]         { border-left-color: #2563eb; }
.stl-card[data-category="mechanics"]        { border-left-color: #d97706; }
.stl-card[data-category="release-language"] { border-left-color: #b91c1c; }
.stl-card[data-category="checklist"]        { border-left-color: #16a34a; }
.stl-title { font-weight: 700; font-size: 1rem; }
.stl-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.stl-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.stl-section summary { cursor: pointer; }
.stl-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.stl-section li { margin: .15rem 0; }
.stl-quote {
  margin: .35rem 0;
  padding: .5rem .75rem;
  background: var(--c-bg, #f3f4f6);
  border-left: 3px solid var(--c-text-muted, #6b7280);
  border-radius: .25rem;
  font-style: italic;
  font-size: .85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.stl-checklist { font-family: monospace; font-size: .85rem; }
.stl-checklist li { margin: .25rem 0; line-height: 1.5; }
.stl-failure {
  padding: .55rem .75rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.stl-failure strong { color: #451a03; }
.stl-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.stl-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Jury trial mechanics page */
.jury-banner {
  padding: .85rem 1rem;
  background: #ecfeff;
  color: #155e75;
  border-left: 4px solid #06b6d4;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .75rem 0;
}
.jury-banner strong { color: #083344; }
.jury-card {
  padding: .85rem 1rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #06b6d4;
  border-radius: .4rem;
  margin-bottom: .75rem;
  background: var(--c-surface, #fff);
}
.jury-card[data-category="demand"]        { border-left-color: #2563eb; }
.jury-card[data-category="voir-dire"]     { border-left-color: #06b6d4; }
.jury-card[data-category="instructions"]  { border-left-color: #7c3aed; }
.jury-card[data-category="trial-motions"] { border-left-color: #b91c1c; }
.jury-card[data-category="deliberation"]  { border-left-color: #16a34a; }
.jury-title { font-weight: 700; font-size: 1rem; }
.jury-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.jury-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.jury-section summary { cursor: pointer; }
.jury-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.jury-section li { margin: .15rem 0; }
.jury-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.jury-failure strong { color: #451a03; }
.jury-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.jury-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Trial-prep page */
.tp-banner { padding: .85rem 1rem; background: #fef3c7; color: #78350f; border-left: 4px solid #d97706; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.tp-banner strong { color: #451a03; }
.tp-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #d97706; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.tp-card[data-category="pretrial-order"]    { border-left-color: #b91c1c; }
.tp-card[data-category="lists"]             { border-left-color: #2563eb; }
.tp-card[data-category="motions-in-limine"] { border-left-color: #7c3aed; }
.tp-card[data-category="depositions"]       { border-left-color: #06b6d4; }
.tp-card[data-category="jury"]              { border-left-color: #16a34a; }
.tp-card[data-category="briefing"]          { border-left-color: #d97706; }
.tp-card[data-category="evidence"]          { border-left-color: #ca8a04; }
.tp-card[data-category="witness"]           { border-left-color: #be185d; }
.tp-title { font-weight: 700; font-size: 1rem; }
.tp-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.tp-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.tp-section summary { cursor: pointer; }
.tp-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.tp-section li { margin: .15rem 0; }
.tp-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.tp-failure strong { color: #451a03; }
.tp-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.tp-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Contempt + show-cause page */
.cont-banner { padding: .85rem 1rem; background: #fee2e2; color: #7f1d1d; border-left: 4px solid #b91c1c; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.cont-banner strong { color: #450a0a; }
.cont-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #b91c1c; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.cont-card[data-category="overview"]   { border-left-color: #2563eb; }
.cont-card[data-category="filing"]     { border-left-color: #d97706; }
.cont-card[data-category="defending"]  { border-left-color: #b91c1c; }
.cont-card[data-category="discovery"]  { border-left-color: #7c3aed; }
.cont-card[data-category="injunction"] { border-left-color: #ca8a04; }
.cont-card[data-category="houston"]    { border-left-color: #16a34a; }
.cont-title { font-weight: 700; font-size: 1rem; }
.cont-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.cont-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.cont-section summary { cursor: pointer; }
.cont-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.cont-section li { margin: .15rem 0; }
.cont-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.cont-failure strong { color: #451a03; }
.cont-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.cont-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Bankruptcy automatic stay page */
.bk-banner { padding: .85rem 1rem; background: #fef3c7; color: #78350f; border-left: 4px solid #d97706; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.bk-banner strong { color: #451a03; }
.bk-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #d97706; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.bk-card[data-category="stay"]            { border-left-color: #b91c1c; }
.bk-card[data-category="creditor"]        { border-left-color: #2563eb; }
.bk-card[data-category="adversary"]       { border-left-color: #7c3aed; }
.bk-card[data-category="debtor"]          { border-left-color: #ca8a04; }
.bk-card[data-category="stay-exceptions"] { border-left-color: #06b6d4; }
.bk-card[data-category="houston"]         { border-left-color: #16a34a; }
.bk-title { font-weight: 700; font-size: 1rem; }
.bk-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.bk-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.bk-section summary { cursor: pointer; }
.bk-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.bk-section li { margin: .15rem 0; }
.bk-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.bk-failure strong { color: #451a03; }
.bk-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.bk-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Immigration overlap page */
.imm-banner { padding: .85rem 1rem; background: #fee2e2; color: #7f1d1d; border-left: 4px solid #b91c1c; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.imm-banner strong { color: #450a0a; }
.imm-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #b91c1c; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.imm-card[data-category="warning"]       { border-left-color: #b91c1c; }
.imm-card[data-category="removal"]       { border-left-color: #d97706; }
.imm-card[data-category="affirmative"]   { border-left-color: #2563eb; }
.imm-card[data-category="victim"]        { border-left-color: #be185d; }
.imm-card[data-category="civil-overlap"] { border-left-color: #16a34a; }
.imm-title { font-weight: 700; font-size: 1rem; }
.imm-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.imm-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.imm-section summary { cursor: pointer; }
.imm-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.imm-section li { margin: .15rem 0; }
.imm-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.imm-failure strong { color: #451a03; }
.imm-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.imm-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Family-law primer page */
.fam-banner { padding: .85rem 1rem; background: #fdf4ff; color: #581c87; border-left: 4px solid #7c3aed; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.fam-banner strong { color: #2e1065; }
.fam-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #7c3aed; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.fam-card[data-category="jurisdiction"] { border-left-color: #2563eb; }
.fam-card[data-category="divorce"]      { border-left-color: #b91c1c; }
.fam-card[data-category="custody"]      { border-left-color: #d97706; }
.fam-card[data-category="support"]      { border-left-color: #65a30d; }
.fam-card[data-category="violence"]     { border-left-color: #be185d; }
.fam-card[data-category="resources"]    { border-left-color: #16a34a; }
.fam-title { font-weight: 700; font-size: 1rem; }
.fam-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.fam-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.fam-section summary { cursor: pointer; }
.fam-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.fam-section li { margin: .15rem 0; }
.fam-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.fam-failure strong { color: #451a03; }
.fam-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.fam-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* TX Justice Court small-claims page */
.jp-banner { padding: .85rem 1rem; background: #ecfdf5; color: #064e3b; border-left: 4px solid #059669; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.jp-banner strong { color: #022c22; }
.jp-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #059669; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.jp-card[data-category="overview"]   { border-left-color: #2563eb; }
.jp-card[data-category="filing"]     { border-left-color: #7c3aed; }
.jp-card[data-category="answer"]     { border-left-color: #d97706; }
.jp-card[data-category="trial"]      { border-left-color: #b91c1c; }
.jp-card[data-category="appeal"]     { border-left-color: #be185d; }
.jp-card[data-category="collection"] { border-left-color: #16a34a; }
.jp-title { font-weight: 700; font-size: 1rem; }
.jp-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.jp-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.jp-section summary { cursor: pointer; }
.jp-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.jp-section li { margin: .15rem 0; }
.jp-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.jp-failure strong { color: #451a03; }
.jp-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.jp-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Federal criminal pro-se / Faretta page */
.crim-banner { padding: .85rem 1rem; background: #fef2f2; color: #7f1d1d; border-left: 4px solid #b91c1c; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.crim-banner strong { color: #450a0a; }
.crim-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #b91c1c; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.crim-card[data-category="overview"]   { border-left-color: #2563eb; }
.crim-card[data-category="decision"]   { border-left-color: #b91c1c; }
.crim-card[data-category="colloquy"]   { border-left-color: #7c3aed; }
.crim-card[data-category="standby"]    { border-left-color: #16a34a; }
.crim-card[data-category="procedure"]  { border-left-color: #d97706; }
.crim-card[data-category="sentencing"] { border-left-color: #be185d; }
.crim-card[data-category="appeal"]     { border-left-color: #65a30d; }
.crim-title { font-weight: 700; font-size: 1rem; }
.crim-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.crim-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.crim-section summary { cursor: pointer; }
.crim-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.crim-section li { margin: .15rem 0; }
.crim-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.crim-failure strong { color: #451a03; }
.crim-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.crim-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* S.D. Tex. ADR / mediation page */
.adr-banner { padding: .85rem 1rem; background: #eff6ff; color: #1e3a8a; border-left: 4px solid #2563eb; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.adr-banner strong { color: #172554; }
.adr-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #2563eb; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.adr-card[data-category="overview"]        { border-left-color: #2563eb; }
.adr-card[data-category="types"]           { border-left-color: #7c3aed; }
.adr-card[data-category="selection"]       { border-left-color: #d97706; }
.adr-card[data-category="confidentiality"] { border-left-color: #b91c1c; }
.adr-card[data-category="memo"]            { border-left-color: #be185d; }
.adr-card[data-category="session"]         { border-left-color: #65a30d; }
.adr-card[data-category="after"]           { border-left-color: #16a34a; }
.adr-title { font-weight: 700; font-size: 1rem; }
.adr-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.adr-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.adr-section summary { cursor: pointer; }
.adr-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.adr-section li { margin: .15rem 0; }
.adr-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.adr-failure strong { color: #451a03; }
.adr-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.adr-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Federal habeas corpus page */
.hab-banner { padding: .85rem 1rem; background: #f5f3ff; color: #4c1d95; border-left: 4px solid #7c3aed; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.hab-banner strong { color: #2e1065; }
.hab-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #7c3aed; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.hab-card[data-category="overview"]     { border-left-color: #2563eb; }
.hab-card[data-category="deadline"]     { border-left-color: #b91c1c; }
.hab-card[data-category="exhaustion"]   { border-left-color: #d97706; }
.hab-card[data-category="deference"]    { border-left-color: #be185d; }
.hab-card[data-category="grounds-2255"] { border-left-color: #7c3aed; }
.hab-card[data-category="successive"]   { border-left-color: #65a30d; }
.hab-card[data-category="coa"]          { border-left-color: #16a34a; }
.hab-card[data-category="tips"]         { border-left-color: #6b7280; }
.hab-title { font-weight: 700; font-size: 1rem; }
.hab-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.hab-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.hab-section summary { cursor: pointer; }
.hab-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.hab-section li { margin: .15rem 0; }
.hab-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.hab-failure strong { color: #451a03; }
.hab-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.hab-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* § 1983 civil rights pleading page */
.cr-banner { padding: .85rem 1rem; background: #fff7ed; color: #7c2d12; border-left: 4px solid #ea580c; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.cr-banner strong { color: #431407; }
.cr-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #ea580c; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.cr-card[data-category="overview"] { border-left-color: #2563eb; }
.cr-card[data-category="immunity"] { border-left-color: #b91c1c; }
.cr-card[data-category="monell"]   { border-left-color: #7c3aed; }
.cr-card[data-category="claims"]   { border-left-color: #ea580c; }
.cr-card[data-category="heck"]     { border-left-color: #be185d; }
.cr-card[data-category="sol"]      { border-left-color: #d97706; }
.cr-card[data-category="pleading"] { border-left-color: #16a34a; }
.cr-card[data-category="fees"]     { border-left-color: #65a30d; }
.cr-title { font-weight: 700; font-size: 1rem; }
.cr-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.cr-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.cr-section summary { cursor: pointer; }
.cr-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.cr-section li { margin: .15rem 0; }
.cr-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.cr-failure strong { color: #451a03; }
.cr-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.cr-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* EEOC pipeline page */
.eeoc-banner { padding: .85rem 1rem; background: #fef9c3; color: #713f12; border-left: 4px solid #ca8a04; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.eeoc-banner strong { color: #422006; }
.eeoc-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #ca8a04; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.eeoc-card[data-category="overview"]      { border-left-color: #2563eb; }
.eeoc-card[data-category="charge"]        { border-left-color: #ca8a04; }
.eeoc-card[data-category="investigation"] { border-left-color: #d97706; }
.eeoc-card[data-category="right-to-sue"]  { border-left-color: #b91c1c; }
.eeoc-card[data-category="complaint"]     { border-left-color: #16a34a; }
.eeoc-card[data-category="damages"]       { border-left-color: #65a30d; }
.eeoc-card[data-category="resources"]     { border-left-color: #7c3aed; }
.eeoc-title { font-weight: 700; font-size: 1rem; }
.eeoc-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.eeoc-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.eeoc-section summary { cursor: pointer; }
.eeoc-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.eeoc-section li { margin: .15rem 0; }
.eeoc-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.eeoc-failure strong { color: #451a03; }
.eeoc-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.eeoc-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Missed-deadline rescue page */
.rescue-banner { padding: .85rem 1rem; background: #fef2f2; color: #7f1d1d; border-left: 4px solid #b91c1c; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.rescue-banner strong { color: #450a0a; }
.rescue-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #b91c1c; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.rescue-card[data-category="overview"]         { border-left-color: #2563eb; }
.rescue-card[data-category="rule-6b"]          { border-left-color: #16a34a; }
.rescue-card[data-category="rule-55c"]         { border-left-color: #d97706; }
.rescue-card[data-category="rule-60b"]         { border-left-color: #b91c1c; }
.rescue-card[data-category="appeal-deadline"]  { border-left-color: #be185d; }
.rescue-card[data-category="service-deadline"] { border-left-color: #ca8a04; }
.rescue-card[data-category="sol"]              { border-left-color: #7c3aed; }
.rescue-card[data-category="template"]         { border-left-color: #65a30d; }
.rescue-title { font-weight: 700; font-size: 1rem; }
.rescue-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.rescue-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.rescue-section summary { cursor: pointer; }
.rescue-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.rescue-section li { margin: .15rem 0; }
.rescue-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.rescue-failure strong { color: #451a03; }
.rescue-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.rescue-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Sanctions defense page */
.sanc-banner { padding: .85rem 1rem; background: #fef2f2; color: #7f1d1d; border-left: 4px solid #b91c1c; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.sanc-banner strong { color: #450a0a; }
.sanc-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #b91c1c; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.sanc-card[data-category="overview"]     { border-left-color: #2563eb; }
.sanc-card[data-category="rule11"]       { border-left-color: #b91c1c; }
.sanc-card[data-category="section-1927"] { border-left-color: #d97706; }
.sanc-card[data-category="inherent"]     { border-left-color: #be185d; }
.sanc-card[data-category="rule37"]       { border-left-color: #ca8a04; }
.sanc-card[data-category="strategy"]     { border-left-color: #16a34a; }
.sanc-card[data-category="vexatious"]    { border-left-color: #6b7280; }
.sanc-title { font-weight: 700; font-size: 1rem; }
.sanc-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.sanc-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.sanc-section summary { cursor: pointer; }
.sanc-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.sanc-section li { margin: .15rem 0; }
.sanc-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.sanc-failure strong { color: #451a03; }
.sanc-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.sanc-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Topical "I want to..." entry-point */
.topic-banner { padding: .85rem 1rem; background: #f0fdf4; color: #14532d; border-left: 4px solid #16a34a; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.topic-banner strong { color: #052e16; }
.topic-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #16a34a; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.topic-card[data-category="defending"]       { border-left-color: #b91c1c; }
.topic-card[data-category="filing"]          { border-left-color: #2563eb; }
.topic-card[data-category="civil-rights"]    { border-left-color: #7c3aed; }
.topic-card[data-category="housing"]         { border-left-color: #ea580c; }
.topic-card[data-category="rescue"]          { border-left-color: #be185d; }
.topic-card[data-category="criminal"]        { border-left-color: #6b7280; }
.topic-card[data-category="post-conviction"] { border-left-color: #4c1d95; }
.topic-card[data-category="immigration"]     { border-left-color: #0891b2; }
.topic-card[data-category="family"]          { border-left-color: #c2410c; }
.topic-card[data-category="trial"]           { border-left-color: #65a30d; }
.topic-card[data-category="post-trial"]      { border-left-color: #16a34a; }
.topic-card[data-category="general"]         { border-left-color: #374151; }
.topic-title { font-weight: 700; font-size: 1.05rem; display: flex; align-items: baseline; gap: .4rem; }
.topic-icon { font-size: 1.15rem; }
.topic-summary { margin: .35rem 0 .6rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.topic-routes { list-style: none; margin: 0; padding: 0; }
.topic-route { padding: .4rem 0; border-top: 1px solid var(--c-border, #e5e7eb); display: flex; flex-direction: column; gap: .15rem; }
.topic-route:first-child { border-top: 0; }
.topic-route-link { font-weight: 600; color: var(--c-link, #2563eb); text-decoration: none; }
.topic-route-link:hover { text-decoration: underline; }
.topic-route-blurb { font-size: .85rem; color: var(--c-text-muted, #6b7280); line-height: 1.4; }

/* FRCP 45 subpoena practice page */
.sub-banner { padding: .85rem 1rem; background: #eef2ff; color: #312e81; border-left: 4px solid #4f46e5; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.sub-banner strong { color: #1e1b4b; }
.sub-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #4f46e5; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.sub-card[data-category="overview"]   { border-left-color: #2563eb; }
.sub-card[data-category="issuing"]    { border-left-color: #16a34a; }
.sub-card[data-category="service"]    { border-left-color: #d97706; }
.sub-card[data-category="receiving"]  { border-left-color: #b91c1c; }
.sub-card[data-category="trial"]      { border-left-color: #be185d; }
.sub-card[data-category="deposition"] { border-left-color: #7c3aed; }
.sub-card[data-category="fees"]       { border-left-color: #65a30d; }
.sub-title { font-weight: 700; font-size: 1rem; }
.sub-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.sub-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.sub-section summary { cursor: pointer; }
.sub-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.sub-section li { margin: .15rem 0; }
.sub-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.sub-failure strong { color: #451a03; }
.sub-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.sub-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* 5th Circuit appellate page */
.cir5-banner { padding: .85rem 1rem; background: #f0f9ff; color: #0c4a6e; border-left: 4px solid #0284c7; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.cir5-banner strong { color: #082f49; }
.cir5-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #0284c7; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.cir5-card[data-category="jurisdiction"] { border-left-color: #2563eb; }
.cir5-card[data-category="noa"]          { border-left-color: #b91c1c; }
.cir5-card[data-category="cip"]          { border-left-color: #d97706; }
.cir5-card[data-category="ifp"]          { border-left-color: #16a34a; }
.cir5-card[data-category="record"]       { border-left-color: #ca8a04; }
.cir5-card[data-category="briefing"]     { border-left-color: #0284c7; }
.cir5-card[data-category="oral"]         { border-left-color: #be185d; }
.cir5-card[data-category="decision"]     { border-left-color: #7c3aed; }
.cir5-title { font-weight: 700; font-size: 1rem; }
.cir5-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.cir5-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.cir5-section summary { cursor: pointer; }
.cir5-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.cir5-section li { margin: .15rem 0; }
.cir5-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.cir5-failure strong { color: #451a03; }
.cir5-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.cir5-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Pre-suit demand + spoliation page */
.prsd-banner { padding: .85rem 1rem; background: #fffbeb; color: #78350f; border-left: 4px solid #d97706; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.prsd-banner strong { color: #451a03; }
.prsd-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #d97706; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.prsd-card[data-category="demand-overview"]      { border-left-color: #2563eb; }
.prsd-card[data-category="demand-anatomy"]       { border-left-color: #16a34a; }
.prsd-card[data-category="demand-dtpa"]          { border-left-color: #b91c1c; }
.prsd-card[data-category="demand-fdcpa"]         { border-left-color: #d97706; }
.prsd-card[data-category="spoliation-overview"]  { border-left-color: #be185d; }
.prsd-card[data-category="preservation-letter"]  { border-left-color: #7c3aed; }
.prsd-card[data-category="spoliation-sanctions"] { border-left-color: #65a30d; }
.prsd-title { font-weight: 700; font-size: 1rem; }
.prsd-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.prsd-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.prsd-section summary { cursor: pointer; }
.prsd-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.prsd-section li { margin: .15rem 0; }
.prsd-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.prsd-failure strong { color: #451a03; }
.prsd-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.prsd-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* PACER / CM/ECF page */
.pacer-banner { padding: .85rem 1rem; background: #ecfeff; color: #155e75; border-left: 4px solid #0891b2; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.pacer-banner strong { color: #083344; }
.pacer-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #0891b2; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.pacer-card[data-category="overview"]      { border-left-color: #2563eb; }
.pacer-card[data-category="pro-se-access"] { border-left-color: #16a34a; }
.pacer-card[data-category="paper"]         { border-left-color: #d97706; }
.pacer-card[data-category="monitoring"]    { border-left-color: #7c3aed; }
.pacer-title { font-weight: 700; font-size: 1rem; }
.pacer-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.pacer-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.pacer-section summary { cursor: pointer; }
.pacer-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.pacer-section li { margin: .15rem 0; }
.pacer-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.pacer-failure strong { color: #451a03; }
.pacer-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.pacer-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* FRE 901 authentication page */
.fre901-banner { padding: .85rem 1rem; background: #fdf2f8; color: #831843; border-left: 4px solid #db2777; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.fre901-banner strong { color: #500724; }
.fre901-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #db2777; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.fre901-card[data-category="overview"]          { border-left-color: #2563eb; }
.fre901-card[data-category="texts-emails"]      { border-left-color: #16a34a; }
.fre901-card[data-category="social-media"]      { border-left-color: #b91c1c; }
.fre901-card[data-category="photos-videos"]     { border-left-color: #d97706; }
.fre901-card[data-category="public-records"]    { border-left-color: #7c3aed; }
.fre901-card[data-category="laying-foundation"] { border-left-color: #db2777; }
.fre901-title { font-weight: 700; font-size: 1rem; }
.fre901-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.fre901-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.fre901-section summary { cursor: pointer; }
.fre901-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.fre901-section li { margin: .15rem 0; }
.fre901-failure { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin: .5rem 0; }
.fre901-failure strong { color: #451a03; }
.fre901-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.fre901-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* When-to-get-lawyer triage page */
.lawyer-banner { padding: .85rem 1rem; background: #fef2f2; color: #7f1d1d; border-left: 4px solid #b91c1c; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.lawyer-banner strong { color: #450a0a; }
.lawyer-card { padding: .85rem 1rem; border: 1px solid var(--c-border, #e5e7eb); border-left: 4px solid #b91c1c; border-radius: .4rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.lawyer-card[data-severity="stop"]     { border-left-color: #b91c1c; }
.lawyer-card[data-severity="consider"] { border-left-color: #d97706; }
.lawyer-severity { display: inline-block; padding: .15rem .55rem; font-size: .75rem; font-weight: 700; background: #fef2f2; color: #7f1d1d; border-radius: .25rem; margin-bottom: .35rem; }
.lawyer-card[data-severity="consider"] .lawyer-severity { background: #fffbeb; color: #78350f; }
.lawyer-title { font-weight: 700; font-size: 1.05rem; }
.lawyer-summary { margin: .35rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--c-text-muted, #6b7280); }
.lawyer-section { margin: .35rem 0; font-size: .9rem; line-height: 1.5; }
.lawyer-section summary { cursor: pointer; }
.lawyer-section ul { margin: .25rem 0 .25rem 1.25rem; padding: 0; }
.lawyer-section li { margin: .15rem 0; }
.lawyer-rules { font-size: .75rem; color: var(--c-text-muted, #6b7280); margin: .35rem 0; font-family: monospace; }
.lawyer-verified { font-size: .7rem; color: var(--c-text-muted, #6b7280); margin-top: .35rem; font-style: italic; }

/* Cross-reference "See also" footer (rendered below each Reference page) */
.cross-refs { margin: 1.5rem .75rem .5rem; padding: .85rem 1rem; background: var(--c-bg-subtle, #f9fafb); border: 1px solid var(--c-border, #e5e7eb); border-radius: .4rem; }
.cross-refs-title { margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; color: var(--c-text-muted, #6b7280); text-transform: uppercase; letter-spacing: .05em; }
.cross-refs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.cross-refs-item { font-size: .9rem; line-height: 1.4; }
.cross-refs-link { color: var(--c-link, #2563eb); text-decoration: none; font-weight: 500; }
.cross-refs-link:hover { text-decoration: underline; }
.cross-refs-link::before { content: "→ "; color: var(--c-text-muted, #6b7280); margin-right: .15rem; }

/* IFP wizard (Form AO 240 fillable) */
.ifp-banner { padding: .85rem 1rem; background: #f0f9ff; color: #0c4a6e; border-left: 4px solid #0284c7; border-radius: .25rem; font-size: .9rem; line-height: 1.5; margin: .75rem 0; }
.ifp-banner strong { color: #082f49; }
/* PR #68d — shared-computer warning variant. Amber-on-cream so it visually
   distinguishes from the informational sky-blue ifp-banner above it. */
.ifp-banner-warn { background: #fef3c7; color: #78350f; border-left-color: #b45309; }
.ifp-banner-warn strong { color: #78350f; }
.ifp-section { border: 1px solid var(--c-border, #e5e7eb); border-radius: .4rem; padding: .75rem 1rem; margin-bottom: .75rem; background: var(--c-surface, #fff); }
.ifp-section legend { font-weight: 700; font-size: 1rem; padding: 0 .5rem; }
.ifp-field { display: flex; flex-direction: column; margin-bottom: .55rem; gap: .25rem; }
.ifp-label { font-size: .85rem; color: var(--c-text-muted, #6b7280); font-weight: 500; }
.ifp-field input, .ifp-field textarea { padding: .4rem .55rem; border: 1px solid var(--c-border, #d1d5db); border-radius: .3rem; font-family: inherit; font-size: .95rem; box-sizing: border-box; }
.ifp-field textarea { resize: vertical; min-height: 4rem; }
.ifp-perjury { padding: .55rem .75rem; background: #fef3c7; color: #78350f; border-radius: .25rem; font-size: .85rem; line-height: 1.5; margin-top: .5rem; }
.ifp-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.ifp-btn { padding: .55rem 1rem; border: 1px solid var(--c-border, #d1d5db); background: var(--c-surface, #fff); color: var(--c-text, #111827); border-radius: .35rem; font-size: .9rem; font-weight: 500; cursor: pointer; }
.ifp-btn:hover { background: var(--c-surface-hover, #f3f4f6); }
.ifp-btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.ifp-btn-primary:hover { background: #1d4ed8; }
.ifp-btn-danger { color: #b91c1c; }
.ifp-btn-danger:hover { background: #fef2f2; }
.ifp-preview { padding: 1rem; border: 1px solid var(--c-border, #e5e7eb); background: #fff; border-radius: .4rem; font-size: .9rem; line-height: 1.55; }
.ifp-preview h3 { margin: 1rem 0 .35rem; font-size: 1rem; border-bottom: 1px solid var(--c-border, #e5e7eb); padding-bottom: .25rem; }
.ifp-preview-caption { padding-bottom: .5rem; border-bottom: 2px solid #1f2937; margin-bottom: .75rem; }
.ifp-table { width: 100%; border-collapse: collapse; margin: .35rem 0; font-size: .9rem; }
.ifp-table td { padding: .25rem .5rem; border-bottom: 1px solid var(--c-border, #e5e7eb); }
.ifp-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ifp-table-total td { border-top: 2px solid #1f2937; padding-top: .5rem; }
.ifp-signature { margin-top: 1rem; padding: .75rem; background: var(--c-bg-subtle, #f9fafb); border: 1px solid var(--c-border, #e5e7eb); border-radius: .35rem; }
.ifp-disclaimer { margin-top: 1rem; padding-top: .5rem; border-top: 1px solid var(--c-border, #e5e7eb); font-size: .8rem; color: var(--c-text-muted, #6b7280); }

.pin-badge[hidden],
.case-badge[hidden] { display: none; }
.pin-badge:hover,
.case-badge:hover { background: var(--c-surface-hover, #f3f4f6); }
.pin-badge .pin-empty { color: var(--c-text-muted, #6b7280); font-weight: 500; }

/* The subnav itself stays overflow:visible so the All-sections popover
   (.subnav-more-list, position:absolute) isn't clipped. Horizontal
   scrolling lives on the inner .subnav-scroller. Pre-fix, .subnav had
   overflow-x:auto, and CSS auto-couples overflow-y to non-visible —
   meaning the popover was clipped on Y too. Repro: tap "All sections ▾"
   on the live site, see the menu render but be invisible below the
   subnav border. */
.subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: .25rem;
  align-items: center;
  overflow: visible;
  padding: .5rem .75rem;
  background: var(--c-bg, #fff);
  border-bottom: 1px solid var(--c-border, #e5e7eb);
}
.subnav-scroller {
  display: flex;
  gap: .25rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.subnav-tab {
  flex: 0 0 auto;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text-muted, #6b7280);
  cursor: pointer;
  white-space: nowrap;
  /* WCAG 2.5.5 — subnav tabs (All / Federal / State) need ≥44×44. */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.subnav-tab[aria-selected="true"],
.subnav-tab[aria-current="page"],
.subnav-tab[aria-pressed="true"] {
  background: var(--c-primary-bg, #1a3a5c);
  color: #fff;
}
.subnav-tab:hover:not([aria-selected="true"]):not([aria-current="page"]):not([aria-pressed="true"]) {
  background: var(--c-surface-hover, #f3f4f6);
  color: var(--c-text, #1a2233);
}
/* PR-A: "All sections" disclosure for the long Reference subnav.
   Reference has 47 sections; rendering them all as a flat horizontal
   bar fails for lower-literacy "plowing" users (NN/g) and at 375 px
   (~3 buttons visible at a time). Primary tabs stay flat; the rest
   live behind this details/summary, opening as a menu-style popover. */
.subnav-more {
  position: relative;
  display: inline-block;
}
.subnav-more > summary.subnav-more-summary {
  list-style: none;            /* hide the default disclosure triangle */
  cursor: pointer;
}
.subnav-more > summary.subnav-more-summary::-webkit-details-marker { display: none; }
/* Hide the popover when the disclosure is closed. The UA stylesheet's
   `details > :not(summary) { display: none }` rule is normally enough,
   but the explicit `display: flex` below would override it — so the
   popover stayed laid-out (and contributed to page width) even when
   visually hidden via `[open]` state. Caught by 360x640 mobile audit:
   /reference/forms scrollWidth was 445px because the auto-opened
   popover was forcing the page wider. */
.subnav-more:not([open]) > .subnav-more-list {
  display: none;
}
.subnav-more-list {
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  right: auto;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .4rem;
  padding: .35rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  max-height: 60vh;
  overflow-y: auto;
  min-width: 240px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.subnav-more-item {
  text-align: left;
  white-space: normal;
  width: 100%;
}
/* PR-B: category headings within the All-sections popover.
   Per the research thread (NN/g lower-literacy: "main choices in a
   linear menu"; GOV.UK Top Tasks: group by user task-shape), the
   45-item disclosure is now grouped under named categories. */
.subnav-more-category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-muted, #6b7280);
  margin: .65rem 0 .25rem;
  padding: 0 .35rem;
}
.subnav-more-category:first-child { margin-top: .15rem; }
.subnav-more-group {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: .15rem;
}
/* On narrow viewports, anchor the popover to the right edge of the
   subnav so it doesn't overflow the screen. */
@media (max-width: 480px) {
  .subnav-more-list {
    left: auto;
    right: 0;
    min-width: min(280px, calc(100vw - 1rem));
  }
}
.pillar-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--c-text-muted, #6b7280);
}
.disclaimer-banner {
  margin: .75rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--c-primary, #1a3a5c);
  background: var(--c-surface, #f9fafb);
  font-size: .875rem;
  border-radius: .25rem;
}
.disclaimer-banner strong { color: var(--c-text, #1a2233); }

/* The Companion's styles.css only styles the older .rule-detail-overlay
   modal pattern. The Workbench's new modals use .modal-backdrop and
   need their own positioning, otherwise their buttons fall behind the
   fixed bottom-nav (z-index 100) and become un-clickable. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
  border-radius: .5rem;
  padding: 1.25rem;
  max-width: 32rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.modal-card--wide { max-width: 48rem; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.modal-header h2 { margin: 0; font-size: 1.1rem; }
.modal-close {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--c-text-muted, #6b7280);
  padding: .15rem .45rem;
  line-height: 1;
}
.modal-close:hover { color: var(--c-text, #1a2233); }
.modal-actions {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}
.glossary-search {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .4rem;
  font-size: .95rem;
  box-sizing: border-box;
}

/* ── Emergency front door tiles ──────────────────────────────────
   Top-of-page time-critical paths for the audience that arrives via
   "eviction notice Houston" / "free lawyer Texas" Google searches.
   Sky-blue style would dilute the urgency, so eviction uses a red
   left border + warm tint. Help tile uses a calmer green to read as
   "next door if you need it" rather than "another emergency". Both
   are dismissable per-banner so a returning user past the crisis
   doesn't see them again. */
.emergency-tile {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .5rem .75rem;
  align-items: center;
  margin: .5rem .75rem 0;
  padding: .75rem .85rem;
  border-radius: .4rem;
  text-decoration: none;
  color: inherit;
  font-size: .92rem;
  line-height: 1.4;
}
.emergency-tile--eviction {
  background: #fee2e2;
  color: #7f1d1d;
  border-left: 4px solid #b91c1c;
}
.emergency-tile--eviction:hover { background: #fecaca; }
.emergency-tile--help {
  background: #dcfce7;
  color: #14532d;
  border-left: 4px solid #15803d;
  grid-template-columns: auto 1fr auto;
}
.emergency-tile-icon {
  font-size: 1.4rem;
  align-self: start;
  padding-top: .1rem;
}
.emergency-tile-body { display: flex; flex-direction: column; gap: .15rem; }
.emergency-tile-title { font-weight: 700; }
.emergency-tile-sub { font-size: .85rem; opacity: .92; }
.emergency-tile-arrow {
  font-size: 1.2rem;
  font-weight: 700;
  align-self: center;
}
.emergency-tile-dismiss {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  /* WCAG 2.5.5 — × dismiss is small visually but needs ≥44×44 click
     area. Parent grid constrains min-*, so explicit width/height
     forces the dimensions. */
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .65;
  border-radius: .25rem;
}
.emergency-tile-dismiss:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.emergency-tile-dismiss:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  opacity: 1;
}
/* Tap-to-call links for the legal-aid help tile. Phone numbers stay
   on one line each so they're tappable without ambiguity. */
.emergency-help-numbers {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: .35rem;
}
.emergency-help-num {
  font-weight: 600;
  font-size: .92rem;
  color: #14532d;
  text-decoration: none;
  padding: .55rem .75rem;
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: .3rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  /* WCAG 2.5.5 — tap-to-call phone links on emergency tiles. */
  min-height: 44px;
}
.emergency-help-num:hover { background: #f0fdf4; }
@media (max-width: 480px) {
  .emergency-tile { grid-template-columns: auto 1fr auto; }
  .emergency-tile--eviction .emergency-tile-arrow { display: none; }
  .emergency-help-num { width: 100%; text-align: center; }
}

/* ── "What kind of case?" triage ─────────────────────────────────
   Front-of-Navigate-landing card grid that routes a panicked user
   to the right reference module. The site is federal-focused, but
   most Houstonians' cases are state court (eviction, family, debt,
   JP small-claims) — without this triage, state-court litigants
   land on FRCP pages that don't apply. */
.case-type-triage {
  margin: .5rem .75rem 0;
  padding: .9rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: .5rem;
}
.case-type-triage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .25rem;
}
.case-type-triage-title { margin: 0; font-size: 1.05rem; color: #1e3a8a; }
.case-type-triage-sub { margin: 0 0 .65rem; font-size: .85rem; color: #1e40af; }
.case-type-triage-dismiss {
  background: transparent;
  border: 0;
  color: #1e40af;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  /* WCAG 2.5.5 — × dismiss needs ≥44×44; explicit width/height to
     defeat parent grid/flex shrinking. */
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .7;
  border-radius: .25rem;
}
.case-type-triage-dismiss:hover { opacity: 1; background: rgba(30, 64, 175, .1); }
.case-type-triage-dismiss:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
  opacity: 1;
}
.case-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .5rem;
}
.case-type-card {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .65rem .75rem;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: .45rem;
  text-decoration: none;
  color: #1e3a8a;
  min-height: 4rem;
}
.case-type-card:hover { background: #dbeafe; border-color: #93c5fd; }
.case-type-card-icon { font-size: 1.35rem; flex: 0 0 auto; line-height: 1.1; }
.case-type-card-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.case-type-card-label { font-weight: 600; font-size: .95rem; }
.case-type-card-sub { font-size: .78rem; color: #475569; }
@media (max-width: 480px) {
  .case-type-grid { grid-template-columns: 1fr; }
}

/* ---- Court picker (jurisdiction-pin modal) ----------------------------- */
/* Empty-query state: a "Quick pick" card grid for SDTX divisions sits above
   a collapsed disclosure of every other federal court. The audience is
   Houston-Division pro se filers, so the cards must be the first thing they
   see — not a flat search-it-yourself list. */
.cp-section { margin: .5rem 0 .9rem; }
.cp-section-heading {
  margin: 0 0 .15rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-muted, #6b7280);
}
.cp-section-hint {
  margin: 0 0 .55rem;
  font-size: .85rem;
  color: var(--c-text-muted, #6b7280);
}
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .5rem;
}
/* Sky-blue card — same idiom as welcome city-cards / task-front cards. */
.cp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .15rem;
  text-align: left;
  padding: .65rem .75rem;
  min-height: 3.25rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: .5rem;
  cursor: pointer;
  font: inherit;
  margin: 0;
}
.cp-card:hover { background: #dbeafe; }
.cp-card-name { font-weight: 600; font-size: .98rem; }
.cp-card-sub  { font-size: .78rem; color: #475569; }
.cp-disclosure { margin-top: .4rem; }
.cp-disclosure-summary {
  cursor: pointer;
  padding: .5rem .25rem;
  font-size: .9rem;
  color: var(--c-text, #1a2233);
}
.cp-disclosure-summary:hover { color: var(--c-link, #2563eb); }
.cp-list { display: flex; flex-direction: column; gap: 0; }
.cp-row-name { display: block; font-weight: 600; }
.cp-row-sub  { display: block; font-size: .8rem; color: var(--c-text-muted, #6b7280); }
.cp-row-arrow { color: var(--c-text-muted, #6b7280); }
.cp-empty {
  padding: 1.25rem .5rem;
  text-align: center;
  color: var(--c-text-muted, #6b7280);
}

/* ── from claude/get-help ──────────────────────────────────────── */
/* PR-GET-HELP: Houston-area legal-aid directory under
   /reference/get-help. Green-tinted "help" treatment (vs warning
   yellow/red elsewhere) signals supportive content. */
.help-banner {
  padding: .85rem 1rem;
  background: #ecfdf5;
  color: #064e3b;
  border-left: 4px solid #059669;
  border-radius: .25rem;
  font-size: .9rem;
  line-height: 1.5;
  margin: .5rem 0 0;
}
.help-banner strong { color: #022c22; }
.help-org-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}
.help-org-card {
  padding: .85rem 1rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 4px solid #059669;
  border-radius: .35rem;
}
.help-org-name {
  margin: 0 0 .25rem;
  font-size: 1rem;
  color: var(--c-text, #1a2233);
}
.help-org-desc {
  margin: 0 0 .55rem;
  font-size: .9rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.45;
}
.help-org-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .25rem .65rem;
  margin: 0 0 .65rem;
  font-size: .85rem;
  line-height: 1.45;
}
.help-org-meta dt {
  font-weight: 600;
  color: #047857;
}
.help-org-meta dd {
  margin: 0;
  color: var(--c-text, #1a2233);
}
.help-org-links {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.help-org-verified {
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.help-disclaimer {
  margin: 1rem 0 0;
  padding: .65rem .85rem;
  background: #fef9c3;
  color: #713f12;
  border-left: 3px solid #ca8a04;
  border-radius: .25rem;
  font-size: .8rem;
  line-height: 1.45;
}
/* Scope chip — minimal duplicate from PR-EXT-RESOURCES so this
   branch is self-contained. Only the sdtx green chip is used here. */
.ext-scope-chip {
  display: inline-block;
  font-size: .68rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.ext-scope-chip[data-scope="sdtx"] {
  background: #dcfce7;
  color: #14532d;
}


/* ── from claude/houston-wayfinding ──────────────────────────────────────── */
/* PR-HOUSTON-WAYFINDING: practical first-visit info on the
   /navigate/court/federal-sdtex-houston page. Sky-blue treatment
   distinguishes "practical wayfinding" from the warning-yellow
   judge-roster verification banner above it. */
.houston-wayfinding {
  margin: 1.25rem 0 .25rem;
  padding: .85rem 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: .4rem;
}
.houston-wayfinding-title {
  margin: 0 0 .35rem;
  font-size: 1rem;
  color: #0c4a6e;
}
.houston-wayfinding-intro {
  margin: 0 0 .6rem;
  font-size: .85rem;
  color: #075985;
  line-height: 1.45;
}
.houston-wf-section {
  margin-bottom: .35rem;
  padding: .35rem .6rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .3rem;
}
.houston-wf-section summary {
  cursor: pointer;
  padding: .1rem 0;
  font-size: .9rem;
  color: var(--c-text, #1a2233);
}
.houston-wf-section[open] summary { margin-bottom: .35rem; }
.houston-wf-list {
  margin: 0 0 .15rem 1.1rem;
  padding: 0;
  font-size: .85rem;
  line-height: 1.5;
}
.houston-wf-list li { margin: .15rem 0; }
.houston-wf-list li.houston-wf-rationale {
  margin-top: .35rem;
  list-style: none;
  margin-left: -1.1rem;
  padding: .35rem .55rem;
  background: #fef9c3;
  color: #713f12;
  border-left: 3px solid #ca8a04;
  border-radius: .25rem;
  font-size: .8rem;
}
.houston-wayfinding-verified {
  margin: .6rem 0 0;
  font-size: .75rem;
  color: #075985;
}
.houston-wayfinding-verified a { color: #075985; text-decoration: underline; }


/* ── from claude/motion-picker ──────────────────────────────────────── */
/* PR-MOTION-PICKER: "What should I file?" wizard at /#/reference/
   motion-picker. Same visual idiom as PR-SOP-CHECKER — sky-blue
   answer cards, color-coded result cards (green/yellow/blue), red-
   flag callout, monospace rule citation. Distinct prefix so the two
   wizards' classes don't collide. */
.motion-picker { padding: .75rem; }
.motion-picker-header { margin-bottom: .85rem; }
.motion-picker-title { margin: 0 0 .25rem; font-size: 1.15rem; }
.motion-picker-intro {
  margin: 0;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.motion-picker-banner {
  padding: .75rem .9rem;
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #d97706;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin-bottom: .75rem;
}
.motion-picker-banner strong { color: #78350f; }
.motion-picker-back { margin-bottom: .5rem; }
.motion-picker-step-title { margin: 0 0 .35rem; font-size: 1.05rem; }
.motion-picker-step-intro {
  margin: 0 0 .75rem;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.motion-picker-answer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}
.motion-picker-answer-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-align: left;
  padding: .75rem .9rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .4rem;
  cursor: pointer;
  font: inherit;
  color: var(--c-text, #1a2233);
  transition: background 120ms ease, border-color 120ms ease;
}
.motion-picker-answer-card:hover { background: #e0f2fe; border-color: #7dd3fc; }
.motion-picker-answer-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.motion-picker-answer-label { font-size: .95rem; font-weight: 500; }
.motion-picker-answer-arrow { flex-shrink: 0; color: #0284c7; font-size: 1rem; }

.motion-picker-result {
  padding: 1rem 1.1rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .5rem;
}
.motion-picker-result[data-outcome="looks-fit"] {
  border-left: 4px solid #059669;
  background: #ecfdf5;
}
.motion-picker-result[data-outcome="maybe-fit"] {
  border-left: 4px solid #d97706;
  background: #fef3c7;
}
.motion-picker-result[data-outcome="needs-context"] {
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
}
.motion-picker-result-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.motion-picker-result-title { margin: 0; font-size: 1.05rem; }
.motion-picker-outcome-chip {
  display: inline-block;
  font-size: .68rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.motion-picker-outcome-chip[data-outcome="looks-fit"] {
  background: #d1fae5;
  color: #065f46;
}
.motion-picker-outcome-chip[data-outcome="maybe-fit"] {
  background: #fde68a;
  color: #78350f;
}
.motion-picker-outcome-chip[data-outcome="needs-context"] {
  background: #bae6fd;
  color: #075985;
}
.motion-picker-result-explanation {
  margin: 0 0 .75rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--c-text, #1a2233);
}
.motion-picker-flags {
  margin: 0 0 .65rem;
  padding: .55rem .75rem;
  background: #fee2e2;
  border-left: 3px solid #b91c1c;
  border-radius: .25rem;
  font-size: .85rem;
  color: #7f1d1d;
}
.motion-picker-flags strong { color: #450a0a; display: block; margin-bottom: .25rem; }
.motion-picker-flags ul { margin: 0; padding-left: 1.1rem; }
.motion-picker-flags li { margin: .15rem 0; line-height: 1.45; }
.motion-picker-steps {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--c-text, #1a2233);
}
.motion-picker-steps strong { display: block; margin-bottom: .25rem; }
.motion-picker-steps ol { margin: 0; padding-left: 1.25rem; }
.motion-picker-steps li { margin: .25rem 0; line-height: 1.5; }
.motion-picker-rule-citation {
  margin: .5rem 0;
  padding: .5rem .65rem;
  background: var(--c-surface, #fff);
  border: 1px dashed var(--c-border, #e5e7eb);
  border-radius: .25rem;
  font-size: .85rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.motion-picker-rule-citation a { color: #1d4ed8; text-decoration: underline; }
.motion-picker-result-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.motion-picker-lawyer-cta { font-weight: 600; }
.motion-picker-result-scope {
  margin: .85rem 0 0;
  padding-top: .65rem;
  border-top: 1px dashed rgba(0,0,0,.1);
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  line-height: 1.45;
}
/* Scope chip — minimal duplicate from PR-EXT-RESOURCES so this
   branch is self-contained. Only the sdtx green chip is used. */
.ext-scope-chip {
  display: inline-block;
  font-size: .68rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.ext-scope-chip[data-scope="sdtx"] {
  background: #dcfce7;
  color: #14532d;
}


/* ── from claude/sop-checker ──────────────────────────────────────── */
/* PR-SOP-CHECKER: "Was I served properly?" decision-tree wizard at
   /#/reference/sop-check. Answer cards reuse welcome city-card sky-
   blue. Result cards are color-coded by outcome — green / yellow /
   blue, never red, since "definitely defective" would be a UPL
   claim the wizard cannot make. */
.sop-checker { padding: .75rem; }
.sop-checker-header { margin-bottom: .85rem; }
.sop-checker-title { margin: 0 0 .25rem; font-size: 1.15rem; }
.sop-checker-intro {
  margin: 0;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.sop-banner {
  padding: .75rem .9rem;
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #d97706;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.5;
  margin-bottom: .75rem;
}
.sop-banner strong { color: #78350f; }
.sop-back { margin-bottom: .5rem; }
.sop-step-title { margin: 0 0 .35rem; font-size: 1.05rem; }
.sop-step-intro {
  margin: 0 0 .75rem;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.sop-answer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}
.sop-answer-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-align: left;
  padding: .75rem .9rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .4rem;
  cursor: pointer;
  font: inherit;
  color: var(--c-text, #1a2233);
  transition: background 120ms ease, border-color 120ms ease;
}
.sop-answer-card:hover { background: #e0f2fe; border-color: #7dd3fc; }
.sop-answer-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.sop-answer-label { font-size: .95rem; font-weight: 500; }
.sop-answer-arrow { flex-shrink: 0; color: #0284c7; font-size: 1rem; }

.sop-result {
  padding: 1rem 1.1rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .5rem;
}
.sop-result[data-outcome="looks-valid"] {
  border-left: 4px solid #059669;
  background: #ecfdf5;
}
.sop-result[data-outcome="potentially-defective"] {
  border-left: 4px solid #d97706;
  background: #fef3c7;
}
.sop-result[data-outcome="needs-context"] {
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
}
.sop-result-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.sop-result-title { margin: 0; font-size: 1.05rem; }
.sop-outcome-chip {
  display: inline-block;
  font-size: .68rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.sop-outcome-chip[data-outcome="looks-valid"] {
  background: #d1fae5;
  color: #065f46;
}
.sop-outcome-chip[data-outcome="potentially-defective"] {
  background: #fde68a;
  color: #78350f;
}
.sop-outcome-chip[data-outcome="needs-context"] {
  background: #bae6fd;
  color: #075985;
}
.sop-result-explanation {
  margin: 0 0 .75rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--c-text, #1a2233);
}
.sop-flags {
  margin: 0 0 .65rem;
  padding: .55rem .75rem;
  background: #fee2e2;
  border-left: 3px solid #b91c1c;
  border-radius: .25rem;
  font-size: .85rem;
  color: #7f1d1d;
}
.sop-flags strong { color: #450a0a; display: block; margin-bottom: .25rem; }
.sop-flags ul { margin: 0; padding-left: 1.1rem; }
.sop-flags li { margin: .15rem 0; line-height: 1.45; }
.sop-steps {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--c-text, #1a2233);
}
.sop-steps strong { display: block; margin-bottom: .25rem; }
.sop-steps ol { margin: 0; padding-left: 1.25rem; }
.sop-steps li { margin: .25rem 0; line-height: 1.5; }
.sop-rule-citation {
  margin: .5rem 0;
  padding: .5rem .65rem;
  background: var(--c-surface, #fff);
  border: 1px dashed var(--c-border, #e5e7eb);
  border-radius: .25rem;
  font-size: .85rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.sop-rule-citation a { color: #1d4ed8; text-decoration: underline; }
.sop-result-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.sop-lawyer-cta { font-weight: 600; }
.sop-result-scope {
  margin: .85rem 0 0;
  padding-top: .65rem;
  border-top: 1px dashed rgba(0,0,0,.1);
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  line-height: 1.45;
}
/* Scope chip — minimal duplicate from PR-EXT-RESOURCES so this
   branch is self-contained. Only the sdtx green chip is used. */
.ext-scope-chip {
  display: inline-block;
  font-size: .68rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.ext-scope-chip[data-scope="sdtx"] {
  background: #dcfce7;
  color: #14532d;
}


/* ── from claude/ref-triage ──────────────────────────────────────── */
/* PR-REF-TRIAGE: 4-question funnel narrows 47 reference pages to a
   3-6 recommendation list. Sky-blue answer cards match the welcome
   city-cards + SOP wizard so the audience sees a consistent
   "tap-to-advance" pattern. */
.ref-triage { padding: .75rem; }
.ref-triage-header { margin-bottom: .85rem; }
.ref-triage-title { margin: 0 0 .25rem; font-size: 1.15rem; }
.ref-triage-intro {
  margin: 0;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.ref-triage-progress {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .85rem;
}
.ref-triage-pip {
  width: 1.65rem;
  height: .25rem;
  background: #e5e7eb;
  border-radius: 999px;
}
.ref-triage-pip-active { background: #0284c7; }
.ref-triage-progress-text {
  margin-left: auto;
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
}
.ref-triage-step-title { margin: 0 0 .65rem; font-size: 1.05rem; }
.ref-triage-answer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}
.ref-triage-answer-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-align: left;
  padding: .75rem .9rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .4rem;
  cursor: pointer;
  font: inherit;
  color: var(--c-text, #1a2233);
  transition: background 120ms ease, border-color 120ms ease;
}
.ref-triage-answer-card:hover { background: #e0f2fe; border-color: #7dd3fc; }
.ref-triage-answer-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.ref-triage-answer-label { font-size: .95rem; font-weight: 500; }
.ref-triage-answer-arrow { flex-shrink: 0; color: #0284c7; font-size: 1rem; }
.ref-triage-back { margin-top: .65rem; }
.ref-triage-summary {
  margin: 0 0 .85rem;
  padding: .65rem .85rem;
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
  border-radius: .25rem;
  font-size: .85rem;
  line-height: 1.55;
  color: #075985;
}
.ref-triage-summary strong { color: #0c4a6e; }
.ref-triage-recs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
.ref-triage-rec-card {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .65rem .85rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 3px solid #0284c7;
  border-radius: .4rem;
}
.ref-triage-rec-rank {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.ref-triage-rec-body { flex: 1; min-width: 0; }
.ref-triage-rec-title {
  font-weight: 600;
  font-size: .95rem;
  color: #1d4ed8;
  text-decoration: none;
  display: inline-block;
  margin-bottom: .15rem;
}
.ref-triage-rec-title:hover { text-decoration: underline; }
.ref-triage-rec-blurb {
  margin: 0;
  font-size: .85rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.45;
}
.ref-triage-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}


/* ── from claude/case-search ──────────────────────────────────────── */
/* PR-CASE-SEARCH: internal search across the active case at
   /#/case/search. Result cards group by store with deep-link to
   the section. */
.case-search { padding: .75rem; }
.case-search-header { margin-bottom: .85rem; }
.case-search-title { margin: 0 0 .25rem; font-size: 1.15rem; }
.case-search-intro {
  margin: 0;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.case-search-input {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .4rem;
  font-size: .95rem;
  box-sizing: border-box;
  margin-bottom: .35rem;
}
.case-search-input:focus {
  outline: 2px solid #0284c7;
  outline-offset: 1px;
}
.case-search-stats {
  margin-bottom: .85rem;
  font-size: .8rem;
  color: var(--c-text-muted, #6b7280);
}
.case-search-empty { margin: 1rem 0; }
.case-search-group {
  margin-bottom: 1rem;
  padding: .65rem .85rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
}
.case-search-group-title {
  margin: 0 0 .5rem;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.case-search-group-icon { font-size: 1rem; }
.case-search-group-count {
  font-weight: 400;
  color: var(--c-text-muted, #6b7280);
  font-size: .85rem;
}
.case-search-group-link {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 500;
  color: #1d4ed8;
  text-decoration: none;
}
.case-search-group-link:hover { text-decoration: underline; }
.case-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}
.case-search-result {
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .3rem;
}
.case-search-result-link {
  display: block;
  padding: .5rem .65rem;
  text-decoration: none;
  color: var(--c-text, #1a2233);
}
.case-search-result-link:hover { background: #f0f9ff; }
.case-search-result-title {
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: .1rem;
}
.case-search-result-title mark {
  background: #fef3c7;
  color: #78350f;
  padding: 0 .15rem;
  border-radius: .15rem;
}
.case-search-result-sub {
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
}
.case-search-help {
  margin-top: 1rem;
  padding: .75rem .85rem;
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
  border-radius: .25rem;
  font-size: .85rem;
  color: #075985;
  line-height: 1.5;
}
.case-search-help p { margin: 0 0 .35rem; }
.case-search-help ul { margin: 0; padding-left: 1.1rem; }
.case-search-help li { margin: .15rem 0; }


/* ── from claude/case-wizard ──────────────────────────────────────── */
/* PR-CASE-WIZARD: 4-step case creation. Sky-blue answer-card pattern
   matches welcome city-cards / SOP / ref-triage. Role cards (step 1)
   are full-width tap targets with icon + label + blurb. */
.case-wizard-details { margin-top: 1.25rem; }
.case-wizard-details summary {
  cursor: pointer;
  font-weight: 600;
  padding: .35rem 0;
}
.case-wizard {
  margin-top: .75rem;
  padding: 1rem 1.1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: .5rem;
}
.case-wizard-title {
  margin: 0 0 .65rem;
  font-size: 1.1rem;
  color: #0c4a6e;
}
.case-wizard-progress {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .85rem;
}
.case-wizard-pip {
  width: 1.65rem;
  height: .25rem;
  background: #e5e7eb;
  border-radius: 999px;
}
.case-wizard-pip-active { background: #0284c7; }
.case-wizard-progress-text {
  margin-left: auto;
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
}
.case-wizard-step { margin-bottom: .85rem; }
.case-wizard-step-title { margin: 0 0 .35rem; font-size: 1.05rem; }
.case-wizard-step-intro {
  margin: 0 0 .65rem;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.case-wizard-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.case-wizard-role-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  text-align: left;
  padding: .75rem .9rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .4rem;
  cursor: pointer;
  font: inherit;
  color: var(--c-text, #1a2233);
  transition: background 120ms ease, border-color 120ms ease;
}
.case-wizard-role-card:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.case-wizard-role-card-selected {
  background: #e0f2fe;
  border-color: #0284c7;
  border-width: 2px;
}
.case-wizard-role-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.case-wizard-role-icon { flex-shrink: 0; font-size: 1.5rem; }
.case-wizard-role-body { flex: 1; min-width: 0; }
.case-wizard-role-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .15rem;
}
.case-wizard-role-blurb {
  display: block;
  font-size: .8rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.4;
}
.case-wizard-field {
  display: block;
  margin: 0 0 .65rem;
}
.case-wizard-field-label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--c-text, #1a2233);
  margin-bottom: .2rem;
}
.case-wizard-field input,
.case-wizard-field select {
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .3rem;
  font: inherit;
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
}
.case-wizard-field input:focus,
.case-wizard-field select:focus {
  outline: 2px solid #0284c7;
  outline-offset: 1px;
}
.case-wizard-field-hint {
  display: block;
  margin-top: .2rem;
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
  line-height: 1.4;
}
.case-wizard-pinned-note {
  margin: .35rem 0 0;
  padding: .45rem .65rem;
  background: #ecfdf5;
  border-left: 3px solid #059669;
  border-radius: .25rem;
  font-size: .8rem;
  color: #064e3b;
  line-height: 1.45;
}
.case-wizard-summary {
  margin: .65rem 0 0;
  padding: .65rem .85rem;
  background: var(--c-surface, #fff);
  border: 1px dashed #bae6fd;
  border-radius: .35rem;
  font-size: .85rem;
  line-height: 1.55;
}
.case-wizard-summary strong { color: #0c4a6e; display: block; margin-bottom: .35rem; }
.case-wizard-summary ul { list-style: none; padding: 0; margin: 0; }
.case-wizard-summary li { margin: .15rem 0; }
.case-wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .85rem;
}
.case-wizard-actions [data-wizard-back] { margin-right: auto; }
.case-wizard-error {
  margin: 0 0 .65rem;
  padding: .55rem .75rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-left: 3px solid #b91c1c;
  border-radius: .25rem;
  font-size: .85rem;
}


/* ── from claude/coach-card ──────────────────────────────────────── */
/* PR-COACH-CARD: empty-state coaching on the case-overview dashboard.
   Rendered only when the active case has zero docket / exhibits /
   service / costs / calendar entries AND the user hasn't dismissed
   it. Three numbered next-steps with role-aware copy. */
.case-coach-card {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: .5rem;
}
.case-coach-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.case-coach-title {
  margin: 0;
  font-size: 1.05rem;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.case-coach-dismiss {
  background: transparent;
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: 1rem;
  color: #075985;
  cursor: pointer;
  padding: .15rem .45rem;
  line-height: 1;
}
.case-coach-dismiss:hover { background: #e0f2fe; }
.case-coach-dismiss:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.case-coach-intro {
  margin: .35rem 0 .85rem;
  font-size: .8rem;
  color: #075985;
  line-height: 1.45;
}
.case-coach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}
.case-coach-step {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .65rem .8rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .35rem;
}
.case-coach-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.case-coach-step-body {
  flex: 1;
  min-width: 0;
}
.case-coach-step-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-text, #1a2233);
  margin-bottom: .15rem;
}
.case-coach-step-desc {
  font-size: .85rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.45;
  margin-bottom: .4rem;
}
.case-coach-step-action {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.case-coach-disclaimer {
  margin: .85rem 0 0;
  padding-top: .65rem;
  border-top: 1px dashed #bae6fd;
  font-size: .75rem;
  color: #075985;
  line-height: 1.45;
}


/* ── from claude/task-front ──────────────────────────────────────── */
/* PR-TASK-FRONT: task-shaped front door at the top of /#/navigate.
   Sky-blue matches welcome city-cards + case-overview coach card so
   first-time users encounter a consistent "directive pick-a-card"
   visual language. Dismissable via the same dismissBanner plumbing
   as the exhaustion banner. */
.task-front {
  margin: .75rem;
  padding: 1rem 1.1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: .5rem;
}
.task-front-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.task-front-heading {
  margin: 0;
  font-size: 1.05rem;
  color: #0c4a6e;
}
.task-front-dismiss {
  background: transparent;
  border: 1px solid transparent;
  border-radius: .25rem;
  color: #075985;
  cursor: pointer;
  font-size: 1rem;
  padding: .15rem .45rem;
  line-height: 1;
}
.task-front-dismiss:hover { background: #e0f2fe; }
.task-front-dismiss:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.task-front-intro {
  margin: .35rem 0 .75rem;
  font-size: .85rem;
  color: #075985;
  line-height: 1.45;
}
.task-front-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .55rem;
}
.task-front-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .4rem;
  text-decoration: none;
  color: var(--c-text, #1a2233);
  transition: background 120ms ease, border-color 120ms ease;
}
.task-front-card:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.task-front-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.task-front-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
}
.task-front-body {
  flex: 1;
  min-width: 0;
}
.task-front-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .15rem;
}
.task-front-blurb {
  display: block;
  font-size: .8rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.4;
}
.task-front-arrow {
  flex-shrink: 0;
  color: #075985;
  font-size: 1rem;
}


/* ── from claude/plain-english-summaries ──────────────────────────────────────── */
/* PR-PLAIN-ENGLISH-SUMMARIES: green "in plain English" callout
   pinned to the top of high-traffic Reference modules. Distinct
   from the warning-yellow banner palette so users read it as
   orienting / supportive, not alarming. Rendered as <details open>
   so the summary is visible by default but collapsible. */
.plain-summary {
  margin: .5rem 0 .75rem;
  padding: .75rem .9rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #059669;
  border-radius: .4rem;
}
.plain-summary[open] { padding-bottom: .9rem; }
.plain-summary-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  list-style: none;
}
.plain-summary-summary::-webkit-details-marker { display: none; }
.plain-summary-summary::marker { content: ''; }
.plain-summary-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}
.plain-summary-heading {
  font-weight: 700;
  font-size: .95rem;
  color: #064e3b;
}
.plain-summary-summary::after {
  content: '▾';
  margin-left: auto;
  color: #059669;
  font-size: .85rem;
  transition: transform 120ms ease;
}
.plain-summary:not([open]) .plain-summary-summary::after {
  transform: rotate(-90deg);
}
.plain-summary-body {
  margin: .55rem 0 .35rem;
  font-size: .9rem;
  line-height: 1.55;
  color: #064e3b;
}
.plain-summary-meta {
  margin: 0;
  font-size: .75rem;
  color: #047857;
  font-style: italic;
  line-height: 1.4;
}


/* ── from claude/case-wizard ──────────────────────────────────────── */
/* PR-CASE-WIZARD: 4-step case creation. Sky-blue answer-card pattern
   matches welcome city-cards / SOP / ref-triage. Role cards (step 1)
   are full-width tap targets with icon + label + blurb. */
.case-wizard-details { margin-top: 1.25rem; }
.case-wizard-details summary {
  cursor: pointer;
  font-weight: 600;
  padding: .35rem 0;
}
.case-wizard {
  margin-top: .75rem;
  padding: 1rem 1.1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: .5rem;
}
.case-wizard-title {
  margin: 0 0 .65rem;
  font-size: 1.1rem;
  color: #0c4a6e;
}
.case-wizard-progress {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .85rem;
}
.case-wizard-pip {
  width: 1.65rem;
  height: .25rem;
  background: #e5e7eb;
  border-radius: 999px;
}
.case-wizard-pip-active { background: #0284c7; }
.case-wizard-progress-text {
  margin-left: auto;
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
}
.case-wizard-step { margin-bottom: .85rem; }
.case-wizard-step-title { margin: 0 0 .35rem; font-size: 1.05rem; }
.case-wizard-step-intro {
  margin: 0 0 .65rem;
  color: var(--c-text-muted, #4b5563);
  font-size: .85rem;
  line-height: 1.5;
}
.case-wizard-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.case-wizard-role-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  text-align: left;
  padding: .75rem .9rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .4rem;
  cursor: pointer;
  font: inherit;
  color: var(--c-text, #1a2233);
  transition: background 120ms ease, border-color 120ms ease;
}
.case-wizard-role-card:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.case-wizard-role-card-selected {
  background: #e0f2fe;
  border-color: #0284c7;
  border-width: 2px;
}
.case-wizard-role-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.case-wizard-role-icon { flex-shrink: 0; font-size: 1.5rem; }
.case-wizard-role-body { flex: 1; min-width: 0; }
.case-wizard-role-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .15rem;
}
.case-wizard-role-blurb {
  display: block;
  font-size: .8rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.4;
}
.case-wizard-field {
  display: block;
  margin: 0 0 .65rem;
}
.case-wizard-field-label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--c-text, #1a2233);
  margin-bottom: .2rem;
}
.case-wizard-field input,
.case-wizard-field select {
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .3rem;
  font: inherit;
  background: var(--c-surface, #fff);
  color: var(--c-text, #1a2233);
}
.case-wizard-field input:focus,
.case-wizard-field select:focus {
  outline: 2px solid #0284c7;
  outline-offset: 1px;
}
.case-wizard-field-hint {
  display: block;
  margin-top: .2rem;
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
  line-height: 1.4;
}
.case-wizard-pinned-note {
  margin: .35rem 0 0;
  padding: .45rem .65rem;
  background: #ecfdf5;
  border-left: 3px solid #059669;
  border-radius: .25rem;
  font-size: .8rem;
  color: #064e3b;
  line-height: 1.45;
}
.case-wizard-summary {
  margin: .65rem 0 0;
  padding: .65rem .85rem;
  background: var(--c-surface, #fff);
  border: 1px dashed #bae6fd;
  border-radius: .35rem;
  font-size: .85rem;
  line-height: 1.55;
}
.case-wizard-summary strong { color: #0c4a6e; display: block; margin-bottom: .35rem; }
.case-wizard-summary ul { list-style: none; padding: 0; margin: 0; }
.case-wizard-summary li { margin: .15rem 0; }
.case-wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .85rem;
}
.case-wizard-actions [data-wizard-back] { margin-right: auto; }
.case-wizard-error {
  margin: 0 0 .65rem;
  padding: .55rem .75rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-left: 3px solid #b91c1c;
  border-radius: .25rem;
  font-size: .85rem;
}


/* ── from claude/coach-card ──────────────────────────────────────── */
/* PR-COACH-CARD: empty-state coaching on the case-overview dashboard.
   Rendered only when the active case has zero docket / exhibits /
   service / costs / calendar entries AND the user hasn't dismissed
   it. Three numbered next-steps with role-aware copy. */
.case-coach-card {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: .5rem;
}
.case-coach-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.case-coach-title {
  margin: 0;
  font-size: 1.05rem;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.case-coach-dismiss {
  background: transparent;
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: 1rem;
  color: #075985;
  cursor: pointer;
  padding: .15rem .45rem;
  line-height: 1;
}
.case-coach-dismiss:hover { background: #e0f2fe; }
.case-coach-dismiss:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.case-coach-intro {
  margin: .35rem 0 .85rem;
  font-size: .8rem;
  color: #075985;
  line-height: 1.45;
}
.case-coach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}
.case-coach-step {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .65rem .8rem;
  background: var(--c-surface, #fff);
  border: 1px solid #bae6fd;
  border-radius: .35rem;
}
.case-coach-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.case-coach-step-body {
  flex: 1;
  min-width: 0;
}
.case-coach-step-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-text, #1a2233);
  margin-bottom: .15rem;
}
.case-coach-step-desc {
  font-size: .85rem;
  color: var(--c-text-muted, #4b5563);
  line-height: 1.45;
  margin-bottom: .4rem;
}
.case-coach-step-action {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.case-coach-disclaimer {
  margin: .85rem 0 0;
  padding-top: .65rem;
  border-top: 1px dashed #bae6fd;
  font-size: .75rem;
  color: #075985;
  line-height: 1.45;
}


/* ── Rules-index changelog banner (Dec 1, 2025 amendments) ────── */
.rules-changelog-banner {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: .25rem;
  padding: .65rem .85rem;
  margin: 0 0 .75rem;
  font-size: .9rem;
  line-height: 1.5;
  color: #1e3a8a;
}
.rules-changelog-banner strong { display: block; margin-bottom: .15rem; }
.rules-changelog-banner a { color: #1d4ed8; text-decoration: underline; }

/* ── WCAG 2.2 SC 2.5.8 Target Size (Minimum) — 24×24 CSS px ──────
   Defensive minimums for small dismiss/close buttons. Padding gives
   most of these >=24px already, but explicit min-width/min-height
   is the no-regression guarantee under WCAG 2.2 Level AA (which
   became ISO/IEC 40500:2025 in October 2025). The DOJ April-2026
   ADA Title II rule requires WCAG 2.1 AA for state/local govt sites;
   shipping 2.2 AA is forward-compatible. */
.exhaustion-prompt-dismiss,
.emergency-tile-dismiss,
.case-type-triage-dismiss,
.modal-close {
  min-width: 24px;
  min-height: 24px;
}

/* ── PR-UNDO: Trash view ─────────────────────────────────── */
/* PR-UNDO: Trash view. Lives at /#/case/trash and lists every soft-
   deleted record across the 5 in-scope stores for the active case.
   Visual language is restrained — Trash is not a celebratory surface;
   neutral colors, slightly muted text, dotted dividers between rows. */
.case-trash { padding: .5rem 0; }
.case-trash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.case-trash-title {
  margin: 0;
  font-size: 1.25rem;
}
.case-trash-count {
  color: var(--c-text-muted, #6b7280);
  font-weight: 400;
  font-size: .9em;
}
.case-trash-explain {
  margin: 0 0 .85rem;
  color: var(--c-text-muted, #6b7280);
  font-size: .9rem;
  line-height: 1.45;
}
.case-trash-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--c-border, #e5e7eb);
}
.case-trash-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "main actions"
    "meta actions";
  gap: .25rem .75rem;
  padding: .65rem .25rem;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  align-items: start;
}
.case-trash-row-main {
  grid-area: main;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  align-items: baseline;
}
.case-trash-row-kind {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-muted, #6b7280);
  font-weight: 600;
}
.case-trash-row-title {
  font-weight: 600;
  color: var(--c-text, #1a2233);
}
.case-trash-row-details {
  font-size: .85rem;
  color: var(--c-text-muted, #6b7280);
}
.case-trash-row-meta {
  grid-area: meta;
  font-size: .75rem;
  color: var(--c-text-muted, #6b7280);
}
.case-trash-row-actions {
  grid-area: actions;
  display: flex;
  gap: .35rem;
  align-self: center;
}
@media (max-width: 480px) {
  .case-trash-row {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "meta" "actions";
  }
  .case-trash-row-actions { justify-content: flex-end; }
}


/* ── Local-rules highlight cards (procedural traps) ───────────── */
.lr-highlights {
  margin: .65rem 0 0;
  padding: .65rem .85rem;
  background: #fef3c7;
  border-left: 4px solid #b45309;
  border-radius: .25rem;
}
.lr-highlights summary {
  cursor: pointer;
  font-size: .95rem;
  color: #78350f;
}
.lr-highlight-card {
  padding: .55rem .65rem;
  margin: .35rem 0;
  background: #ffffff;
  border: 1px solid #fbbf24;
  border-radius: .3rem;
  font-size: .88rem;
  line-height: 1.5;
}
.lr-highlight-title {
  font-weight: 700;
  margin-bottom: .25rem;
  color: #78350f;
}
.lr-highlight-row { margin: .15rem 0; color: #1a2233; }
.lr-highlight-row strong { color: #78350f; }
/* WCAG fix: gray-on-yellow failed contrast in axe audit. Use the
   same dark amber as the summary heading so the intro text is
   legible on the .lr-highlights yellow background. */
.lr-highlights-intro {
  margin: .4rem 0 .35rem;
  font-size: .85rem;
  color: #78350f;
  line-height: 1.5;
}

/* ── Welcome SDTX city-cards (replaces the radio pair) ──────────── */
.welcome-section-hint {
  margin: 0 0 .5rem;
  font-size: .9rem;
  color: var(--c-text-muted, #6b7280);
}
.welcome-role-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: .25rem;
}
.welcome-role-opt {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  padding: .35rem .55rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: 6px;
  cursor: pointer;
}
.welcome-role-opt input { margin: 0; }
.welcome-court-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: .55rem;
}
.welcome-court-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: .65rem .75rem;
  min-height: 4.25rem;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: .5rem;
  color: #1e3a8a;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.welcome-court-card:hover { background: #eff6ff; }
.welcome-court-card.is-selected {
  background: #dbeafe;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .25);
}
.welcome-court-card-icon { font-size: 1.5rem; line-height: 1.1; }
.welcome-court-card-name { font-weight: 700; font-size: .98rem; }
.welcome-court-card-sub { font-size: .78rem; color: #475569; }
.welcome-court-card--other { background: #f8fafc; border-color: #e2e8f0; color: #1e293b; }
.welcome-court-card--other:hover { background: #f1f5f9; }
.welcome-court-card--other.is-selected { background: #e2e8f0; border-color: #475569; }
.welcome-court-substitution {
  margin: .65rem 0 0;
  padding: .55rem .75rem;
  background: #fef3c7;
  border-left: 3px solid #d97706;
  border-radius: .3rem;
  font-size: .85rem;
  line-height: 1.45;
  color: #78350f;
}

/* ── Drafting tools (/reference/tools) ───────────────────────── */
.dt-tool-title { margin: 0 0 .35rem; font-size: 1.1rem; }
.dt-tool-intro {
  margin: 0 0 .85rem;
  font-size: .9rem;
  color: var(--c-text-muted, #6b7280);
  line-height: 1.5;
}
.dt-field { display: flex; flex-direction: column; gap: .25rem; }
.dt-field-label { font-weight: 600; font-size: .9rem; }
.dt-field textarea {
  width: 100%;
  padding: .65rem;
  font-family: ui-monospace, Menlo, Monaco, 'Courier New', monospace;
  font-size: .85rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .35rem;
  box-sizing: border-box;
}
.dt-results { margin-top: 1rem; }
.dt-results-heading { margin: 0 0 .5rem; font-size: .95rem; }
.dt-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.dt-check {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: .5rem;
  align-items: start;
  padding: .55rem .65rem;
  border-radius: .35rem;
  border-left: 4px solid transparent;
}
.dt-check--ok   { background: #f0fdf4; border-left-color: #15803d; }
.dt-check--miss { background: #fef2f2; border-left-color: #b91c1c; }
.dt-check--info { background: #eff6ff; border-left-color: #2563eb; }
.dt-check-icon { font-size: 1.15rem; line-height: 1.2; }
.dt-check-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dt-check-label { font-weight: 600; font-size: .9rem; }
.dt-check-rule { font-size: .78rem; color: var(--c-text-muted, #6b7280); }

.dt-damages {
  width: 100%;
  border-collapse: collapse;
  margin-top: .35rem;
}
.dt-damages th, .dt-damages td {
  padding: .35rem .35rem;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  font-size: .9rem;
  text-align: left;
}
.dt-damages th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted, #6b7280); }
.dt-damages select, .dt-damages input {
  width: 100%;
  padding: .35rem .45rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .3rem;
  font: inherit;
  box-sizing: border-box;
}
.dt-damages-actions { display: flex; gap: .4rem; margin-top: .55rem; }
.dt-damages-totals {
  margin: 1rem 0 0;
  padding: .65rem .85rem;
  background: var(--c-surface, #ffffff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dt-damages-totals > div { display: flex; justify-content: space-between; font-size: .9rem; }
.dt-damages-totals dt { font-weight: 500; }
.dt-damages-totals dd { font-variant-numeric: tabular-nums; }
.dt-damages-grand { font-weight: 700; padding-top: .35rem; border-top: 1px solid var(--c-border, #e5e7eb); font-size: 1rem !important; }

/* ── Privacy page ─────────────────────────────────────────────── */
.privacy-section {
  margin: 1.25rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
}
.privacy-section:last-of-type { border-bottom: 0; }
.privacy-section h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--c-text, #1a2233);
}
.privacy-section p { margin: .35rem 0; line-height: 1.6; }
.privacy-section ul { margin: .5rem 0 .5rem 1.5rem; padding: 0; }
.privacy-section li { margin: .35rem 0; line-height: 1.55; }
.privacy-section code {
  background: var(--c-surface-hover, #f3f4f6);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .88em;
  font-family: ui-monospace, Menlo, Monaco, monospace;
}

/* ── Backup reminder banner (30-day fire) ──────────────────── */
.backup-reminder {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .5rem .75rem;
  align-items: center;
  background: #fef3c7;
  color: #78350f;
  border-left: 4px solid #b45309;
  border-radius: .25rem;
  margin: .5rem .75rem 0;
  padding: .65rem .85rem;
  font-size: .9rem;
  line-height: 1.5;
}
.backup-reminder-icon { font-size: 1.4rem; align-self: start; padding-top: .1rem; }
.backup-reminder-body strong { display: block; margin-bottom: .15rem; }
.backup-reminder-cta {
  white-space: nowrap;
  font-weight: 600;
  color: #78350f;
  /* WCAG 2.5.5 — "Back up now →" CTA needs ≥44×44 hit area. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .65rem;
}
.backup-reminder-cta:hover { text-decoration: underline; }
.backup-reminder-dismiss {
  background: transparent;
  border: 0;
  color: #78350f;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: .25rem;
  /* WCAG 2.5.5 — × dismiss needs ≥44×44; explicit width/height to
     defeat parent grid/flex shrinking (same pattern as .emergency-
     tile-dismiss / .exhaustion-prompt-dismiss). */
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.backup-reminder-dismiss:hover { background: rgba(180, 83, 9, .15); }
.backup-last-line {
  margin: .35rem 0 .6rem;
  padding: .45rem .65rem;
  background: #f1f5f9;
  border-radius: .3rem;
  font-size: .85rem;
  color: #1e293b;
}
.backup-last-line--never {
  background: #fef3c7;
  color: #78350f;
}
.backup-reminder-dismiss:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .backup-reminder {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon body dismiss" ".    cta  cta";
  }
  .backup-reminder-icon { grid-area: icon; }
  .backup-reminder-body { grid-area: body; }
  .backup-reminder-cta { grid-area: cta; text-align: right; }
  .backup-reminder-dismiss { grid-area: dismiss; align-self: start; }
}

/* ── Welcome restore-from-backup line ──────────────────────── */
.welcome-restore-line {
  margin: .85rem 0 0;
  font-size: .88rem;
  color: var(--c-text-muted, #6b7280);
  text-align: center;
}
.welcome-restore-line .btn-link {
  background: transparent;
  border: 0;
  color: var(--c-link, #2563eb);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: .5rem .65rem;
  /* WCAG 2.5.5 — was min-height: 24px; raised to 44px so the restore
     CTA on the welcome modal meets AAA touch-target. The link looks
     visually similar (padding compensates) and the underline + color
     still cue affordance. */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}
.welcome-restore-line .btn-link:disabled {
  color: var(--c-text-muted, #6b7280);
  cursor: not-allowed;
  text-decoration: none;
}
.welcome-restore-line .btn-link:hover:not(:disabled) { color: #1d4ed8; }

/* ── PWA install nudge ─────────────────────────────────────── */
.pwa-install-banner {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + .5rem);
  left: .5rem;
  right: .5rem;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .5rem .65rem;
  align-items: center;
  background: #1e3a8a;
  color: #ffffff;
  padding: .65rem .85rem;
  border-radius: .4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  font-size: .9rem;
  line-height: 1.4;
  max-width: 480px;
  margin: 0 auto;
}
.pwa-install-icon { font-size: 1.4rem; align-self: start; padding-top: .1rem; }
.pwa-install-text strong { display: block; }
.pwa-install-banner .btn-primary {
  background: #ffffff;
  color: #1e3a8a;
  border: 0;
  padding: .35rem .85rem;
  font-weight: 700;
}
.pwa-install-banner .btn-primary:hover { background: #dbeafe; }
.pwa-install-dismiss {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: .15rem .45rem;
  opacity: .7;
  border-radius: .25rem;
  min-width: 24px;
  min-height: 24px;
}
.pwa-install-dismiss:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
.pwa-install-dismiss:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; opacity: 1; }

/* ── Changelog "What's new" page ─────────────────────────────── */
.changelog-article {
  padding: .75rem;
  max-width: 42rem;
  font-size: .92rem;
  line-height: 1.6;
}
.changelog-article h1 { font-size: 1.4rem; margin: 0 0 .35rem; }
.changelog-article h2 { font-size: 1.15rem; margin: 1.5rem 0 .35rem; padding-bottom: .25rem; border-bottom: 1px solid var(--c-border, #e5e7eb); }
.changelog-article h3 { font-size: 1rem; margin: 1rem 0 .35rem; color: var(--c-text-muted, #6b7280); text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.changelog-article p { margin: .35rem 0; }
.changelog-article ul { margin: .35rem 0 .35rem 1.25rem; padding: 0; }
.changelog-article li { margin: .35rem 0; }
.changelog-article hr { border: 0; border-top: 1px solid var(--c-border, #e5e7eb); margin: 1.5rem 0; }
.changelog-article blockquote {
  margin: .75rem 0;
  padding: .5rem .85rem;
  background: var(--c-info-bg, #eff6ff);
  border-left: 3px solid var(--c-info, #2563eb);
  border-radius: .25rem;
  font-style: italic;
  color: var(--c-text, #1a2233);
}
.changelog-article code {
  background: var(--c-surface-hover, #f3f4f6);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .88em;
  font-family: ui-monospace, Menlo, Monaco, monospace;
}

/* sw-update banner: accommodate the new "see what changed" link */
.sw-update-banner-changelog {
  display: block;
  font-size: .82rem;
  margin-top: .15rem;
  color: inherit;
  text-decoration: underline;
  opacity: .9;
}
.sw-update-banner-changelog:hover { opacity: 1; }

/* ── Sample-case offer (empty case-list state) ──────────────── */
.sample-case-offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: start;
  margin: 1rem 0;
  padding: .85rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: .4rem;
}
.sample-case-icon { font-size: 1.6rem; line-height: 1.1; }
.sample-case-body strong { display: block; font-size: .98rem; color: #1e3a8a; margin-bottom: .15rem; }
.sample-case-sub { margin: 0 0 .65rem; font-size: .88rem; color: #1e40af; line-height: 1.5; }

/* ── Know-your-rights hub ─────────────────────────────────── */
.rights-area {
  padding: .5rem 0;
  font-size: .92rem;
  line-height: 1.6;
}
.rights-area h3 {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
}
.rights-area h4 {
  margin: 1.25rem 0 .35rem;
  font-size: .95rem;
  color: var(--c-primary, #1a3a5c);
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  padding-bottom: .25rem;
}
.rights-area .rights-meta {
  margin: 0 0 .85rem;
  color: var(--c-text-muted, #6b7280);
  font-size: .88rem;
}
.rights-area p { margin: .35rem 0; }
.rights-area ul, .rights-area ol { margin: .35rem 0 .35rem 1.4rem; padding: 0; }
.rights-area li { margin: .25rem 0; }
.rights-table {
  width: 100%;
  border-collapse: collapse;
  margin: .65rem 0;
  font-size: .85rem;
}
.rights-table th, .rights-table td {
  padding: .5rem .55rem;
  border: 1px solid var(--c-border, #e5e7eb);
  vertical-align: top;
  text-align: left;
}
.rights-table th {
  background: var(--c-surface-hover, #f3f4f6);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.rights-pointer {
  margin-top: 1.25rem;
  padding: .65rem .85rem;
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  border-radius: .25rem;
  font-size: .88rem;
  color: #1e3a8a;
}
@media (max-width: 480px) {
  .rights-table { display: block; overflow-x: auto; }
}

/* Mobile chrome — placed at end of file so source-order beats the
   unconditional .header-lang-wrap / .app-title rules earlier in the
   stylesheet. The language picker is hidden in mobile chrome (Settings
   → Display → Language is the canonical mobile switcher); the freed
   header space restores the brand title, which was previously hidden
   on ≤640 px because the lang picker plus pin/search left no room. */
@media (max-width: 640px) {
  .header-lang-wrap { display: none !important; }
  .app-title {
    font-size: .9rem;
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* First-run product tour. Mounts as a fixed-position overlay above
   the bottom-nav and chrome, with a centered card. Pure overlay; no
   spotlighting of underlying elements (those varieties are too
   brittle across viewports). Honors prefers-reduced-motion via the
   existing data-motion=reduced rules elsewhere in this stylesheet. */
.first-run-tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.first-run-tour-card {
  background: var(--c-surface, #fff);
  color: var(--c-text, inherit);
  border-radius: .55rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  max-width: 32rem;
  width: 100%;
  padding: 1.25rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.first-run-tour-progress {
  display: flex;
  gap: .35rem;
  margin-bottom: .15rem;
}
.first-run-tour-dot {
  width: 2rem;
  height: 4px;
  border-radius: 999px;
  background: var(--c-border, #d1d5db);
  transition: background .2s ease-out;
}
.first-run-tour-dot.is-active { background: var(--c-primary, #1a3a5c); }
.first-run-tour-dot.is-done   { background: var(--c-primary, #1a3a5c); opacity: .55; }
.first-run-tour-title {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
  color: var(--c-text, inherit);
  outline: none;
}
.first-run-tour-body {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--c-text, inherit);
}
.first-run-tour-body kbd {
  background: var(--c-bg-muted, #f3f4f6);
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: .25rem;
  padding: 1px 6px;
  font-size: .85em;
  font-family: inherit;
}
.first-run-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .35rem;
  flex-wrap: wrap;
}
.first-run-tour-nav {
  display: flex;
  gap: .4rem;
}

/* Case overview paperwork shortcut tiles. Each links to a print-views
   route (AO 440 summons, JS 44 cover sheet, cert of service, bill of
   costs, full case binder). The two-line layout — emoji + label, then
   small descriptive subtitle — keeps the grid scannable without
   relying on color cues, since these are all informational. */
.case-paperwork-link {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .65rem .75rem;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: .4rem;
  background: var(--c-surface, #fff);
  color: var(--c-text, inherit);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: background .12s ease-out, border-color .12s ease-out;
}
.case-paperwork-link:hover,
.case-paperwork-link:focus-visible {
  background: var(--c-bg-muted, #f3f4f6);
  border-color: var(--c-primary, #1a3a5c);
  outline: none;
}
.case-paperwork-link span {
  display: block;
  font-weight: 400;
  font-size: .78rem;
  color: var(--c-text-muted, #6b7280);
  margin-top: .15rem;
}

/* Settings → Case Information progress bar. Informational only — never
   blocks save. Filled width is set inline by render/settings.js based
   on caseProgress(). Colors track the existing info-tone tokens so the
   bar reads as a hint, not an error/warning. */
.setup-progress {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .85rem;
}
.setup-progress-bar {
  position: relative;
  height: 6px;
  background: var(--clr-bg-muted, #e5e7eb);
  border-radius: 999px;
  overflow: hidden;
}
.setup-progress-fill {
  height: 100%;
  background: var(--clr-primary, #1a3a5c);
  border-radius: inherit;
  transition: width .25s ease-out;
}
.setup-progress-label {
  font-size: .78rem;
  color: var(--clr-text-muted);
}

/* iPhone SE / older Android still go down to 320 px. At that width the
   pin badge + search button + .app-title at 9.5rem all together push
   the header just over the viewport (logo 22 + title ≤152 + pin ≤112 +
   search 32 + padding/gaps ≈ 360). Drop the title's max-width so it
   ellipses to "Pro Se Workbench" → "Pro Se Wo…", which still reads as
   the brand. */
@media (max-width: 360px) {
  .app-title {
    font-size: .85rem;
    max-width: 7rem;
  }
  .pin-badge, .case-badge { max-width: 5.5rem; }
}

/* ════════════════════════════════════════════════════════════════════
   Dark-theme overrides for hardcoded light surfaces
   --------------------------------------------------------------------
   workbench-surfaces.css predates theme support and hardcodes light
   panel backgrounds (#f0f9ff info, #fffbeb/#f9eed9 warning, #ffffff
   cards). In dark mode the themed text inside them (--c-text*, which
   flips light) landed on those light panels at 1.1–2.7:1. These
   overrides re-tint the panels for dark while keeping their semantic
   hue (info=blue, warning=amber). Light mode is untouched.
   Verified with axe-core color-contrast across all 69 routes.
   ════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] .case-wizard {
  background: #15263a;            /* dark info-blue panel */
  border-color: #2b5274;
  border-left-color: #4a90d9;
}
[data-theme="dark"] .case-wizard-title { color: #93c5fd; }
[data-theme="dark"] .case-wizard-pip { background: #2c3040; }

[data-theme="dark"] .exhaustion-interstitial {
  background: #2a2008;            /* dark warning-amber panel */
  border-color: #b45309;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
[data-theme="dark"] .exhaustion-interstitial-title { color: #fbbf24; }
[data-theme="dark"] .exhaustion-interstitial-claim { color: var(--clr-text); }
[data-theme="dark"] .exhaustion-interstitial-question {
  background: rgba(251, 191, 36, .12);
  border-left-color: #d97706;
}

[data-theme="dark"] .settings-fieldset--triggers {
  background: #15263a;
  border-top-color: #2b5274;
}
[data-theme="dark"] .settings-fieldset--triggers .settings-fieldset-legend { color: #93c5fd; }

[data-theme="dark"] .lr-highlight-card {
  background: #2a2008;
  border-color: #b45309;
}

[data-theme="dark"] .changelog-article blockquote {
  background: #15263a;
  border-left-color: #4a90d9;
}

/* Remaining dark-mode contrast fixes — text colors that were hardcoded
   for light or inherited the default onto a now-dark panel. The .u-x-*
   classes are content-hashed build artifacts (scripts/convert-inline-
   styles.mjs) and must not have their own declarations edited, so they
   are corrected here via theme-scoped overrides instead. */

/* Bare/inline content links had no color rule → browser default #00e
   (1.8–2.0:1) on the dark page bg. Re-color only links sitting directly on
   the themed page/surface — NOT links inside the semantic light-tinted
   callout cards (emergency tiles, case-type cards, judge warnings), which
   stay light in both themes and already have adequate dark default text. */
[data-theme="dark"] .pillar-empty a,
[data-theme="dark"] .page-summary-disclaimer a,
[data-theme="dark"] .page-summary-source a,
[data-theme="dark"] .exhaustion-interstitial a {
  color: var(--clr-primary);
}

/* Info panels (--clr-info-bg = #1e3a5f in dark) inherited near-black text. */
[data-theme="dark"] .u-x-2f68a21e,
[data-theme="dark"] .u-x-e1978e55 { color: var(--clr-text); }

/* Hardcoded semantic text too dark for the dark bg. */
[data-theme="dark"] .u-x-a6ba6199 { color: #f87171; }   /* danger → light red */
[data-theme="dark"] .help-org-meta dt,
[data-theme="dark"] .plain-summary-meta { color: #4ade80; }  /* success → light green */

/* Amber severity pill: white on the inline #d97706 bg is 3.18:1. The pill
   gets its bg from data-bg-color at runtime, so darken its text instead
   (road-sign pattern — same fix as avw-skill-gallery's yellow button).
   #d97706 + #1c1c1c text ≈ 5.9:1. Applies in both themes (the pill bg is
   the same amber regardless). */
.u-pill-tag[data-bg-color="#d97706"] { color: #1c1c1c; }

/* The .printable surface is a deliberate white "paper" preview (bg #fff,
   #000 text) — keep it light in both themes, but its .no-print toolbar
   carries themed UI (the ghost Back button) that needs dark-on-light text
   when the page theme is dark. */
[data-theme="dark"] .printable .no-print .btn-ghost { color: #1c1c1c; border-color: #6b7280; }
