@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #101D4D;
    --navy-light: #1A2B6D;
    --steel: #7391C9;
    --steel-dim: #EAF3FF;
    --text-main: #0F172A;
    --text-sub: #475569;
    --text-muted: #94a3b8;
    --border: #E2E8F0;
    --white: #ffffff;
    --bg: #ffffff;
    --shadow-sm: 0 1px 6px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08), 0 8px 32px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--text-main);
    background: var(--bg);
}

/* ─── HERO ─────────────────────────────────────────────── */
.article-hero {
    background: var(--navy);
    padding: 128px 0 72px;
}

.article-hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.article-hero h1 {
    max-width: 680px;
}

.article-hero-sub {
    max-width: 560px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.15s;
}

.article-back-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

.article-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 16px;
}

.article-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.article-hero-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 580px;
    margin: 0;
}

/* ─── LAYOUT ────────────────────────────────────────────── */
.article-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px 40px 100px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 72px;
    align-items: start;
}

.article-sidebar {
    align-self: stretch;
}

/* ─── ARTICLE BODY ──────────────────────────────────────── */
.article-body {
    min-width: 0;
}

.article-lede {
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.8;
    margin: 0 0 48px;
}

.article-lede a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(16, 29, 77, 0.2);
}

.article-lede a:hover {
    border-color: var(--navy);
}

.article-section {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid #F1F5F9;
}

.article-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 12px;
}

.article-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-section p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.75;
    margin: 0 0 20px;
}

.article-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px !important;
    font-style: italic;
}

/* ─── FORMULA ───────────────────────────────────────────── */
.formula-box {
    background: var(--navy);
    border-radius: 12px;
    padding: 32px 36px;
    margin: 28px 0;
}

.formula-main {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: -0.01em;
}

.formula-vars {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    align-items: baseline;
}

.formula-var-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--steel);
    white-space: nowrap;
    padding: 3px 0;
    letter-spacing: 0.02em;
}

.formula-var-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
    padding: 3px 0;
}

/* ─── STEP LIST ─────────────────────────────────────────── */
.step-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}

.step-list li {
    counter-increment: steps;
    display: flex;
    gap: 24px;
    padding: 28px 0;
}

.step-list li+li {
    border-top: 1px solid #F1F5F9;
}

.step-list li::before {
    content: counter(steps, decimal-leading-zero);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: rgba(16, 29, 77, 0.18);
    flex-shrink: 0;
    width: 28px;
    padding-top: 4px;
    letter-spacing: -0.02em;
}

.step-list-body h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.step-list-body p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
}

/* ─── VARIABLE CARDS ────────────────────────────────────── */
.article-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.article-card {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 24px;
}

.article-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.article-card p {
    font-size: 14px;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.6;
}

/* ─── BENCHMARKS ────────────────────────────────────────── */
.benchmark-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 28px;
    background: #F1F5F9;
    border-radius: 12px;
    overflow: hidden;
}

.benchmark-item {
    background: #fff;
    padding: 28px 20px;
    text-align: center;
}

.benchmark-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    display: block;
    margin-bottom: 10px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.benchmark-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── TABLE ─────────────────────────────────────────────── */
.table-scroll {
    overflow-x: auto;
    margin-top: 24px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.aisle-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 560px;
}

.aisle-table th {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: left;
    padding: 13px 18px;
}

.aisle-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-sub);
    background: #fff;
}

.aisle-table td:first-child {
    color: var(--navy);
    font-weight: 600;
}

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

.aisle-table tbody tr:hover td {
    background: #FAFBFC;
}

.aisle-badge-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.aisle-badge-tag.low {
    background: #F1F5F9;
    color: var(--text-sub);
}

.aisle-badge-tag.med {
    background: rgba(16, 29, 77, 0.08);
    color: var(--navy);
}

.aisle-badge-tag.high {
    background: var(--navy);
    color: #fff;
}

/* ─── CONSTRAINTS ───────────────────────────────────────── */
.constraints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 28px;
}

.constraints-header {
    margin-bottom: 20px;
}

.constraints-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0;
}

.constraint-item {
    padding: 16px 0;
    border-top: 1px solid #F1F5F9;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.65;
}

.constraint-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-list {
    margin-top: 28px;
}

.faq-item {
    border-bottom: 1px solid #F1F5F9;
}

.faq-item:first-child {
    border-top: 1px solid #F1F5F9;
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    transition: color 0.15s;
}

.faq-q:hover {
    color: var(--steel);
}

.faq-q svg {
    min-width: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 0 0 20px;
}

.faq-a p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.75;
    margin: 0;
}

.faq-a strong {
    color: var(--navy);
}

.faq-item.open .faq-a {
    display: block;
}

/* ─── BOTTOM CTA ────────────────────────────────────────── */
.article-cta-box {
    background: var(--navy);
    border-radius: 16px;
    padding: 40px 44px;
    margin-top: 72px;
    display: flex;
    gap: 28px;
    align-items: center;
}

.article-cta-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.9;
}

.article-cta-body {
    flex: 1;
}

.article-cta-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.article-cta-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.65;
}

.article-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s;
}

.article-cta-btn.primary {
    background: #fff;
    color: var(--navy);
    border: none;
}

.article-cta-btn.primary:hover {
    background: #f0f4ff;
}

.article-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: none;
}

.article-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* ─── SIDEBAR ───────────────────────────────────────────── */
.sidebar-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--navy);
    border-radius: 12px;
    padding: 24px;
}

.sidebar-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.sidebar-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.sidebar-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0 0 18px;
}

.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-cta-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-benchmarks {
    background: #F8FAFC;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-benchmarks-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 18px 12px;
}

.sidebar-benchmark-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 18px;
    gap: 12px;
}

.sidebar-benchmark-row+.sidebar-benchmark-row {
    border-top: 1px solid #EEF2F7;
}

.sidebar-benchmark-label {
    font-size: 12.5px;
    color: var(--text-sub);
}

.sidebar-benchmark-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.sidebar-matt {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.sidebar-matt-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-matt-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.sidebar-matt-sub {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.4;
    margin-bottom: 8px;
}

.sidebar-matt-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}

.sidebar-matt-link:hover {
    text-decoration: underline;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 20px 80px;
    }

    .article-hero-inner {
        padding: 0 20px;
    }

    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sidebar-matt {
        grid-column: span 2;
    }

    .constraints-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .article-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

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

    .article-cta-box {
        flex-direction: column;
        gap: 20px;
        padding: 32px 28px;
    }
}

@media (max-width: 600px) {
    .article-hero {
        padding: 88px 0 52px;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .article-hero-sub {
        font-size: 15px;
    }

    .sidebar-sticky {
        position: static;
        grid-template-columns: 1fr;
    }

    .sidebar-matt {
        grid-column: auto;
    }

    .article-grid-4 {
        grid-template-columns: 1fr;
    }

    .benchmark-row {
        grid-template-columns: 1fr 1fr;
    }

    .formula-vars {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .formula-var-name {
        padding-top: 12px;
    }

    .article-section {
        margin-top: 48px;
        padding-top: 48px;
    }

    .formula-box {
        padding: 24px 20px;
    }
}