/*
 * ti-article.css — Technical Insights article pages
 * Supplement to srpepl-global.css + srpepl-solutions.css.
 * This file covers ONLY what those files don't already provide:
 *   1. Reading progress bar
 *   2. Article typography tweaks
 *   3. Numbered step list
 *   4. Project reference cards (ti-refs-grid / ti-ref-card)
 *   5. Footnotes section
 */

/* ── READING PROGRESS BAR ─────────────────────────────────── */
.ti-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--blue-accent), var(--blue-stripe));
    z-index: 9999;
    transition: width .1s linear;
}

/* ── ARTICLE TYPOGRAPHY ───────────────────────────────────── */
/* Content h2 — section headings inside article */
.page-content h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin: 2.8rem 0 .9rem;
    padding-top: .5rem;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 1.8rem 0 .55rem;
}

.page-content p {
    font-size: .95rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.page-content ul,
.page-content ol {
    margin: .5rem 0 1.2rem 1.4rem;
}

.page-content li {
    font-size: .93rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: .35rem;
}

.page-content sup a {
    color: var(--blue-accent);
    font-size: .72em;
    text-decoration: none;
}

/* ── NUMBERED STEP LIST ───────────────────────────────────── */
.ti-steps {
    list-style: none;
    margin: 1rem 0 1.4rem;
    padding: 0;
    counter-reset: step;
}

.ti-steps li {
    counter-increment: step;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    font-size: .93rem;
    color: var(--text-mid);
    line-height: 1.7;
    padding: .7rem 0;
    border-bottom: 1px solid #f0f2f8;
}

.ti-steps li:last-child {
    border-bottom: none;
}

.ti-steps li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue-accent);
    color: #fff;
    font-family: var(--font-cond);
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .15rem;
}

/* ── PROJECT REFERENCE CARDS ──────────────────────────────── */
.ti-refs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.4rem 0 1.8rem;
}

.ti-ref-card {
    background: var(--panel-bg);
    border: 1px solid #dde3ef;
    border-left: 4px solid var(--blue-accent);
    border-radius: 0 12px 12px 0;
    padding: 1.3rem 1.4rem;
}

.ti-ref-card-eyebrow {
    font-family: var(--font-cond);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--blue-accent);
    margin-bottom: .5rem;
}

.ti-ref-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 .5rem;
}

.ti-ref-card p {
    font-size: .82rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0;
}

/* ── FOOTNOTES ────────────────────────────────────────────── */
.ti-footnotes {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dde3ef;
}

.ti-footnotes h4 {
    font-family: var(--font-cond);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: .85rem;
}

.ti-footnotes ol {
    margin: 0 0 0 1.3rem;
    padding: 0;
}

.ti-footnotes li {
    font-size: .78rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: .3rem;
}

.ti-footnotes a {
    color: var(--blue-accent);
    text-decoration: none;
}

.ti-footnotes a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@@media (max-width: 640px) {
    .ti-refs-grid {
        grid-template-columns: 1fr;
    }

    .page-content h2 {
        font-size: 1.2rem;
        margin: 2rem 0 .7rem;
    }

    .page-content h3 {
        font-size: .97rem;
    }

    .page-content p {
        font-size: .88rem;
    }
}
