/* ============================================
   NeuroMap Interactive Cognitive Map
   Design tokens from landing page
   ============================================ */

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

:root {
    --bg-deep: #0a0e1a;
    --bg-surface: #111827;
    --bg-card: #1a2236;
    --bg-card-hover: #1e2844;
    --accent-blue: #60a5fa;
    --accent-cyan: #22d3ee;
    --accent-violet: #a78bfa;
    --accent-rose: #fb7185;
    --accent-amber: #fbbf24;
    --accent-green: #34d399;
    --accent-pink: #f472b6;
    --accent-orange: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.08);
    --border-hover: rgba(148, 163, 184, 0.15);
    --sidebar-width: 280px;
    --topbar-height: 60px;
    --transition: 0.2s ease;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* Neural network background */
.neural-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(96, 165, 250, 0.04), transparent),
        radial-gradient(ellipse 600px 800px at 80% 60%, rgba(167, 139, 250, 0.03), transparent),
        radial-gradient(ellipse 500px 400px at 50% 90%, rgba(34, 211, 238, 0.025), transparent);
}

/* ---- APP LAYOUT ---- */
.app-layout {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent-cyan); }

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(148, 163, 184, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(34, 211, 238, 0.05);
    color: var(--text-primary);
    border-left-color: var(--accent-cyan);
}

.nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-ref {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ref-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- TOPBAR ---- */
.topbar {
    height: var(--topbar-height);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
    flex-shrink: 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition);
}
.breadcrumb-item:hover { color: var(--text-primary); }

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

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ---- CONTENT AREA ---- */
.content-area {
    flex: 1;
    padding: 2rem;
    max-width: 1100px;
}

.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- OVERVIEW ---- */
.overview-hero {
    margin-bottom: 3rem;
}

.overview-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overview-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.7;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* ---- CARD GRID ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card:hover::before { opacity: 1; }

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.card-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition);
    font-size: 1.2rem;
}

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

/* Small cards for impacts */
.card-sm {
    padding: 1.2rem;
}

