/* ─── this is very cluttered, fix later ─── */


@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;1,300&family=DM+Sans:wght@300;400;500&display=swap');

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

body {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 2rem;
    border-bottom: 0.5px solid rgba(0,0,0,0.07);
    background: rgba(247,245,242,0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 64px;
}

.nav-brand {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1814;
    text-decoration: none;
}

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

.nav-links a {
    font-size: 0.82rem;
    color: #8a8680;
    text-decoration: none;
    letter-spacing: 0.03em;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: #1a1814;
    background: rgba(0,0,0,0.04);
}

.nav-links a.active {
    color: #1a1814;
    background: rgba(0,0,0,0.06);
}


:root {
    --bg:        #f7f5f2;
    --surface:   #ffffff;
    --text:      #1a1814;
    --muted:     #8a8680;
    --accent:    #7c6af7;
    --accent-lt: #ede9ff;
    --radius:    14px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

body.home-page main {
    width: min(1100px, 100% - 3rem);
    margin: 0 auto;
}

/* ── Home Hero ── */
.hero {
    padding: 4.2rem 0 3.4rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4f46b5;
    background: #ecebff;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.8rem;
    align-items: stretch;
}

.hero-copy {
    padding-right: 1rem;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
    color: var(--text);
}

.hero-accent {
    font-style: normal;
    color: #4f46b5;
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 0 1.6rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-primary, .btn-ghost {
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.66rem 1.1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #4f46b5;
    color: #fff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: #433ca0;
    transform: translateY(-1px);
}

.btn-ghost {
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.12);
}

.btn-ghost:hover {
    border-color: rgba(0,0,0,0.2);
}

.hero-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-meta-item {
    font-size: 0.76rem;
    color: #5f5b56;
    background: #efede9;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
}

.hero-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.05);
}

.panel-title {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a766f;
    margin-bottom: 0.85rem;
}

.panel-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.panel-list li {
    font-size: 0.95rem;
    color: #2a2723;
    line-height: 1.45;
    padding-left: 1rem;
    position: relative;
}

.panel-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #5b53c7;
    position: absolute;
    left: 0;
    top: 0.48rem;
}

.home-features {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 1rem;
}

.feature-title {
    font-size: 0.92rem;
    color: #201d19;
    margin-bottom: 0.4rem;
}

.feature-copy {
    font-size: 0.88rem;
    color: #76716b;
    line-height: 1.5;
}

@media (max-width: 900px) {
    body.home-page main {
        width: min(100% - 1.4rem, 860px);
    }

    .site-header {
        padding: 0.85rem 1rem;
    }

    .hero {
        padding-top: 2.8rem;
    }

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

    .hero-copy {
        padding-right: 0;
    }

    .home-features {
        grid-template-columns: 1fr;
    }
}





/* ── Brain layout ── */
.brain-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: calc(100vh - 57px);
    overflow: hidden;
}

/* ── Sidebar ── */
.brain-sidebar {
    border-right: 0.5px solid rgba(0,0,0,0.07);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.2rem 1.4rem 0.8rem;
    border-bottom: 0.5px solid rgba(0,0,0,0.07);
}

.sidebar-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8a8680;
    font-family: 'DM Sans', sans-serif;
}

.sidebar-body {
    overflow-y: auto;
    flex: 1;
    padding: 0.6rem 0 2rem;
}

.sidebar-body::-webkit-scrollbar { width: 3px; }
.sidebar-body::-webkit-scrollbar-track { background: transparent; }
.sidebar-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 99px; }

.sidebar-section {
    padding: 1rem 1.4rem;
    border-bottom: 0.5px solid rgba(0,0,0,0.05);
}

.section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #b0ada8;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 0.7rem;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #8a8680;
    cursor: pointer;
    transition: all 0.15s ease;
}

.option-btn:hover {
    background: #f7f5f2;
    color: #1a1814;
}

.option-btn.active {
    background: #EEEDFE;
    color: #534AB7;
    font-weight: 500;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.param-label {
    font-size: 0.82rem;
    color: #8a8680;
    font-family: 'DM Sans', sans-serif;
}

.param-value {
    font-size: 0.82rem;
    color: #1a1814;
    font-family: 'Fraunces', serif;
}

.param-slider {
    width: 100%;
    margin-bottom: 1rem;
    accent-color: #7c6af7;
}

/* ── Main canvas area ── */
.brain-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f5f2;
}

.brain-canvas-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#brain-canvas {
    width: 100%;
    height: 100%;
}

.brain-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 0.85rem;
    color: #8a8680;
    font-family: 'DM Sans', sans-serif;
}

/* ─── Integrated Test UI Styles ─── */

