/* ============================================
   FAULT LINE - Light Theme
   ============================================ */

:root {
    /* Core palette - Clean light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --bg-card: #ffffff;
    --bg-elevated: #f8f9fa;

    /* Text hierarchy */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #9aa0a6;
    --text-accent: #202124;

    /* Risk spectrum - grayscale with minimal color */
    --risk-critical: #202124;
    --risk-high: #5f6368;
    --risk-medium: #9aa0a6;
    --risk-low: #9aa0a6;
    --risk-minimal: #dadce0;

    /* Accent colors - minimal */
    --accent-primary: #202124;
    --accent-secondary: #5f6368;
    --accent-warning: #5f6368;
    --accent-success: #5f6368;

    /* Lab colors - distinct colors only for differentiating labs */
    --lab-openai: #10a37f;
    --lab-anthropic: #d4a574;
    --lab-deepmind: #4285f4;
    --lab-xai: #202124;
    --lab-meta: #0668e1;

    /* Dimensions - grayscale */
    --dim-compute: #202124;
    --dim-cloud: #5f6368;
    --dim-policy: #80868b;
    --dim-demand: #9aa0a6;
    --dim-resilience: #bdc1c6;
    --dim-societal: #6d4c41;

    /* Borders */
    --border-subtle: #e8eaed;
    --border-medium: #dadce0;
    --border-strong: #bdc1c6;

    /* Typography */
    --font-mono: 'Open Sans', sans-serif;
    --font-sans: 'Open Sans', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

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

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

/* Noise texture overlay - disabled for light theme */
.noise-overlay {
    display: none;
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.logo-text {
    color: var(--text-secondary);
}

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

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav {
    display: flex;
    gap: var(--space-xs);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.nav-link.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.header-right {
    display: flex;
    align-items: center;
}

.last-updated {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-mono);
}

.update-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.update-time {
    font-size: 0.8rem;
    color: var(--accent-success);
    cursor: help;
}

/* Dashboard Main */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Overview Section */
.overview-section {
    margin-bottom: calc(-1 * var(--space-md));
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: var(--space-lg);
    border-left: 3px solid var(--accent-primary);
}

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.overview-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.overview-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.overview-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.overview-text strong {
    color: var(--accent-primary);
}

/* Summary Strip */
.summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.summary-card.highlight {
    border-color: var(--border-strong);
    background: var(--bg-secondary);
}

.summary-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.summary-card.highlight .summary-value {
    color: var(--risk-high);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.title-icon {
    color: var(--accent-primary);
    font-size: 1rem;
}

.section-controls {
    display: flex;
    gap: var(--space-xs);
}

.control-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-btn:hover {
    border-color: var(--border-medium);
    color: var(--text-secondary);
}

.control-btn.active {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.view-all-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Rankings Table */
.rankings-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.ranking-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 2fr 120px;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.ranking-row:hover {
    background: var(--bg-elevated);
}

.risk-level-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.risk-level-badge.score-critical {
    background: rgba(32, 33, 36, 0.1);
    color: var(--risk-critical);
}

.risk-level-badge.score-high {
    background: rgba(95, 99, 104, 0.1);
    color: var(--risk-high);
}

.risk-level-badge.score-medium {
    background: rgba(154, 160, 166, 0.15);
    color: var(--risk-medium);
}

.risk-level-badge.score-low {
    background: rgba(154, 160, 166, 0.08);
    color: var(--risk-low);
}

.risk-level-badge.score-minimal {
    background: rgba(218, 220, 224, 0.15);
    color: var(--risk-minimal);
}

.lab-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.lab-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.lab-details {
    display: flex;
    flex-direction: column;
}

.lab-name {
    font-weight: 600;
    font-size: 1rem;
}

.lab-hq {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.score-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.score-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.score-max {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.score-value.score-critical { color: var(--risk-critical); }
.score-value.score-high { color: var(--risk-high); }
.score-value.score-medium { color: var(--risk-medium); }
.score-value.score-low { color: var(--risk-low); }
.score-value.score-minimal { color: var(--risk-minimal); }

.dimension-bars {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.dim-bar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.dim-bar-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dim-bar-track {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.dim-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width var(--transition-medium);
}

.dim-bar-fill.compute { background: var(--text-primary); }
.dim-bar-fill.cloud { background: var(--text-primary); }
.dim-bar-fill.policy { background: var(--text-primary); }
.dim-bar-fill.demand { background: var(--text-primary); }
.dim-bar-fill.resilience { background: var(--text-primary); }
.dim-bar-fill.societal { background: var(--dim-societal); }
.dim-bar-fill.talent { background: var(--accent-secondary); }

/* Dual score display (binary + weighted) */
.score-dual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.score-primary {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.score-weighted {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-weighted-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.score-weighted-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lab detail weighted score */
.lab-score-weighted {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 2px;
}

.lab-weighted-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lab-weighted-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    justify-self: end;
}

.trend-indicator.improving {
    color: #188038;
    background: rgba(24, 128, 56, 0.08);
}

.trend-indicator.worsening {
    color: #c5221f;
    background: rgba(197, 34, 31, 0.08);
}

.trend-indicator.stable {
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

.trend-icon {
    font-size: 0.9rem;
}

/* Dimensions Grid */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.dimension-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    overflow: hidden;
}

.dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.dimension-card.compute::before { background: var(--text-primary); }
.dimension-card.cloud::before { background: var(--text-secondary); }
.dimension-card.policy::before { background: var(--text-muted); }
.dimension-card.demand::before { background: var(--border-strong); }
.dimension-card.resilience::before { background: var(--border-medium); }
.dimension-card.societalimpact::before { background: var(--dim-societal); }

.dimension-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dimension-icon {
    font-size: 1.5rem;
}

.dimension-score {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dimension-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.dimension-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.event-card {
    display: grid;
    grid-template-columns: 100px 80px 1fr auto;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.event-card:hover {
    border-color: var(--border-medium);
    background: var(--bg-elevated);
}

.event-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-lab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    font-weight: 500;
}

.event-lab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-icon-sm {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.event-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.event-summary {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.event-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.event-dimension {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-dimension.compute_chips { background: var(--bg-tertiary); color: var(--text-secondary); }
.event-dimension.cloud { background: var(--bg-tertiary); color: var(--text-secondary); }
.event-dimension.policy { background: var(--bg-tertiary); color: var(--text-secondary); }
.event-dimension.demand { background: var(--bg-tertiary); color: var(--text-secondary); }
.event-dimension.resilience { background: var(--bg-tertiary); color: var(--text-secondary); }
.event-dimension.societal_impact { background: var(--bg-tertiary); color: var(--text-secondary); }

.event-source {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.event-impact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

.event-impact.positive {
    background: rgba(197, 34, 31, 0.1);
    color: #c5221f;
}

.event-impact.negative {
    background: rgba(24, 128, 56, 0.1);
    color: #188038;
}

.event-impact.neutral {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.footer-link {
    color: var(--text-muted);
}

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

/* Lab Detail Page Styles */
.lab-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.lab-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
}

.lab-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-icon-lg {
    width: 64px;
    height: 64px;
    color: var(--accent-primary);
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    vertical-align: middle;
    margin-right: 4px;
}

.status-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.status-icon.warning {
    color: var(--risk-high);
}

.evidence-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    vertical-align: middle;
    margin-right: 4px;
}

.lab-header-content {
    flex: 1;
}

.lab-header-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.lab-header-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.lab-header-desc {
    color: var(--text-secondary);
    max-width: 600px;
}

.lab-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: 12px;
    min-width: 150px;
}

.lab-score-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.lab-score-value {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
}

.lab-score-trend {
    margin-top: var(--space-sm);
}

.checklist-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.checklist-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.checklist-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.checklist-item.triggered {
    border-left-color: var(--text-primary);
    background: var(--bg-tertiary);
}

.checklist-item.not-triggered {
    opacity: 0.6;
}

.checklist-status {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.checklist-content {
    flex: 1;
}

.checklist-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.checklist-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checklist-evidence {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
}

.evidence-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--accent-primary);
}

/* Events Page Styles */
.events-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: var(--space-xl);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.filter-select,
.filter-input {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    min-width: 150px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.events-results-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Methodology Page Styles */
.methodology-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.methodology-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.methodology-section h2 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.methodology-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-md);
    color: var(--text-primary);
}

.methodology-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.methodology-formula {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 6px;
    margin: var(--space-md) 0;
    color: var(--accent-primary);
}

.checklist-definition {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
}

.checklist-def-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 40px;
}

.checklist-def-content {
    flex: 1;
}

.checklist-def-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.checklist-def-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checklist-def-points {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Score Tooltip */
.score-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.score-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    cursor: help;
    transition: all var(--transition-fast);
}

.score-tooltip-trigger:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-tertiary);
}

.score-tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 200;
    pointer-events: none;
}

.score-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-medium);
}

.score-tooltip-trigger:hover + .score-tooltip-content,
.score-tooltip-content:hover {
    opacity: 1;
    visibility: visible;
}

.score-tooltip-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.score-tooltip-scale {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.score-tooltip-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
}

.score-tooltip-indicator {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 50px;
    text-align: center;
}

.score-tooltip-indicator.high {
    background: rgba(197, 34, 31, 0.1);
    color: #c5221f;
}

.score-tooltip-indicator.low {
    background: rgba(24, 128, 56, 0.1);
    color: #188038;
}

.score-tooltip-text {
    color: var(--text-secondary);
}

.score-tooltip-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
}

/* Clickable Dimension Cards */
a.dimension-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.dimension-card:hover {
    border-color: var(--border-medium);
    background: var(--bg-elevated);
}

.dimension-labs-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: var(--space-xs);
}

.dim-lab-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    color: var(--text-secondary);
}

