/* ===== CSS Variables ===== */
/* Dark theme (default) */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    --border-color: #27272a;
    --border-light: #3f3f46;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Header background (used for backdrop blur) */
    --header-bg: rgba(10, 10, 10, 0.8);

    /* Chart colors (mirrored in JS) */
    --chart-tooltip-bg: #1a1a1a;
    --chart-tooltip-title: #ffffff;
    --chart-tooltip-body: #a1a1aa;
    --chart-point-border: #0a0a0a;

    /* Accent backgrounds for stat icons */
    --accent-primary-bg: rgba(59, 130, 246, 0.1);
    --accent-success-bg: rgba(34, 197, 94, 0.1);
    --accent-muted-bg: rgba(113, 113, 122, 0.1);
    --accent-warning-bg: rgba(245, 158, 11, 0.1);

    /* Note backgrounds */
    --note-bg: rgba(255, 255, 255, 0.03);
    --scope-note-bg: rgba(59, 130, 246, 0.08);
    --scope-note-border: rgba(59, 130, 246, 0.2);
    --hero-label-bg: rgba(59, 130, 246, 0.1);
    --hero-label-border: rgba(59, 130, 246, 0.2);
}

/* Light theme (auto-detected via system preference) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f8fafc;
        --bg-card: #ffffff;
        --bg-card-hover: #f1f5f9;

        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #64748b;

        /* Slightly deeper accent colors for better contrast on light bg */
        --accent-primary: #2563eb;
        --accent-secondary: #7c3aed;
        --accent-success: #16a34a;
        --accent-warning: #d97706;
        --accent-danger: #dc2626;

        --border-color: #e2e8f0;
        --border-light: #cbd5e1;

        /* Lighter shadows for light theme */
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

        /* Header background (used for backdrop blur) */
        --header-bg: rgba(255, 255, 255, 0.85);

        /* Chart colors */
        --chart-tooltip-bg: #ffffff;
        --chart-tooltip-title: #0f172a;
        --chart-tooltip-body: #475569;
        --chart-point-border: #ffffff;

        /* Accent backgrounds for stat icons */
        --accent-primary-bg: rgba(37, 99, 235, 0.1);
        --accent-success-bg: rgba(22, 163, 74, 0.1);
        --accent-muted-bg: rgba(100, 116, 139, 0.1);
        --accent-warning-bg: rgba(217, 119, 6, 0.1);

        /* Note backgrounds */
        --note-bg: rgba(0, 0, 0, 0.02);
        --scope-note-bg: rgba(37, 99, 235, 0.06);
        --scope-note-border: rgba(37, 99, 235, 0.15);
        --hero-label-bg: rgba(37, 99, 235, 0.08);
        --hero-label-border: rgba(37, 99, 235, 0.15);
    }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-primary);
}

/* ===== Accessibility Utilities ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    color: var(--accent-primary);
}

.logo-text .highlight {
    color: var(--accent-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.github {
    display: flex;
    align-items: center;
}

/* ===== Hero ===== */
.hero {
    padding: 100px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--hero-label-bg);
    border: 1px solid var(--hero-label-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-subtitle .highlight-number {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--accent-primary) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-detail {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.7;
    opacity: 0.85;
}

/* Hero Streak Card */
.hero-streak-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.hero-streak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hero-streak-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-streak-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-success);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.hero-streak-value {
    font-size: clamp(36px, 8vw, 52px);
    font-weight: 700;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--accent-success) 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-streak-sublabel {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-streak-progress {
    position: relative;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: visible;
    margin-bottom: 8px;
}

.hero-streak-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-success), #4ade80);
    border-radius: 6px;
    transition: width 1s ease-out;
    width: 0%;
}

.hero-streak-target {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.hero-streak-context {
    font-size: 12px;
    color: var(--text-muted);
}

/* Exceeded human level state */
.hero-streak-card.exceeded-human-level {
    border-color: var(--accent-success);
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.15);
}

.hero-streak-bar.exceeded {
    background: linear-gradient(90deg, var(--accent-success), #22c55e, #4ade80);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.5); }
}

.hero-streak-target.exceeded {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(74, 222, 128, 0.15) 100%);
    border-color: var(--accent-success);
    color: var(--accent-success);
    font-weight: 700;
}