.card-sm .card-icon {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.card-sm .card-title {
    font-size: 0.9rem;
}

.card-sm .card-subtitle {
    font-size: 0.75rem;
}

/* Diagnosis cards */
.card-diag {
    padding: 1.2rem;
}

.card-diag .card-icon {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.card-diag .card-title {
    font-size: 0.88rem;
}

.card-diag .prevalence {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-top: 0.3rem;
}

/* ---- DETAIL VIEW ---- */
.detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.detail-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

/* Info panels */
.info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.info-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.info-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.info-panel-toggle {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform var(--transition);
    font-size: 0.9rem;
}

.info-panel.collapsed .info-panel-body { display: none; }
.info-panel.collapsed .info-panel-toggle { transform: rotate(-90deg); }

.info-panel-body {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

.info-panel-body p { margin-bottom: 0.75rem; }
.info-panel-body strong { color: var(--text-primary); font-weight: 500; }

/* Subtype cards */
.subtype-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.subtype-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}

.subtype-header:hover {
    background: rgba(148, 163, 184, 0.03);
}

.subtype-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.subtype-toggle {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.subtype-card.collapsed .subtype-body { display: none; }
.subtype-card.collapsed .subtype-toggle { transform: rotate(-90deg); }

.subtype-body {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
}

.subtype-section {
    margin-top: 1.25rem;
}

.subtype-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

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

.clinical-signs {
    list-style: none;
    padding: 0;
}

.clinical-signs li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.clinical-signs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.tool-badge {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* Reference tags */
.ref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.ref-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

/* Links section */
.links-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.links-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.75rem;
}

.link-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.link-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.link-chip-icon {
    font-size: 1rem;
}

/* ---- IMPACT DETAIL ---- */
.age-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.age-tab {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'DM Sans', sans-serif;
}

.age-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.age-tab.active {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
}

.impact-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.impact-item-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.impact-item-detail {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- DIAGNOSIS DETAIL ---- */
.diag-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.diag-meta-item {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.diag-meta-value {
    color: var(--accent-cyan);
    font-weight: 600;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.comparison-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table td {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
    vertical-align: top;
}

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

.comparison-table .feature-label {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    width: 150px;
}

.col-adhd {
    background: rgba(34, 211, 238, 0.03);
}

.col-other {
    background: rgba(251, 113, 133, 0.03);
}

.pearl-box {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(96, 165, 250, 0.05));
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.pearl-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

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

/* ---- BACK BUTTON ---- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: color var(--transition);
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.back-btn:hover { color: var(--text-primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .menu-btn {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .content-area {
        padding: 1.5rem;
    }

    .card-grid,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .card-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-hero h1 {
        font-size: 1.6rem;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .topbar {
        padding: 0 1rem;
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .card-grid-5 {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 1.4rem;
    }

    .diag-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   COMORBIDITIES TABLE (integrated view)
   ============================================ */

/* Domain colors */
:root {
    --d-internalise: #5b87c9;
    --d-externalise: #d04f42;
    --d-neuro: #9b7ec7;
    --d-substance: #d98940;
    --d-sommeil: #28a0b4;
    --d-perso: #a8528e;
    --d-somatique-meta: #4ca058;
    --d-somatique-atop: #7a9e3d;
    --d-somatique-neuro: #8c5a38;
    --d-somatique-trauma: #7a7a7a;
    --d-autres: #3d8ca0;
    --freq-tres: #fb7185;
    --freq-moy: #fbbf24;
    --freq-peu: #60a5fa;
    --type-psy: #a78bfa;
    --type-som: #34d399;
    --type-mix: #f59e0b;
}

/* Wider content area for comorbidities table */
.content-area.wide { max-width: 1400px; }

/* Page header */
.comorb-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.comorb-header h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.5rem; }
.comorb-subtitle { font-size: 0.95rem; color: var(--text-secondary); max-width: 750px; line-height: 1.7; }

/* Controls / Filters */
.comorb-controls { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.comorb-filter-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.comorb-filter-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; min-width: 80px; flex-shrink: 0; }
.comorb-filter-btn {
    font-family: 'DM Sans', sans-serif; font-size: 0.8rem; padding: 0.4rem 0.9rem;
    border-radius: 100px; border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.comorb-filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); background: rgba(148, 163, 184, 0.05); }
.comorb-filter-btn.active { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(34, 211, 238, 0.08); }

/* Search */
.comorb-search-box { position: relative; max-width: 360px; }
.comorb-search-input {
    font-family: 'DM Sans', sans-serif; width: 100%; padding: 0.55rem 1rem 0.55rem 2.5rem;
    border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-primary); font-size: 0.88rem; outline: none; transition: all var(--transition);
}
.comorb-search-input::placeholder { color: var(--text-muted); }
.comorb-search-input:focus { border-color: rgba(34, 211, 238, 0.3); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.06); }
.comorb-search-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }

/* Stats bar */
.comorb-stats-bar {
    display: flex; gap: 1.5rem; padding: 0.85rem 1.25rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.comorb-stat-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-secondary); }
.comorb-stat-value { font-weight: 600; color: var(--accent-cyan); }

/* Table */
.comorb-table-container { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); }
.comorb-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.comorb-table thead { position: sticky; top: 0; z-index: 10; }
.comorb-table thead th {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.85rem 0.75rem; text-align: left; background: var(--bg-surface);
    border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
    white-space: nowrap; transition: color var(--transition);
}
.comorb-table thead th:hover { color: var(--text-primary); }
.comorb-table thead th .sort-arrow { display: inline-block; margin-left: 4px; font-size: 0.65rem; opacity: 0.4; transition: opacity var(--transition); }
.comorb-table thead th.sorted .sort-arrow { opacity: 1; color: var(--accent-cyan); }

/* Section row (domain group header) */
.comorb-section-row td {
    padding: 0.6rem 0.75rem; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem;
    font-weight: 600; letter-spacing: 0.3px; background: rgba(148, 163, 184, 0.03);
    border-bottom: 1px solid var(--border); color: var(--text-secondary);
}
.comorb-section-row .domain-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.5rem; vertical-align: middle; }

