/* ==========================================================================
   LemonLawMap — design system
   ========================================================================== */

:root {
  --bg-primary: #F6F7F4;
  --bg-surface: #FFFFFF;
  --bg-elevated: #EEF1EC;
  --text-primary: #14201B;
  --text-secondary: #4A5650;
  --accent-primary: #0F6B5C;
  --accent-hover: #0B5649;
  --accent-soft: #E3F0EC;
  --accent-lemon: #F2C230;
  --lemon-soft: #FCF3D3;
  --border: #DCE1DC;
  --border-strong: #C4CCC6;
  --neutral-result: #3A4440;
  --neutral-soft: #ECEEEC;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --on-accent: #FFFFFF;
  --on-lemon: #14201B;
  --ink: #0E1A16;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 32px -12px rgba(15, 40, 32, 0.18);
  --focus: 0 0 0 3px rgba(15, 107, 92, 0.35);
  --container: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0F1513;
    --bg-surface: #18201D;
    --bg-elevated: #222B27;
    --text-primary: #E8EEEA;
    --text-secondary: #A3B0A9;
    --accent-primary: #4FB8A4;
    --accent-hover: #6CCAB7;
    --accent-soft: #1B2E29;
    --lemon-soft: #2E2A17;
    --border: #2E3833;
    --border-strong: #3D4A44;
    --neutral-soft: #242C29;
    --danger: #F97066;
    --danger-soft: #3A1E1C;
    --on-accent: #0F1513;
    --ink: #0B110F;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1px 3px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --focus: 0 0 0 3px rgba(79, 184, 164, 0.45);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
strong { font-weight: 700; }
small { font-size: .875rem; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent-primary); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent-lemon); border-radius: 2px; }
.lead { font-size: 1.1875rem; color: var(--text-secondary); line-height: 1.55; }
.muted { color: var(--text-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  font: 600 1rem/1 var(--font-body);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent-primary); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent-primary); padding: 0 12px; }
.btn-ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn-lemon { background: var(--accent-lemon); color: var(--on-lemon); }
.btn-lemon:hover { background: #E5B41F; color: var(--on-lemon); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.brand:hover { color: var(--text-primary); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand-name span { color: var(--accent-primary); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: .96875rem;
  border-radius: var(--radius-sm);
}
.primary-nav a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.primary-nav a[aria-current="page"] { color: var(--accent-primary); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 8px var(--gutter) 16px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { width: 100%; font-size: 1.0625rem; }
  .primary-nav .nav-cta-mobile { display: block; margin-top: 8px; }
}
.nav-cta-mobile { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .9375rem; padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); margin-right: 4px; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-primary); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--text-secondary); font-size: 1.125rem; }
@media (max-width: 640px) { .section { padding: 56px 0; } .section-tight { padding: 40px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 20% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 20% 20%, #000 0%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; align-items: start; }
.hero-copy { padding-top: 24px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .28em;
  background: var(--accent-lemon); opacity: .55; z-index: -1; border-radius: 2px;
}
.trust-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.trust-list svg { width: 22px; height: 22px; flex: none; color: var(--accent-primary); margin-top: 2px; }
.trust-list strong { display: block; }
.trust-list span { color: var(--text-secondary); font-size: .96875rem; }
.coverage-note {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .9375rem; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px 8px 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-primary); display: inline-block; flex: none; }
.dot-lemon { background: var(--accent-lemon); }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-top: 0; }
}
@media (max-width: 640px) { .hero { padding: 32px 0 48px; } .hero h1 .hl { white-space: normal; } }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.feature-strip > div { padding: 28px 24px; border-left: 1px solid var(--border); }
.feature-strip > div:first-child { border-left: 0; }
.feature-strip .k { font-family: var(--font-head); font-weight: 800; font-size: 1.125rem; display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.feature-strip .k svg { width: 22px; height: 22px; color: var(--accent-primary); }
.feature-strip p { margin: 0; color: var(--text-secondary); font-size: .96875rem; }
@media (max-width: 960px) {
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-strip > div:nth-child(3) { border-left: 0; }
  .feature-strip > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip > div { border-left: 0; border-top: 1px solid var(--border); padding: 20px 0; }
  .feature-strip > div:first-child { border-top: 0; }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; margin: 0; }
.step-card { height: 100%; }
.step-card .num {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-primary);
  font-family: var(--font-head); font-weight: 800; margin-bottom: 18px;
}
.step-card p { color: var(--text-secondary); margin: 0; }

