/* --- Basic Reset & Variables --- */
:root {
    --bg-color: #0a0a0a;
    --surface-color: #121212;
    --surface-elev-1: #161616;
    --surface-elev-2: #1b1b1b;
    --text-primary: #e7e7e7;
    --text-secondary: #a6a6a6;
    --accent-color: #c62828; /* deeper red */
    --accent-hover: #e53935;
    --border-color: #2a2a2a;
    --border-subtle: rgba(255,255,255,0.08);
    --font-primary: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
}

h2 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

a:hover {
    color: var(--accent-hover);
}

p {
    margin-bottom: 1rem;
}

/* --- Action Page Styles --- */
.action-page {
    padding: 2rem 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 800px;
}

.action-section {
    margin-bottom: 4rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.action-grid, .network-grid, .preservation-grid, .support-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.network-grid, .preservation-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.support-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.action-card, .network-card, .preservation-card, .support-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-card:hover, .network-card:hover, .preservation-card:hover, .support-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-2px);
}

.card-header {
    background: var(--surface-elev-1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content {
    padding: 1.5rem;
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.action-list, .preservation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-list li, .preservation-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.action-list li:last-child, .preservation-list li:last-child {
    border-bottom: none;
}

.network-card {
    padding: 1.5rem;
}

.network-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

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

.network-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.network-card li:last-child {
    border-bottom: none;
}

.simple-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.simple-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.simple-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-2px);
}

.simple-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.preservation-card, .support-card {
    padding: 1.5rem;
}

.preservation-card h3, .support-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.support-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.support-card-link:hover .support-card {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.support-card-link .support-card h3 {
    color: var(--accent-color);
}

.platform-selector {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.platform-selector label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.platform-selector select {
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 150px;
}

.content-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .content-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .content-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-2px);
}

.card-header-clickable {
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header-clickable:hover {
    background: var(--surface-elev-1);
}

.content-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.content-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.expand-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.expand-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.expand-arrow.rotated {
    transform: rotate(180deg);
}

.content-output {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-elev-1);
    display: none;
    animation: slideDown 0.3s ease;
}

.content-output.expanded {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.content-output textarea {
    width: 100%;
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 0.75rem;
}

.copy-btn {
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #4caf50;
}

/* Content overlay modal for expandable cards */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.content-overlay.active {
    display: flex;
}

.content-modal {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-elev-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.content-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.content-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.content-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

.content-modal-body textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 1rem;
}

/* Content cards responsive improvements */
@media (max-width: 768px) {
    .content-cards {
        gap: 1rem;
    }
    
    .content-overlay {
        padding: 1rem;
    }
    
    .content-modal {
        max-height: 90vh;
    }
    
    .content-modal-body {
        max-height: calc(90vh - 120px);
    }
    
    .content-modal-body textarea {
        min-height: 250px;
    }
}


/* Reality notice styling */
.reality-notice {
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--accent-color);
}

.reality-notice h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reality-notice p {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.reality-notice p:last-child {
    margin-bottom: 0;
}

.reality-check {
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.reality-check h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.reality-check p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .action-grid, .network-grid, .preservation-grid, .support-grid, .content-cards, .simple-actions {
        grid-template-columns: 1fr;
    }
    
    .platform-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .platform-selector select {
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
}

/* --- Connections Page Styles --- */
.connections-page {
    padding: 2rem 0;
}

.connections-container {
    padding: 3rem 0;
}

.connections-nav {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 3rem;
}

.connections-nav h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.nav-link.primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.nav-link.victim {
    background: var(--surface-elev-1);
    color: var(--text-primary);
    border-color: #2e7d32;
}

.nav-link.associate {
    background: var(--surface-elev-1);
    color: var(--text-primary);
    border-color: #1a237e;
}

.nav-link.government {
    background: var(--surface-elev-1);
    color: var(--text-primary);
    border-color: #bf360c;
}

.nav-link.donor {
    background: var(--surface-elev-1);
    color: var(--text-primary);
    border-color: #4a148c;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.2);
}

.network-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--surface-elev-1);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .network-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.connection-card {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.connection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(198, 40, 40, 0.15);
    border-color: var(--accent-color);
}

.card-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--surface-elev-1) 0%, var(--surface-color) 100%);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.role {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.card-body {
    padding: 2rem;
}

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.card-body p:last-of-type {
    margin-bottom: 1.5rem;
}

.key-events {
    background: var(--surface-elev-1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.key-events h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.key-events ul {
    list-style: none;
    padding: 0;
}

.key-events li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.key-events li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.key-events a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.6;
}

.key-events a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .connections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .key-events {
        padding: 1.2rem;
    }
}

/* Special styling for high-profile individuals */
.connection-card#jeffrey-epstein .role {
    background: linear-gradient(45deg, #8b0000, #c62828);
}

.connection-card#ghislaine-maxwell .role {
    background: linear-gradient(45deg, #4a148c, #7b1fa2);
}

.connection-card#john-casablancas .role {
    background: linear-gradient(45deg, #bf360c, #ff5722);
}

.connection-card#roy-cohn .role {
    background: linear-gradient(45deg, #1a237e, #3f51b5);
}

.connection-card#maria-farmer .role {
    background: linear-gradient(45deg, #2e7d32, #66bb6a);
}

.connection-card#stacey-williams .role {
    background: linear-gradient(45deg, #ad1457, #e91e63);
}

/* Enhanced visual hierarchy */
.connection-card#jeffrey-epstein,
.connection-card#ghislaine-maxwell,
.connection-card#john-casablancas {
    border-width: 2px;
}