/* Data rows */
.comorb-data-row { transition: background var(--transition); }
.comorb-data-row:hover { background: rgba(148, 163, 184, 0.04); }
.comorb-data-row td { padding: 0.65rem 0.75rem; font-size: 0.85rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: middle; }
.comorb-data-row:last-child td { border-bottom: none; }

/* Cell: comorbidity name */
.comorb-cell-name { position: relative; min-width: 200px; }
.comorb-name { font-weight: 500; color: var(--text-primary); font-size: 0.88rem; display: block; }
.comorb-en { font-size: 0.72rem; color: var(--text-muted); font-style: italic; margin-top: 1px; }
.comorb-domain-tag { font-size: 0.65rem; padding: 0.1rem 0.45rem; border-radius: 100px; margin-top: 3px; display: inline-block; font-weight: 500; }

/* Badges */
.comorb-type-badge { font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 100px; font-weight: 500; white-space: nowrap; }
.comorb-type-psy { color: var(--type-psy); background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.2); }
.comorb-type-som { color: var(--type-som); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.2); }
.comorb-type-mix { color: var(--type-mix); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }

.comorb-pop-badge { font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 100px; font-weight: 500; white-space: nowrap; }
.comorb-pop-child { color: #f472b6; background: rgba(244, 114, 182, 0.1); border: 1px solid rgba(244, 114, 182, 0.2); }
.comorb-pop-adult { color: #60a5fa; background: rgba(96, 165, 250, 0.1); border: 1px solid rgba(96, 165, 250, 0.2); }
.comorb-pop-lifes { color: var(--accent-cyan); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.2); }

.comorb-prev-val { font-weight: 500; color: var(--text-primary); font-size: 0.85rem; }
.comorb-prev-gen { color: var(--text-muted); font-size: 0.82rem; }

/* OR/RR */
.comorb-or-val { font-weight: 600; font-size: 0.85rem; position: relative; cursor: help; }
.comorb-or-very-high { color: #fb7185; }
.comorb-or-high { color: #fbbf24; }
.comorb-or-medium { color: #60a5fa; }
.comorb-or-low { color: var(--text-secondary); }
.comorb-or-tooltip {
    display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--bg-surface); border: 1px solid var(--border-hover); color: var(--text-secondary);
    padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.75rem; font-weight: 400;
    white-space: nowrap; z-index: 20; box-shadow: 0 4px 20px rgba(0,0,0,0.4); pointer-events: none;
}
.comorb-or-val:hover .comorb-or-tooltip { display: block; }

.comorb-freq-badge { font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 100px; font-weight: 500; white-space: nowrap; }
.comorb-freq-tres { color: var(--freq-tres); background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.2); }
.comorb-freq-moy { color: var(--freq-moy); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.2); }
.comorb-freq-peu { color: var(--freq-peu); background: rgba(96, 165, 250, 0.1); border: 1px solid rgba(96, 165, 250, 0.2); }

/* Empty state */
.comorb-empty { display: none; text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); font-size: 0.95rem; }
.comorb-empty.visible { display: block; }

/* Table footer */
.comorb-table-footer {
    margin-top: 1.25rem; padding: 1.25rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 12px; font-size: 0.78rem;
    color: var(--text-muted); line-height: 1.7;
}
.comorb-table-footer .footer-author { font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.comorb-table-footer .footer-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.comorb-footer-legend-item { display: flex; align-items: center; gap: 0.3rem; }

/* Responsive for comorbidities */
@media (max-width: 768px) {
    .comorb-filter-row { flex-wrap: wrap; }
    .comorb-filter-label { min-width: auto; width: 100%; }
    .comorb-search-box { max-width: 100%; }
    .comorb-stats-bar { gap: 0.75rem; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.25);
}

/* ---- MARKDOWN-LIKE FORMATTING ---- */
.formatted-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.formatted-text p {
    margin-bottom: 0.75rem;
}

.formatted-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   PROCESSUS COGNITIFS - 27 PROCESSUS
   ======================================== */

/* Header */
.proc-header {
  margin-bottom: 2rem;
}
.proc-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.proc-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 700px;
}

