/* =====================================================================
   NCIA Insights — premium article design system
   Loaded after css/style.css; reuses brand tokens (--ncia-red, --ncia-navy…).
   ===================================================================== */

:root {
    --art-ink: #33414f;
    --art-shadow: 0 24px 60px rgba(11, 31, 51, 0.10);
    --art-shadow-sm: 0 10px 30px rgba(11, 31, 51, 0.07);
}

/* Reading progress bar */
.art-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 2000; background: transparent; pointer-events: none; }
.art-progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--ncia-red), #ff6a60); box-shadow: 0 0 12px rgba(225, 37, 27, 0.5); transition: width 0.08s linear; }

/* ============================== HERO ============================== */
.art-hero { position: relative; isolation: isolate; padding: 170px 0 120px; color: #fff; overflow: hidden; }
.art-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); }
.art-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(700px 360px at 92% 6%, rgba(225, 37, 27, 0.34), transparent 60%),
        linear-gradient(118deg, rgba(8, 23, 38, 0.96) 0%, rgba(11, 31, 51, 0.88) 46%, rgba(11, 31, 51, 0.55) 100%);
}

.art-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.2rem; }
.art-breadcrumb a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.art-breadcrumb a:hover { color: #fff; }
.art-breadcrumb .sep { opacity: 0.45; }

.art-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.95rem; border-radius: 999px; background: rgba(225, 37, 27, 0.18); border: 1px solid rgba(225, 37, 27, 0.45); color: #ffb3ae; font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; }
.art-chip svg { width: 14px; height: 14px; }

.art-hero__title { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; line-height: 1.1; margin: 1.1rem 0 1rem; max-width: 20ch; color: #fff; }
.art-hero__sub { font-size: 1.12rem; line-height: 1.75; color: rgba(255, 255, 255, 0.86); max-width: 62ch; margin: 0; }

.art-hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.9rem; }
.art-meta-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.art-meta-item svg { width: 18px; height: 18px; opacity: 0.85; }

/* ============================ LAYOUT ============================ */
.art-shell { position: relative; z-index: 2; margin-top: -74px; padding-bottom: 4.5rem; }
.art-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2.2rem; align-items: start; }

.art-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1.2rem; }

.art-aside-card { background: #fff; border: 1px solid var(--ncia-line); border-radius: 18px; box-shadow: var(--art-shadow-sm); padding: 1.4rem 1.45rem; }
.art-aside-card__eyebrow { color: var(--ncia-red); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.art-aside-card h3 { font-size: 1.1rem; font-weight: 800; margin: 0.35rem 0 0.6rem; color: var(--ncia-navy); }
.art-aside-card p { color: var(--ncia-gray); font-size: 0.92rem; line-height: 1.65; margin: 0; }
.art-aside-card ul { list-style: none; padding: 0; margin: 0.85rem 0 0; display: grid; gap: 0.55rem; }
.art-aside-card li { position: relative; padding-left: 1.7rem; font-size: 0.9rem; line-height: 1.5; color: var(--ncia-navy); }
.art-aside-card li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(225, 37, 27, 0.12); color: var(--ncia-red); font-size: 0.72rem; font-weight: 900; }

/* Table of contents */
.art-toc__title { color: var(--ncia-red); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.7rem; }
.art-toc nav { display: flex; flex-direction: column; gap: 0.1rem; }
.art-toc a { padding: 0.45rem 0.8rem; border-left: 2px solid var(--ncia-line); color: var(--ncia-gray); font-size: 0.88rem; line-height: 1.4; text-decoration: none; transition: all 0.18s ease; }
.art-toc a:hover { color: var(--ncia-red); border-left-color: var(--ncia-red); }
.art-toc a.is-active { color: var(--ncia-red); border-left-color: var(--ncia-red); background: rgba(225, 37, 27, 0.06); font-weight: 700; }

/* ============================ CONTENT ============================ */
.art-content { background: #fff; border: 1px solid var(--ncia-line); border-radius: 22px; box-shadow: var(--art-shadow); padding: clamp(1.5rem, 4vw, 3rem); }

.art-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; color: var(--ncia-navy); margin: 2.6rem 0 1rem; scroll-margin-top: 100px; }
.art-content h2:first-child { margin-top: 0; }
.art-content h3 { font-size: 1.12rem; font-weight: 700; color: var(--ncia-navy); margin: 1.5rem 0 0.6rem; }
.art-content p { font-size: 1.05rem; line-height: 1.85; color: var(--art-ink); margin: 0 0 1.1rem; }
.art-content > p:last-child { margin-bottom: 0; }

.art-lead { font-size: 1.25rem !important; line-height: 1.7 !important; color: var(--ncia-navy) !important; font-weight: 500; margin-bottom: 1.4rem; }
.art-lead::first-letter { float: left; font-size: 3.6rem; line-height: 0.78; font-weight: 800; color: var(--ncia-red); margin: 0.18rem 0.65rem 0 0; }

/* checklist */
.art-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.6rem; }
.art-list li { position: relative; padding-left: 2.1rem; font-size: 1.02rem; line-height: 1.6; color: var(--art-ink); }
.art-list li::before { content: "✓"; position: absolute; left: 0; top: 0.05em; width: 1.45rem; height: 1.45rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(225, 37, 27, 0.12); color: var(--ncia-red); font-size: 0.8rem; font-weight: 900; }