.connection-card#jeffrey-epstein:hover,
.connection-card#ghislaine-maxwell:hover,
.connection-card#john-casablancas:hover {
    box-shadow: 0 16px 50px rgba(198, 40, 40, 0.25);
}

/* --- Evidence Page Styles --- */
.evidence-page {
    min-height: 100vh;
}

.evidence-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--surface-elev-1);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.evidence-stats .stat-item {
    text-align: center;
    padding: 1rem;
}

.evidence-stats .stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.evidence-stats .stat-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.evidence-container {
    padding: 3rem 0;
}

.ui-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ui-search {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ui-search:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.ui-sort {
    padding: 0.75rem 1rem;
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ui-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.ui-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-elev-1);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ui-chip {
    padding: 0.6rem 1.2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ui-chip:hover {
    background: var(--surface-elev-2);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.ui-chip.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
}

/* Evidence Table Styling */
.ev-table-wrap {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.ev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ev-table th {
    background: var(--surface-elev-1);
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.ev-table td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.ev-table tbody tr:hover {
    background: var(--surface-elev-1);
}

.ev-table a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.ev-table a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Featured Exhibits Tiles */
.ev-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}

.ev-tile {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ev-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(198, 40, 40, 0.15);
    border-color: var(--accent-color);
}

.ev-tile h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ev-tile .tile-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.ev-tile .tile-type {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.ev-tile .tile-year {
    color: var(--text-secondary);
    font-weight: 500;
}

.ev-tile .tile-note {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ev-tile .tile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ev-tile .tile-link:hover {
    color: var(--accent-hover);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .evidence-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ui-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ui-search {
        min-width: auto;
    }
    
    .ev-tiles {
        grid-template-columns: 1fr;
    }
    
    .ev-table {
        font-size: 0.8rem;
    }
    
    .ev-table th,
    .ev-table td {
        padding: 0.75rem;
    }
}

/* --- Action Page Styles --- */
.action-page {
    padding: 2rem 0;
}

.action-container {
    padding: 3rem 0;
}

.action-module {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.15);
}

.action-module h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Epstein Status Section */
.epstein-status {
    background: rgba(211, 47, 47, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.status-overview h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.status-overview p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

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

/* Action Box */
.action-box {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.action-box h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.action-btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.action-btn.secondary:hover {
    background: var(--accent-color);
    color: white;
}

.sample-message {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--accent-color);
}

.sample-message h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.sample-message p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Share Grid */
.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.share-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.share-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.share-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.share-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a91da;
    transform: translateY(-1px);
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.facebook:hover {
    background: #365899;
    transform: translateY(-1px);
}

/* Call to Action Box */
.call-to-action-box {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.call-to-action-box h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.call-to-action-box ul {
    list-style: none;
    padding: 0;
}

.call-to-action-box li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.call-to-action-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Legal Resources */
.legal-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.resource-category {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.resource-category h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.resource-category ul {
    list-style: none;
    padding: 0;
}

.resource-category li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.resource-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.resource-category strong {
    color: var(--text-primary);
}

/* Support List */
.support-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.support-list li {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.support-list li:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.support-list a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.support-list a:hover {
    color: var(--accent-color);
}

.support-list strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.support-list span {
    color: var(--text-secondary);
    line-height: 1.6;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-module {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .action-module h2 {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        text-align: center;
    }
    
    .share-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-resources {
        grid-template-columns: 1fr;
    }
    
    .support-list {
        grid-template-columns: 1fr;
    }
    
    .call-to-action-box {
        padding: 1.5rem;
    }
}

/* ===== Stark Editorial Redesign (added) ===== */
/* Global layout: left rail + content column, no gradients, high contrast */
:root {
  --bg-0:#0a0a0a; --bg-1:#0d0d0d; --ink:#f2f2f2; --muted:#9a9a9a; --ink-weak:#cfcfcf;
  --ink-red:#ff4d4d; --ink-blue:#7fb8ff; --ink-yellow:#ffd666; --ink-green:#8bd48b;
  --rule:#1b1b1b;
}

body { background: var(--bg-0); color: var(--ink); }
.page-hero { background: transparent; border-bottom: 1px solid var(--rule); padding: 1.25rem 0; text-align: left; }
.page-hero h1 { font-size: clamp(2rem,3.6vw,2.6rem); margin-bottom: .25rem; letter-spacing: -.02em; }
.page-hero p { font-size: 1rem; color: var(--muted); margin: 0; }

/* Layout shell: left rail + content */
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 2rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  max-width: 1040px;
}
.shell .rail {
  position: sticky; top: 72px; align-self: start;
  border-right: 1px solid var(--rule);
  padding-right: 1rem;
}
.shell .rail h3 { font-size: .9rem; color: var(--ink-weak); margin-bottom: .6rem; }
.shell .rail a { display: block; color: var(--ink-weak); padding: .2rem 0; }
.shell .rail a:hover { color: var(--ink); }
.shell .content { min-width: 0; }

/* Minimal controls */
.ui-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  margin: .75rem 0 1rem;
}
.ui-search {
  width: 100%;
  background: var(--bg-1);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: .7rem .8rem;
  outline: none;
}
.ui-sort {
  background: var(--bg-1);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: .7rem .8rem;
}
.ui-count { color: var(--muted); font-size: .9rem; }

/* Chips reduced */
.ui-chips { display: flex; gap: .35rem; flex-wrap: wrap; margin: .4rem 0 .2rem; }
.ui-chip {
  padding: .28rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-weak);
  cursor: pointer;
}
.ui-chip.active { color: var(--ink); border-color: var(--ink); }
.ui-chip:hover { color: var(--ink); }

/* Evidence dossier list */
.dossier { display: grid; gap: .9rem; }
.item {
  border-bottom: 1px solid var(--rule);
  padding-bottom: .8rem;
}
.item .k { display: inline-flex; gap: .45rem; align-items: baseline; }
.item .type { font-weight: 900; font-size: .82rem; letter-spacing: .04em; color: var(--ink-weak); text-transform: uppercase; }
.item .year { font-weight: 900; font-size: .82rem; color: var(--ink); }
.item .title { display: block; font-weight: 900; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); margin: .2rem 0 .25rem; }
.item .meta { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size: .82rem; color: var(--muted); }
.item .links { display: inline-flex; gap: .65rem; margin-top: .35rem; }
.item .links a { color: var(--ink-weak); text-decoration: underline; }
.item .links a:hover { color: var(--ink); }

/* Timeline: year slabs + bullets */
.tl { display: grid; gap: 1.2rem; }
.tl-year { border-top: 2px solid var(--ink); padding-top: .6rem; }
.tl-h { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: baseline; }
.tl-h .Y { font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; color: var(--ink); }
.tl-h .label { color: var(--muted); font-size: .9rem; }
.tl-bullets { margin-left: 90px; display: grid; gap: .5rem; }
.blt { display: grid; gap: .15rem; }
.blt .t { font-weight: 800; color: var(--ink); }
.blt .s { color: var(--muted); font-size: .95rem; }
.blt .src { display: inline-flex; gap: .6rem; font-size: .88rem; }
.blt .src a { color: var(--ink-weak); text-decoration: underline; }
.blt .src a:hover { color: var(--ink); }

/* Remove glossy visuals on cards/rails */
.allegation-card, .event-card, .ui-card { background: transparent; box-shadow: none; border: 1px solid var(--rule); }
.legend, .timeline-rail, .timeline-wrapper .event-pin, .pin-dot { display: none !important; }

/* Mobile */
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .shell .rail { position: static; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); margin-bottom: .8rem; }
}

/* --- Modern Header & Navigation --- */
header {
    background: rgba(12, 12, 12, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}
.navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.nav-brand {
    display: none;
}

.brand-link {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.brand-link:hover {
    color: var(--accent-color);
}

/* Desktop Navigation Styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--accent-color);
    background-color: rgba(198, 40, 40, 0.12);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile menu animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
        height: 60px;
        justify-content: flex-end;
        position: relative;
    }

    .nav-brand {
        display: none;
    }
    
    .brand-link {
        font-size: 1.1rem;
    }

    /* Hide desktop nav-links on mobile */
    .nav-links {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1001;
    }
}

/* Mobile Navigation Dropdown - cleaner approach */
.nav-links.open {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 0;
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    transform: translateY(0);
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Mobile Navigation Links - cleaner dropdown style */
.nav-links.open .nav-link {
    display: block;
    width: 100%;
    padding: 1.2rem 2rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    background: transparent;
}

.nav-links.open .nav-link:last-child {
    border-bottom: none;
}

.nav-links.open .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding-left: 2.5rem;
}

.nav-links.open .nav-link.active {
    background-color: rgba(211, 47, 47, 0.15);
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
    font-weight: 600;
}


/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline Page Styles */
.timeline-page .simple-controls {
    margin-top: 1rem;
}
.controls-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: .75rem;
}
.search-wrap { flex: 1 1 320px; }
.search-input {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    outline: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.search-input::placeholder { color: #9aa0a6; }
.search-input:focus {
    border-color: rgba(198,40,40,.55);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

.sort-wrap,.density-wrap {
    flex: 0 1 180px;
}
.sort-select,.density-select {
    width: 100%;
    padding: .85rem .9rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    outline: none;
}
.timeline-stats {
    margin-top: .5rem;
}
.timeline-controls {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    align-items: center;
}
.timeline-info {
    color: var(--text-secondary);
    font-size: .95rem;
}
.filter-tags {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn {
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-1px);
}
.filter-btn.active {
    color: #fff;
    border-color: rgba(198,40,40,.55);
    background: rgba(198,40,40,.18);
}

/* Legend */
.legend {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    justify-content: center;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    background: rgba(255,255,255,0.03);
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
}
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block;
}
.dot-epstein { background: #e53935; box-shadow: 0 0 0 2px rgba(229,57,53,.18); }
.dot-underage { background: #ffb300; box-shadow: 0 0 0 2px rgba(255,179,0,.18); }
.dot-legal { background: #42a5f5; box-shadow: 0 0 0 2px rgba(66,165,245,.18); }
.dot-media { background: #66bb6a; box-shadow: 0 0 0 2px rgba(102,187,106,.18); }
.dot-default { background: #bdbdbd; box-shadow: 0 0 0 2px rgba(189,189,189,.18); }

/* Timeline layout */
.timeline-container .container {
    padding-top: 1rem;
}
.timeline-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.timeline-rail {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
    border-radius: 2px;
    pointer-events: none;
}
.timeline-events {
    position: relative;
}

/* Event item */
.timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: .85rem;
    align-items: start;
}
.event-pin {
    position: relative;
    padding-top: .35rem;
}
.pin-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #bdbdbd; /* overridden by classes */
    box-shadow: 0 0 0 3px rgba(0,0,0,.35);
    position: absolute;
    left: 18px; top: .6rem;
}
.event-year {
    margin-left: 44px;
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    padding: .18rem .5rem;
    border-radius: 999px;
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .2px;
}
.event-card {
    background: linear-gradient(180deg, var(--surface-elev-2), var(--surface-elev-1));
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 1rem .8rem;
    box-shadow: 0 12px 26px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.03) inset;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.event-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 18px 34px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.event-headline {
    margin: 0 0 .4rem 0;
    font-size: 1.1rem;
}
.event-details {
    color: var(--text-secondary);
    font-size: .98rem;
}
.read-more-btn {
    margin-top: .4rem;
    padding: .4rem .6rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid var(--border-subtle);
    font-weight: 700;
    cursor: pointer;
}
.event-sources {
    margin-top: .65rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: .6rem .75rem;
}
.event-sources h4 {
    margin: 0 0 .35rem 0;
    font-size: .95rem;
    color: var(--text-primary);
}
.event-sources ul {
    margin: 0; padding-left: 1.1rem;
}
.event-sources li {
    margin: .2rem 0;
}
.event-tags {
    margin-top: .6rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}
.event-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .5rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.04);
    font-size: .78rem;
    color: #e8e8e8;
}

/* Compact density */
.timeline-wrapper.compact .timeline-event {
    grid-template-columns: 70px 1fr;
    gap: .6rem;
}
.timeline-wrapper.compact .event-card {
    padding: .75rem .8rem;
    border-radius: 10px;
}
.timeline-wrapper.compact .event-headline {
    font-size: 1.02rem;
    margin-bottom: .25rem;
}
.timeline-wrapper.compact .event-details {
    font-size: .92rem;
}
.timeline-wrapper.compact .event-sources {
    padding: .5rem .6rem;
}
.timeline-wrapper.compact .event-tag {
    font-size: .72rem;
    padding: .18rem .45rem;
}

/* Responsive */
@media (max-width: 720px) {
    .timeline-event {
        grid-template-columns: 1fr;
    }
    .event-pin {
        min-height: 28px;
    }
    .pin-dot { left: 8px; }
    .event-year { margin-left: 32px; }
    .timeline-rail { left: 12px; }
}

/* Footer Styles */
footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Overlay & Body Lock for Mobile Nav --- */
.menu-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 998;
}

.menu-scrim.show {
    opacity: 1;
    visibility: visible;
}

body.nav-locked {
    overflow: hidden;
}

/* --- Homepage Styles (hero, intro, featured) --- */
.hero {
    position: relative;
    /* layered image + angled mask + subtle noise */
    background:
        linear-gradient(180deg, rgba(6,6,6,0.58) 0%, rgba(10,10,10,0.90) 55%, rgba(10,10,10,0.96) 100%),
        linear-gradient(105deg, rgba(198,40,40,0.14) 0%, rgba(198,40,40,0) 40%),
        url('../images/events/TrumpAndEpstein.jpg') center top/cover no-repeat;
    /* Ensure heads are visible by anchoring to the top of the image */
    border-bottom: 1px solid var(--border-subtle);
    padding: 8.5rem 0 5rem; /* taller hero to keep photo longer on screen */
    color: var(--text-primary);
    overflow: hidden;
    text-align: center;
}
.hero::before {
    /* noise overlay */
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0.015 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .55;
    pointer-events: none;
}
.hero .container {
    max-width: 1200px;
}

.hero::after {
    /* subtle vignette to focus content */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(800px 400px at 20% -10%, rgba(211,47,47,0.08), transparent 60%);
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.2vw, 4.2rem);
    line-height: 1.02;
    margin: .3rem 0 .6rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}

.hero .subtitle {
    color: #d5d5d5;
    font-size: 1.15rem;
    line-height: 1.55;
    margin-bottom: 1.4rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Extended intro copy inside hero to make photo taller */
.hero-intro {
    margin-top: 1.4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e2e2;
}
.hero-intro p {
    margin-bottom: 0.9rem;
    color: #d2d2d2;
    line-height: 1.65;
}
.hero-intro p:last-child {
    margin-bottom: 0;
}

/* Badges & Stats in hero (maximalist) */
.badge-strip {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}

.badge {
    display: inline-block;
    font-size: .8rem;
    line-height: 1;
    padding: .45rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
}
.badge.critical { color: #fff; border-color: rgba(211,47,47,.6); background: rgba(211,47,47,.22); }
.badge.alert { color: #ffd2d2; border-color: rgba(244,67,54,.5); background: rgba(244,67,54,.18); }
.badge.neutral { color: var(--text-secondary); }

.stat-strip {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: .75rem;
    justify-items: center;
}

.stat {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
    padding: .8rem 1rem;
    border-radius: 10px;
    min-width: 160px;
    text-align: center;
    backdrop-filter: blur(6px);
}
.stat-num {
    display: block;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff;
}
.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: .85rem;
    margin-top: .2rem;
}

/* Tertiary CTA style */
.cta-button.tertiary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}
.cta-button.tertiary:hover {
    background: rgba(255,255,255,0.12);
}

.cta-button {
    display: inline-block;
    padding: 0.95rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    will-change: transform;
}
.cta-button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.cta-button.primary {
    background: var(--accent-color);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
}

.cta-button.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.24);
}
.cta-button.secondary:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateY(-2px);
}

.cta-button.secondary:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

.intro {
    background: var(--surface-elev-1);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.intro .container {
    padding: 3rem 1rem;
}

.intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Featured allegations grid */
.featured-allegations .container {
    padding: 3rem 1rem;
}

/* New: What's New strip (editorial band) */
.whats-new {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background:
        radial-gradient(800px 200px at 50% 0%, rgba(198,40,40,0.06), transparent 60%),
        var(--surface-elev-1);
}
.whats-new .container {
    padding: 2.25rem 1rem;
}
.updates {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* dominant first card */
    gap: 1rem;
}
.update {
    background: linear-gradient(180deg, var(--surface-elev-2), var(--surface-elev-1));
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 12px 26px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.03) inset;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.update:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 16px 34px rgba(0,0,0,0.42), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.update h3 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin: 0;
}
.update p {
    color: var(--text-secondary);
    margin: 0;
}
.plain-link {
    margin-top: auto;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}
.plain-link:hover {
    text-decoration: underline;
}

/* New: Core sections (editorial tiles) */
.core-nav {
    background: var(--bg-color);
}
.core-nav .container {
    padding: 2.75rem 1rem 1.5rem;
}
.core-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}
.core-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    background: linear-gradient(180deg, var(--surface-elev-2), var(--surface-elev-1));
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.03) inset;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.core-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 16px 34px rgba(0,0,0,0.42), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.core-card h3 {
    margin: 0 0 .4rem 0;
    font-size: 1.15rem;
}
.core-card p {
    margin: 0;
    color: var(--text-secondary);
}
.core-card .arrow {
    justify-self: end;
    align-self: end;
    font-weight: 800;
    color: #fff;
}

/* Kicker and hero links polish */
.kicker {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: .35rem .6rem;
    border-radius: 999px;
    margin-bottom: .6rem;
    background: rgba(0,0,0,0.25);
}
.hero-links {
    margin-top: 1rem;
    display: inline-flex;
    gap: .8rem;
    align-items: center;
    background: rgba(0,0,0,0.28);
    border: 1px solid var(--border-subtle);
    padding: .5rem .8rem;
    border-radius: 999px;
}
.hero-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.hero-links a:hover { text-decoration: underline; }

/* Responsive for new sections */
@media (max-width: 1024px) {
    .updates { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .updates { grid-template-columns: 1fr; }
    .core-grid { grid-template-columns: 1fr; }
}

/* Featured section header */
.featured-allegations .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: .25rem;
    border-top: 1px solid var(--border-subtle);
}
.featured-allegations .section-header h2 {
    margin: 0;
}
.view-all {
    align-self: center;
    color: #fff;
    font-weight: 700;
    padding: .55rem .8rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.view-all::after {
    content: '→';
    margin-left: .5rem;
    opacity: .9;
}
.view-all:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
}

/* Tight grid variant for above-the-fold density */
.allegation-grid.tight {
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1rem;
}
.allegation-grid.tight .allegation-card {
    border-radius: 10px;
}
.allegation-grid.tight .allegation-card .card-content {
    padding: 1rem 1rem .5rem;
}
.allegation-grid.tight .allegation-card .read-more {
    margin: .6rem 1rem 1rem;
    font-size: .95rem;
}

.featured-allegations h2 {
    margin-bottom: 1.5rem;
}

.allegation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 1.25rem;
}