.dim-no-triggers {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Clickable Dimension Bars */
.dim-bar-clickable {
    cursor: pointer;
    border-radius: 3px;
    padding: 2px;
    transition: background var(--transition-fast);
}

.dim-bar-clickable:hover {
    background: var(--bg-tertiary);
}

/* Sentiment Summary */
.sentiment-summary {
    margin-bottom: var(--space-md);
}

.sentiment-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.sentiment-label {
    color: var(--text-secondary);
}

.sentiment-counts {
    display: flex;
    gap: var(--space-md);
}

.sentiment-up { color: #c5221f; }
.sentiment-neutral { color: var(--text-muted); }
.sentiment-down { color: #188038; }

/* Official Source Badge */
.source-badge.official {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

/* Grouped Checklist Layout */
.checklist-dimension-group {
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.checklist-dimension-group.highlighted {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.checklist-dimension-group.dimmed {
    opacity: 0.4;
}

.checklist-dim-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checklist-dim-score {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checklist-dim-items {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: var(--space-md);
    border: 2px solid var(--border-medium);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .dimensions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ranking-row {
        grid-template-columns: 70px 1fr 80px 1fr 100px;
    }
}

@media (max-width: 900px) {
    .main-header {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .summary-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-row {
        grid-template-columns: 70px 1fr 70px;
    }
    
    .dimension-bars,
    .trend-indicator {
        display: none;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard {
        padding: var(--space-md);
    }
    
    .summary-strip {
        grid-template-columns: 1fr;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Timeline Page Styles
   ============================================ */

.timeline-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.timeline-hero {
    text-align: center;
    padding: var(--space-xl) 0;
}

.timeline-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Timeline Filters */
.timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.filter-chips {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-chip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-chip:hover {
    border-color: var(--border-medium);
    color: var(--text-secondary);
}

.filter-chip.active {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Chart Section */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
}

.chart-container {
    height: 300px;
    margin: var(--space-lg) 0;
    position: relative;
}

#trendCanvas {
    width: 100%;
    height: 100%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.legend-item.dimmed {
    opacity: 0.3;
}

.legend-color {
    width: 12px;
    height: 3px;
    border-radius: 1px;
}

.legend-color.openai { background: var(--lab-openai); }
.legend-color.anthropic { background: var(--lab-anthropic); }
.legend-color.deepmind { background: var(--lab-deepmind); }
.legend-color.xai { background: var(--lab-xai); }
.legend-color.meta { background: var(--lab-meta); }

/* Timeline Section */
.timeline-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
}

.timeline-zoom-controls {
    display: flex;
    gap: var(--space-xs);
}

.zoom-btn {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.zoom-btn:hover {
    border-color: var(--border-medium);
    color: var(--text-secondary);
}

.zoom-btn.active {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.timeline-stats {
    display: flex;
    gap: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.stat-item span {
    color: var(--text-secondary);
}

.timeline-container {
    position: relative;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: var(--space-md);
}

/* Timeline Structure */
.timeline-axis {
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-year-group {
    margin-bottom: var(--space-xl);
}

.timeline-year-label {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    padding-left: 0;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 5;
    padding: var(--space-sm) 0;
}

.timeline-month-group {
    margin-bottom: var(--space-md);
    padding-left: 80px;
    position: relative;
}

.timeline-month-label {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 70px;
    text-align: right;
}

.timeline-event {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
}

.timeline-event:hover {
    background: var(--bg-elevated);
    border-left-color: var(--accent-primary);
}

.timeline-event.selected {
    background: var(--bg-elevated);
    border-left-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.timeline-event-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
}

.timeline-event-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg-card);
}

.timeline-event-marker.compute_chips { background: var(--text-secondary); }
.timeline-event-marker.cloud { background: var(--text-secondary); }
.timeline-event-marker.policy { background: var(--text-secondary); }
.timeline-event-marker.demand { background: var(--text-secondary); }
.timeline-event-marker.resilience { background: var(--text-secondary); }
.timeline-event-marker.societal_impact { background: var(--dim-societal); }

.timeline-event-marker.impact-positive::after {
    content: '+';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #c5221f;
}

.timeline-event-marker.impact-negative::after {
    content: '-';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #188038;
}

.timeline-event-content {
    flex: 1;
    min-width: 0;
}

.timeline-event-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.timeline-event-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-event-lab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.timeline-event-lab .lab-icon-xs {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.timeline-event-summary {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.timeline-event-tags {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    flex-wrap: wrap;
}

.timeline-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 1px 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    color: var(--text-muted);
}

/* Event Detail Panel */
.event-detail-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-subtle);
    padding: var(--space-xl);
    overflow-y: auto;
    transition: right var(--transition-medium);
    z-index: 150;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

.event-detail-panel.active {
    right: 0;
}

.panel-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.panel-close:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.panel-content {
    padding-top: var(--space-lg);
}

.panel-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.panel-lab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.panel-lab .lab-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.panel-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.panel-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.panel-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panel-meta-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.panel-dimension {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    text-transform: uppercase;
}

.panel-dimension.compute_chips { background: var(--bg-tertiary); color: var(--text-secondary); }
.panel-dimension.cloud { background: var(--bg-tertiary); color: var(--text-secondary); }
.panel-dimension.policy { background: var(--bg-tertiary); color: var(--text-secondary); }
.panel-dimension.demand { background: var(--bg-tertiary); color: var(--text-secondary); }
.panel-dimension.resilience { background: var(--bg-tertiary); color: var(--text-secondary); }
.panel-dimension.societal_impact { background: var(--bg-tertiary); color: var(--text-secondary); }

.panel-impact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

.panel-impact.positive {
    background: rgba(197, 34, 31, 0.1);
    color: #c5221f;
}

.panel-impact.negative {
    background: rgba(24, 128, 56, 0.1);
    color: #188038;
}

.panel-impact.neutral {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.panel-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.panel-checklist-item {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    color: var(--accent-primary);
}

.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.panel-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    color: var(--text-muted);
}

.panel-source-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.panel-source-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.panel-confidence {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: capitalize;
}

.panel-confidence.high { color: var(--text-primary); }
.panel-confidence.medium { color: var(--text-secondary); }
.panel-confidence.low { color: var(--text-muted); }

/* No events message */
.timeline-empty {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Timeline responsive */
@media (max-width: 900px) {
    .timeline-filters {
        flex-direction: column;
    }

    .filter-chips {
        width: 100%;
    }

    .event-detail-panel {
        width: 100%;
        right: -100%;
    }

    .timeline-month-group {
        padding-left: 60px;
    }

    .timeline-month-label {
        width: 50px;
        font-size: 0.65rem;
    }

    .chart-container {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .timeline-page {
        padding: var(--space-md);
    }

    .timeline-title {
        font-size: 1.5rem;
    }

    .timeline-zoom-controls {
        display: none;
    }

    .timeline-month-group {
        padding-left: 0;
    }

    .timeline-month-label {
        position: relative;
        width: auto;
        text-align: left;
        margin-bottom: var(--space-sm);
    }
}

/* Lab History Tab Styles */
.lab-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-xs);
}

.lab-tab {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.lab-tab:hover {
    color: var(--text-secondary);
}

.lab-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.lab-tab-content {
    display: none;
}

.lab-tab-content.active {
    display: block;
}

.lab-history-chart {
    height: 200px;
    margin-bottom: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: var(--space-md);
}

.lab-milestones {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.milestone-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.milestone-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 80px;
}

.milestone-content {
    flex: 1;
}

.milestone-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.milestone-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Historical Context Card on Dashboard */
.historical-context-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-lg);
}

.historical-context-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.historical-context-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.historical-trends {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.trend-stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.trend-stat-value {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

.trend-stat-value.improving { color: #188038; }
.trend-stat-value.worsening { color: #c5221f; }
.trend-stat-value.stable { color: var(--text-secondary); }

.recent-milestones-header {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-primary);
}

.recent-milestone {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    border-left: 3px solid var(--border-primary);
    transition: all 0.2s ease;
}

.recent-milestone:hover {
    background: var(--bg-hover);
}

.recent-milestone.impact-positive {
    border-left-color: var(--accent-success);
}

.recent-milestone.impact-negative {
    border-left-color: var(--risk-critical);
}

.recent-milestone-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.recent-milestone-lab {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.recent-milestone-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.view-timeline-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.view-timeline-link:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
}

/* ============================================
   ROADMAP PAGE
   ============================================ */

.roadmap-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.roadmap-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--space-sm);
}

.roadmap-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* Vertical Timeline */
.roadmap-timeline {
    position: relative;
}

.roadmap-node {
    display: flex;
    gap: var(--space-lg);
    position: relative;
}

.roadmap-node-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    padding-top: 6px;
}

.roadmap-node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-medium);
    flex-shrink: 0;
    z-index: 1;
    transition: all var(--transition-medium);
}

.roadmap-node--active .roadmap-node-dot {
    border-color: var(--text-primary);
    background: var(--text-primary);
    box-shadow: 0 0 0 4px var(--bg-tertiary);
}

.roadmap-node--complete .roadmap-node-dot {
    border-color: var(--text-secondary);
    background: var(--text-secondary);
}

.roadmap-node-line {
    width: 2px;
    flex: 1;
    background: var(--border-subtle);
    min-height: 24px;
}

.roadmap-node--complete .roadmap-node-line {
    background: var(--border-medium);
}

.roadmap-node-content {
    flex: 1;
    padding-bottom: var(--space-xl);
    min-width: 0;
}

.roadmap-node-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xs);
}

.roadmap-month-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 3px;
}

.roadmap-month-period {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.roadmap-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.status-complete {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.status-active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.status-upcoming {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.roadmap-node-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.roadmap-node--active .roadmap-node-title {
    font-size: 1.05rem;
}

.roadmap-node-goal {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-left: 3px solid var(--border-medium);
    border-radius: 0 6px 6px 0;
}

.roadmap-node--active .roadmap-node-goal {
    border-left-color: var(--text-primary);
}

.roadmap-groups {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.roadmap-task-group {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.roadmap-group-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.roadmap-task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-task-item {
    font-size: 0.85rem;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.5;
    position: relative;
    padding-left: calc(var(--space-md) + 12px);
}

.roadmap-task-item::before {
    content: '';
    position: absolute;
    left: var(--space-md);
    top: 14px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-strong);
}

.roadmap-task-item:last-child {
    border-bottom: none;
}

.roadmap-node--complete .roadmap-task-item {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .roadmap-page {
        padding: var(--space-md);
    }

    .roadmap-node {
        gap: var(--space-md);
    }

    .roadmap-node-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* ============================================
   PRESENTATION MODE — Attendee-facing deck
   ============================================ */

.presentation-body {
    background: #ffffff;
}

.presentation-header {
    gap: var(--space-lg);
}

.presentation-nav button {
    border: none;
    background: transparent;
    cursor: pointer;
}

.deck-counter {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* Full-width stage */
.deck-stage {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    min-height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
}

.slides-container {
    position: relative;
    flex: 1;
}

.presentation-slide {
    display: none;
    height: 100%;
}

.presentation-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide layouts */
.slide-center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 0;
}

.slide-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
    width: 100%;
    padding: 32px 0;
}

.slide-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* Kicker pill */
.kicker {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.slide-center .kicker {
    align-self: center;
}

/* Headlines */
.deck-headline {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-primary);
    max-width: 20ch;
}

.slide-center .deck-headline {
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.deck-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 52ch;
    margin: 0 auto 32px;
}

.method-line {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 52ch;
    margin: 2px 0 8px;
}

/* Bullet list */
.deck-bullets {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.deck-bullets li {
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.deck-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.deck-bullets li strong {
    color: var(--text-primary);
}

/* Actions */
.deck-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.slide-center .deck-actions {
    justify-content: center;
}

.control-btn {
    border: 1px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.control-btn.primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Nav controls */
.deck-nav-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

/* ---- VISUAL ELEMENTS (dashboard-inspired) ---- */

.slide-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.viz-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-top: 8px;
}

/* Title stats strip */
.title-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.stat-pill {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    background: var(--bg-secondary);
    min-width: 120px;
}

.stat-pill.highlight {
    border-color: var(--accent-primary);
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Gap stack (Slide 2) */
.viz-gap-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gap-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}

.gap-row.missing {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.gap-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gap-row.missing .gap-icon {
    background: var(--accent-primary);
    color: white;
}

.gap-row div strong {
    display: block;
    font-size: 0.9rem;
}

.gap-row div span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Dimension bars (Slide 3) */
.viz-dimensions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.viz-dim {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dim-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
    width: 130px;
    flex-shrink: 0;
    text-align: right;
}

.dim-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.dim-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--w, 50%);
    background: var(--accent-primary);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* Rankings mini-table (Slide 4) */
.viz-rankings {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
}

.viz-rank-header {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-tertiary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.viz-rank-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 12px;
    padding: 14px 18px;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
}

.rank-lab {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.rank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rank-score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rank-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
}

.rank-bar span {
    display: block;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 999px;
}

/* Outcomes cards (Slide 5) */
.viz-outcomes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.outcome-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--bg-secondary);
}

.outcome-num {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.outcome-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* CTA panel (Slide 6) */
.deck-closing {
    margin-top: 28px;
    padding: 20px;
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
}

.deck-closing p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.viz-cta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.cta-line {
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- STAKEHOLDER CARDS (Use Cases slide) ---- */
.viz-stakeholders {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stakeholder-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--bg-secondary);
}

.stakeholder-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
}

.stakeholder-icon svg {
    width: 28px;
    height: 28px;
}

.stakeholder-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stakeholder-info strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.stakeholder-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- WHAT'S NEXT (Slide 6) ---- */
.limits-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.future-work-list {
    padding: 0;
}

.future-bullets li::before {
    background: var(--text-muted);
}

.slide-next {
    max-width: 860px;
}

.next-bullets {
    margin: 12px auto 0;
    text-align: left;
    max-width: 62ch;
}

/* ---- GRAPH (Method slide) ---- */
.slide-graph-container {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    background: var(--bg-secondary);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.viz-graph-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

#storyGraph {
    width: 100%;
    flex: 1;
    min-height: 200px;
    display: block;
}

.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

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

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- CONTACT SLIDE ---- */
.slide-contact-left {
    align-items: flex-start;
}

.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-medium);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.contact-photo.large {
    width: 180px;
    height: 180px;
    border-width: 4px;
}

.headshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-headline {
    max-width: none !important;
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    margin-bottom: 6px;
}

.contact-sub {
    text-align: left;
    margin: 0 0 20px 0;
    max-width: 36ch;
    font-size: 0.95rem;
}

.contact-caveat {
    margin: -8px 0 14px;
    font-size: 0.8rem;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.contact-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.slide-contact-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-container {
    text-align: center;
}

.qr-img {
    width: 240px;
    height: 240px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
}

/* ---- METHOD SLIDE: scorecard in left column ---- */
.slide-content .viz-rankings {
    margin-top: 20px;
}

/* ---- SLIDE ENTRANCE ANIMATIONS ---- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.presentation-slide.active .kicker,
.presentation-slide.active .deck-headline,
.presentation-slide.active .deck-sub,
.presentation-slide.active .deck-visual,
.presentation-slide.active .deck-actions,
.presentation-slide.active .slide-visual,
.presentation-slide.active .viz-rankings,
.presentation-slide.active .deck-bullets,
.presentation-slide.active .contact-photo,
.presentation-slide.active .contact-headline,
.presentation-slide.active .contact-sub,
.presentation-slide.active .contact-caveat,
.presentation-slide.active .contact-links,
.presentation-slide.active .qr-container {
    animation: fadeSlideUp 0.5s ease both;
}

.presentation-slide.active .kicker { animation-delay: 0s; }
.presentation-slide.active .deck-headline { animation-delay: 0.08s; }
.presentation-slide.active .deck-sub { animation-delay: 0.16s; }
.presentation-slide.active .deck-visual { animation-delay: 0.24s; }
.presentation-slide.active .deck-actions { animation-delay: 0.32s; }
.presentation-slide.active .slide-visual { animation-delay: 0.2s; }
.presentation-slide.active .viz-rankings { animation-delay: 0.16s; }
.presentation-slide.active .deck-bullets { animation-delay: 0.16s; }
.presentation-slide.active .contact-photo { animation-delay: 0s; }
.presentation-slide.active .contact-headline { animation-delay: 0.08s; }
.presentation-slide.active .contact-sub { animation-delay: 0.14s; }
.presentation-slide.active .contact-caveat { animation-delay: 0.18s; }
.presentation-slide.active .contact-links { animation-delay: 0.22s; }
.presentation-slide.active .qr-container { animation-delay: 0.12s; }

/* Responsive */
@media (max-width: 900px) {
    .presentation-nav {
        display: none;
    }

    .slide-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .deck-stage {
        padding: var(--space-md);
    }

    .dim-name {
        width: 90px;
    }

    .qr-img {
        width: 180px;
        height: 180px;
    }

    .contact-photo {
        width: 90px;
        height: 90px;
    }

    .contact-photo.large {
        width: 130px;
        height: 130px;
    }

    #storyGraph {
        min-height: 160px;
    }
}
