/* ═══════════════════════════════════════════════════════════════════
   Science page styles
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --nw-delta: #6366f1;
    --nw-theta: #8b5cf6;
    --nw-alpha: #06b6d4;
    --nw-beta:  #10b981;
    --nw-gamma: #f59e0b;
}

/* ── HERO ──────────────────────────────────────────────────────── */
.sci-hero {
    padding: var(--size-8) var(--size-7);
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-color: rgba(99,102,241,0.3);
    color: #f8fafc;
}
.sci-hero .eyebrow { color: #a5b4fc; }
.page-h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(120deg, #e0e7ff 0%, #a5b4fc 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sci-hero .lede { color: rgba(248,250,252,0.75); max-width: 70ch; }

/* ── CONTENT SECTIONS ──────────────────────────────────────────── */
.content-section { display: grid; gap: var(--size-5); }
.section-header { max-width: 70ch; }
.section-header h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
}

/* ── PROSE ─────────────────────────────────────────────────────── */
.prose-wide { display: grid; gap: var(--size-4); max-width: 80ch; }
.prose-wide p, .prose p {
    margin: 0;
    line-height: 1.85;
    color: var(--site-text);
}

.prose { display: grid; gap: var(--size-4); }
.prose h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; }

/* ── TWO COLUMN ────────────────────────────────────────────────── */
.two-col { display: grid; gap: var(--size-6); align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 360px; } }

/* ── BANDS STACK ───────────────────────────────────────────────── */
.bands-stack { display: grid; gap: var(--size-5); }

.band-card { overflow: hidden; }

.band-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--size-5) var(--size-6);
    color: white;
    gap: var(--size-4);
}

.band-delta  { background: linear-gradient(135deg, #1e1b4b, #6366f1); }
.band-theta  { background: linear-gradient(135deg, #2e1065, #8b5cf6); }
.band-alpha  { background: linear-gradient(135deg, #0c4a6e, #06b6d4); }
.band-beta   { background: linear-gradient(135deg, #064e3b, #10b981); }
.band-gamma  { background: linear-gradient(135deg, #451a03, #f59e0b); }

.band-greek {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.9;
}

.band-header h3 {
    margin: 0 0 var(--size-1);
    font-size: 1.3rem;
    font-weight: 800;
}

.band-tagline {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.75;
    font-style: italic;
}

.band-eeg {
    flex-shrink: 0;
    width: 200px;
    opacity: 0.7;
}

.eeg-line {
    display: block;
    width: 100%;
    height: 50px;
}

/* ── BAND BODY ─────────────────────────────────────────────────── */
.band-body {
    padding: var(--size-5) var(--size-6);
    display: grid;
    gap: var(--size-5);
}

.two-col-band { }
@media (min-width: 860px) {
    .two-col-band { grid-template-columns: 1fr 240px; }
}

.band-body h4 {
    margin: 0 0 var(--size-2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--site-text-muted);
}

.band-body p {
    margin: 0 0 var(--size-3);
    line-height: 1.8;
    font-size: 0.91rem;
    color: var(--site-text);
}

.band-body p:last-child { margin-bottom: 0; }

/* ── SCI LIST ──────────────────────────────────────────────────── */
.sci-list {
    margin: 0;
    padding-left: var(--size-5);
    display: grid;
    gap: var(--size-2);
}

.sci-list li {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--site-text-muted);
}

.sci-list li em { font-style: italic; color: var(--site-text); }

/* ── AT A GLANCE ───────────────────────────────────────────────── */
.band-at-a-glance {
    display: grid;
    gap: 0;
    align-content: start;
    border: 1px solid var(--site-border);
    border-radius: var(--radius-3);
    overflow: hidden;
}

.bag-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--size-2);
    padding: var(--size-2) var(--size-3);
    font-size: 0.78rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--site-border);
}

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

.bag-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.68rem;
    color: var(--site-text-muted);
    padding-top: 0.1em;
}

/* ── NEUROPLASTICITY ───────────────────────────────────────────── */
.plasticity-timeline {
    padding: var(--size-5);
    display: grid;
    gap: var(--size-3);
}

.pt-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--site-text-muted);
}

.pt-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: var(--size-3);
    font-size: 0.84rem;
    padding: var(--size-2) 0;
    border-bottom: 1px solid var(--site-border);
    line-height: 1.55;
}
.pt-row:last-child { border-bottom: none; }

.pt-when { font-weight: 700; color: var(--site-accent-strong); font-family: var(--font-mono); }

/* ── SAFETY ────────────────────────────────────────────────────── */
.safety-box {
    display: flex;
    gap: var(--size-5);
    align-items: flex-start;
    padding: var(--size-6);
    border-color: rgba(245,158,11,0.4);
    background: rgba(254,252,232,0.8);
}

.safety-icon { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }

.safety-box h3 { margin: 0; font-size: 1.1rem; }

.safety-box p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--site-text-muted);
}

/* ── BOTTOM CTA ────────────────────────────────────────────────── */
.hiw-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--size-5);
    padding: var(--size-6) var(--size-7);
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-color: rgba(99,102,241,0.25);
    color: #f8fafc;
}
.hiw-cta h2 { margin: 0; font-size: clamp(1.4rem,2.5vw,2rem); font-weight:800; color: white; }
.hiw-cta p  { margin: 0; color: rgba(248,250,252,0.65); font-size: 0.92rem; }
.cta-actions { display: flex; gap: var(--size-3); flex-wrap: wrap; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .band-eeg { display: none; }
    .band-header { flex-direction: column; align-items: flex-start; }
    .band-body { padding: var(--size-5); }
    .sci-hero { padding: var(--size-6) var(--size-5); }
}