/* ─── Loading ─── */
#loading {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0a0a0f;
    z-index: 100;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
    transition: opacity 0.6s ease;
}

#loading.hidden {
    opacity: 0; pointer-events: none;
}

.loader-ring {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid rgba(99,102,241,0.15);
    border-top-color: #818cf8;
    animation: spin 1s linear infinite;
}

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

#loading p {
    font-size: 14px;
    color: rgba(200,200,220,0.6);
    font-weight: 300;
}

.progress-text {
    font-size: 11px;
    color: rgba(200,200,220,0.3);
    font-family: monospace;
}

/* ─── Region Tooltip ─── */
#region-tooltip {
    position: fixed;
    z-index: 150;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    display: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transition: opacity 0.15s ease;
}

#region-tooltip .color-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* ─── Region Click Popup ─── */
#region-popup {
    position: fixed;
    z-index: 170;
    width: min(320px, calc(100vw - 24px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 14px 12px 12px;
    color: var(--text);
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

#region-popup .popup-close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: #f5f3ff;
    color: #4f46b5;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

#region-popup .popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-right: 30px;
}

#region-popup .color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#region-popup .popup-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

#region-popup .popup-description {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

#region-popup.preset-popup {
    width: min(720px, calc(100vw - 48px));
    min-height: 260px;
    max-height: min(78vh, 640px);
    padding: 24px 26px 22px 24px;
    border-radius: 16px;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    transform: translate(-50%, -50%);
    overflow: auto;
}

#region-popup.preset-popup .popup-close {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    font-size: 14px;
}

#region-popup.preset-popup .popup-header {
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 42px;
}

#region-popup.preset-popup .color-dot {
    width: 14px;
    height: 14px;
}

#region-popup.preset-popup .popup-title {
    font-size: clamp(21px, 2.6vw, 30px);
    line-height: 1.2;
}

#region-popup.preset-popup .popup-description {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.68;
}

/* ─── Bottom controls ─── */
.overlay-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px 28px;
    background: linear-gradient(to top, rgba(10,10,15,0.7) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.controls-hint {
    display: flex; gap: 16px;
    font-size: 11px;
    color: rgba(20,20,20,0.5);
    letter-spacing: 0.3px;
}

.controls-hint .key {
    display: inline-block;
    padding: 2px 7px; border-radius: 4px;
    background: rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 10px; margin-right: 4px;
    font-family: monospace;
}

.stats {
    font-size: 11px;
    color: rgba(20,20,20,0.45);
    text-align: right; line-height: 1.6;
}

/* ─── Cross-Section Controls ─── */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.toggle-row label {
    font-size: 12px;
    color: rgba(20,20,40,0.7);
}

.toggle-switch {
    position: relative;
    width: 38px; height: 20px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    border-radius: 20px;
    transition: background 0.3s ease;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 2px; top: 2px;
    background: #ccc;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}
.toggle-switch input:checked + .toggle-slider {
    background: rgba(99, 102, 241, 0.5);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: #818cf8;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.slider-row label { font-size: 11px; min-width: 18px; }
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #818cf8;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(129,140,248,0.4);
}

.axis-btns {
    display: flex; gap: 4px; margin-top: 8px;
}
.axis-btn {
    flex: 1; padding: 5px 0; font-size: 11px; font-weight: 500;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.04);
    color: rgba(20,20,40,0.5);
    border-radius: 6px; cursor: pointer;
    transition: all 0.2s; text-align: center;
}
.axis-btn.active {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.4);
    color: #534AB7;
}
.axis-btn:hover:not(.active) {
    background: rgba(0,0,0,0.08);
}

/* ─── Region list ─── */
.region-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    max-height: 250px;
}
.region-list::-webkit-scrollbar { width: 4px; }
.region-list::-webkit-scrollbar-track { background: transparent; }
.region-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    border-radius: 6px;
}
.region-item:hover {
    background: rgba(0,0,0,0.05);
}
.region-item.active {
    background: rgba(99,102,241,0.08);
}
.region-item.dimmed .region-name {
    opacity: 0.3;
}

.region-color {
    width: 12px; height: 12px;
    border-radius: 4px; flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}
.region-name {
    font-size: 12px; color: rgba(20,20,40,0.8);
    line-height: 1.3; transition: opacity 0.2s;
    font-family: 'DM Sans', sans-serif;
}

#sidebar-close {
    background: none; border: none; font-size: 16px;
    cursor: pointer; color: rgba(20,20,40,0.5);
}
#sidebar-open-btn {
    position: fixed; top: 80px; left: 16px; z-index: 15;
    background: #fff; border: 1px solid rgba(0,0,0,0.1);
    width: 36px; height: 36px; border-radius: 8px;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px;
}
.brain-sidebar.collapsed {
    display: none !important;
}
#sidebar-open-btn.visible {
    display: flex;
}



