/* ==============================
   Base & Typography
   ============================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; }

:root {
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-off: #f8fafc;
    --border: #e2e8f0;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --max-width: 1200px;
    --nav-height: 60px;
    --net-bg: #0f172a;
    --net-panel-bg: rgba(255, 255, 255, 0.92);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==============================
   Navigation
   ============================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-links a.active { color: var(--text-primary); border-bottom-color: var(--accent); }

/* ==============================
   Page Layout
   ============================== */

.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==============================
   Hero (landing page)
   ============================== */

.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.hero-cta:hover { background: var(--accent-hover); text-decoration: none; }

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.hero-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    opacity: 0.8;
}

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

.hero-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.hero-card-arrow {
    margin-top: 16px;
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.15s;
}

.hero-card:hover .hero-card-arrow {
    transform: translateX(4px);
}

/* ==============================
   Content pages
   ============================== */

.page-header {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.page-header h1 { font-size: 28px; letter-spacing: -0.02em; }

.page-content {
    padding-bottom: 80px;
    max-width: 720px;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==============================
   Network Page
   ============================== */

.network-intro {
    padding: 16px 0 10px;
}

.network-intro h1 {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.network-intro p {
    color: var(--text-secondary);
}

.network-legend {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.legend-item { display: flex; align-items: center; gap: 5px; }

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

/* Network container */
.network-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 370px);
    min-height: 250px;
    background: #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: height 0.3s ease;
}

.network-container.expanded {
    height: calc(100vh - 100px);
}

.expand-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary);
}

#network-canvas,
#path-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Info panel — light translucent overlay inside network container */
#info-panel {
    position: absolute;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100%;
    background: var(--net-panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 24px 20px;
    transition: right 0.3s ease;
    z-index: 5;
    color: var(--text-primary);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
}

#info-panel.visible { right: 0; }

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.info-header h3 { font-size: 16px; color: var(--text-primary); flex: 1; }

.info-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.info-close:hover { color: var(--text-primary); }

.info-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-metrics { display: flex; gap: 16px; margin-bottom: 20px; }

