/**
 * cars.zone — Master Design System
 * File: cz-design.css
 * Version: 1.0.0
 * Created: 2026-05-06
 *
 * Architecture:
 *   - CSS variables for all colors, fonts, spacing
 *   - Component classes that work standalone or compose
 *   - Mobile-first responsive (breakpoints at 600px, 900px, 1200px)
 *   - Dark mode ready (variable swap, no rebuild)
 *   - Print stylesheet included
 *   - Accessibility: WCAG AA contrast, focus states, semantic HTML
 *
 * Component classes (all prefixed .cz- to avoid theme conflicts):
 *   .cz-article          — root container for any article body
 *   .cz-hero-strip       — top-of-article severity/ranking strip
 *   .cz-stat-card        — single statistic with label
 *   .cz-stat-grid        — responsive grid of stat cards
 *   .cz-callout          — boxed callout (answer / tip / warning variants)
 *   .cz-data-table       — comparison/severity tables
 *   .cz-big-stat         — single hero number with context
 *   .cz-breakeven-box    — special highlighted block for key insights
 *   .cz-who-grid         — two-column "buy this if / buy that if" cards
 *   .cz-faq-item         — FAQ question/answer block
 *   .cz-divider          — section separator
 *   .cz-editorial-card   — author/methodology card (footer)
 *   .cz-sources          — sources verified footer
 *
 * Built on top of established .art20-* identity from posts published Feb 2026.
 * New articles use .cz-* classes. Existing 13 posts continue using .art20-*
 * (which we will migrate later as low-priority maintenance).
 */

/* ============================================================
   1. FONT IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   2. CSS VARIABLES (single source of truth for all design tokens)
   ============================================================ */
:root {
    /* Brand colors */
    --cz-color-primary: #1a73e8;
    --cz-color-primary-hover: #1557b0;
    --cz-color-primary-light: #e8f0fe;
    --cz-color-primary-bg: #f0f6ff;

    /* Severity colors (semantic) */
    --cz-color-severe: #c0392b;       /* DUI, hit-and-run severity */
    --cz-color-warning: #d97706;      /* moderate severity */
    --cz-color-success: #1b5e20;      /* good outcome / saves money */
    --cz-color-success-bg: #e6f4ea;
    --cz-color-info: #1a73e8;
    --cz-color-info-bg: #e8f4fd;

    /* Neutrals */
    --cz-color-text: #2d3748;
    --cz-color-text-light: #4a5568;
    --cz-color-text-muted: #718096;
    --cz-color-text-faint: #a0aec0;
    --cz-color-heading: #1a202c;
    --cz-color-bg: #ffffff;
    --cz-color-bg-soft: #f9fafb;
    --cz-color-bg-tinted: #f7f9ff;
    --cz-color-border: #e2e8f0;
    --cz-color-border-light: #edf2f7;

    /* Special accent */
    --cz-color-accent-warm-bg: #fff8e1;
    --cz-color-accent-warm-border: #f0c040;
    --cz-color-accent-warm-text: #5d4037;

    /* Typography */
    --cz-font-serif: 'DM Serif Display', Georgia, serif;
    --cz-font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Type scale (mobile-first) */
    --cz-text-xs: 12px;
    --cz-text-sm: 13px;
    --cz-text-base: 16px;
    --cz-text-lg: 17px;
    --cz-text-xl: 18px;
    --cz-text-2xl: 22px;
    --cz-text-3xl: 26px;
    --cz-text-hero: clamp(28px, 5vw, 40px);
    --cz-text-bignum: 52px;

    /* Spacing scale */
    --cz-space-1: 4px;
    --cz-space-2: 8px;
    --cz-space-3: 12px;
    --cz-space-4: 16px;
    --cz-space-5: 20px;
    --cz-space-6: 24px;
    --cz-space-8: 32px;
    --cz-space-10: 40px;
    --cz-space-12: 48px;

    /* Layout */
    --cz-content-width: 860px;
    --cz-radius-sm: 6px;
    --cz-radius: 8px;
    --cz-radius-lg: 10px;
    --cz-radius-xl: 12px;

    /* Shadows */
    --cz-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --cz-shadow: 0 2px 6px rgba(26, 115, 232, 0.06);
    --cz-shadow-md: 0 4px 12px rgba(26, 115, 232, 0.08);
    --cz-shadow-lg: 0 8px 24px rgba(26, 115, 232, 0.12);

    /* Transitions */
    --cz-transition-fast: 150ms ease;
    --cz-transition: 250ms ease;
}