.allegation-card {
    background: linear-gradient(180deg, var(--surface-elev-2), var(--surface-elev-1));
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 28px rgba(0,0,0,0.35);
}

.allegation-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 2px 0 rgba(255,255,255,0.03) inset, 0 20px 36px rgba(0,0,0,0.45);
}

.allegation-card .card-content {
    padding: 1.25rem 1.25rem 0.75rem;
}

.allegation-card .year {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: 0.82rem;
    color: #ffd9d9;
    background: rgba(198,40,40,0.15);
    border: 1px solid rgba(198,40,40,0.4);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}
.allegation-card .year::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff6b6b;
}

.allegation-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.allegation-card p {
    color: var(--text-secondary);
}

.allegation-card .read-more {
    margin: 0.75rem 1.25rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    align-self: flex-start;
    font-weight: 700;
    color: #ffffff;
}
.allegation-card .read-more::after {
    content: '↗';
    font-size: .95rem;
    opacity: .85;
    transition: transform .15s ease;
}
.allegation-card .read-more:hover::after {
    transform: translateY(-1px);
}

/* Header spacing compensation for sticky header */
main {
    /* Reserve space for sticky header on first content block if needed */
    /* Can be adjusted if content is hidden behind header on anchor jumps */
    scroll-margin-top: 80px;
}

