/* Virginia Court File — Civic Precision Design System */

/* Google Fonts loaded in base.html */

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

:root {
    --bg: #f7f8f9;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --text: #1a1d23;
    --text-secondary: #4a4f59;
    --text-muted: #7d838e;
    --border: #dfe3e8;
    --border-light: #edf0f3;
    --navy: #0c2340;
    --navy-mid: #132d4f;
    --navy-light: #1a3a5c;
    --blue: #2563eb;
    --blue-soft: #eff4ff;
    --green: #0d7a3e;
    --green-soft: #ecfdf3;
    --green-border: #a7f3c9;
    --amber: #b45309;
    --amber-soft: #fffbeb;
    --red: #c42b1c;
    --red-soft: #fef2f2;
    --red-border: #fca5a5;

    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.09);

    --font-display: 'Newsreader', 'Georgia', 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --chart-dismissed: #3a8f7a;
    --chart-plea: #7889a0;
    --chart-guilty: #a8806c;
    --chart-acquitted: #6b9dc4;
    --chart-other: #a0a5ad;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }

/* ====== SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ====== NAV ====== */
.nav {
    background: var(--navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 56px;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-logo:hover { text-decoration: none; color: #fff; opacity: 0.9; }
.nav-logo span { color: rgba(255,255,255,0.5); font-weight: 400; }
.nav-search {
    display: flex;
    flex: 1;
    max-width: 440px;
}
.nav-search input {
    flex: 1;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-body);
    background: rgba(255,255,255,0.07);
    color: #fff;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search input:focus {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.35);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}
.nav-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-cta {
    background: var(--green) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 0.35rem 0.85rem !important;
}
.nav-cta:hover { background: #0a6832 !important; }

/* ====== MAIN ====== */
main { flex: 1; padding: 0 0 3rem; }

/* ====== HERO ====== */
.hero {
    text-align: center;
    padding: 4.5rem 0 2.5rem;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 2.85rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
    line-height: 1.12;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    font-weight: 400;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    transition: box-shadow 0.2s;
}
.hero-search:focus-within {
    box-shadow: var(--shadow-lg), 0 0 0 2px var(--blue);
}
.hero-search input {
    flex: 1;
    padding: 1.05rem 1.25rem;
    border: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    outline: none;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
    padding: 1.05rem 1.75rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s;
}
.hero-search button:hover { background: var(--navy-light); }
.hero-tags {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-tags span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* ====== AUTOCOMPLETE ====== */
.ac-wrap {
    position: relative;
}
.ac-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 300;
    max-height: 360px;
    overflow-y: auto;
}
.ac-list.open { display: block; }
.ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border-light);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.ac-active {
    background: var(--blue-soft);
    text-decoration: none;
    color: var(--text);
}
.ac-item-label {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-item-type {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    flex-shrink: 0;
}
.ac-empty {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero search needs ac-wrap */
.hero-search { position: relative; }

/* Nav search needs ac-wrap */
.nav-search { position: relative; }
.nav-search .ac-list {
    border: 1px solid rgba(255,255,255,0.15);
    border-top: none;
    background: var(--navy);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav-search .ac-item {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.08);
}
.nav-search .ac-item:hover, .nav-search .ac-item.ac-active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-search .ac-item-type {
    color: rgba(255,255,255,0.4);
}
.nav-search .ac-empty {
    color: rgba(255,255,255,0.4);
}

/* ====== STATS BAR ====== */
.stats-bar {
    padding: 0;
    margin-bottom: 1.5rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.stat-card {
    background: var(--surface);
    padding: 1.5rem 1rem;
    text-align: center;
}
.stat-primary {
    border-top: 3px solid var(--green);
}
.stat-highlight {
    background: var(--surface);
}
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.45rem;
}
.stat-compare {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ====== COLOR UTILITIES ====== */
.text-green { color: var(--green) !important; }
.text-amber { color: var(--amber) !important; }
.text-red { color: var(--red) !important; }

/* ====== SECTION HEADINGS ====== */
.section { padding: 2rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.section-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* Editorial section labels (used for data subsections) */
.section-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 2.25rem 0 0.85rem;
}
.section-label:first-child {
    margin-top: 0;
}

/* Data note callout */
.data-note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Context note — plain inline text beneath stats */
.context-note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1rem 0 1.75rem;
}

/* Data source attribution */
.data-source {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
}

/* Inline CTA — flows as part of content */
.cta-inline-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 600px;
    margin-bottom: 1.25rem;
}
.cta-inline-action {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.cta-inline-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
@media (max-width: 480px) {
    .cta-inline-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Subtle inline footnote CTA */
.section-footnote {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.section-footnote a {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.section-footnote a:hover {
    color: var(--blue);
}

/* ====== PAGE HEADER (charge, officer, court detail pages) ====== */
.page-header {
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 50%, #163050 100%);
    color: #fff;
    padding: 2.25rem 0 2rem;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    letter-spacing: -0.015em;
}
.page-header .page-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}
.page-header .page-sub strong {
    color: rgba(255,255,255,0.85);
}
.breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 0.85rem;
    color: rgba(255,255,255,0.35);
}
.breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* ====== CONTENT NARROW ====== */
.content-narrow {
    max-width: 680px;
}
.content-narrow h2 {
    margin-top: 2rem;
}
.content-narrow p {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.content-narrow ul {
    margin: 0 0 1rem 1.25rem;
}
.content-narrow li {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ====== CHARGE GRID ====== */
.charge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.charge-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.charge-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.charge-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 0.3rem;
    transition: color 0.15s;
}
.charge-card:hover .charge-name { color: var(--blue); }
.charge-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.charge-bar-wrap {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin: 0.5rem 0 0.35rem;
    overflow: hidden;
}
.charge-bar {
    height: 100%;
    background: var(--chart-dismissed);
    border-radius: 2px;
    transition: width 0.6s var(--ease-out);
}
.charge-dismiss {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--chart-dismissed);
}

/* ====== JURISDICTION PICKER CARDS ====== */
.jurisdiction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}
.jurisdiction-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.jurisdiction-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.jurisdiction-card-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.jurisdiction-card:hover .jurisdiction-card-name { color: var(--blue); }
.jurisdiction-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.jurisdiction-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
.jurisdiction-card-dismiss {
    font-size: 0.78rem;
    font-weight: 600;
}
.jurisdiction-card .charge-bar-wrap {
    margin: 0.45rem 0 0.3rem;
}

/* ====== STACKED OUTCOME BAR ====== */
.outcome-stack {
    display: flex;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.outcome-stack-seg {
    min-width: 4px;
    position: relative;
    transition: flex 0.8s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.outcome-stack-seg .seg-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    opacity: 0.9;
    pointer-events: none;
    letter-spacing: 0.01em;
}
.outcome-stack-seg:first-child { border-radius: 6px 0 0 6px; }
.outcome-stack-seg:last-child { border-radius: 0 6px 6px 0; }
.outcome-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin-bottom: 2.25rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.outcome-legend span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.outcome-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ====== OUTCOME BARS ====== */
.outcome-bars {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}
.outcome-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.bar-label {
    width: 180px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.bar-track {
    flex: 1;
    height: 28px;
    background: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.8s var(--ease-out);
}
.bar-green { background: var(--chart-dismissed); }
.bar-amber { background: var(--chart-plea); }
.bar-red { background: var(--chart-guilty); }
.bar-blue { background: var(--chart-acquitted); }
.bar-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    min-width: 52px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-body);
}

/* ====== TIMELINE VISUAL ====== */
.timeline-visual {
    display: flex;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    position: relative;
}
.timeline-range {
    flex: 1;
    background: var(--surface);
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
}
.timeline-range + .timeline-range {
    border-left: 1px solid var(--border);
}
.timeline-mid {
    background: var(--blue-soft);
}
.timeline-mid .tl-value {
    font-size: 1.5rem;
}
.tl-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.tl-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}

/* ====== CHARGE REDUCTION PANEL ====== */
.reduction-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}
.reduction-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-light);
}
.reduction-rate {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}
.reduction-rate-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--green);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.reduction-rate-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.reduction-context {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-left: 1px solid var(--border-light);
    padding-left: 1.5rem;
}
.reduction-count {
    font-weight: 600;
    color: var(--text-secondary);
}
.reduction-targets {
    padding: 1.25rem 1.75rem 1.5rem;
}
.reduction-targets-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}
.reduction-row {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
}
.reduction-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.reduction-flow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.reduction-from {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}
.reduction-arrow {
    color: var(--green);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.reduction-to {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}
.reduction-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0;
}
.reduction-bar-wrap {
    flex: 1;
    max-width: 180px;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}