.hub-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text-primary);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.hub-card:hover { border-color: var(--accent-primary); color: var(--text-primary); text-decoration: none; transform: translateY(-2px); }
.hub-card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-elevated); color: var(--accent-primary);
}
.hub-card .icon svg { width: 22px; height: 22px; }
.hub-card h3 { margin: 6px 0 0; font-size: 1.125rem; }
.hub-card p { margin: 0; color: var(--text-secondary); font-size: .96875rem; }
.hub-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent-primary); display: inline-flex; gap: 6px; align-items: center; }
.hub-card .more svg { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.hub-card:hover .more svg { transform: translateX(3px); }

/* ---------- States grid ---------- */
.state-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.state-grid li { margin: 0; }
.state-tile {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-surface); text-decoration: none; color: var(--text-primary);
}
a.state-tile:hover { border-color: var(--accent-primary); color: var(--text-primary); text-decoration: none; }
.state-tile .abbr { font-family: var(--font-head); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }
.state-tile .name { font-weight: 600; }
.state-tile .meta { font-size: .8125rem; color: var(--text-secondary); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.state-tile.is-pending { background: transparent; border-style: dashed; color: var(--text-secondary); }
.state-tile.is-pending .abbr { color: var(--text-secondary); }
@media (max-width: 960px) { .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg-elevated); color: var(--text-secondary);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-primary); }
.badge-lemon { background: var(--accent-lemon); color: var(--on-lemon); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: 14px 16px; font-weight: 700; font-family: var(--font-head); border-bottom: 1px solid var(--border); }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-elevated); font-size: .875rem; font-weight: 700; letter-spacing: .02em; color: var(--text-secondary); white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cite { font-size: .875rem; color: var(--text-secondary); white-space: nowrap; }
.compare-table td, .compare-table th { text-align: center; }
.compare-table th[scope="row"] { text-align: left; }
.compare-table .us { background: var(--accent-soft); }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; }
.yes { color: var(--accent-primary); }
.no { color: var(--text-secondary); }
.yes svg, .no svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label, legend.label { font-weight: 600; font-size: .96875rem; }
.hint { font-size: .875rem; color: var(--text-secondary); line-height: 1.45; }
.optional { font-weight: 400; color: var(--text-secondary); font-size: .875rem; }
input[type="text"], input[type="number"], input[type="date"], select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: 400 1rem/1.3 var(--font-body); color: var(--text-primary);
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  appearance: none; -webkit-appearance: none;
}
input[type="date"] { min-width: 0; }
input::-webkit-date-and-time-value { text-align: left; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234A5650'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: 40px;
}
input:hover, select:hover { border-color: var(--text-secondary); }
input:focus, select:focus { outline: none; border-color: var(--accent-primary); box-shadow: var(--focus); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row .field { margin-bottom: 0; }
.field-group { margin-bottom: 18px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }

.choice-grid { display: grid; gap: 10px; }
.choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 14px; min-height: 44px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-surface); cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice:hover { border-color: var(--accent-primary); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark {
  width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--bg-surface);
  display: grid; place-items: center; transition: border-color .15s var(--ease);
}
.choice .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-primary); transform: scale(0); transition: transform .15s var(--ease); }
.choice input:checked ~ .mark { border-color: var(--accent-primary); }
.choice input:checked ~ .mark::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--accent-primary); background: var(--accent-soft); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice .t { display: block; font-weight: 600; line-height: 1.3; }
.choice .d { display: block; font-size: .875rem; color: var(--text-secondary); line-height: 1.4; margin-top: 2px; }
.choice-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-inline .choice { padding: 10px 14px; align-items: center; }
.choice-inline .choice .mark { margin-top: 0; }

.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .9375rem; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-primary); margin: 0; flex: none; }

