/* ============================================================
   research.css — styles for the interactive doctoral research
   page (/research/). Loaded in addition to style.css.
   ============================================================ */

/* ---- Layout helpers ---- */
.container.narrow {
    max-width: 760px;
}

#through-line p,
#next p {
    font-size: 1.08rem;
    line-height: 1.8;
}

/* ---- Hero ---- */
.research-hero {
    padding: calc(var(--header-height) + 64px) 0 40px;
}

.research-hero .container {
    max-width: 860px;
}

.research-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 18px;
}

.research-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 22px;
}

.research-thesis-title {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 22px;
    max-width: 720px;
}

.research-lede {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 720px;
}

/* ---- Model sections ---- */
.model-section {
    padding: 30px 0;
}

.model-section .model-module {
    margin-bottom: 0;
}

/* ---- Segmented control ---- */
.seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
}

.seg-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.seg-btn:hover {
    color: var(--text-main);
}

.seg-btn.active {
    background: var(--accent-gradient);
    color: #fff;
}

/* Single-letter base buttons sit on a tighter, fixed grid */
#mb-base .seg-btn {
    min-width: 44px;
    text-align: center;
    font-size: 1rem;
}

/* ---- Controls: a control that spans the full grid row ---- */
.control-wide {
    grid-column: 1 / -1;
}

.mb-wt {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-left: 8px;
}

.mb-wt #mb-wt {
    color: var(--accent-primary);
    font-weight: 700;
}

/* ---- Model B chart grid ---- */
.mb-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    margin-bottom: 22px;
}

@media (max-width: 720px) {
    .mb-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Notes: findings + further reading ---- */
.model-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
    .model-notes {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.note-block h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 14px;
}

.note-block h4 i {
    color: var(--accent-secondary);
    font-size: 0.95rem;
}

.note-block ul {
    list-style: none;
    padding: 0;
}

.note-block li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.note-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.note-block li em {
    color: var(--text-main);
    font-style: italic;
}

.ref-list li {
    font-size: 0.9rem;
}

.ref-list a {
    color: var(--accent-primary);
    font-weight: 600;
    word-break: break-word;
}

.ref-list a:hover {
    text-decoration: underline;
}

/* ---- Shared chart text classes used by research.js ---- */
.chart-title {
    fill: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}

.chart-peaklabel {
    fill: var(--text-main);
    font-size: 13px;
    font-weight: 600;
}

.chart-note {
    fill: var(--text-muted);
    font-size: 12px;
}

.chart-seq {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
}

/* ---- Model A stage ---- */
.asm-stage {
    background: rgba(255, 255, 255, 0.02);
}

.asm-caption {
    fill: var(--text-muted);
    font-size: 12px;
}

.asm-regime {
    fill: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}