.reduction-bar {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
    opacity: 0.6;
    transition: width 0.6s var(--ease-out);
}
.reduction-stat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .reduction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }
    .reduction-context {
        border-left: none;
        padding-left: 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-light);
    }
    .reduction-rate-value {
        font-size: 1.75rem;
    }
    .reduction-targets {
        padding: 1rem 1.25rem 1.25rem;
    }
    .reduction-flow {
        gap: 0.4rem;
    }
    .reduction-from {
        display: none;
    }
}

/* ====== INFO BOX ====== */
.info-box {
    background: var(--blue-soft);
    border: 1px solid #c7d9f0;
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}
.info-green {
    background: var(--green-soft);
    border-color: var(--green-border);
    border-left-color: var(--green);
    color: #15532e;
}
.info-neutral {
    background: var(--bg);
    border-color: var(--border);
    border-left-color: var(--text-muted);
}

/* ====== HOW IT WORKS ====== */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.how-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.25s, transform 0.25s;
}
.how-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.how-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.how-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.how-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ====== CTA SECTION ====== */
.cta-section {
    padding: 2.5rem 0;
}
.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2rem;
    text-align: center;
}
.cta-box h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    border: none;
    padding-bottom: 0;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.cta-box > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.cta-trust {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
    letter-spacing: 0.02em;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.85rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 1px 3px rgba(13,122,62,0.25);
}
.btn-primary:hover {
    background: #0a6832;
    color: #fff;
    box-shadow: 0 2px 6px rgba(13,122,62,0.3);
}
.btn-sm {
    padding: 0.6rem 1.35rem;
    font-size: 0.85rem;
}