/* ---------- Checker panel ---------- */
.checker {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-height: 560px; display: flex; flex-direction: column;
}
.checker-head { padding: 22px 24px 0; }
.checker-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.checker-title h2 { font-size: 1.25rem; margin: 0; }
.checker-title .badge svg { width: 14px; height: 14px; }
.progress { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--text-secondary); }
.progress li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--bg-elevated); margin-bottom: 8px; transition: background-color .2s var(--ease); }
.progress li.done::before, .progress li.current::before { background: var(--accent-primary); }
.progress li.current { color: var(--text-primary); }
.checker-body { padding: 22px 24px 8px; flex: 1; }
.checker-body h3 { font-size: 1.125rem; margin-bottom: 4px; }
.checker-body .step-intro { color: var(--text-secondary); font-size: .96875rem; margin-bottom: 20px; }
.checker-foot {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  padding: 16px 24px 22px; border-top: 1px solid var(--border); margin-top: 8px;
}
.checker-foot .spacer { flex: 1; }
.checker-privacy { display: flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--text-secondary); }
.checker-privacy svg { width: 16px; height: 16px; flex: none; }
.checker-loading { padding: 40px 24px; color: var(--text-secondary); }
.state-notice {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--lemon-soft); border: 1px solid color-mix(in srgb, var(--accent-lemon) 55%, transparent);
  font-size: .9375rem; margin-bottom: 18px;
}
.state-notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-alert {
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft);
  color: var(--danger); font-weight: 600; font-size: .9375rem; margin-bottom: 16px;
}
@media (max-width: 480px) {
  .checker-head, .checker-body { padding-left: 16px; padding-right: 16px; }
  .checker-foot { padding-left: 16px; padding-right: 16px; }
  .progress li { font-size: .75rem; }
}

.visit {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  background: var(--bg-primary); margin-bottom: 12px;
  animation: rise .2s var(--ease);
}
.visit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.visit-head strong { font-family: var(--font-head); font-size: 1rem; }
.visit .field { margin-bottom: 12px; }
.visit .field-row { margin-bottom: 12px; }
.visit .checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent;
  color: var(--text-secondary); cursor: pointer;
}
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn svg { width: 18px; height: 18px; }
.empty-visits {
  text-align: center; padding: 24px 16px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); color: var(--text-secondary); margin-bottom: 12px; font-size: .96875rem;
}

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Report ---------- */
.report-section { padding: 0 0 72px; }
.report-section[hidden] { display: none; }
.report {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: rise .25s var(--ease);
}
.report-top {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding: 18px 28px; border-bottom: 1px solid var(--border); background: var(--bg-elevated);
}
.report-top .brandline { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; }
.report-top .brandline svg { width: 26px; height: 26px; }
.report-top .meta { font-size: .875rem; color: var(--text-secondary); }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.verdict { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border-bottom: 1px solid var(--border); }
.verdict-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.verdict-icon svg { width: 28px; height: 28px; }
.verdict-label { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.verdict h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: 8px; }
.verdict p { margin: 0; color: var(--text-secondary); max-width: 760px; }
.verdict.is-qualifies .verdict-icon { background: var(--accent-primary); color: var(--on-accent); }
.verdict.is-qualifies .verdict-label { color: var(--accent-primary); }
.verdict.is-close .verdict-icon { background: var(--accent-lemon); color: var(--on-lemon); }
.verdict.is-close .verdict-label { color: #8A6A00; }
.verdict.is-neutral .verdict-icon { background: var(--neutral-result); color: #fff; }
.verdict.is-neutral .verdict-label { color: var(--text-secondary); }
@media (prefers-color-scheme: dark) { .verdict.is-close .verdict-label { color: var(--accent-lemon); } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.kpi { padding: 20px 28px; border-left: 1px solid var(--border); }
.kpi:first-child { border-left: 0; }
.kpi .k { font-size: .8125rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.kpi .v { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.kpi .s { font-size: .875rem; color: var(--text-secondary); margin-top: 4px; }
.kpi .countdown { display: inline-block; margin-top: 6px; }
@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi { border-left: 0; border-top: 1px solid var(--border); padding: 16px 20px; }
  .kpi:first-child { border-top: 0; }
  .verdict, .report-block { padding-left: 20px !important; padding-right: 20px !important; }
  .report-top { padding: 16px 20px; }
  .verdict { flex-direction: column; gap: 14px; }
  .verdict-icon { width: 44px; height: 44px; }
}
.report-block { padding: 28px; border-bottom: 1px solid var(--border); }
.report-block:last-child { border-bottom: 0; }
.report-block h3 { font-size: 1.125rem; margin-bottom: 14px; }
.report-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; }
.report-cols > .report-block + .report-block { border-left: 1px solid var(--border); }
@media (max-width: 900px) { .report-cols { grid-template-columns: 1fr; } .report-cols > .report-block + .report-block { border-left: 0; } }

.timeline { width: 100%; height: auto; overflow: visible; }
.timeline text { font-family: var(--font-body); font-size: 12px; fill: var(--text-secondary); }
.timeline .tl-strong { fill: var(--text-primary); font-weight: 700; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--text-secondary); margin-top: 12px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tl-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }

.result-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.result-pill svg { width: 14px; height: 14px; }
.result-pill.met { background: var(--accent-primary); color: var(--on-accent); }
.result-pill.partial { background: var(--accent-lemon); color: var(--on-lemon); }
.result-pill.not { background: var(--neutral-soft); color: var(--text-secondary); }

.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: ns; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 18px 44px; margin: 0; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-primary); font-weight: 800; font-size: .875rem;
}
.next-steps li:last-child { padding-bottom: 0; }
.next-steps strong { display: block; }
.next-steps span { color: var(--text-secondary); font-size: .96875rem; }
.next-steps .urgent::before { background: var(--accent-lemon); color: var(--on-lemon); }