/* ============================================================
   3. ROOT CONTAINER
   ============================================================ */
.cz-article {
    font-family: var(--cz-font-sans);
    color: var(--cz-color-text);
    max-width: var(--cz-content-width);
    margin: 0 auto;
    line-height: 1.7;
    font-size: var(--cz-text-base);
}

.cz-article * {
    box-sizing: border-box;
}

.cz-article p {
    margin: 0 0 var(--cz-space-4);
    color: var(--cz-color-text);
}

.cz-article p:last-child {
    margin-bottom: 0;
}

.cz-article a {
    color: var(--cz-color-primary);
    text-decoration: none;
    transition: color var(--cz-transition-fast);
}

.cz-article a:hover {
    color: var(--cz-color-primary-hover);
    text-decoration: underline;
}

.cz-article a:focus-visible {
    outline: 2px solid var(--cz-color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================================
   4. HEADINGS
   ============================================================ */
.cz-article h1 {
    font-family: var(--cz-font-serif);
    font-size: var(--cz-text-hero);
    color: var(--cz-color-heading);
    line-height: 1.2;
    margin: 0 0 var(--cz-space-3);
    font-weight: 400;
}

.cz-article h2,
.cz-section-title {
    font-family: var(--cz-font-serif);
    font-size: var(--cz-text-2xl);
    font-weight: 400;
    color: var(--cz-color-heading);
    border-left: 4px solid var(--cz-color-primary);
    padding-left: var(--cz-space-4);
    margin: var(--cz-space-10) 0 var(--cz-space-4);
    line-height: 1.3;
}

.cz-article h3 {
    font-family: var(--cz-font-sans);
    font-size: var(--cz-text-lg);
    font-weight: 600;
    color: var(--cz-color-heading);
    margin: var(--cz-space-6) 0 var(--cz-space-3);
}

/* ============================================================
   5. CATEGORY BADGE (small label above H1)
   ============================================================ */
.cz-category-badge {
    display: inline-block;
    background: var(--cz-color-info-bg);
    color: var(--cz-color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: var(--cz-space-5);
}

/* ============================================================
   6. ARTICLE META (sources + updated date row)
   ============================================================ */
.cz-meta {
    font-size: var(--cz-text-sm);
    color: var(--cz-color-text-muted);
    margin-bottom: var(--cz-space-5);
}

.cz-meta strong {
    color: var(--cz-color-text-light);
}

/* ============================================================
   7. HERO STRIP (top-of-article severity/ranking display)
   ============================================================ */
.cz-hero-strip {
    background: var(--cz-color-bg-soft);
    border-left: 4px solid var(--cz-color-severe);
    border-radius: 0 var(--cz-radius-lg) var(--cz-radius-lg) 0;
    padding: var(--cz-space-6) var(--cz-space-5);
    margin: var(--cz-space-6) 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cz-space-5);
}

.cz-hero-strip-item {
    text-align: center;
    padding: 0 var(--cz-space-2);
}

.cz-hero-strip-rank {
    font-size: var(--cz-text-xs);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cz-color-text-muted);
    margin-bottom: var(--cz-space-2);
}

.cz-hero-strip-label {
    font-family: var(--cz-font-serif);
    font-size: var(--cz-text-2xl);
    color: var(--cz-color-heading);
    line-height: 1.2;
    margin-bottom: var(--cz-space-3);
}

.cz-hero-strip-item:nth-child(1) .cz-hero-strip-label { color: var(--cz-color-severe); }
.cz-hero-strip-item:nth-child(2) .cz-hero-strip-label { color: var(--cz-color-warning); }
.cz-hero-strip-item:nth-child(3) .cz-hero-strip-label { color: var(--cz-color-info); }

.cz-hero-strip-value {
    font-size: var(--cz-text-base);
    font-weight: 600;
    color: var(--cz-color-text);
    margin-bottom: var(--cz-space-1);
}

.cz-hero-strip-note {
    font-size: var(--cz-text-xs);
    color: var(--cz-color-text-muted);
}

/* ============================================================
   8. STAT CARDS (single statistic boxes)
   ============================================================ */
.cz-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cz-space-4);
    margin: var(--cz-space-8) 0;
}