/* ====== INLINE CTA ====== */
.inline-cta {
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}
.inline-cta p {
    font-size: 0.9rem;
    color: #15532e;
    line-height: 1.55;
    margin: 0;
}
.inline-cta .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ====== STICKY BOTTOM CTA ====== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 0.75rem 1.25rem;
    z-index: 150;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.sticky-cta.visible {
    transform: translateY(0);
}
.sticky-cta-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sticky-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
}
.sticky-cta .btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ====== FORM PROGRESS ====== */
.form-progress {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}
.form-progress-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.3s;
}
.form-progress-step.active {
    background: var(--blue);
}

/* ====== FAQ SECTION ====== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
    border-color: #ccc;
}
.faq-item.open {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--blue);
}
.faq-q {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.15s;
    line-height: 1.4;
}
.faq-q:hover { color: var(--blue); }
.faq-q::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: var(--bg);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' fill='none' stroke='%2355524e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.faq-item.open .faq-q::before {
    transform: rotate(180deg);
    background-color: var(--blue-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' fill='none' stroke='%232563eb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.faq-item.open .faq-q {
    color: var(--blue);
}
.faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.faq-a-inner {
    padding: 0 1.25rem 1.25rem 3.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====== MOBILE HAMBURGER ====== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== INDEX FILTERS ====== */
.index-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.index-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.index-search {
    width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 2.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}
.index-search:focus {
    border-color: var(--blue);
}
.index-search::placeholder {
    color: var(--text-muted);
}
.index-search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
}
.index-select {
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 160px;
}
.index-select:focus {
    border-color: var(--blue);
}
.index-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}
.index-show-more {
    text-align: center;
    padding: 1.25rem 0 0.5rem;
}

@media (max-width: 768px) {
    .index-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .index-search-wrap {
        min-width: 100%;
    }
    .index-select {
        min-width: 100%;
    }
    .index-count {
        margin-left: 0;
        text-align: center;
    }
}

/* ====== TABLES ====== */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
thead th {
    text-align: left;
    padding: 0.75rem 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    background: var(--bg);
}
td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
td a { color: var(--text); font-weight: 600; }
td a:hover { color: var(--blue); }
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: rgba(37, 99, 235, 0.03); }
tbody tr:last-child td { border-bottom: none; }
.row-highlight { background: rgba(37, 99, 235, 0.04); }
.row-highlight:hover { background: rgba(37, 99, 235, 0.06); }
th[data-sort] {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}
th[data-sort]:hover { color: var(--blue); }

/* ====== MODAL ====== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 35, 64, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 0.35rem;
}
.modal-content > p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

/* ====== FORM STEPS ====== */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}
.form-step label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.form-step select,
.form-step input[type="text"],
.form-step input[type="tel"],
.form-step input[type="email"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text);
    outline: none;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}
.form-step select:focus,
.form-step input:focus {
    border-color: var(--blue);
}
.form-step .btn {
    width: 100%;
    margin-top: 0.5rem;
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 400 !important;
    transition: border-color 0.15s, background 0.15s;
}
.radio-label:hover { border-color: var(--blue); background: var(--blue-soft); }
.radio-label input[type="radio"] { accent-color: var(--blue); }
.radio-label:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
}
.form-error {
    font-size: 0.8rem;
    color: var(--red);
    margin: -0.35rem 0 0.75rem;
    padding: 0.35rem 0.6rem;
    background: var(--red-soft);
    border-radius: 4px;
    font-weight: 500;
}
.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.form-optional {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}
.form-optional-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-legal {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
    line-height: 1.5;
}
.form-legal a { color: var(--text-muted); text-decoration: underline; }