/* Guide panel */
.proc-guide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.proc-guide-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.proc-guide-header:hover { color: var(--text-primary); }
.proc-guide-arrow { margin-left: auto; transition: transform 0.2s; font-size: 0.8rem; }
.proc-guide.open .proc-guide-arrow { transform: rotate(180deg); }
.proc-guide-body {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.proc-guide.open .proc-guide-body { display: block; }
.proc-guide-body strong { color: var(--text-primary); }
.proc-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 640px) { .proc-guide-grid { grid-template-columns: 1fr; } }
.proc-guide-item { background: var(--bg-surface); border-radius: 8px; padding: 0.75rem 1rem; }
.proc-guide-item-title { font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; font-size: 0.85rem; }

/* Controls */
.proc-controls {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.proc-filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.proc-filter-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.proc-filter-btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.proc-filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.proc-filter-btn.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent-cyan);
}
.proc-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}
.proc-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  flex: 1;
  min-width: 160px;
}
.proc-search-input::placeholder { color: var(--text-muted); }

/* Stats bar */
.proc-stats-bar {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.proc-stat-value { color: var(--accent-cyan); font-weight: 600; }

/* Table */
.proc-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.proc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.proc-table thead th {
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}
.proc-table thead th:hover { color: var(--text-primary); }
.proc-table thead th.sorted { color: var(--accent-cyan); }
.proc-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.proc-table tbody tr:last-child { border-bottom: none; }
.proc-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.proc-table td { padding: 0.85rem 1rem; vertical-align: top; }

/* Tier section rows */
.proc-tier-row td {
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.proc-tier-label {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tier-a-label { color: #22c55e; }
.tier-b-label { color: #f59e0b; }
.tier-c-label { color: #94a3b8; }

/* Process name cell */
.proc-cell-name {}
.proc-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}
.proc-en {
  font-size: 0.77rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}
.proc-manifestations-preview {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.proc-manifestations-preview li { margin-bottom: 0.15rem; padding-left: 1rem; position: relative; }
.proc-manifestations-preview li::before { content: "•"; position: absolute; left: 0; color: var(--text-muted); }

/* Effect size cell */
.proc-cell-effect { min-width: 120px; }
.proc-effect-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.proc-effect-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.proc-effect-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.effect-d-high   { background: linear-gradient(90deg, #22c55e, #86efac); }
.effect-d-mod    { background: linear-gradient(90deg, #f59e0b, #fde68a); }
.effect-d-small  { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }

/* Func badge */
.proc-func-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
}
.func-fe     { background: rgba(96,165,250,0.12); color: #93c5fd; }
.func-att    { background: rgba(34,211,238,0.1);  color: #67e8f9; }
.func-tmp    { background: rgba(167,139,250,0.1); color: #c4b5fd; }
.func-mot    { background: rgba(251,191,36,0.1);  color: #fde68a; }
.func-mem    { background: rgba(52,211,153,0.1);  color: #6ee7b7; }
.func-emo    { background: rgba(251,113,133,0.1); color: #fda4af; }
.func-soc    { background: rgba(248,113,113,0.1); color: #fca5a5; }

/* Impact tags */
.proc-impact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.proc-impact-tag {
  font-size: 0.73rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(148,163,184,0.15);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.proc-impact-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(34,211,238,0.05);
}

/* Specificity badge */
.proc-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.spec-high  { background: rgba(34,211,238,0.1);  color: #22d3ee; border: 1px solid rgba(34,211,238,0.2); }
.spec-mod   { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.spec-low   { background: rgba(148,163,184,0.08); color: #94a3b8; border: 1px solid rgba(148,163,184,0.15); }
.proc-spec-badge:hover { opacity: 0.85; transform: translateY(-1px); }

/* References */
.proc-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.proc-ref-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(148,163,184,0.07);
  color: var(--text-muted);
  border: 1px solid rgba(148,163,184,0.1);
  cursor: pointer;
  transition: all var(--transition);
}
.proc-ref-tag:hover { color: var(--text-secondary); background: rgba(148,163,184,0.12); }

/* Empty state */
.proc-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: none;
}
.proc-empty.visible { display: block; }

/* Footer */
.proc-table-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.proc-footer-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   MODALES (shared for proc + spec)
   ======================================== */
.nm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nm-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.nm-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.75rem;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s;
  position: relative;
}
.nm-modal-overlay.active .nm-modal {
  transform: translateY(0) scale(1);
}
.nm-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(148,163,184,0.1);
  border: none;
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.nm-modal-close:hover { background: rgba(148,163,184,0.2); color: var(--text-primary); }
.nm-modal-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.nm-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}
.nm-modal-section {
  margin-bottom: 1.25rem;
}
.nm-modal-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.nm-modal-list {
  list-style: none;
  padding: 0;
}
.nm-modal-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(148,163,184,0.06);
  padding-left: 1.25rem;
  position: relative;
}
.nm-modal-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-cyan); font-size: 0.8rem; }
.nm-modal-list li:last-child { border-bottom: none; }
.nm-modal-diag-block {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.nm-modal-diag-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.nm-modal-diag-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.nm-modal-question {
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.nm-modal-question strong { color: var(--accent-cyan); }


/* Modal nav link */
.nm-modal-nav {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.nm-modal-nav-link {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nm-modal-nav-link:hover { opacity: 0.8; text-decoration: underline; }

/* ==========================================
   RETENTISSEMENTS VIEW
   ========================================== */
.ret-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.ret-header h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.ret-subtitle { font-size: 0.92rem; color: var(--text-secondary); max-width: 700px; line-height: 1.7; }

.ret-domain-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.ret-domain-tab {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.83rem;
  transition: all 0.2s; text-decoration: none;
}
.ret-domain-tab:hover { border-color: var(--border-hover); color: var(--text-primary); }
.ret-domain-tab.active { color: var(--text-primary); border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.07); }

.ret-domain-hero {
  display: flex; align-items: flex-start; gap: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 4px solid; border-radius: 14px; padding: 1.5rem 1.75rem; margin-bottom: 2rem;
}
.ret-domain-icon { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }
.ret-domain-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.ret-domain-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }

.ret-processes-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.ret-process-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.ret-process-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.ret-process-chip:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(34,211,238,0.05); }
.ret-process-chip .chip-tier { font-size: 0.7rem; color: var(--text-muted); }

.ret-observations-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.ret-observation-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.ret-observation-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.ret-obs-process-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.ret-obs-examples { list-style: none; padding: 0; }
.ret-obs-examples li { font-size: 0.82rem; color: var(--text-secondary); padding: 0.2rem 0 0.2rem 1rem; position: relative; line-height: 1.5; }
.ret-obs-examples li::before { content: "·"; position: absolute; left: 0; color: var(--text-muted); }

.ret-coming-soon {
  background: rgba(34,211,238,0.04); border: 1px dashed rgba(34,211,238,0.2);
  border-radius: 12px; padding: 1.5rem 2rem; text-align: center; margin-bottom: 2rem;
}
.ret-coming-soon h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.ret-coming-soon p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }
.ret-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: 100px;
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.25);
  color: var(--accent-cyan); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.ret-cta-btn:hover { background: rgba(34,211,238,0.15); }

/* Overview pillar cards */
.overview-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .overview-pillars { grid-template-columns: 1fr; } }
.pillar-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
}
.pillar-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.pillar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.pillar-card-1::before { background: linear-gradient(90deg,#22d3ee,#60a5fa); }
.pillar-card-2::before { background: linear-gradient(90deg,#34d399,#22d3ee); }
.pillar-card-3::before { background: linear-gradient(90deg,#a78bfa,#fb7185); }
.pillar-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.pillar-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-primary); }
.pillar-count { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.pillar-desc { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.75rem; }
.pillar-arrow { font-size: 0.85rem; color: var(--accent-cyan); }