.cz-stat-card {
    background: var(--cz-color-bg);
    border: 1px solid var(--cz-color-border);
    border-radius: var(--cz-radius-lg);
    padding: var(--cz-space-5) var(--cz-space-4);
    text-align: center;
    box-shadow: var(--cz-shadow);
    transition: transform var(--cz-transition), box-shadow var(--cz-transition);
}

.cz-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cz-shadow-md);
}

.cz-stat-card-num {
    font-family: var(--cz-font-serif);
    font-size: var(--cz-text-3xl);
    color: var(--cz-color-primary);
    display: block;
    line-height: 1.1;
    margin-bottom: var(--cz-space-1);
}

.cz-stat-card-label {
    font-size: var(--cz-text-xs);
    color: var(--cz-color-text-light);
    line-height: 1.4;
}

/* ============================================================
   9. CALLOUT BOXES (variants: answer, tip, warning)
   ============================================================ */
.cz-callout {
    background: var(--cz-color-primary-bg);
    border-left: 4px solid var(--cz-color-primary);
    border-radius: 0 var(--cz-radius) var(--cz-radius) 0;
    padding: var(--cz-space-5) var(--cz-space-6);
    margin: var(--cz-space-6) 0;
}

.cz-callout-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cz-color-primary);
    margin-bottom: var(--cz-space-2);
}

.cz-callout p {
    font-size: var(--cz-text-base);
    line-height: 1.65;
    color: var(--cz-color-text);
}

.cz-callout p strong {
    color: var(--cz-color-heading);
}

/* Variant: answer/quick-answer */
.cz-callout--answer {
    background: var(--cz-color-primary-bg);
    border-left-color: var(--cz-color-primary);
}
.cz-callout--answer .cz-callout-label { color: var(--cz-color-primary); }

/* Variant: tip */
.cz-callout--tip {
    background: var(--cz-color-success-bg);
    border-left-color: var(--cz-color-success);
}
.cz-callout--tip .cz-callout-label { color: var(--cz-color-success); }

/* Variant: warning */
.cz-callout--warning {
    background: var(--cz-color-accent-warm-bg);
    border-left-color: var(--cz-color-accent-warm-border);
}
.cz-callout--warning .cz-callout-label { color: var(--cz-color-accent-warm-text); }

/* ============================================================
   10. DATA TABLES (comparison/severity)
   ============================================================ */
.cz-table-wrap {
    overflow-x: auto;
    margin: var(--cz-space-4) 0 var(--cz-space-2);
    -webkit-overflow-scrolling: touch;
}

.cz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--cz-text-sm);
}

.cz-table thead tr {
    background: var(--cz-color-primary);
    color: #fff;
}

.cz-table thead th {
    padding: var(--cz-space-3) var(--cz-space-4);
    text-align: left;
    font-weight: 600;
    font-size: var(--cz-text-sm);
}

.cz-table thead th:not(:first-child) {
    text-align: right;
}

.cz-table tbody tr:nth-child(even) {
    background: var(--cz-color-bg-tinted);
}

.cz-table tbody tr:hover {
    background: var(--cz-color-primary-bg);
    transition: background var(--cz-transition-fast);
}

.cz-table tbody td {
    padding: var(--cz-space-3) var(--cz-space-4);
    color: var(--cz-color-text);
    border-bottom: 1px solid var(--cz-color-border-light);
    vertical-align: top;
}

.cz-table tbody td:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cz-table tbody tr.cz-table-total td {
    background: var(--cz-color-primary-light);
    color: var(--cz-color-heading);
    border-top: 2px solid var(--cz-color-primary);
    font-weight: 600;
}

.cz-table tbody tr.cz-table-winner td {
    background: var(--cz-color-success-bg);
    color: var(--cz-color-success);
    font-weight: 600;
}

.cz-table-source {
    font-size: var(--cz-text-xs);
    color: var(--cz-color-text-muted);
    font-style: italic;
    margin: var(--cz-space-2) 0 var(--cz-space-6);
}

/* ============================================================
   11. BIG STAT (hero number with caption)
   ============================================================ */