/* ====== THANK YOU PAGES ====== */
.thanks-page {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 3rem 0;
}
.thanks-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: #fff;
}
.thanks-success { background: var(--green); }
.thanks-page h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--navy);
}
.thanks-page > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.back-link { margin-top: 2rem; }

/* ====== INLINE EMAIL CAPTURE ====== */
.inline-email-capture {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.inline-email-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.inline-email-text strong {
    font-size: 0.88rem;
    color: var(--text);
}
.inline-email-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.inline-email-form {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.inline-email-form input[type="email"] {
    padding: 0.55rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    width: 200px;
    transition: border-color 0.15s;
}
.inline-email-form input[type="email"]:focus {
    border-color: var(--blue);
}

@media (max-width: 768px) {
    .inline-email-capture {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .inline-email-form {
        width: 100%;
    }
    .inline-email-form input[type="email"] {
        flex: 1;
        width: auto;
    }
}

/* ====== CASE REPORT (Thank You Page) ====== */
.report-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.report-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.report-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.report-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.report-card .stats-grid {
    margin: 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
}
.report-section {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-light);
}
.report-section .section-label {
    margin-top: 0;
}
.report-section .stats-grid {
    border-bottom: none;
}
.report-cta {
    padding: 1.5rem 2rem;
    text-align: center;
}
.report-cta-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.report-email-capture {
    max-width: 480px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.report-email-capture h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.report-email-capture > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.55;
}
.report-email-form {
    display: flex;
    gap: 0.5rem;
    max-width: 380px;
    margin: 0 auto;
}
.report-email-form input[type="email"] {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.15s;
}
.report-email-form input[type="email"]:focus {
    border-color: var(--blue);
}

@media (max-width: 480px) {
    .report-header { padding: 1.25rem 1.25rem 1rem; }
    .report-section { padding: 1rem 1.25rem; }
    .report-cta { padding: 1.25rem; }
    .report-email-form { flex-direction: column; }
}

/* ====== SEARCH RESULTS ====== */
.search-header {
    padding: 2rem 0 1rem;
}
.search-header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy);
}
.result-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state p + p { margin-top: 0.5rem; font-size: 0.88rem; }

/* ====== ERROR PAGE ====== */
.error-page {
    text-align: center;
    padding: 5rem 1rem;
}
.error-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.error-page p { color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ====== FOOTER ====== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    padding: 3rem 0 2rem;
    margin-top: auto;
    font-size: 0.78rem;
    line-height: 1.7;
}
.footer a { color: rgba(255,255,255,0.65); transition: color 0.15s; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h4 {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.footer p { margin-bottom: 0.5rem; }
.footer strong { color: rgba(255,255,255,0.8); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 1.75rem;
}
.footer-grid div a {
    display: block;
    margin-bottom: 0.35rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
}

/* ====== ADMIN ====== */
.admin-header {
    padding: 2rem 0 1rem;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeUp 0.5s var(--ease-out) both;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.95rem; }
    .hero { padding: 2.5rem 0 1.5rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius); }
    .hero-search input {
        border-radius: var(--radius) var(--radius) 0 0;
        border-bottom: 1px solid var(--border-light);
    }
    .hero-search button { border-radius: 0 0 var(--radius) var(--radius); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .stat-value { font-size: 1.55rem; }
    .how-grid { grid-template-columns: 1fr; }
    .charge-grid { grid-template-columns: 1fr 1fr; }
    .jurisdiction-cards { grid-template-columns: 1fr 1fr; }
    .page-header h1 { font-size: 1.55rem; }
    .nav-search { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 0.5rem 1rem 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }
    .nav-toggle { display: block; }
    .bar-label { width: 130px; font-size: 0.78rem; }
    .timeline-visual { flex-direction: column; }
    .timeline-range + .timeline-range { border-left: none; border-top: 1px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .cta-box { padding: 1.75rem 1.25rem; }
    th, td { padding: 0.55rem 0.6rem; font-size: 0.8rem; }
    .modal-content { padding: 1.5rem; }
    .inline-cta { flex-direction: column; text-align: center; }
    .sticky-cta p { font-size: 0.78rem; }
    .sticky-cta .btn-primary { padding: 0.45rem 1rem; font-size: 0.8rem; }
    .outcome-stack { height: 28px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.55rem; }
    .hero-sub { font-size: 0.9rem; }
    .container { padding: 0 1rem; }
    .stats-grid-3 { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.35rem; }
    .charge-grid { grid-template-columns: 1fr; }
    .jurisdiction-cards { grid-template-columns: 1fr; }
    .bar-label { width: 100px; font-size: 0.75rem; }
    .hero-tags { gap: 0.35rem; }
    .hero-tags span { font-size: 0.68rem; padding: 0.2rem 0.5rem; }
}