.safety-highlight {
    color: var(--accent-success);
    font-weight: 600;
}

/* ===== Section Header with Share Icons ===== */
.section-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-icon:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.share-icon svg {
    flex-shrink: 0;
}

/* ===== Fleet Toggle ===== */
.section-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.fleet-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fleet-toggle-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fleet-toggle-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.fleet-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.fleet-toggle-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

/* ===== Incident Type Filters ===== */
.incident-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.filter-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-checkbox:hover .filter-label {
    color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"]:checked + .filter-label {
    color: var(--text-primary);
}

/* ===== Metrics Cards ===== */
.metrics {
    padding: 40px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.metric-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.metric-value.negative {
    color: var(--accent-danger);
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.metric-change.positive {
    color: var(--accent-success);
}

.metric-change.negative {
    color: var(--accent-danger);
}

.metric-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Chart Section ===== */
.chart-section {
    padding: 40px 0;
}

.chart-section.secondary {
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Desktop layout: chart + metrics side by side */
.chart-metrics-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.chart-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.metrics-side {
    width: 280px;
    flex-shrink: 0;
}

.metrics-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metrics-grid-vertical .metric-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 16px 20px;
}

.metrics-grid-vertical .metric-card .metric-value {
    font-size: 28px;
    margin-bottom: 4px;
}

.metrics-grid-vertical .metric-card .metric-label {
    margin-bottom: 4px;
}

/* Mobile: stack chart and metrics */
@media (max-width: 1024px) {
    .chart-metrics-layout {
        flex-direction: column;
    }

    .metrics-side {
        width: 100%;
    }

    .metrics-grid-vertical {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        height: auto;
    }
}

@media (max-width: 500px) {
    .metrics-grid-vertical {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: 340px;
}

/* Desktop: make chart container fill remaining space after legend */
@media (min-width: 1025px) {
    .chart-container {
        flex: 1;
        height: auto;
        min-height: 260px;
    }

    .chart-legend {
        flex-shrink: 0;
    }
}

.chart-container.small {
    height: 300px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legend-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legend-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color, #e2e8f0);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.hollow {
    background: transparent;
    border: 2px solid;
}

.legend-line {
    width: 24px;
    height: 3px;
    border-radius: 2px;
}

.legend-line.dashed {
    background: repeating-linear-gradient(
        90deg,
        var(--dash-color, var(--accent-success)),
        var(--dash-color, var(--accent-success)) 4px,
        transparent 4px,
        transparent 8px
    ) !important;
}

/* ===== Trend Stats ===== */
.trend-stats {
    padding: 40px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary-bg);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Data Table ===== */
.data-table-section {
    padding: 60px 0;
}

.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table td {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.data-table td:first-child {
    color: var(--text-muted);
}

.data-table td:last-child {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ===== Comparison Section ===== */
.comparison {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comparison-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparison-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-label .company {
    font-size: 14px;
    font-weight: 500;
}

.comparison-label .value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

.comparison-bar-bg {
    height: 12px;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
}

.comparison-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.comparison-bar.tesla {
    background: linear-gradient(90deg, var(--accent-danger), #f97316);
}

.comparison-bar.human {
    background: linear-gradient(90deg, var(--accent-success), #4ade80);
}

.comparison-bar.waymo {
    background: linear-gradient(90deg, var(--accent-primary), #60a5fa);
}

.comparison-bar.insurance {
    background: linear-gradient(90deg, #a855f7, #c084fc);
}

.comparison-bar.current {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* ===== Benchmark Explanation Section ===== */
.benchmark-explanation {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 800px) {
    .benchmark-grid {
        grid-template-columns: 1fr;
    }
}

.benchmark-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.benchmark-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.benchmark-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benchmark-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.benchmark-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.benchmark-body {
    padding: 20px;
}

.benchmark-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.benchmark-body p:last-child {
    margin-bottom: 0;
}

.benchmark-body strong {
    color: var(--text-primary);
}

.benchmark-note {
    padding: 12px;
    background: var(--note-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    font-style: italic;
}

.benchmark-comparison-note {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    align-items: flex-start;
}

.benchmark-comparison-note svg {
    flex-shrink: 0;
    color: var(--accent-warning);
}

.benchmark-comparison-note div {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benchmark-comparison-note strong {
    color: var(--text-primary);
}

.benchmark-comparison-note em {
    color: var(--accent-warning);
    font-style: normal;
}

/* ===== Data Scope Section ===== */
.data-scope {
    padding: 60px 0;
    background: var(--bg-primary);
}

.scope-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .scope-content {
        grid-template-columns: 1fr;
    }
}

.scope-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s ease;
}

.scope-card:hover {
    border-color: var(--border-light);
}

.scope-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.scope-icon.austin {
    background: var(--accent-success-bg);
    color: var(--accent-success);
}

.scope-icon.bayarea {
    background: var(--accent-muted-bg);
    color: var(--text-muted);
}

.scope-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.scope-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.scope-badge.active {
    background: var(--accent-success-bg);
    color: var(--accent-success);
}

.scope-badge.inactive {
    background: var(--accent-muted-bg);
    color: var(--text-muted);
}

.scope-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.scope-info p:last-child {
    margin-bottom: 0;
}

.scope-detail {
    font-size: 13px !important;
    color: var(--text-muted) !important;
}

.scope-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--scope-note-bg);
    border: 1px solid var(--scope-note-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.scope-note svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

/* ===== Methodology ===== */
.methodology {
    padding: 60px 0;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.method-number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.method-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.method-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Safety-Driver Removal Inference Section ===== */
.inference-section {
    padding: 60px 0;
}

.inference-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 720px;
    margin: 0 auto;
}

.inference-content > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.inference-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.inference-list li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 8px 0 8px 24px;
    position: relative;
}

.inference-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.inference-distinction {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 8px;
    font-style: italic;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    padding-right: 1rem;
}

.faq-question:hover h3 {
    color: var(--accent-primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--text-primary);
}

.faq-answer ul {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-info .disclaimer {
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links .divider {
    color: var(--border-color);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card,
.stat-card,
.method-card {
    animation: fadeInUp 0.5s ease forwards;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }

    .nav {
        gap: 20px;
    }

    .hero {
        padding: 100px 0 32px;
    }

    .hero-title {
        font-size: 26px;
        letter-spacing: -0.5px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-title br.desktop-only {
        display: none;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero-detail {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .hero-streak-card {
        padding: 20px 16px;
    }

    .hero-streak-value {
        font-size: 44px;
    }

    .section-header-row {
        flex-wrap: wrap;
    }

    .section-header-controls {
        flex-wrap: wrap;
    }

    .fleet-toggle-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .incident-filters {
        gap: 8px;
    }

    .filter-label {
        font-size: 0.75rem;
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .legend-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .legend-divider {
        width: 40px;
        height: 1px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Small phone hero optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 88px 0 24px;
    }

    .hero-label {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .hero-detail {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .hero-streak-value {
        font-size: 38px;
    }

    .hero-streak-sublabel {
        font-size: 13px;
    }
}

/* ===== Creator Section ===== */
.creator-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.creator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .creator-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.creator-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.social-link.x:hover {
    border-color: #1da1f2;
    color: var(--text-primary);
}

.social-link.substack:hover {
    border-color: #ff6719;
    color: var(--text-primary);
}

.related-reading h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.article-link:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.article-link svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

/* ===== Subscribe Button (Header) ===== */
.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.subscribe-btn svg {
    flex-shrink: 0;
}

/* ===== Subscribe Modal Overlay ===== */
.subscribe-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.subscribe-overlay.open {
    display: flex;
}

/* ===== Subscribe Modal ===== */
.subscribe-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    text-align: center;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.subscribe-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.subscribe-close:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-secondary);
}

.subscribe-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
    border-radius: 14px;
    margin-bottom: 16px;
}

.subscribe-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.subscribe-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ===== Subscribe Form ===== */
.subscribe-input-row {
    display: flex;
    gap: 10px;
}

.subscribe-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.subscribe-input::placeholder {
    color: var(--text-muted);
}

.subscribe-input:focus {
    border-color: var(--accent-primary);
}

.subscribe-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 110px;
}

.subscribe-submit:hover {
    background: #2563eb;
}

.subscribe-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner animation */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Subscribe Success / Error States ===== */
.subscribe-success {
    padding: 12px 0;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-success-bg);
    color: var(--accent-success);
    border-radius: 50%;
    margin-bottom: 12px;
}

.success-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-success);
}

.subscribe-error {
    padding: 12px 0;
}

.error-text {
    font-size: 14px;
    color: var(--accent-danger);
}

.subscribe-footer-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Subscribe Modal Responsive ===== */
@media (max-width: 500px) {
    .subscribe-modal {
        padding: 28px 20px 24px;
    }

    .subscribe-input-row {
        flex-direction: column;
    }

    .subscribe-submit {
        width: 100%;
    }
}

/* ==========================================================================
   EXPANSION PAGE STYLES
   ========================================================================== */

/* Active nav link highlight */
.nav-link.active {
    color: var(--accent-primary);
}

/* ===== Expansion Hero ===== */
.expansion-hero {
    text-align: center;
    padding: 100px 24px 48px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.expansion-hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expansion-hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 2rem;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

/* ===== Map Section ===== */
.expansion-map {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.map-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

#city-map {
    height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

/* ===== Filter Buttons ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* ===== City Table Section ===== */
.city-table-section {
    padding: 48px 0;
    background: var(--bg-primary);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.live-unsupervised {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-success);
}

.status-badge.live-supervised {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.status-badge.announced {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}

.status-badge.testing {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

/* Expansion page table adjustments */
#city-status-table td {
    font-family: var(--font-sans);
}

#city-status-table td:first-child {
    color: var(--text-primary);
}

#city-status-table td:last-child {
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== Timeline Section ===== */
.timeline-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-secondary);
}

.timeline-item.past::before {
    background: var(--accent-success);
}

.timeline-item.future::before {
    background: var(--border-color);
    border: 2px solid var(--accent-primary);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Expansion Comparison Section ===== */
.expansion-comparison-section {
    padding: 48px 0;
    background: var(--bg-primary);
}

.comparison-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.company-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.company-column h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.company-column h3 svg {
    color: var(--accent-primary);
}

.company-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-column li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.company-column li:last-child {
    border-bottom: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.live {
    background: var(--accent-success);
}

.status-dot.announced {
    background: var(--accent-primary);
}

.planned-note {
    color: var(--text-muted) !important;
    font-style: italic;
    padding-left: 16px !important;
}

/* ===== Expansion CTA (for homepage) ===== */
.expansion-cta {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.expansion-cta h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.expansion-cta p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== Expansion Page Responsive ===== */
@media (max-width: 768px) {
    .expansion-hero {
        padding: 100px 20px 32px;
    }

    .stats-row {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .comparison-grid-two-col {
        grid-template-columns: 1fr;
    }

    #city-map {
        height: 300px;
    }

    #city-status-table th,
    #city-status-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-item {
        padding-left: 24px;
    }

    .timeline-item::before {
        left: -29px;
    }
}

/* ==========================================================================
   AEO (Answer Engine Optimization) SECTIONS
   ========================================================================== */

/* ===== AEO Summary Section ===== */
.aeo-summary-section {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.aeo-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.aeo-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.aeo-summary-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.aeo-datestamp {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--accent-primary-bg);
    border: 1px solid var(--scope-note-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.aeo-summary-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.aeo-summary-content strong {
    color: var(--text-primary);
}

/* ===== Key Insights Section ===== */
.key-insights-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.insights-table td {
    font-family: var(--font-sans) !important;
}

.insights-table td:first-child {
    font-family: var(--font-mono) !important;
    color: var(--accent-primary) !important;
    font-weight: 600;
    width: 40px;
}

.insights-table td:nth-child(2) {
    font-weight: 600;
    color: var(--text-primary) !important;
}

.insights-table td:nth-child(3) {
    font-family: var(--font-mono) !important;
    font-size: 13px;
}

.insights-table td:last-child {
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
    font-size: 13px;
}

/* ===== Myths / Public Opinion Section ===== */
.myths-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.myths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 800px) {
    .myths-grid {
        grid-template-columns: 1fr;
    }
}

.myth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.myth-card:hover {
    border-color: var(--border-light);
}

.myth-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.myth-label {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.myth-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
}

.myth-rebuttal {
    padding: 20px 24px;
}

.rebuttal-label {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-success-bg);
    color: var(--accent-success);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.myth-rebuttal p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.myth-rebuttal strong {
    color: var(--text-primary);
}

/* ===== Share Data Section ===== */
.share-data-section {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.share-data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.share-data-content {
    padding: 32px;
    text-align: center;
}

.share-data-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.share-data-content > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.share-data-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.share-stat {
    text-align: center;
}

.share-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.share-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-data-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-share-x,
.btn-share-reddit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-share-x {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-share-x:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--bg-primary);
}

.btn-share-reddit {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-share-reddit:hover {
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-2px);
}

.share-data-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--scope-note-bg);
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.share-data-note svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

/* ===== Share Data Section Responsive ===== */
@media (max-width: 600px) {
    .share-data-stats {
        gap: 24px;
    }

    .share-stat-value {
        font-size: 24px;
    }

    .share-data-content {
        padding: 24px 20px;
    }

    .share-data-note {
        padding: 14px 20px;
    }
}

@media (max-width: 500px) {
    .share-data-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-share-x,
    .btn-share-reddit {
        justify-content: center;
    }
}

/* ===== Parity Projection Section ===== */
.parity-projection-section {
    padding: 32px 0;
    background: var(--bg-primary);
}

.parity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 720px;
    margin: 0 auto;
}

.parity-content {
    padding: 28px 32px;
}

.parity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.parity-header svg {
    color: var(--accent-primary);
    opacity: 0.7;
}

.parity-title {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.parity-title strong {
    color: var(--text-primary);
}

.parity-detail {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.parity-detail strong {
    color: var(--text-secondary);
}

.parity-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.parity-robinhood-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent-success);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.parity-robinhood-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.parity-robinhood-link svg {
    flex-shrink: 0;
}

.parity-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 600px) {
    .parity-content {
        padding: 20px;
    }

    .parity-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ===== FAQ Page Specific Styles ===== */

/* FAQ Hero Section */
.faq-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.faq-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero .hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.faq-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.faq-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Stats Banner */
.faq-stats-banner {
    padding: 24px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.faq-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.faq-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.faq-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Table of Contents */
.faq-toc {
    padding: 48px 0;
}

.faq-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-toc-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-toc-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-toc-icon {
    font-size: 1.5rem;
}

.faq-toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toc-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* FAQ Category Sections */
.faq-category {
    padding: 64px 0;
}

.faq-category-alt {
    background: var(--bg-secondary);
}

.faq-category-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-category-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-category-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Grid (reuse existing styles but with max-width) */
.faq-category .faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Table Styling */
.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.faq-table th,
.faq-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.faq-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.faq-table td {
    color: var(--text-secondary);
}

.faq-table tr:last-child td {
    border-bottom: none;
}

/* FAQ CTA Section */
.faq-cta {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.faq-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.faq-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.faq-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* FAQ Answer Enhancements */
.faq-answer code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-primary);
}

.faq-answer ol {
    padding-left: 24px;
    margin: 12px 0;
}

.faq-answer ol li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* FAQ Page Responsive */
@media (max-width: 768px) {
    .faq-hero {
        padding: 120px 0 48px;
    }

    .faq-stats-row {
        gap: 24px;
    }

    .faq-stat-value {
        font-size: 1.25rem;
    }

    .faq-toc {
        padding: 32px 0;
    }

    .faq-toc-grid {
        grid-template-columns: 1fr;
    }

    .faq-category {
        padding: 48px 0;
    }

    .faq-category-header h2 {
        font-size: 1.5rem;
    }

    .faq-cta {
        padding: 48px 0;
    }

    .faq-cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-stats-row {
        flex-direction: column;
        gap: 16px;
    }

    .faq-stat {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: var(--bg-primary);
        border-radius: var(--radius-md);
    }

    .faq-table {
        font-size: 0.8rem;
    }

    .faq-table th,
    .faq-table td {
        padding: 8px 12px;
    }
}

/* ==========================================================================
   CHART SCALE TOGGLE (Task 5)
   ========================================================================== */

.chart-scale-toggle {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 12px;
    align-self: center;
}

.scale-toggle-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.scale-toggle-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.scale-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.scale-toggle-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

/* ==========================================================================
   CHART READING EXPLAINER (Task 5)
   ========================================================================== */

.chart-explainer-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.explainer-collapsible {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.explainer-summary {
    cursor: pointer;
    list-style: none;
    padding: 28px 32px;
    position: relative;
    user-select: none;
}

.explainer-summary::-webkit-details-marker {
    display: none;
}

.explainer-summary::after {
    content: '';
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

.explainer-collapsible[open] > .explainer-summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.explainer-summary h2 {
    margin-bottom: 4px;
}

.explainer-summary p {
    margin-bottom: 0;
}

.explainer-toggle-hint {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.explainer-collapsible[open] .explainer-toggle-hint {
    display: none;
}

.explainer-collapsible .explainer-grid {
    padding: 0 32px 28px;
}

.explainer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 700px) {
    .explainer-grid {
        grid-template-columns: 1fr;
    }
}

.explainer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
}

.explainer-card:hover {
    border-color: var(--border-light);
}

.explainer-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary-bg);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.explainer-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.explainer-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   INCIDENT COMPOSITION BREAKDOWN (Task 7)
   ========================================================================== */

.incident-composition-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.composition-table td {
    font-size: 13px;
}

.speed-low {
    color: var(--accent-success) !important;
    font-weight: 600;
}

.severity-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.severity-badge.minor {
    background: var(--accent-success-bg);
    color: var(--accent-success);
}

.severity-badge.injury {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.fault-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.fault-badge.unknown {
    background: var(--accent-muted-bg);
    color: var(--text-muted);
}

.fault-badge.not-at-fault {
    background: var(--accent-success-bg);
    color: var(--accent-success);
}

.composition-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 700px) {
    .composition-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

.composition-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.composition-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.composition-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.composition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .composition-grid {
        grid-template-columns: 1fr;
    }
}

.composition-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.composition-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.composition-card .composition-table {
    margin: 0;
}

.composition-card .composition-table th,
.composition-card .composition-table td {
    padding: 8px 12px;
    font-size: 13px;
}

/* ==========================================================================
   FLEET SIZE CALCULATOR (Task 10)
   ========================================================================== */

.calculator-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.calc-input-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.calc-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calc-input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.calc-current-value {
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 12px;
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .calc-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

.calc-result-item {
    text-align: center;
}

.calc-result-item.highlight {
    grid-column: span 1;
}

.calc-result-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.calc-result-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.calc-result-item.highlight .calc-result-value {
    color: var(--accent-success);
}

.calc-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--scope-note-bg);
    border: 1px solid var(--scope-note-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.calc-note svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    margin-top: 2px;
}

/* ==========================================================================
   DOWNLOADABLE DATASET (Task 16)
   ========================================================================== */

.dataset-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.dataset-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.dataset-formats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dataset-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dataset-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dataset-fields h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.dataset-field-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .dataset-field-list {
        grid-template-columns: 1fr;
    }
}

.dataset-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.dataset-field code {
    padding: 2px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    white-space: nowrap;
}

.dataset-source {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ==========================================================================
   METHODOLOGY HUB PAGE STYLES (Task 13)
   ========================================================================== */

.methodology-toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    line-height: 1.3;
}

.toc-link:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.toc-number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    width: 24px;
    flex-shrink: 0;
}

.methodology-hub-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.methodology-hub-section:last-child {
    border-bottom: none;
}

.methodology-hub-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.methodology-hub-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.methodology-hub-section ul,
.methodology-hub-section ol {
    color: var(--text-secondary);
    margin: 12px 0 16px 24px;
    line-height: 1.7;
}

.methodology-hub-section li {
    margin-bottom: 8px;
}

.methodology-hub-section code {
    padding: 2px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
}

.limitation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.limitation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.limitation-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.limitation-card p {
    font-size: 13px;
    margin-bottom: 0;
}

/* ==========================================================================
   KEYWORD PAGE STYLES (Task 15)
   ========================================================================== */

.keyword-hero {
    text-align: center;
    padding: 100px 24px 48px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.keyword-hero h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.keyword-hero p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.keyword-content {
    padding: 48px 0;
}

.keyword-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.keyword-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.keyword-content ul,
.keyword-content ol {
    color: var(--text-secondary);
    margin: 12px 0 16px 24px;
    line-height: 1.7;
}

.keyword-content li {
    margin-bottom: 8px;
}

.keyword-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.keyword-cta:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 1.25rem 1.5rem;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent.visible {
    display: block;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.cookie-consent-text a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent-primary);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-consent-buttons {
        justify-content: center;
    }
}