.metric { display: flex; flex-direction: column; align-items: center; }
.metric-value { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.metric-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.ego-control {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.ego-control h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ego-slider-row { display: flex; align-items: center; gap: 10px; }
.ego-slider-row input[type="range"] { flex: 1; accent-color: var(--accent); }
#ego-depth-label { font-size: 13px; font-weight: 600; color: var(--accent); min-width: 80px; }
.ego-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.info-connections h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.info-connections ul { list-style: none; }
.info-connections li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.conn-link { color: var(--accent); text-decoration: none; cursor: pointer; }
.conn-link:hover { text-decoration: underline; }
.conn-cat { color: var(--text-muted); font-size: 11px; }
.conn-detail { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.conn-more { color: var(--text-muted); font-style: italic; }

/* ==============================
   Controls (below network)
   ============================== */

.controls-section { padding: 12px 0 8px; }

.control-group { margin-bottom: 10px; }

.control-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

/* Time slider */
.time-control { display: flex; align-items: center; gap: 16px; }

#time-slider { flex: 1; accent-color: var(--accent); }

#time-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 72px;
}

#play-btn {
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

#play-btn:hover { background: var(--accent-hover); }

.stats-row { display: flex; gap: 24px; margin-top: 4px; }
.stat { font-size: 14px; color: var(--text-muted); }
.stat-value { font-weight: 700; color: var(--text-primary); margin-right: 3px; }

/* Filter bar (above network) */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.filter-bar-left {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

/* Size pill toggle */
.size-pill-row {
    display: flex;
    justify-content: flex-start;
    padding: 4px 0 2px;
}

.size-pill {
    display: inline-flex;
    background: var(--accent);
    border-radius: 999px;
    padding: 3px;
}

.size-pill-btn {
    padding: 6px 20px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
}

.size-pill-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
}

.size-pill-btn.active {
    background: white;
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Toggle groups */
.toggle-group { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.toggle-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }

/* Color mode toggle */
.color-mode-toggle { display: flex; gap: 0; }

.mode-btn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    background: var(--bg-off);
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.mode-btn:first-child { border-radius: 6px 0 0 6px; }
.mode-btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.mode-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Filter checkboxes */
#filter-checkboxes { display: flex; gap: 16px; flex-wrap: wrap; }

#filter-checkboxes label {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

#filter-checkboxes input { accent-color: var(--accent); width: 16px; height: 16px; }
#filter-checkboxes .legend-dot { flex-shrink: 0; }

/* ==============================
   Path Finder
   ============================== */

.path-section {
    padding: 10px 0 12px;
    border-top: 1px solid var(--border);
}

.path-section .control-label { margin-bottom: 6px; }

.path-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.path-endpoint { display: flex; align-items: center; gap: 8px; }

.path-select-btn {
    padding: 6px 14px;
    background: var(--bg-off);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.15s;
}

.path-select-btn:hover { background: var(--border); }

.path-select-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.path-node-label { font-size: 14px; color: var(--text-muted); }
.path-actions { display: flex; gap: 8px; }

#find-path-btn {
    padding: 6px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

#find-path-btn:hover { background: #059669; }

#clear-path-btn {
    padding: 6px 16px;
    background: var(--bg-off);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

#clear-path-btn:hover { background: var(--border); }

#path-result {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
}

#path-result ol { margin-top: 4px; padding-left: 20px; }
#path-result li { padding: 2px 0; }
.alt-path { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ==============================
   Footer
   ============================== */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==============================
   Loading Overlay
   ============================== */

#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#loading { font-size: 16px; color: var(--text-secondary); }
#loading-progress { font-size: 14px; color: var(--accent); margin-top: 8px; }

/* ==============================
   Path Explorer Page
   ============================== */

.path-search-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.path-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.path-input-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.path-input-group input {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    width: 260px;
    background: var(--bg-white);
    color: var(--text-primary);
}

.path-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-primary {
    padding: 6px 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    padding: 6px 18px;
    background: var(--bg-off);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.btn-secondary:hover { background: var(--border); }

/* Autocomplete dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.suggestions-dropdown.visible { display: block; }

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-off); }
.suggestion-country { color: var(--text-muted); font-size: 12px; }

/* Path info panel (reuses #info-panel pattern) */
#path-info-panel {
    position: absolute;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100%;
    background: var(--net-panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 24px 20px;
    transition: right 0.3s ease;
    z-index: 5;
    color: var(--text-primary);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
}

#path-info-panel.visible { right: 0; }

/* Path hop details */
.path-hop {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.path-hop:last-child { border-bottom: none; }

.path-hop-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.path-hop-stats {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.path-hop-companies {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

#path-legend {
    padding-bottom: 20px;
}

/* Path legend */
.path-legend-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* ==============================
   Analysis Page
   ============================== */

.analysis-header {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.analysis-header h1 {
    font-size: 28px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

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

.analysis-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding-bottom: 80px;
}

/* Sticky side nav */
.analysis-nav {
    position: relative;
}

.analysis-nav-inner {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.analysis-nav-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.analysis-nav a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-left: 2px solid transparent;
    border-radius: 0;
    transition: all 0.15s;
    line-height: 1.4;
}

.analysis-nav a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.analysis-nav a.active {
    color: var(--text-primary);
    font-weight: 600;
    border-left-color: var(--accent);
}

/* Content area */
.analysis-content {
    max-width: 720px;
    min-width: 0;
}

.analysis-section {
    margin-bottom: 48px;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.analysis-section h2 {
    font-size: 22px;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.analysis-section p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.analysis-section a {
    color: var(--accent);
}

.analysis-section a:hover {
    text-decoration: underline;
}

/* Figures */
.analysis-figure {
    margin: 28px 0;
    padding: 20px;
    background: var(--bg-off);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.analysis-figure h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.analysis-figure .figure-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.analysis-figure img {
    width: 100%;
    border-radius: 6px;
}

.analysis-figure .footnote {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Network image slider */
.network-slider {
    margin-top: 12px;
}

.network-slider-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.network-year-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 48px;
}

.network-slider input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

/* Terminology box */
.terminology-box {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--bg-off);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.terminology-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.terminology-box dl {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terminology-box dt {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.terminology-box dd {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 0;
    line-height: 1.6;
}

/* Key findings box */
.key-findings-box {
    margin: 20px 0;
    padding: 20px 24px;
    background: var(--bg-off);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.key-findings-box h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.key-findings-box ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-findings-box li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.key-findings-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Highlight box */
.highlight-box {
    margin: 20px 0;
    padding: 20px 24px;
    background: #eef2ff;
    border-radius: 10px;
    border: 1px solid #c7d2fe;
}

.highlight-box p {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footnote */
.analysis-section > .footnote {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -6px;
}

/* Author cards */
.author-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-off);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.author-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-card li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About page */
.page-content + .about-authors { margin-top: -48px; }

.about-authors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-off);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.about-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 0%;
    margin-bottom: 16px;
}

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

.about-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.about-links a {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
}

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

/* Responsive: collapse side nav on small screens */
@media (max-width: 768px) {
    .hero-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .analysis-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .analysis-nav {
        display: none;
    }
    .about-authors {
        grid-template-columns: 1fr;
    }
}