.money { font-variant-numeric: tabular-nums; }
.calc-table td, .calc-table th { padding: 10px 0; border-bottom: 1px dashed var(--border); background: transparent; }
.calc-table tr.total th, .calc-table tr.total td { border-bottom: 0; border-top: 2px solid var(--text-primary); font-weight: 800; font-size: 1.0625rem; padding-top: 12px; }
.report-foot { padding: 18px 28px; background: var(--bg-elevated); font-size: .875rem; color: var(--text-secondary); }
.report-foot p { margin: 0 0 6px; }
.report-foot p:last-child { margin: 0; }

/* ---------- Sample report (marketing) ---------- */
.sample-report { position: relative; }
.sample-report .report { box-shadow: var(--shadow-lg); }
.sample-tag { position: absolute; top: -12px; right: 20px; z-index: 2; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; margin: 0; }
.check-list .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-primary); display: grid; place-items: center; flex: none; }
.check-list .ic svg { width: 18px; height: 18px; }
.check-list strong { display: block; }
.check-list span { color: var(--text-secondary); font-size: .96875rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent-primary); border-bottom: 2px solid var(--accent-primary);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary h3 { display: inline; font-size: inherit; margin: 0; }
.faq .answer { padding: 0 0 20px; color: var(--text-secondary); max-width: 820px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #E8EEEA; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #A3B0A9; max-width: 620px; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 40px solid var(--accent-lemon); opacity: .12; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Article / state page ---------- */
.page-hero { padding: 8px 0 48px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: start; }
@media (max-width: 1024px) { .page-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.page-hero h1 { margin-top: 18px; }
.answer-box {
  background: var(--bg-surface); border: 1px solid var(--border); border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius); padding: 20px 22px; margin: 20px 0;
}
.answer-box .label { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 6px; }
.answer-box p { margin: 0; }
.intro p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 14px; }
.intro p:last-child { margin-bottom: 0; }
.prose .lead-in { font-size: 1.0625rem; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .9375rem; color: var(--text-secondary); }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline svg { width: 16px; height: 16px; }
.byline .verified { color: var(--accent-primary); font-weight: 600; }

.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.glance > div { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.glance .k { font-size: .8125rem; color: var(--text-secondary); font-weight: 600; }
.glance .v { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
@media (max-width: 560px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.article-layout > * { min-width: 0; }
.toc { position: sticky; top: 92px; font-size: .9375rem; }
.toc h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-secondary); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--accent-primary); border-left-color: var(--accent-primary); }
.toc a.is-active { color: var(--text-primary); font-weight: 600; border-left-color: var(--accent-primary); }
.toc-mobile { display: none; }
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 32px; }
  .toc-mobile details { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); }
  .toc-mobile summary { padding: 14px 18px; font-weight: 700; cursor: pointer; min-height: 44px; }
  .toc-mobile ol { margin: 0; padding: 0 18px 16px 38px; }
  .toc-mobile a { display: inline-block; padding: 4px 0; }
}