.cz-big-stat {
    text-align: center;
    padding: var(--cz-space-8) var(--cz-space-5);
    background: var(--cz-color-primary-bg);
    border-radius: var(--cz-radius-xl);
    margin: var(--cz-space-6) 0;
}

.cz-big-stat-num {
    font-family: var(--cz-font-serif);
    font-size: var(--cz-text-bignum);
    color: var(--cz-color-primary);
    display: block;
    line-height: 1;
    margin-bottom: var(--cz-space-2);
}

.cz-big-stat-label {
    font-size: var(--cz-text-base);
    color: var(--cz-color-text-light);
}

/* ============================================================
   12. BREAKEVEN BOX (highlighted insight box)
   ============================================================ */
.cz-breakeven-box {
    background: var(--cz-color-accent-warm-bg);
    border: 1px solid var(--cz-color-accent-warm-border);
    border-radius: var(--cz-radius-lg);
    padding: var(--cz-space-5) var(--cz-space-6);
    margin: var(--cz-space-8) 0;
}

.cz-breakeven-box-title {
    font-family: var(--cz-font-serif);
    font-size: var(--cz-text-xl);
    color: var(--cz-color-heading);
    margin-bottom: var(--cz-space-3);
}

.cz-breakeven-box p {
    font-size: var(--cz-text-base);
    line-height: 1.75;
    color: var(--cz-color-text);
    margin-bottom: var(--cz-space-3);
}

.cz-breakeven-box p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   13. WHO GRID (two-column "buy this if / buy that if")
   ============================================================ */
.cz-who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--cz-space-4);
    margin: var(--cz-space-6) 0;
}

.cz-who-card {
    border: 1px solid var(--cz-color-border);
    border-radius: var(--cz-radius-lg);
    padding: var(--cz-space-5);
    background: var(--cz-color-bg);
    transition: transform var(--cz-transition), box-shadow var(--cz-transition);
}

.cz-who-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cz-shadow);
}

.cz-who-card--primary { border-top: 3px solid var(--cz-color-primary); }
.cz-who-card--alt { border-top: 3px solid var(--cz-color-warning); }

.cz-who-card h4 {
    font-family: var(--cz-font-sans);
    font-size: var(--cz-text-base);
    font-weight: 600;
    margin: 0 0 var(--cz-space-3);
    color: var(--cz-color-heading);
}

.cz-who-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cz-who-card ul li {
    font-size: var(--cz-text-sm);
    color: var(--cz-color-text);
    padding: var(--cz-space-2) 0 var(--cz-space-2) var(--cz-space-5);
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid var(--cz-color-border-light);
}

.cz-who-card ul li:last-child { border-bottom: none; }

.cz-who-card--primary ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cz-color-primary);
    font-weight: 700;
}

.cz-who-card--alt ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cz-color-warning);
    font-weight: 700;
}

/* ============================================================
   14. FAQ ITEM
   ============================================================ */
.cz-faq-item {
    /* unified card containing both question pill and answer */
    background: #ffffff;
    border: 1px solid var(--cz-color-border, #e5e7eb);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cz-faq-item:last-child {
    margin-bottom: 0;
}
.cz-faq-item:has(.cz-faq-q.open) {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.cz-faq-q {
    /* button reset - now lives INSIDE .cz-faq-item card, no own border */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: #111827;
    /* layout */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    /* typography */
    font-family: var(--cz-font-sans);
    font-size: var(--cz-text-base);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
/* HOVER state - only when NOT open - inverts to black */
.cz-faq-q:not(.open):hover,
.cz-faq-q:not(.open):focus {
    background: #111827;
    color: #ffffff;
    outline: none;
}
/* OPEN state - red header - persists regardless of hover */
.cz-faq-q.open,
.cz-faq-q.open:hover,
.cz-faq-q.open:focus {
    background: #dc2626;
    color: #ffffff;
    outline: none;
}
.cz-faq-icon {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 1.5em;
    line-height: 1;
    font-weight: 700;
    transition: transform 0.2s ease;
    display: inline-block;
}
.cz-faq-q.open .cz-faq-icon {
    transform: rotate(45deg);
}
.cz-faq-a {
    /* hidden by default - shown when .open via JS */
    display: none;
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    font-size: var(--cz-text-base);
    line-height: 1.75;
    color: var(--cz-color-text);
}
.cz-faq-a.open {
    display: block;
}



/* ============================================================
   15. SECTION DIVIDER
   ============================================================ */
.cz-divider {
    border: none;
    border-top: 1px solid var(--cz-color-border-light);
    margin: var(--cz-space-10) 0;
}

/* ============================================================
   16. EDITORIAL CARD (replaces author byline — honest version)
   ============================================================ */
.cz-editorial-card {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--cz-color-bg-soft);
    border: 1px solid var(--cz-color-border);
    border-radius: var(--cz-radius-lg);
    padding: var(--cz-space-6);
    margin: var(--cz-space-10) 0 var(--cz-space-6);
}

.cz-editorial-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: contain;
    background: #000000;
    padding: 12px;
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cz-editorial-card-text {
    flex: 1 1 240px;
    min-width: 240px;
    align-self: center;
}

@media (max-width: 600px) {
    .cz-editorial-card {
        flex-direction: column;
        text-align: center;
    }
}

.cz-editorial-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cz-color-primary);
    margin-bottom: var(--cz-space-2);
}