/* Ensure consistent navbar heights across breakpoints */
.navbar {
    height: 70px;
}

/* ===== Unified UI (controls, chips, grid, cards) ===== */
.ui-controls {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: .75rem;
    align-items: center;
    margin: 1rem 0 1.25rem;
}
.ui-search {
    width: 100%;
    background: var(--surface-elev-2);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: .85rem 1rem;
    outline: none;
}
.ui-search::placeholder { color: var(--text-secondary); }
.ui-chips {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.ui-chip {
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.ui-chip:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-1px);
}
.ui-chip.active {
    color: #fff;
    border-color: rgba(198,40,40,.55);
    background: rgba(198,40,40,.18);
}
.ui-sort {
    background: var(--surface-elev-2);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: .7rem .9rem;
}
.ui-count {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Grid and cards */
.ui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 1rem;
}

/* Evidence hybrid: Featured tiles + table */
.ev-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
    margin: .5rem 0 1rem;
}
@media (max-width: 820px) {
  .ev-tiles { grid-template-columns: 1fr; }
  .ev-table th:nth-child(5), .ev-table td:nth-child(5) { display: none; } /* hide Notes col on small */
}
.ev-tile {
    border: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--surface-elev-2), var(--surface-elev-1));
    border-radius: 12px;
    padding: 1rem 1rem .9rem;
    box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.02) inset;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ev-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 18px 34px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.ev-tile .k { display:flex; gap:.5rem; align-items:baseline; margin-bottom:.35rem; }
