/* ============================================================================
   UnityRose.org — design system
   Extracted VERBATIM from service-dog.html (the canonical design source).
   Do not redesign, recolor, or substitute fonts. New components do not belong
   here unless they exist in the design source. See SPEC-design-system.md.
   ========================================================================== */

  /* ── Tokens ─────────────────────────────────────────────────────────── */
  :root {
    --ink:       #1a1a2e;
    --ink-soft:  #2e2e4a;
    --slate:     #3d3d5c;
    --mid:       #6b6b8a;
    --rule:      #d4c9b0;
    --cream:     #f7f3ec;
    --warm:      #ede8df;
    --gold:      #b8963e;
    --gold-lt:   #d4ae5a;
    --gold-pale: #f5eedc;
    --red:       #8b2c2c;
    --green:     #1e5c3a;
    --blue:      #1d3f6e;
    --blue-lt:   #e8eef8;
    --shadow:    rgba(26,26,46,.12);
    --radius:    6px;
    --max:       860px;
  }

  /* ── Reset ──────────────────────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
  }

  /* ── Layout ─────────────────────────────────────────────────────────── */
  .container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

  /* ── Header / Hero ──────────────────────────────────────────────────── */
  header {
    background: var(--ink);
    color: var(--cream);
    padding: 64px 24px 52px;
    position: relative;
    overflow: hidden;
  }
  header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 40%, rgba(184,150,62,.18) 0%, transparent 70%);
    pointer-events: none;
  }
  header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-lt), var(--gold), transparent);
  }
  .hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
  .hero-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-lt);
    border: 1px solid rgba(184,150,62,.4);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 20px;
  }
  header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 10px;
  }
  header h1 em { color: var(--gold-lt); font-style: italic; }
  .hero-sub {
    font-size: 15px;
    color: rgba(247,243,236,.72);
    max-width: 560px;
    margin-top: 10px;
  }
  .hero-law-badges {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px;
  }
  .badge {
    font-size: 11px; font-weight: 500; letter-spacing: .06em;
    padding: 5px 12px; border-radius: 2px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(247,243,236,.8);
  }
  .badge.co { border-color: rgba(184,150,62,.5); color: var(--gold-lt); }
  /* Citations are clickable: hover shows a gold lift + links to the Laws page. */
  a.badge { text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
  a.badge:hover { background: rgba(184,150,62,.22); border-color: var(--gold-lt); color: #fff; }

  /* ── Sticky nav ─────────────────────────────────────────────────────── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--ink-soft);
    border-bottom: 1px solid rgba(184,150,62,.3);
    padding: 0 24px;
  }
  .nav-inner {
    max-width: var(--max); margin: 0 auto;
    display: flex; gap: 0; overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar { display: none; }
  nav a {
    display: block;
    color: rgba(247,243,236,.65);
    text-decoration: none;
    font-size: 12px; font-weight: 500; letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 16px;
    white-space: nowrap;
    transition: color .2s;
    border-bottom: 2px solid transparent;
  }
  nav a:hover { color: var(--gold-lt); border-bottom-color: var(--gold-lt); }
  /* Active page state (added for the 6-page cross-site nav — gold text + underline,
     same visual language as the hover state in the source). */
  nav a.active { color: var(--gold-lt); border-bottom-color: var(--gold-lt); }

  /* ── Main sections ──────────────────────────────────────────────────── */
  main { padding: 0 0 80px; }
  section { padding: 56px 0; border-bottom: 1px solid rgba(212,201,176,.4); }
  section:last-child { border-bottom: none; }

  h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .section-label {
    font-size: 10px; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
    display: block;
  }
  .section-rule {
    width: 100%; height: 2px; border: 0; border-radius: 2px;
    margin: 14px 0 28px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-lt), var(--gold), transparent);
    transform-origin: center;
    animation: rule-sweep .8s ease-out both;
  }
  @keyframes rule-sweep {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .section-rule { animation: none; transform: none; }
  }

  p { margin-bottom: 14px; }
  p:last-child { margin-bottom: 0; }

  /* ── About card ─────────────────────────────────────────────────────── */
  .about-card {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 32px 36px;
    color: var(--cream);
    position: relative;
    overflow: hidden;
  }
  .about-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
  }
  .about-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 700;
    color: #fff; margin-bottom: 14px;
  }
  .about-card p { color: rgba(247,243,236,.82); font-size: 15px; }
  .about-card strong { color: var(--gold-lt); }
  .task-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(184,150,62,.15);
    border: 1px solid rgba(184,150,62,.4);
    border-radius: 3px;
    padding: 8px 16px;
    margin: 16px 0 4px;
    font-size: 13px; font-weight: 500;
    color: var(--gold-lt);
  }
  .task-pill span { font-size: 16px; }
  .doc-note {
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(255,255,255,.06);
    border-left: 3px solid rgba(184,150,62,.5);
    font-size: 13px;
    color: rgba(247,243,236,.65);
    border-radius: 0 3px 3px 0;
  }

  /* ── Two-col grid ───────────────────────────────────────────────────── */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

  /* ── Info cards ─────────────────────────────────────────────────────── */
  .card {
    background: #fff;
    border: 1px solid rgba(212,201,176,.5);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 2px 10px var(--shadow);
  }
  .card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--ink); margin-bottom: 8px;
  }
  .card p, .card li { font-size: 13.5px; color: var(--slate); }
  .card ul { padding-left: 18px; }
  .card li { margin-bottom: 4px; }
  .card.co-card { border-top: 3px solid var(--gold); }
  .card.fed-card { border-top: 3px solid var(--blue); }
  /* Clickable hub card (home "Explore the Site" index). */
  a.hub-card { display: block; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
  a.hub-card:hover { box-shadow: 0 6px 18px var(--shadow); transform: translateY(-2px); border-color: var(--gold); }
  a.hub-card h4 { color: var(--ink); }
  a.hub-card h4::after { content: " →"; color: var(--gold); }

  /* ── Two-question block ─────────────────────────────────────────────── */
  .q-block {
    background: var(--blue-lt);
    border: 1px solid #c2d0e8;
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 20px 0;
  }
  .q-block h4 {
    font-size: 11px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: 16px;
  }
  .q-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(29,63,110,.12);
  }
  .q-item:first-of-type { border-top: none; }
  .q-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
  }
  .q-text { font-size: 14px; font-weight: 500; color: var(--ink); padding-top: 3px; }

  /* ── Callout boxes ──────────────────────────────────────────────────── */
  .callout {
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 13.5px;
  }
  .callout strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
  .callout.warn  { background: #fef8ea; border-left: 4px solid var(--gold); color: #5a4a20; }
  .callout.warn strong { color: var(--gold); }
  .callout.ok    { background: #eaf5ee; border-left: 4px solid var(--green); color: #1a3d28; }
  .callout.ok strong { color: var(--green); }
  .callout.bad   { background: #faeaea; border-left: 4px solid var(--red); color: #5a1a1a; }
  .callout.bad strong { color: var(--red); }
  .callout.info  { background: var(--blue-lt); border-left: 4px solid var(--blue); color: #1a2e4a; }
  .callout.info strong { color: var(--blue); }

  /* ── Misconception entries ──────────────────────────────────────────── */
  .myth-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
  .myth-entry {
    background: #fff;
    border: 1px solid rgba(212,201,176,.4);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 6px var(--shadow);
  }
  .myth-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    background: #fdf9f3;
    transition: background .2s;
  }
  .myth-header:hover { background: #f9f3e8; }
  .myth-icon {
    flex-shrink: 0; font-size: 15px;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
  }
  .myth-icon.false { background: #faeaea; color: var(--red); }
  .myth-icon.true  { background: #eaf5ee; color: var(--green); }
  .myth-q { font-size: 13.5px; font-weight: 500; color: var(--ink); flex: 1; }
  .myth-arrow {
    flex-shrink: 0; color: var(--mid);
    font-size: 12px;
    transition: transform .25s;
  }
  .myth-entry.open .myth-arrow { transform: rotate(180deg); }
  .myth-body {
    display: none;
    padding: 14px 20px 18px;
    font-size: 13.5px;
    color: var(--slate);
    border-top: 1px solid rgba(212,201,176,.3);
    line-height: 1.65;
  }
  .myth-entry.open .myth-body { display: block; }
  .myth-body p { margin-bottom: 8px; }
  .myth-body p:last-child { margin-bottom: 0; }
  .myth-body .law-cite {
    display: inline-block;
    font-size: 11px; font-weight: 500;
    color: var(--gold);
    background: var(--gold-pale);
    padding: 2px 8px; border-radius: 2px;
    margin-top: 8px;
  }
  /* Clickable citation chip → Laws page. */
  a.law-cite { text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
  a.law-cite:hover { background: var(--gold); color: #fff; }

  /* ── Requirements table ─────────────────────────────────────────────── */
  .req-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13.5px; }
  .req-table thead tr { background: var(--ink); color: #fff; }
  .req-table thead th { padding: 12px 16px; text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .06em; }
  .req-table tbody tr:nth-child(even) { background: var(--warm); }
  .req-table tbody tr:nth-child(odd) { background: #fff; }
  .req-table td { padding: 11px 16px; vertical-align: top; border-bottom: 1px solid rgba(212,201,176,.3); }
  .req-table td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
  .tag-no  { display: inline-block; background: #faeaea; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; }
  .tag-yes { display: inline-block; background: #eaf5ee; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; }
  .tag-cond { display: inline-block; background: #fef8ea; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; }

  /* ── AI Chat widget ─────────────────────────────────────────────────── */
  #ai-section { background: var(--ink); color: var(--cream); }
  #ai-section h2 { color: #fff; }
  #ai-section .section-label { color: var(--gold-lt); }
  .chat-intro { color: rgba(247,243,236,.72); font-size: 14px; margin-bottom: 24px; }
  .chat-wrap {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(184,150,62,.25);
    border-radius: var(--radius);
    overflow: hidden;
  }
  #chat-log {
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(184,150,62,.3) transparent;
  }
  .msg {
    max-width: 88%;
    padding: 11px 16px;
    border-radius: 5px;
    font-size: 13.5px;
    line-height: 1.6;
  }
  .msg.user {
    align-self: flex-end;
    background: rgba(184,150,62,.18);
    border: 1px solid rgba(184,150,62,.3);
    color: var(--cream);
  }
  .msg.bot {
    align-self: flex-start;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(247,243,236,.9);
  }
  .msg.bot.typing { color: rgba(247,243,236,.45); font-style: italic; }
  .msg.bot strong { color: var(--gold-lt); }
  .msg.bot em { color: rgba(247,243,236,.65); font-style: normal; font-size: 12px; }
  .chat-input-row {
    display: flex; gap: 0;
    border-top: 1px solid rgba(184,150,62,.2);
    background: rgba(0,0,0,.25);
  }
  #chat-input {
    flex: 1;
    background: transparent;
    border: none; outline: none;
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 15px 18px;
    resize: none;
  }
  #chat-input::placeholder { color: rgba(247,243,236,.3); }
  #chat-send {
    background: var(--gold);
    border: none; cursor: pointer;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 600;
    padding: 15px 22px;
    transition: background .2s;
    flex-shrink: 0;
  }
  #chat-send:hover { background: var(--gold-lt); }
  #chat-send:disabled { background: rgba(184,150,62,.3); color: rgba(26,26,46,.4); cursor: default; }
  .chat-suggestions {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid rgba(184,150,62,.15);
  }
  .suggest-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(247,243,236,.6);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 12px; font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all .2s;
  }
  .suggest-btn:hover {
    background: rgba(184,150,62,.15);
    border-color: rgba(184,150,62,.4);
    color: var(--gold-lt);
  }
  .chat-disclaimer {
    padding: 10px 20px;
    font-size: 11px;
    color: rgba(247,243,236,.3);
    border-top: 1px solid rgba(255,255,255,.05);
  }

  /* ── Footer ─────────────────────────────────────────────────────────── */
  footer {
    background: #131322;
    color: rgba(247,243,236,.4);
    padding: 32px 24px;
    font-size: 12px;
    line-height: 1.6;
  }
  .footer-inner {
    max-width: var(--max); margin: 0 auto;
    display: flex; flex-direction: column; gap: 8px;
  }
  footer a { color: rgba(184,150,62,.6); text-decoration: none; }
  footer a:hover { color: var(--gold-lt); }
  .footer-cite { font-style: italic; }

  /* ── Utility ─────────────────────────────────────────────────────────── */
  .show-all-btn {
    margin-top: 8px;
    background: none; border: 1px solid rgba(184,150,62,.4);
    color: var(--gold); font-size: 12px; font-weight: 500; letter-spacing: .06em;
    padding: 6px 16px; border-radius: 2px; cursor: pointer;
    transition: all .2s;
  }
  .show-all-btn:hover { background: var(--gold-pale); }

  /* ── Page-band image (Home) — uses only tokens from the source ───────── */
  /* Repo rule: photos must NEVER be stretched/distorted. height:auto + the
     intrinsic aspect ratio keep proportions correct even if a photo is swapped.
     For consistent framing/cropping, add .band-photo--crop with --ar (aspect
     ratio) and --focus (object-position focal point); cover crops, never warps. */
  .band-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px var(--shadow);
    display: block;
    margin: 8px 0 4px;
  }
  .band-photo--crop {
    aspect-ratio: var(--ar, 16 / 9);
    height: auto;
    object-fit: cover;
    object-position: var(--focus, center);
  }
  .photo-fig { margin: 24px 0 4px; }
  .photo-fig figcaption { font-size: 12px; color: var(--mid); margin-top: 8px; font-style: italic; }

  /* Editorial text-wrap: photo floats, prose wraps beside it and then fills the
     full width below (the global default for a photo set next to body text).
     Stacks to full width on narrow screens. */
  .photo-float { float: left; width: 40%; max-width: 320px; margin: 6px 28px 14px 0; }
  .photo-float.right { float: right; margin: 6px 0 14px 28px; }
  @media (max-width: 600px) {
    .photo-float, .photo-float.right { float: none; width: 100%; max-width: none; margin: 0 0 18px; }
  }
  /* Clearfix so floated photos stay contained within their section. */
  .container::after { content: ""; display: table; clear: both; }

  /* Small circular thumbnail for cross-page "meet ___" links. */
  .teaser-link { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
  .thumb {
    width: 84px; height: 84px; flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover; object-position: center;
    box-shadow: 0 2px 8px var(--shadow);
    border: 2px solid var(--gold-pale);
  }

  /* Laws page: a statute label that doubles as the accordion toggle button. */
  .statute-label {
    display: inline-flex; align-items: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
    color: var(--gold);
    background: var(--gold-pale);
    border: 1px solid rgba(184,150,62,.45);
    padding: 7px 14px; border-radius: 4px;
  }
  .statute-label.fed { color: var(--blue); background: var(--blue-lt); border-color: #c2d0e8; }
  .law-source {
    display: inline-block; margin-top: 12px;
    font-size: 12px; font-weight: 600; color: var(--gold); text-decoration: none;
  }
  .law-source:hover { color: var(--gold-lt); text-decoration: underline; }
  /* Briefly highlight a law that was deep-linked to (opened via #hash). */
  .myth-entry.target { box-shadow: 0 0 0 2px var(--gold-lt), 0 1px 6px var(--shadow); }
  /* Verbatim statutory text on the Laws page. */
  .law-lead { font-size: 13.5px; color: var(--slate); margin-bottom: 10px; }
  .law-quote {
    border-left: 3px solid var(--gold);
    background: var(--gold-pale);
    padding: 14px 18px; margin: 4px 0;
    border-radius: 0 4px 4px 0;
    font-size: 13.5px; color: var(--ink-soft); line-height: 1.6;
  }
  .law-quote p { margin-bottom: 10px; }
  .law-quote p:last-child { margin-bottom: 0; }
  .law-summary { font-size: 13.5px; color: var(--slate); }
  .law-ref {
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid rgba(212,201,176,.4);
    font-size: 12px; color: var(--mid);
  }
  .law-ref strong { color: var(--ink-soft); }
  .law-ref .law-source { margin-top: 0; margin-left: 4px; }

  @media (max-width: 520px) {
    header { padding: 44px 20px 40px; }
    section { padding: 40px 0; }
    .about-card { padding: 24px 20px; }
  }

  /* ══════════════════════════════════════════════════════════════════════
     Dark theme + theme toggle — added 2026-08-20 on Deven's direct order
     ("add a dark/light toggle icon at the upper right of each page header
     and make sure the color contrasts work properly"), which supersedes the
     no-recolor rule above for this block. Light theme is untouched. The
     header, nav, .about-card, #ai-section, .req-table thead, and footer are
     already dark surfaces and serve both themes unchanged.
     ══════════════════════════════════════════════════════════════════════ */

  /* ── Toggle button (upper right of every page header) ── */
  .theme-toggle {
    position: absolute; top: 18px; right: 22px; z-index: 5;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(247,243,236,.9);
    font-size: 17px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
  }
  .theme-toggle:hover { background: rgba(184,150,62,.25); border-color: var(--gold-lt); color: #fff; }

  /* ── Headings that sit ON dark cards (readable in BOTH themes) ── */
  .alert-h { color: #e08585 !important; }   /* red heading on .about-card (was --red: 1.8:1, now 6.3:1) */
  .gold-h  { color: var(--gold-lt) !important; }  /* gold heading on .about-card (was --gold: 3.5:1, now 7.7:1) */
  .section-label.urgent { color: var(--red); }

  html[data-theme="dark"] { color-scheme: dark; }
  html[data-theme="dark"] body { background: #14141f; color: #e8e4da; }
  html[data-theme="dark"] h2 { color: #f0ece2; }
  html[data-theme="dark"] section { border-bottom-color: rgba(255,255,255,.08); }
  html[data-theme="dark"] .section-label { color: var(--gold-lt); }
  html[data-theme="dark"] .section-label.urgent { color: #d98080; }

  html[data-theme="dark"] .card,
  html[data-theme="dark"] a.hub-card {
    background: #1e1e30; border-color: rgba(255,255,255,.09);
  }
  html[data-theme="dark"] .card h4, html[data-theme="dark"] a.hub-card h4 { color: #f0ece2; }
  html[data-theme="dark"] .card p, html[data-theme="dark"] .card li { color: #c5c1d0; }

  html[data-theme="dark"] .q-block { background: #16202e; border-color: rgba(255,255,255,.1); }
  html[data-theme="dark"] .q-block h4 { color: #8fb0dc; }
  html[data-theme="dark"] .q-text { color: #e8e4da; }
  html[data-theme="dark"] .q-item { border-top-color: rgba(255,255,255,.08); }

  html[data-theme="dark"] .callout.warn { background: #2a2416; color: #e6d9ae; }
  html[data-theme="dark"] .callout.warn strong { color: #d4ae5a; }
  html[data-theme="dark"] .callout.ok { background: #16281d; color: #b6dcc3; }
  html[data-theme="dark"] .callout.ok strong { color: #6cbd8f; }
  html[data-theme="dark"] .callout.bad { background: #2c1717; color: #e8bcbc; }
  html[data-theme="dark"] .callout.bad strong { color: #d98080; }
  html[data-theme="dark"] .callout.info { background: #16202e; color: #bcd0e8; }
  html[data-theme="dark"] .callout.info strong { color: #8fb0dc; }

  html[data-theme="dark"] .myth-entry { background: #1e1e30; border-color: rgba(255,255,255,.09); }
  html[data-theme="dark"] .myth-header { background: #232338; }
  html[data-theme="dark"] .myth-header:hover { background: #2a2a42; }
  html[data-theme="dark"] .myth-q { color: #e8e4da; }
  html[data-theme="dark"] .myth-body { color: #c5c1d0; border-top-color: rgba(255,255,255,.08); }
  html[data-theme="dark"] .myth-icon.false { background: #3a1d1d; color: #d98080; }
  html[data-theme="dark"] .myth-icon.true { background: #1d3327; color: #6cbd8f; }
  html[data-theme="dark"] .myth-body .law-cite { background: rgba(184,150,62,.15); color: #d4ae5a; }

  html[data-theme="dark"] .req-table thead tr { background: #2e2e4a; }
  html[data-theme="dark"] .req-table tbody tr:nth-child(even) { background: #222236; }
  html[data-theme="dark"] .req-table tbody tr:nth-child(odd) { background: #1c1c2c; }
  html[data-theme="dark"] .req-table td { border-bottom-color: rgba(255,255,255,.08); }
  html[data-theme="dark"] .req-table td:first-child { color: #f0ece2; }
  html[data-theme="dark"] .tag-no { background: #3a1d1d; color: #d98080; }
  html[data-theme="dark"] .tag-yes { background: #1d3327; color: #6cbd8f; }
  html[data-theme="dark"] .tag-cond { background: #2a2416; color: #d4ae5a; }

  html[data-theme="dark"] .statute-label { background: rgba(184,150,62,.12); color: #d4ae5a; border-color: rgba(184,150,62,.35); }
  html[data-theme="dark"] .statute-label.fed { background: #16202e; color: #8fb0dc; border-color: #2c405c; }
  html[data-theme="dark"] .law-quote { background: rgba(184,150,62,.1); color: #ddd8ce; }
  html[data-theme="dark"] .law-lead, html[data-theme="dark"] .law-summary { color: #c5c1d0; }
  html[data-theme="dark"] .law-ref { color: #a8a4b4; border-top-color: rgba(255,255,255,.08); }
  html[data-theme="dark"] .law-ref strong { color: #ddd8ce; }
  html[data-theme="dark"] .law-source { color: #d4ae5a; }
  html[data-theme="dark"] .photo-fig figcaption { color: #a8a4b4; }
  html[data-theme="dark"] .thumb { border-color: #3a3a52; }
  html[data-theme="dark"] .show-all-btn { color: #d4ae5a; }
  html[data-theme="dark"] .show-all-btn:hover { background: rgba(184,150,62,.15); }

  /* Contrast fixes (both themes): gold links were 3.2:1 on cream; the red
     MISSING nav link was 1.5:1 on the dark nav. */
  .gold-link { color: #8a6d24; font-weight: 600; }
  html[data-theme="dark"] .gold-link { color: #d4ae5a; }
  .nav-missing { color: #e08585 !important; font-weight: 700; }
  nav a.nav-missing:hover, nav a.nav-missing.active { border-bottom-color: #e08585; }

  /* ── FOUND announcement (2026-08-22, Unity is home) ── */
  .found-card {
    background: #eaf5ee;
    border: 2px solid var(--green);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: center;
  }
  .found-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem; font-weight: 700;
    color: var(--green); margin-bottom: 10px;
  }
  .found-card p { color: #1a3d28; }
  .found-btn {
    display: inline-block; margin-top: 16px;
    background: var(--green); color: #fff !important;
    font-weight: 700; font-size: 1.05rem;
    padding: 12px 30px; border-radius: var(--radius);
    text-decoration: none; letter-spacing: .02em;
    transition: background .2s;
  }
  .found-btn:hover { background: #2a7a4f; }
  html[data-theme="dark"] .found-card { background: #16281d; border-color: #6cbd8f; }
  html[data-theme="dark"] .found-card h3 { color: #6cbd8f; }
  html[data-theme="dark"] .found-card p { color: #b6dcc3; }
  .found-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
  .found-gallery img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 2px 10px var(--shadow); display: block; }