.cz-editorial-card-title {
    font-family: var(--cz-font-serif);
    font-size: var(--cz-text-xl);
    color: var(--cz-color-heading);
    margin: 0 0 var(--cz-space-3);
}

.cz-editorial-card-body {
    font-size: var(--cz-text-sm);
    color: var(--cz-color-text-light);
    line-height: 1.65;
    margin-bottom: var(--cz-space-4);
}

.cz-editorial-card-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cz-space-3);
    margin: var(--cz-space-4) 0;
}

.cz-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--cz-space-1);
    background: var(--cz-color-bg);
    border: 1px solid var(--cz-color-border);
    border-radius: 100px;
    padding: var(--cz-space-1) var(--cz-space-3);
    font-size: var(--cz-text-xs);
    color: var(--cz-color-text);
    font-weight: 500;
}

.cz-trust-badge::before {
    content: "✓";
    color: var(--cz-color-success);
    font-weight: 700;
    margin-right: 4px;
}

.cz-editorial-card-meta {
    font-size: var(--cz-text-xs);
    color: var(--cz-color-text-muted);
    border-top: 1px solid var(--cz-color-border-light);
    padding-top: var(--cz-space-3);
    margin-top: var(--cz-space-4);
}

.cz-editorial-card-meta a {
    color: var(--cz-color-primary);
}

/* ============================================================
   17. SOURCES VERIFIED FOOTER
   ============================================================ */
.cz-sources {
    background: var(--cz-color-bg-soft);
    border-radius: var(--cz-radius-lg);
    padding: var(--cz-space-5) var(--cz-space-6);
    margin: var(--cz-space-6) 0;
    font-size: var(--cz-text-sm);
}

.cz-sources-title {
    font-weight: 600;
    color: var(--cz-color-heading);
    margin-bottom: var(--cz-space-3);
    font-size: var(--cz-text-base);
}

.cz-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cz-sources-list li {
    padding: var(--cz-space-2) 0;
    border-bottom: 1px solid var(--cz-color-border-light);
    color: var(--cz-color-text-light);
    line-height: 1.6;
}

.cz-sources-list li:last-child {
    border-bottom: none;
}

.cz-sources-list strong {
    color: var(--cz-color-text);
}

/* ============================================================
   18. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 900px) {
    .cz-hero-strip {
        grid-template-columns: 1fr;
        gap: var(--cz-space-4);
    }
    .cz-hero-strip-item {
        padding-bottom: var(--cz-space-4);
        border-bottom: 1px solid var(--cz-color-border-light);
    }
    .cz-hero-strip-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 600px) {
    .cz-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cz-stat-grid .cz-stat-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .cz-who-grid {
        grid-template-columns: 1fr;
    }
    .cz-table thead th,
    .cz-table tbody td {
        font-size: var(--cz-text-xs);
        padding: var(--cz-space-2) var(--cz-space-3);
    }
    .cz-big-stat-num {
        font-size: 38px;
    }
    .cz-callout,
    .cz-breakeven-box,
    .cz-editorial-card {
        padding: var(--cz-space-4);
    }
}

/* ============================================================
   19. PRINT STYLES (preserve readability)
   ============================================================ */