/* callouts */
.art-callout { display: flex; gap: 0.95rem; padding: 1.1rem 1.25rem; border-radius: 14px; margin: 1.35rem 0; background: rgba(225, 37, 27, 0.06); border: 1px solid rgba(225, 37, 27, 0.18); }
.art-callout__ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--ncia-red); color: #fff; }
.art-callout__ic svg { width: 20px; height: 20px; }
.art-callout__body { font-size: 0.99rem; line-height: 1.6; color: var(--ncia-navy); align-self: center; }
.art-callout__body strong { color: var(--ncia-red); }
.art-callout.is-tip { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.22); }
.art-callout.is-tip .art-callout__ic { background: #15803d; }
.art-callout.is-tip .art-callout__body strong { color: #15803d; }
.art-callout.is-warn { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.28); }
.art-callout.is-warn .art-callout__ic { background: #b45309; }
.art-callout.is-warn .art-callout__body strong { color: #b45309; }

/* comparison cards */
.art-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0; }
.art-compare__card { border: 1px solid var(--ncia-line); border-radius: 16px; padding: 1.4rem; background: #fff; box-shadow: var(--art-shadow-sm); }
.art-compare__card.is-er { border-top: 4px solid var(--ncia-red); }
.art-compare__card.is-clinic { border-top: 4px solid #15803d; }
.art-compare__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.art-compare__ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.art-compare__ic svg { width: 24px; height: 24px; }
.is-er .art-compare__ic { background: rgba(225, 37, 27, 0.12); color: var(--ncia-red); }
.is-clinic .art-compare__ic { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.art-compare__head h3 { margin: 0; font-size: 1.04rem; font-weight: 800; color: var(--ncia-navy); }
.art-compare__card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.art-compare__card li { position: relative; padding-left: 1.5rem; font-size: 0.98rem; color: var(--art-ink); }
.art-compare__card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.is-er li::before { background: var(--ncia-red); }
.is-clinic li::before { background: #15803d; }

/* stat cards */
.art-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.art-stat { background: linear-gradient(150deg, var(--ncia-navy), #12324f); color: #fff; border-radius: 16px; padding: 1.35rem 1.2rem; text-align: center; box-shadow: 0 16px 36px rgba(11, 31, 51, 0.18); }
.art-stat__num { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.art-stat__num span { color: #ff8079; }
.art-stat__label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); margin-top: 0.45rem; line-height: 1.4; }

/* premium table */
.art-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--ncia-line); box-shadow: var(--art-shadow-sm); margin: 1.5rem 0; }
.art-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 420px; }
.art-table thead th { background: linear-gradient(100deg, var(--ncia-navy), #12324f); color: #fff; padding: 0.95rem 1.1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; white-space: nowrap; }
.art-table tbody td { padding: 0.85rem 1.1rem; border-top: 1px solid var(--ncia-line); color: var(--art-ink); font-size: 0.98rem; }
.art-table tbody tr:nth-child(even) { background: rgba(11, 31, 51, 0.025); }
.art-table .col-er { color: var(--ncia-red); font-weight: 700; }
.art-table .col-clinic { color: #15803d; font-weight: 700; }

/* numbered steps */
.art-steps { display: grid; gap: 1rem; margin: 1.5rem 0; }
.art-step { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--ncia-line); border-radius: 16px; padding: 1.3rem 1.4rem; box-shadow: var(--art-shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.art-step:hover { transform: translateY(-3px); box-shadow: var(--art-shadow); }
.art-step__num { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ncia-red), #a61b14); color: #fff; font-weight: 900; font-size: 1.1rem; box-shadow: 0 10px 22px rgba(225, 37, 27, 0.32); }
.art-step__body { flex: 1 1 auto; min-width: 0; }
.art-step__body h3 { margin: 0.1rem 0 0.5rem; font-size: 1.12rem; font-weight: 800; color: var(--ncia-navy); }
.art-step__body p { margin: 0 0 0.7rem; color: var(--art-ink); line-height: 1.7; }
.art-step__body .art-list { margin-bottom: 0; }
.art-cue { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ncia-red); margin: 0.3rem 0 0.55rem; }

/* key takeaways */
.art-takeaways { background: linear-gradient(150deg, #ffffff, #fff5f5); border: 1px solid rgba(225, 37, 27, 0.18); border-radius: 18px; padding: 1.7rem 1.8rem; margin: 1.9rem 0; }
.art-takeaways h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 800; color: var(--ncia-navy); margin: 0 0 1rem; }
.art-takeaways h3 svg { width: 22px; height: 22px; color: var(--ncia-red); }
.art-takeaways .art-list { margin-bottom: 0; }

/* pull quote */
.art-quote { position: relative; margin: 1.9rem 0; padding: 1.4rem 1.6rem 1.4rem 2.6rem; border-left: 4px solid var(--ncia-red); background: rgba(11, 31, 51, 0.03); border-radius: 0 14px 14px 0; font-size: 1.18rem; line-height: 1.6; font-weight: 600; color: var(--ncia-navy); font-style: italic; }
.art-quote::before { content: "\201C"; position: absolute; left: 0.65rem; top: 0.15rem; font-size: 2.8rem; color: var(--ncia-red); opacity: 0.4; font-family: Georgia, serif; }

/* BREATH panel */
.art-breath { background: linear-gradient(150deg, var(--ncia-navy), #0a1825); color: #fff; border-radius: 20px; padding: 1.9rem; margin: 1.9rem 0; box-shadow: 0 22px 50px rgba(8, 23, 38, 0.3); }
.art-breath h3 { color: #fff; font-size: 1.3rem; font-weight: 800; margin: 0 0 0.4rem; }
.art-breath p { color: rgba(255, 255, 255, 0.8); margin: 0 0 1.2rem; }
.art-breath__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; }
.art-breath__item { display: flex; align-items: center; gap: 0.8rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 0.8rem 0.9rem; }
.art-breath__letter { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--ncia-red); color: #fff; font-weight: 900; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.art-breath__item span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); line-height: 1.35; }

/* share row */
.art-share { display: flex; align-items: center; gap: 0.6rem; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--ncia-line); flex-wrap: wrap; }
.art-share__label { font-weight: 800; color: var(--ncia-navy); font-size: 0.9rem; margin-right: 0.2rem; }
.art-share a, .art-share button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--ncia-line); background: #fff; color: var(--ncia-navy); font-weight: 600; font-size: 0.85rem; cursor: pointer; text-decoration: none; transition: all 0.18s ease; }
.art-share a:hover, .art-share button:hover { border-color: var(--ncia-red); color: var(--ncia-red); transform: translateY(-1px); }
.art-share svg { width: 16px; height: 16px; }

/* CTA */
.art-cta { position: relative; overflow: hidden; background: linear-gradient(130deg, var(--ncia-navy), #12324f); color: #fff; border-radius: 24px; padding: clamp(1.8rem, 4vw, 2.8rem); margin-top: 2.2rem; box-shadow: 0 26px 60px rgba(11, 31, 51, 0.25); }
.art-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 100% 0%, rgba(225, 37, 27, 0.35), transparent 60%); pointer-events: none; }
.art-cta > * { position: relative; z-index: 1; }
.art-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; margin: 0 0 0.45rem; }
.art-cta p { color: rgba(255, 255, 255, 0.86); margin: 0; font-size: 1.02rem; }

/* reveal animation (only when JS is active, so no-JS users still see content) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } .art-hero__bg { transform: none; } }

/* responsive */
@media (max-width: 991.98px) {
    .art-grid { grid-template-columns: 1fr; }
    .art-sidebar { position: static; top: auto; }
    .art-compare { grid-template-columns: 1fr; }
    .art-hero { padding: 140px 0 100px; }
}
@media (max-width: 575.98px) {
    .art-step { padding: 1.1rem; gap: 0.85rem; }
    .art-step__num { width: 40px; height: 40px; font-size: 1rem; }
    .art-content { border-radius: 18px; }
}