/* ── Carousel ── */
.carousel-section {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #f0ece4;
}

.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-img.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* if using <img> tags swap the above bg colors for real images */
.carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding: 0 0.2rem;
}

.carousel-meta {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: 'Fraunces', serif;
    font-size: 0.9rem;
    color: #1a1814;
    min-width: 52px;
}

.carousel-sep {
    color: #c4c0bc;
    font-size: 0.8rem;
}

.carousel-total {
    color: #c4c0bc;
    font-size: 0.78rem;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    border: none;
    background: #d4d0cc;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.active {
    width: 22px;
    background: #7c6af7;
}

.carousel-arrows {
    display: flex;
    gap: 6px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 99px;
    border: 0.5px solid rgba(0,0,0,0.12);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a1814;
    transition: all 0.2s ease;
}

.arrow-btn:hover {
    background: #EEEDFE;
    border-color: #c4baff;
    color: #534AB7;
}

.arrow-btn:active {
    transform: scale(0.94);
}


/* ─── Fade ─── */

body {
    opacity: 1;
    transition: opacity 0.35s ease;
}

body.fade-out {
    opacity: 0;
}



/* ── About hero ── */
.about {
    background: #f7f5f2;
    min-height: 100vh;
}

.about-hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #534AB7;
    background: #EEEDFE;
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 1.6rem;
    font-family: 'DM Sans', sans-serif;
}

.about-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1a1814;
}

.about-accent {
    font-style: italic;
    color: #7c6af7;
}

/* ── Mission layout ── */
.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-body {
    position: sticky;
    top: 5rem;
}

.mission-sources {
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.mission-subheading {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: #1a1814;
    margin-bottom: 0.8rem;
}


/* ── Mission text ── */

.about-mission {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 4rem 6rem;
}


.mission-heading {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 300;
    line-height: 1.5;
    color: #1a1814;
    margin-bottom: 1.6rem;
}

.mission-heading em {
    font-style: italic;
    color: #7c6af7;
}

.mission-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #8a8680;
    line-height: 1.85;
    margin-bottom: 1.2rem;
    font-weight: 300;
}

/* ── Mission carousel ── */
.mission-carousel {
    padding-top: 0.4rem;
}

.mission-carousel .carousel-section {
    padding: 0;
}

.mission-carousel .carousel-track {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8e4f0;
    position: relative;
}

.mission-carousel .carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-carousel .carousel-img.active {
    opacity: 1;
    transform: scale(1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .mission-body {
        position: static;
    }
}



/* ── Sources panel ── */
.mission-sources {
    margin-top: 2.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    background: linear-gradient(135deg, #fdfcfb 0%, #fff 100%);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: box-shadow 0.3s ease;
}

.mission-sources:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}

.sources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(180deg, rgba(124,106,247,0.02) 0%, transparent 100%);
}

.sources-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #7c6af7;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

.sources-count {
    font-size: 0.75rem;
    color: #8a8680;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}

.sources-list {
    max-height: none;
    overflow-y: visible;
    padding: 0.2rem 0;
}

.sources-list::-webkit-scrollbar { width: 3px; }
.sources-list::-webkit-scrollbar-track { background: transparent; }
.sources-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 99px;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.1rem 1.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.source-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #7c6af7 0%, rgba(124,106,247,0) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.source-item:hover {
    background: linear-gradient(90deg, rgba(124,106,247,0.04) 0%, rgba(124,106,247,0) 100%);
}

.source-item:hover::before {
    opacity: 1;
}

.source-item:hover .source-arrow {
    color: #7c6af7;
    transform: translate(2px, -1px);
}

.source-number {
    font-family: 'Fraunces', serif;
    font-size: 0.9rem;
    color: #7c6af7;
    min-width: 28px;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.8;
}

.source-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding-top: 2px;
}

.source-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: #1a1814;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: visible;
    white-space: normal;
}

.source-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: #9b9590;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.source-arrow {
    color: #c4c0bc;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 3px;
}

/* ── AI Disclosure ── */
.ai-disclosure {
    margin-top: 2.5rem;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(135deg, rgba(124,106,247,0.04) 0%, rgba(124,106,247,0.02) 100%);
    border: 1px solid rgba(124,106,247,0.1);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.disclosure-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c6af7;
    opacity: 0.7;
}

.disclosure-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.disclosure-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7c6af7;
}

.disclosure-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: #8a8680;
    line-height: 1.5;
    font-weight: 300;
}