@media print {
    .cz-article {
        max-width: 100%;
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
    }
    .cz-stat-card,
    .cz-callout,
    .cz-breakeven-box,
    .cz-editorial-card,
    .cz-sources {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    .cz-table {
        font-size: 9pt;
    }
    .cz-stat-card:hover,
    .cz-who-card:hover,
    .cz-table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ============================================================
   20. REDUCED MOTION (accessibility)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .cz-stat-card,
    .cz-who-card,
    .cz-table tbody tr {
        transition: none;
    }
    .cz-stat-card:hover,
    .cz-who-card:hover {
        transform: none;
    }
}

/* End cz-design.css */

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 4 ADDITIONS — Universal Article Template Components v1
   Added: 2026-05-06 to support 15-component architecture
   Components: data-viz, callout--myth, calculator, progress-bar, related-grid
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Data Visualization Wrapper ─────────────────────────────────────────── */
.cz-data-viz {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cz-data-viz-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}
.cz-data-viz-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}
.cz-data-viz-source {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e5e7eb;
  font-style: italic;
}
.cz-data-viz-source a {
  color: #6b7280;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* ─── Myth/Fact Callout Variant ──────────────────────────────────────────── */
.cz-callout--myth {
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border-left: 4px solid #dc2626;
}
.cz-callout--myth .cz-callout-label {
  color: #991b1b;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.cz-callout--myth strong {
  color: #7f1d1d;
}
.cz-callout--fact {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-left: 4px solid #16a34a;
}
.cz-callout--fact .cz-callout-label {
  color: #166534;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ─── Interactive Calculator Shell ───────────────────────────────────────── */
.cz-calculator {
  margin: 2.5rem 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.04);
  overflow: hidden;
}
.cz-calculator__header {
  padding: 1.5rem 1.75rem 1.25rem;
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  color: #ffffff;
}
.cz-calculator__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.375rem 0;
  letter-spacing: -0.015em;
}
.cz-calculator__subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}
.cz-calculator__body {
  padding: 1.75rem;
}
.cz-calculator__field {
  margin-bottom: 1.25rem;
}
.cz-calculator__field:last-child {
  margin-bottom: 0;
}
.cz-calculator__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}
.cz-calculator__hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  font-weight: 400;
}
.cz-calculator__input,
.cz-calculator__select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cz-calculator__input:focus,
.cz-calculator__select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: #ffffff;
}
.cz-calculator__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}
.cz-calculator__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cz-calculator__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  margin-top: 0.5rem;
}
.cz-calculator__btn:hover {
  box-shadow: 0 4px 12px rgba(30,64,175,0.25);
  transform: translateY(-1px);
}
.cz-calculator__btn:active {
  transform: translateY(0);
}
.cz-calculator__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.cz-calculator__btn--secondary {
  background: #ffffff;
  color: #1e40af;
  border: 1.5px solid #1e40af;
}
.cz-calculator__btn--secondary:hover {
  background: #eff6ff;
}
.cz-calculator__result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  text-align: center;
}
.cz-calculator__result-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}
.cz-calculator__result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.cz-calculator__result-detail {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}
.cz-calculator__result-breakdown {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #bfdbfe;
  text-align: left;
}
.cz-calculator__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.cz-calculator__result-row + .cz-calculator__result-row {
  border-top: 1px solid #e0f2fe;
}
.cz-calculator__result-row-label {
  color: #4b5563;
}
.cz-calculator__result-row-value {
  color: #111827;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cz-calculator__disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e5e7eb;
  line-height: 1.5;
  font-style: italic;
}

/* ─── Progress Bar (used inside calculator + standalone) ─────────────────── */
.cz-progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.cz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cz-progress-fill--success {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
.cz-progress-fill--warning {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.cz-progress-fill--danger {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
.cz-progress-bar--lg {
  height: 12px;
  border-radius: 6px;
}
.cz-progress-bar--lg .cz-progress-fill {
  border-radius: 6px;
}
.cz-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8125rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}
.cz-progress-label-value {
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

/* ─── Related Guides Grid ────────────────────────────────────────────────── */
.cz-related {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}
.cz-related-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.01em;
}
.cz-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.cz-related h4 {
  margin-bottom: 0.5rem;
}
.cz-related-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.cz-related-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59,130,246,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.cz-related-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e40af;
  margin: 0 0 0.5rem 0;
}
.cz-related-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
}
.cz-related-card-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  flex-grow: 1;
}
.cz-related-card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cz-related-card-meta::after {
  content: "→";
  margin-left: auto;
  color: #3b82f6;
  font-weight: 700;
  transition: transform 0.15s ease;
}
.cz-related-card:hover .cz-related-card-meta::after {
  transform: translateX(3px);
}