.prose { max-width: 780px; }
.prose > section { padding-bottom: 24px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.prose > section:last-of-type { border-bottom: 0; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-primary); }
.prose .table-wrap { margin: 20px 0 24px; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: .875rem; color: var(--text-secondary); margin-top: 10px; }
.callout {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--accent-soft); margin: 20px 0;
}
.callout svg { width: 22px; height: 22px; color: var(--accent-primary); flex: none; margin-top: 2px; }
.callout p { margin: 0; }
.callout.lemon { background: var(--lemon-soft); }
.callout.lemon svg { color: #8A6A00; }
@media (prefers-color-scheme: dark) { .callout.lemon svg { color: var(--accent-lemon); } }
.test-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.test-cards .card { padding: 20px; }
.test-cards .big { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--accent-primary); line-height: 1; }
.test-cards h3 { margin: 10px 0 6px; font-size: 1.0625rem; }
.test-cards p { margin: 0; font-size: .9375rem; color: var(--text-secondary); }
.test-cards .cite { display: block; margin-top: 10px; }
@media (max-width: 720px) { .test-cards { grid-template-columns: 1fr; } }
.process { list-style: none; padding: 0; margin: 20px 0; counter-reset: p; }
.process li { counter-increment: p; position: relative; padding: 0 0 22px 56px; margin: 0; }
.process li::before {
  content: counter(p); position: absolute; left: 0; top: -2px; width: 36px; height: 36px;
  border-radius: 10px; background: var(--accent-primary); color: var(--on-accent);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
}
.process li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--border); }
.process li:last-child::after { display: none; }
.process strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; margin-bottom: 2px; }
.sources-list { font-size: .96875rem; }
.sources-list li { margin-bottom: .6em; }
.sources-list .cite { white-space: normal; }
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .related { grid-template-columns: 1fr; } }
.disclaimer-strip {
  background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0; font-size: .9375rem; color: var(--text-secondary);
}
.disclaimer-strip .container { display: flex; gap: 12px; align-items: flex-start; }
.disclaimer-strip svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.disclaimer-strip p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A3B0A9; padding: 64px 0 28px; font-size: .96875rem; }
.site-footer a { color: #D7E0DB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name span { color: #4FB8A4; }
.footer-brand p { margin: 16px 0 0; max-width: 320px; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #24302B; display: grid; gap: 12px; font-size: .875rem; }
.footer-legal p { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nowrap { white-space: nowrap; }

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

/* ---------- Print: only the Lemon Law Report, on one page ---------- */
@media print {
  @page { margin: 14mm; }
  :root {
    --bg-primary: #fff; --bg-surface: #fff; --bg-elevated: #F3F5F2; --text-primary: #111; --text-secondary: #444;
    --border: #CCC; --accent-primary: #0F6B5C; --accent-soft: #E3F0EC; --on-accent: #fff;
  }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .skip-link, .disclaimer-strip, .report-actions { display: none !important; }
  html.print-report main > *:not(.report-section) { display: none !important; }
  html.print-report body { page: report; }
  html.print-report .report [data-evidence] { break-before: page; }
  .report-block, .verdict, .kpi, .report-block tr, .next-steps li { break-inside: avoid; }
  .report-block h3 { break-after: avoid; }
  a { color: inherit; text-decoration: underline; }
}
/* Page footer for the report PDF (browsers without page margin boxes skip it) */
@page report {
  margin: 12mm 14mm 14mm;
  @bottom-left { content: "LemonLawMap · lemonlawmap.com"; font: 8pt system-ui, sans-serif; color: #555; }
  @bottom-right { content: "General information, not legal advice"; font: 8pt system-ui, sans-serif; color: #555; }
}
/* Compact one-page layout. It applies while the report prints, and on screen during printing so main.js can measure it
   and set --fit, the scale that fits everything except attached repair records on one page. */
.print-head, .print-title { display: none; }
html.print-report .report-section { padding: 0; display: block !important; }
html.print-report .report-section .container { max-width: none; margin: 0; padding: 0; }
html.print-report .report {
  display: flex; flex-direction: column; max-width: 100%; font-size: 12px; line-height: 1.38;
  background: #fff; color: #111; box-shadow: none; border: 0; border-radius: 0; overflow: visible; animation: none;
}
html.print-report .report > * { zoom: var(--fit, 1); }
html.print-report .report > [data-evidence] { zoom: 1; order: 9; }
html.print-report .report-top { display: none; }
html.print-report .print-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 2px solid #0F6B5C; }
html.print-report .ph-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #111; }
html.print-report .ph-brand svg { width: 30px; height: 30px; }
html.print-report .ph-brand b { color: #0F6B5C; }
html.print-report .ph-link { font-weight: 700; font-size: 13px; color: #0F6B5C; text-decoration: none; }
html.print-report .print-title { display: block; padding: 10px 0 2px; }
html.print-report .print-title h1 { font-size: 20px; margin: 0 0 2px; }
html.print-report .print-title p { margin: 0; font-size: 10px; color: #555; }
html.print-report .verdict { padding: 10px 0; gap: 12px; }
html.print-report .verdict-icon { width: 34px; height: 34px; border-radius: 9px; }
html.print-report .verdict-icon svg { width: 20px; height: 20px; }
html.print-report .verdict-label { font-size: 10px; margin-bottom: 2px; }
html.print-report .verdict h2 { font-size: 17px; margin-bottom: 4px; }
html.print-report .verdict p { font-size: 11.5px; }
html.print-report .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #CCC; border-radius: 6px; }
html.print-report .kpi { padding: 8px 10px; border-top: 0; border-left: 1px solid #CCC; }
html.print-report .kpi:first-child { border-left: 0; }
html.print-report .kpi .k { font-size: 9px; margin-bottom: 2px; }
html.print-report .kpi .v { font-size: 13.5px; }
html.print-report .kpi .s { font-size: 10px; margin-top: 2px; }
html.print-report .report-block { padding: 10px 0 !important; }
html.print-report .report-block h3 { font-size: 13.5px; margin-bottom: 6px; }
html.print-report .tl-legend { font-size: 10px; margin-top: 4px; gap: 4px 14px; }
html.print-report .table-wrap { overflow: visible; border-radius: 6px; }
html.print-report .table-wrap table { table-layout: fixed; width: 100%; min-width: 0; }
html.print-report .table-wrap th, html.print-report .table-wrap td { font-size: 10.5px; line-height: 1.35; padding: 5px 7px; overflow-wrap: anywhere; }
html.print-report .table-wrap thead th:nth-child(1) { width: 21%; }
html.print-report .table-wrap thead th:nth-child(2) { width: 37%; }
html.print-report .table-wrap thead th:nth-child(4) { width: 13%; }
html.print-report .result-pill { white-space: normal; font-size: 10px; padding: 2px 7px; }
html.print-report .report p, html.print-report .report .hint { font-size: 11px; }
html.print-report .report-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
html.print-report .report-cols > .report-block + .report-block { border-left: 0; }
html.print-report .next-steps li { padding: 0 0 7px 28px; }
html.print-report .next-steps li::before { width: 20px; height: 20px; font-size: 10.5px; }
html.print-report .next-steps span { font-size: 11px; }
html.print-report .calc-table td, html.print-report .calc-table th { padding: 4px 0; font-size: 11px; }
html.print-report .report-foot { padding: 8px 0; background: none; border-top: 1px solid #CCC; }
html.print-report .report-foot p { font-size: 9.5px; margin-bottom: 3px; }

/* ---------- Private repair-order attachments ---------- */
.attach { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border); display: grid; gap: 8px; }
.attach-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; width: fit-content;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface);
  font-weight: 600; font-size: .9375rem; cursor: pointer; color: var(--accent-primary);
}
.attach-btn:hover { border-color: var(--accent-primary); }
.attach-btn svg { width: 18px; height: 18px; }
.attach input:focus-visible + .hint, .attach-btn:has(+ input:focus-visible) { box-shadow: var(--focus); }
.attach .hint { display: inline-flex; gap: 6px; align-items: center; }
.attach .hint svg { width: 14px; height: 14px; flex: none; }
.attach-list { display: flex; flex-wrap: wrap; gap: 10px; }
.attach-list:empty { display: none; }
.file-chip {
  position: relative; margin: 0; width: 132px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-surface); overflow: hidden; font-size: .8125rem;
}
.file-chip img { width: 100%; height: 92px; object-fit: cover; background: var(--bg-elevated); }
.file-pdf { display: grid; place-items: center; height: 92px; background: var(--bg-elevated); font-family: var(--font-head); font-weight: 800; color: var(--danger); letter-spacing: .05em; }
.file-chip figcaption { padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip figcaption a { color: var(--text-primary); }
.file-chip .icon-btn { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; background: var(--bg-surface); box-shadow: var(--shadow); }
.evidence-grid { display: grid; gap: 18px; margin-top: 12px; }
.evidence-visit h4 { font-size: 1rem; margin-bottom: 8px; }
@media print {
  .evidence-visit { break-inside: avoid; }
  .file-chip { width: 48%; }
  .file-chip img { height: auto; max-height: 120mm; object-fit: contain; }
}

/* Planned pages that are linked but not built yet render as plain text */
span.is-soon:not(.card):not(.state-tile) { color: inherit; }
.hub-card.is-soon { cursor: default; }
.hub-card.is-soon:hover { transform: none; border-color: var(--border); }
.hub-card.is-soon .more { color: var(--text-secondary); font-weight: 600; }
.hub-card.is-soon .more svg { display: none; }
.hub-card.is-soon .more::after { content: " · coming soon"; }

/* ---------- Tools ---------- */
textarea {
  width: 100%; min-height: 96px; padding: 10px 12px; resize: vertical;
  font: 400 1rem/1.45 var(--font-body); color: var(--text-primary);
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: var(--focus); }
.tool-panel { min-height: 0; }
.tool-panel .checker-body { padding-bottom: 22px; }
.tool-result { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--bg-elevated); }
.tool-result .hint { margin: 0; }
.tool-dl { margin: 0 0 12px; display: grid; gap: 14px; }
.tool-dl dt { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }
.tool-dl dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 1.375rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool-dl dd span:not(.badge) { display: block; width: 100%; font-family: var(--font-body); font-weight: 400; font-size: .875rem; color: var(--text-secondary); }
.letter-out { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.letter-out .bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.letter-out .bar h2 { font-size: 1.0625rem; margin: 0; }
.letter-out pre { margin: 0; padding: 28px; white-space: pre-wrap; word-wrap: break-word; font: 400 1rem/1.6 var(--font-body); color: var(--text-primary); max-height: 720px; overflow: auto; }
.letter-out .hint { padding: 0 20px 18px; margin: 0; }
.tool-split { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .tool-split { grid-template-columns: 1fr; } }
.checklist { display: grid; gap: 22px; }
.checklist fieldset { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.checklist legend { font-family: var(--font-head); font-weight: 800; font-size: 1.0625rem; padding: 0 6px; }
.checklist .check { align-items: flex-start; padding: 6px 0; }
.checklist .check input { margin-top: 3px; }
.checklist .check span small { display: block; color: var(--text-secondary); }
.progress-bar { height: 8px; background: var(--bg-elevated); border-radius: 8px; overflow: hidden; margin: 8px 0 4px; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--accent-primary); transition: width .2s var(--ease); }
.sort-btn { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
.sort-btn:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.compare-wide th, .compare-wide td { white-space: nowrap; }
@media print {
  html.print-letter main > *:not(.letter-print-wrap), html.print-checklist main > *:not(.checklist-print-wrap) { display: none !important; }
  html.print-letter .letter-print-wrap .tool-split > :first-child, html.print-letter .letter-out .bar, html.print-letter .letter-out .hint { display: none !important; }
  html.print-letter .tool-split { display: block; }
  html.print-letter .letter-out { border: 0; box-shadow: none; }
  html.print-letter .letter-out pre { max-height: none; padding: 0; font-size: 11.5pt; }
  html.print-checklist .checklist-print-wrap .no-print { display: none !important; }
}