.ev-tile .type { font-weight:800; font-size:.8rem; color:#ffd9d9; background: rgba(198,40,40,0.18); border:1px solid rgba(198,40,40,0.45); border-radius:999px; padding:.18rem .5rem; }
.ev-tile .year { font-weight:800; font-size:.8rem; color:#fff; background: rgba(255,255,255,0.06); border:1px solid var(--border-subtle); border-radius:999px; padding:.18rem .5rem; }
.ev-tile .title { display:block; font-size:1.12rem; font-weight:900; color:#fff; margin:.1rem 0 .25rem; text-decoration:none; }
.ev-tile .title:hover { text-decoration:underline; }
.ev-tile .meta { color: var(--text-secondary); font-size:.9rem; }
.ev-tile .meta,
.ev-tile .meta .note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ev-tile .links { display:flex; gap:.6rem; margin-top:.45rem; }
.ev-tile .links a { color:#fff; text-decoration:underline; }

/* Table */
.ev-table-wrap {
    margin-top: .75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-elev-1);
}
.ev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.ev-table thead {
    background: var(--surface-elev-2);
}
.ev-table th, .ev-table td {
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
    text-align: left;
}
.ev-table th {
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
}
.ev-table th.sort-asc::after,
.ev-table th.sort-desc::after {
    content: '';
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}
.ev-table th.sort-asc::after {
    border-bottom: 7px solid var(--accent-color);
}
.ev-table th.sort-desc::after {
    border-top: 7px solid var(--accent-color);
}
.ev-table th:hover { color: var(--accent-color); }
.ev-table td .links { display:flex; gap:.5rem; flex-wrap:wrap; }
.ev-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}
.ev-table .no-results-text { text-align:center; color: var(--text-secondary); }
.ui-card {
    border: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--surface-elev-2), var(--surface-elev-1));
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.02) inset;
    padding: 1rem 1rem .9rem;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ui-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 18px 34px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.ui-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .35rem;
}
.ui-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .5rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.04);
    font-size: .78rem;
    color: #e8e8e8;
}
.badge-legal { border-color: rgba(66,165,245,.4); background: rgba(66,165,245,.15); }
.badge-video { border-color: rgba(102,187,106,.4); background: rgba(102,187,106,.15); }
.badge-reports { border-color: rgba(255,179,0,.4); background: rgba(255,179,0,.15); }
.badge-records { border-color: rgba(198,40,40,.45); background: rgba(198,40,40,.18); }
.ui-year {
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    padding: .18rem .5rem;
    border-radius: 999px;
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .2px;
}
.ui-title {
    margin: 0 0 .35rem 0;
    font-size: 1.05rem;
}
.ui-note {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: .95rem;
}
.ui-foot {
    margin-top: .6rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

/* Timeline stack (unified) */
.ui-timeline {
    display: grid;
    gap: 1rem;
    position: relative;
}
.ui-year-section {
    position: relative;
    display: grid;
    gap: .6rem;
}
.ui-year-header {
    position: sticky;
    top: 70px;
    z-index: 2;
    background: linear-gradient(180deg, rgba(20,20,20,.9), rgba(20,20,20,.85));
    backdrop-filter: blur(6px);
    padding: .35rem .75rem;
    border: 1px solid var(--border-subtle);
    color: #fff;
    display: inline-block;
    border-radius: 999px;
    font-size: .95rem;
}

/* Responsive unified controls */
@media (max-width: 768px) {
    .ui-controls {
        grid-template-columns: 1fr 1fr;
    }
    .ui-count { grid-column: 1 / -1; justify-self: end; }
}

/* ===== Timeline Overhaul (scoped) ===== */
.timeline-page .tl-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .75rem;
    justify-items: start;
    align-items: center;
    margin-top: 1rem;
}
.timeline-page .tl-search {
    width: 100%;
    background: var(--surface-elev-2);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: .85rem 1rem;
    outline: none;
}
.timeline-page .tl-search::placeholder { color: var(--text-secondary); }
.timeline-page .tl-sort {
    background: var(--surface-elev-2);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: .7rem .9rem;
}
.timeline-page .tl-count {
    color: var(--text-secondary);
    font-weight: 600;
}