/* ─── Mobile Responsive Adjustments for New Components ───────────────────── */
@media (max-width: 640px) {
  .cz-calculator__header,
  .cz-calculator__body {
    padding: 1.25rem;
  }
  .cz-calculator__result-value {
    font-size: 2rem;
  }
  .cz-calculator__row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .cz-related-grid {
    grid-template-columns: 1fr;
  }
  .cz-data-viz {
    padding: 1.25rem;
  }
}

/* ─── Print Styles ───────────────────────────────────────────────────────── */
@media print {
  .cz-calculator__btn,
  .cz-calculator__input,
  .cz-calculator__select {
    display: none;
  }
  .cz-calculator__result {
    background: #ffffff !important;
    border: 1px solid #000;
  }
  .cz-related-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================================
   PHASE 7 ADDITIONS - TABLE STYLING (Article 16 + future articles)
   ============================================================
   Style data tables inside .cz-article with:
   - Header row: dark navy bg, white text
   - Body rows: zebra stripe (white / light grey)
   - Row hover: subtle blue tint
   - Rounded corners + clean borders + responsive
   ============================================================ */
.cz-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0 2rem 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cz-article table thead {
    background: #1e293b;
}
.cz-article table thead th {
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}
.cz-article table tbody tr:nth-child(even) {
    background: #f9fafb;
}
.cz-article table tbody tr:nth-child(odd) {
    background: #ffffff;
}
.cz-article table tbody tr:hover {
    background: #eff6ff;
    transition: background-color 0.15s ease;
}
.cz-article table tbody td {
    padding: 0.875rem 1rem;
    border-top: 1px solid #f3f4f6;
    color: #111827;
    vertical-align: top;
}
.cz-article table tbody td:first-child {
    font-weight: 600;
    color: #1e293b;
}
.cz-article table tbody tr:first-child td {
    border-top: none;
}
/* Mobile: scrollable wrapper */
@media (max-width: 640px) {
    .cz-article table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cz-article table thead th,
    .cz-article table tbody td {
        padding: 0.625rem 0.75rem;
        white-space: nowrap;
    }
}
/* END PHASE 7 TABLE ADDITIONS */

/* PHASE 7 - TABLE STYLING */
.cz-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0 2rem 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cz-article table thead {
    background: #1e293b;
}
.cz-article table thead th {
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}
.cz-article table tbody tr:nth-child(even) { background: #f9fafb; }
.cz-article table tbody tr:nth-child(odd) { background: #ffffff; }
.cz-article table tbody tr:hover {
    background: #eff6ff;
    transition: background-color 0.15s ease;
}
.cz-article table tbody td {
    padding: 0.875rem 1rem;
    border-top: 1px solid #f3f4f6;
    color: #111827;
    vertical-align: top;
}
.cz-article table tbody td:first-child {
    font-weight: 600;
    color: #1e293b;
}
.cz-article table tbody tr:first-child td { border-top: none; }
@media (max-width: 640px) {
    .cz-article table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
    }
    .cz-article table thead th,
    .cz-article table tbody td {
        padding: 0.625rem 0.75rem;
        white-space: nowrap;
    }
}
/* END PHASE 7 TABLE */

/* ============================================================
   PHASE 7 ADDITIONS - PILL STYLING FOR BARE LINKS IN RELATED GRID
   ============================================================
   Article 16 v3 used pill-styled bare anchors in .cz-related-grid,
   not .cz-related-card wrappers. Style bare anchors as pills.
   ============================================================ */
.cz-related-grid > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.cz-related-grid > a:hover,
.cz-related-grid > a:focus {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    text-decoration: none;
    transform: translateY(-1px);
}
/* END PHASE 7 PILL ADDITIONS */

/* ─── END PHASE 4 ADDITIONS ──────────────────────────────────────────────── */
