/*
 * solution-detail.css — Level 2 solution detail pages.
 * These show chemistry tables, problem → solution pairings, chemical family deep-dives.
 */

/* ── Solution Hero ── */
.sol-hero {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-deep) 60%, var(--navy) 100%);
    padding: 52px 48px 48px;
    position: relative;
    overflow: hidden;
}

.sol-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 167, 45, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.sol-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sol-hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 10px;
}

.sol-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.6px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.sol-hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    line-height: 1.75;
}

/* ── Solution Body Layout ── */
.solution-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 48px 64px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.solution-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.solution-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Section card ── */
.sol-section {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sol-section-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sol-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: -0.2px;
}

.sol-section-body {
    padding: 20px 24px;
}

/* ── Problem → Solution pairs ── */
.wim-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.wim-card:last-child {
    margin-bottom: 0;
}

.wim-problem {
    padding: 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
}

.wim-problem-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.wim-problem-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
}

.wim-solution {
    padding: 16px 20px;
    background: var(--white);
}

.wim-solution-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}

/* ── Chemistry cards (recommended chemicals) ── */
.chem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.rc-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rc-card:hover {
    background: var(--navy-wash);
    border-color: rgba(31, 71, 136, 0.2);
}

.rc-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
}

.rc-cas {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.rc-role {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--navy-wash);
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    margin-top: 4px;
    align-self: flex-start;
}

/* ── Sidebar navigation ── */
.sb-nav-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}

.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.sb-nav-link:hover,
.sb-nav-link.active {
    background: var(--navy-wash);
    color: var(--navy);
}

.sb-nav-link.active {
    font-weight: 600;
}

/* ── Steps timeline ── */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 38px;
    bottom: -8px;
    width: 2px;
    background: var(--border-light);
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy-wash);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
    margin-bottom: 24px;
}

.step-content {
    padding-top: 8px;
    padding-bottom: 24px;
}

.step-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .solution-layout {
        grid-template-columns: 1fr;
        padding: 24px 20px 48px;
    }

    .solution-sidebar {
        position: static;
    }

    .sol-hero {
        padding: 40px 24px 36px;
    }

    .sol-hero h1 {
        font-size: 26px;
    }
}