.timeline-page .tl-list {
    display: grid;
    gap: 1.5rem;
}

.timeline-page .tl-year {
    position: relative;
    display: grid;
    gap: .8rem;
}

.timeline-page .tl-year-header {
    position: sticky;
    top: 70px; /* below sticky header */
    z-index: 2;
    background: linear-gradient(180deg, rgba(20,20,20,.9), rgba(20,20,20,.85));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: .35rem .75rem;
    border: 1px solid var(--border-subtle);
    color: #fff;
    display: inline-block;
    border-radius: 999px;
    font-size: .95rem;
    letter-spacing: .04em;
}

.timeline-page .tl-cards {
    display: grid;
    gap: .8rem;
}

.timeline-page .tl-card {
    border: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--surface-elev-2), var(--surface-elev-1));
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.02) inset;
    overflow: hidden;
}
.timeline-page .tl-card-h {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1rem .2rem 1rem;
}
.timeline-page .tl-year-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: #ffd9d9;
    background: rgba(198,40,40,0.18);
    border: 1px solid rgba(198,40,40,0.45);
    padding: .18rem .55rem;
    border-radius: 999px;
}
.timeline-page .tl-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.timeline-page .tl-body {
    padding: .2rem 1rem 1rem 1rem;
}
.timeline-page .tl-summary {
    color: var(--text-secondary);
    line-height: 1.6;
}
.timeline-page .tl-summary .short {}
.timeline-page .tl-summary .full[hidden] { display: none; }

.timeline-page .read-more-btn {
    display: inline-block;
    margin-top: .45rem;
    padding: .35rem .65rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    color: #fff;
    background: rgba(255,255,255,0.06);
    font-weight: 700;
    cursor: pointer;
}
.timeline-page .read-more-btn:hover {
    background: rgba(255,255,255,0.1);
}

.timeline-page .tl-sources {
    margin-top: .6rem;
    background: rgba(0,0,0,.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: .6rem .75rem;
}
.timeline-page .tl-sources strong {
    color: #fff;
    font-size: .9rem;
}
.timeline-page .tl-sources ul {
    margin: .35rem 0 0 1.1rem;
}
.timeline-page .tl-sources li {
    margin: .15rem 0;
}
.timeline-page .tl-tags {
    margin-top: .5rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}
.timeline-page .event-tag {
    display: inline-block;
    font-size: .78rem;
    padding: .2rem .45rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: rgba(0,0,0,.25);
}
.timeline-page .event-tag.more-tag {
    color: #ffd7d7;
    border-color: rgba(198,40,40,.45);
    background: rgba(198,40,40,.18);
}

.timeline-page .no-results-text,
.timeline-page .loading-text,
.timeline-page .error-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-page .tl-controls {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(0,auto);
    }
    .timeline-page .tl-count { grid-column: 1 / -1; }
    .timeline-page .tl-year-header { top: 60px; }

/* --- Enhanced Timeline Organization Styles --- */
.tl-filters {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--surface-elev-1);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-chip {
    padding: 0.6rem 1.2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: var(--surface-elev-2);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
}

/* Enhanced timeline controls */
.timeline-page .tl-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timeline-page .tl-search {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.timeline-page .tl-search:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.timeline-page .tl-sort {
    padding: 0.75rem 1rem;
    background: var(--surface-elev-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 768px) {
    /* Global mobile improvements */
    .container {
        padding: 0 1rem;
    }

    /* Hero section mobile */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-intro {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-intro p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-links {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }

    /* Home page mobile */
    .allegation-grid.tight {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .whats-new .updates {
        flex-direction: column;
        gap: 1.5rem;
    }

    .update h3 {
        font-size: 1.1rem;
    }

    /* Page headers mobile */
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Timeline page mobile */
    .timeline-page .tl-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .tl-search,
    .tl-sort {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem;
    }

    .filter-chips {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Evidence page mobile */
    .evidence-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ui-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .ui-search,
    .ui-sort {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem;
    }

    .ui-chips {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .ui-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .ev-tiles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ev-table-wrap {
        margin-top: 1rem;
        border-radius: 8px;
    }

    .ev-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .ev-table th,
    .ev-table td {
        padding: 0.8rem 0.6rem;
    }
    
    .ev-table .links a {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        margin: 0.1rem 0.2rem 0.1rem 0;
    }

    /* Connections page mobile */
    .network-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .connections-nav .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .connections-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .connections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Action page mobile */
    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .action-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }

    .share-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .share-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* About page mobile */
    .disclaimer-list,
    .methodology-list {
        padding-left: 1.2rem;
    }

    .disclaimer-list li,
    .methodology-list li {
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    /* Footer mobile */
    footer .container p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
}
