/* ============================================================
   ARTICLE PAGE — DARK EDITORIAL DESIGN
   ============================================================ */

body.article-page {
    background: #0d0d0d;
    color: #d4d4d4;
}

/* ── Article Header ─────────────────────────────────────────── */
.art-header {
    background: #0d0d0d;
    padding: 52px 0 40px;
    text-align: center;
    border-bottom: 1px solid #1a1a1a;
}

.art-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.art-meta-row .art-date { color: #666; }
.art-meta-row .art-author { color: #888; }

.art-cat-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    background: #7A1C2E;
    padding: 4px 10px;
    border-radius: 4px;
}

.art-header h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.02em;
    max-width: 780px;
    margin: 0 auto 18px;
}

.art-header .art-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Hero Image ─────────────────────────────────────────────── */
.art-hero-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    background: #111;
}

.art-hero-img-wrapper {
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    background: #111;
}

.art-hero-img-wrapper div {
    width: 100%;
    height: 440px;
    background-size: cover;
    background-position: center;
}

/* ── Content Layout ─────────────────────────────────────────── */
.art-body-wrap {
    background: #0d0d0d;
    padding: 56px 0 72px;
}

.art-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 56px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.art-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.art-share {
    margin-bottom: 36px;
}

.art-share-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #444;
    margin-bottom: 12px;
    display: block;
}

.art-share-btns {
    display: flex;
    gap: 10px;
}

.art-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #242424;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
    font-size: 0.8rem;
}

.art-share-btn:hover {
    background: #7A1C2E;
    border-color: #7A1C2E;
    color: #fff;
}

.art-toc {
    border-top: 1px solid #1e1e1e;
    padding-top: 24px;
}

.art-toc-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #444;
    margin-bottom: 14px;
    display: block;
}

.art-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.art-toc ul li {
    margin-bottom: 10px;
}

.art-toc ul li a {
    font-size: 0.78rem;
    color: #555;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
}

.art-toc ul li a:hover,
.art-toc ul li a.active {
    color: #c0392b;
}

/* ── Article Body Content ───────────────────────────────────── */
.art-content {
    min-width: 0;
}

.art-content p {
    font-size: 0.97rem;
    line-height: 1.82;
    color: #aaa;
    margin-bottom: 1.4rem;
}

.art-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #f0f0f0;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.art-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.art-content strong {
    color: #e0e0e0;
    font-weight: 600;
}

.art-content a {
    color: #c0392b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.art-content a:hover { color: #f87171; }

/* Pull quote */
.art-pullquote {
    border-left: 3px solid #7A1C2E;
    padding: 18px 24px;
    margin: 2.5rem 0;
    background: #111;
    border-radius: 0 8px 8px 0;
}

.art-pullquote p {
    font-size: 1rem !important;
    font-style: italic;
    color: #ccc !important;
    margin: 0 !important;
    line-height: 1.7 !important;
}

/* Lists */
.art-content ul, .art-content ol {
    padding-left: 0;
    margin-bottom: 1.5rem;
    list-style: none;
}

.art-content ul li, .art-content ol li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.7;
}

.art-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7A1C2E;
}

.art-content ol {
    counter-reset: art-ol;
}

.art-content ol li {
    counter-increment: art-ol;
}

.art-content ol li::before {
    content: counter(art-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: #7A1C2E;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Alert box */
.art-alert {
    background: #130a0a;
    border: 1px solid #3a1010;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 2rem 0;
}

.art-alert-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c0392b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.art-alert p {
    font-size: 0.88rem !important;
    color: #999 !important;
    margin: 0 !important;
}

/* Number cards (win-cards) */
.art-step {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 24px 26px;
    margin: 2rem 0;
}

.art-step-num {
    width: 36px;
    height: 36px;
    background: #7A1C2E;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.art-step h3 {
    margin-top: 0 !important;
    color: #e8e8e8 !important;
}

.art-step .diff-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    background: #1a2a1a;
    color: #4ade80;
    border: 1px solid #1e3a1e;
}

.art-step .diff-badge.medium {
    background: #2a2210;
    color: #fbbf24;
    border-color: #3a2e10;
}

.art-step code {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
}

/* CTA box */
.art-cta-box {
    background: linear-gradient(135deg, #1a0810, #0f0f0f);
    border: 1px solid #3a1020;
    border-radius: 12px;
    padding: 36px 32px;
    margin: 3rem 0;
    text-align: center;
}

.art-cta-box h3 {
    color: #f0f0f0 !important;
    margin-top: 0 !important;
    margin-bottom: 12px;
}

.art-cta-box p {
    color: #888 !important;
    margin-bottom: 22px !important;
}

/* Checklist */
.art-checklist {
    background: #111;
    border-left: 3px solid #7A1C2E;
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin: 2rem 0;
}

.art-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #7A1C2E;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Divider */
.art-content hr {
    border: none;
    border-top: 1px solid #1e1e1e;
    margin: 3rem 0;
}

/* ── Related Intelligence ────────────────────────────────────── */
.art-related {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 64px 0;
}

.art-related-header {
    margin-bottom: 36px;
}

.art-related-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.art-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.art-rel-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s;
}

.art-rel-card:hover {
    border-color: #7A1C2E;
    transform: translateY(-5px);
}

.art-rel-card:hover .art-rel-img { transform: scale(1.05); }

.art-rel-img-wrap {
    height: 150px;
    overflow: hidden;
    background: #1a1a1a;
}

.art-rel-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.art-rel-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.art-rel-body .art-cat-badge {
    font-size: 0.6rem;
    margin-bottom: 10px;
    display: inline-block;
}

.art-rel-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 14px;
    flex: 1;
}

.art-rel-read {
    font-size: 0.72rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color 0.2s;
}

.art-rel-card:hover .art-rel-read { color: #f87171; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .art-layout {
        grid-template-columns: 1fr;
    }
    .art-sidebar {
        display: flex;
        gap: 32px;
        position: static;
        border-bottom: 1px solid #1e1e1e;
        padding-bottom: 24px;
        margin-bottom: 8px;
    }
    .art-toc { border-top: none; padding-top: 0; border-left: 1px solid #1e1e1e; padding-left: 24px; }
    .art-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .art-related-grid { grid-template-columns: 1fr; }
    .art-header { padding: 36px 0 28px; }
    .art-sidebar { flex-direction: column; gap: 20px; }
    .art-toc { border-left: none; padding-left: 0; border-top: 1px solid #1e1e1e; padding-top: 20px; }
}

/* ============================================================
   LEGACY ARTICLE DARK OVERRIDES
   (articles using old .page-hero / .blog-content structure)
   ============================================================ */

body.article-page main,
body.article-page .section { background: #0d0d0d !important; }

/* ── Page hero ── */
body.article-page .page-hero {
    background: #0d0d0d !important;
    border-bottom: 1px solid #1a1a1a !important;
    padding: 56px 0 48px !important;
}
body.article-page .page-hero h1 {
    color: #ffffff !important;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}
body.article-page .page-hero p { color: #666 !important; }
body.article-page .page-hero-content { text-align: center !important; max-width: 760px !important; margin: 0 auto !important; }
body.article-page .section-tag {
    background: #7A1C2E !important; color: #fff !important;
    font-size: 0.65rem !important; font-weight: 800 !important;
    text-transform: uppercase !important; letter-spacing: 0.12em !important;
    padding: 5px 12px !important; border-radius: 4px !important;
    display: inline-block !important; margin-bottom: 20px !important; border: none !important;
}
body.article-page .text-gradient {
    background: linear-gradient(135deg, #e0e0e0, #888) !important;
    -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important;
}

/* ── Blog content ── */
body.article-page .blog-content {
    max-width: 820px !important; margin: 0 auto !important;
    padding: 56px 24px 80px !important; color: #d4d4d4 !important;
    line-height: 1.8 !important; background: #0d0d0d !important;
}
body.article-page .blog-content h2 { font-size: 1.5rem !important; font-weight: 800 !important; color: #f0f0f0 !important; margin-top: 3rem !important; margin-bottom: 1rem !important; letter-spacing: -0.01em !important; }
body.article-page .blog-content h3 { font-size: 1.1rem !important; font-weight: 700 !important; color: #e0e0e0 !important; margin-top: 2rem !important; margin-bottom: 0.75rem !important; }
body.article-page .blog-content p { color: #aaa !important; margin-bottom: 1.2rem !important; }
body.article-page .blog-content strong { color: #e0e0e0 !important; }
body.article-page .blog-content a { color: #c0392b !important; }
body.article-page .blog-content a:hover { color: #f87171 !important; }
body.article-page .blog-content ul,
body.article-page .blog-content ol { padding-left: 0 !important; margin-left: 0 !important; list-style: none !important; margin-bottom: 1.5rem !important; }
body.article-page .blog-content ul li,
body.article-page .blog-content ol li { color: #aaa !important; padding-left: 22px !important; position: relative !important; margin-bottom: 10px !important; list-style: none !important; }
body.article-page .blog-content ul li::before {
    content: '' !important; position: absolute !important; left: 0 !important; top: 10px !important;
    width: 7px !important; height: 7px !important; border-radius: 50% !important; background: #7A1C2E !important;
}
body.article-page .blog-content ol { counter-reset: legacy-ol !important; }
body.article-page .blog-content ol li { counter-increment: legacy-ol !important; }
body.article-page .blog-content ol li::before {
    content: counter(legacy-ol) '.' !important; position: absolute !important; left: 0 !important; top: 0 !important;
    color: #7A1C2E !important; font-weight: 700 !important; font-size: 0.85rem !important;
    background: none !important; width: auto !important; height: auto !important; border-radius: 0 !important;
}

/* ── Blog meta ── */
body.article-page .blog-meta { color: #555 !important; font-size: 0.78rem !important; margin-bottom: 2.5rem !important; display: flex !important; gap: 16px !important; flex-wrap: wrap !important; border-bottom: 1px solid #1a1a1a !important; padding-bottom: 20px !important; }

/* ── Highlight / callout box ── */
body.article-page .highlight-box { background: #111 !important; border-left: 3px solid #7A1C2E !important; border-radius: 0 8px 8px 0 !important; padding: 18px 24px !important; margin: 2rem 0 !important; color: #bbb !important; }
body.article-page .highlight-box strong { color: #e8e8e8 !important; }

/* ── Step list ── */
body.article-page .step-list { list-style: none !important; padding: 0 !important; margin: 0 0 1.5rem !important; counter-reset: steps !important; }
body.article-page .step-list li { counter-increment: steps !important; position: relative !important; padding: 16px 16px 16px 54px !important; background: #111 !important; border: 1px solid #1e1e1e !important; border-radius: 10px !important; margin-bottom: 12px !important; color: #aaa !important; }
body.article-page .step-list li::before {
    content: counter(steps) !important; position: absolute !important; left: 14px !important; top: 50% !important;
    transform: translateY(-50%) !important; background: #7A1C2E !important; color: #fff !important;
    width: 28px !important; height: 28px !important; border-radius: 8px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-weight: 800 !important; font-size: 0.85rem !important; border: none !important;
}
body.article-page .step-list li strong { color: #e0e0e0 !important; display: block !important; margin-bottom: 4px !important; }

/* ── CTA box ── */
body.article-page .cta-box { background: linear-gradient(135deg, #1a0810, #0f0f0f) !important; border: 1px solid #3a1020 !important; border-radius: 12px !important; padding: 36px 32px !important; margin: 3rem 0 !important; text-align: center !important; color: #d4d4d4 !important; }
body.article-page .cta-box h3 { color: #f0f0f0 !important; margin-top: 0 !important; }
body.article-page .cta-box p { color: #888 !important; }
body.article-page .cta-box a, body.article-page .cta-box .btn { background: #7A1C2E !important; color: #fff !important; border: none !important; }
body.article-page .cta-box a:hover, body.article-page .cta-box .btn:hover { background: #9b2335 !important; }

/* ── Checklist ── */
body.article-page .checklist { background: #111 !important; border: none !important; border-left: 3px solid #7A1C2E !important; border-radius: 0 8px 8px 0 !important; padding: 20px 24px !important; }
body.article-page .checklist h3 { color: #e0e0e0 !important; margin-top: 0 !important; }
body.article-page .checklist li { color: #aaa !important; padding-left: 22px !important; list-style: none !important; position: relative !important; margin-bottom: 8px !important; }
body.article-page .checklist li::before { content: '✓' !important; position: absolute !important; left: 0 !important; top: 0 !important; color: #7A1C2E !important; font-weight: 700 !important; background: none !important; width: auto !important; height: auto !important; border-radius: 0 !important; }

/* ── Verdict box ── */
body.article-page .verdict-box { background: #111 !important; border: 1px solid #3a1020 !important; border-radius: 10px !important; padding: 24px 28px !important; }
body.article-page .verdict-box h3 { color: #c0392b !important; margin-top: 0 !important; }
body.article-page .verdict-box p { color: #aaa !important; }

/* ── VS table ── */
body.article-page .vs-table { width: 100% !important; border-collapse: collapse !important; margin: 2rem 0 !important; }
body.article-page .vs-table th { background: #7A1C2E !important; color: #fff !important; padding: 12px 16px !important; text-align: left !important; }
body.article-page .vs-table td { padding: 12px 16px !important; border-bottom: 1px solid #1e1e1e !important; color: #aaa !important; background: #0f0f0f !important; }
body.article-page .vs-table tr:hover td { background: #141414 !important; }
body.article-page .vs-table td:first-child { color: #ccc !important; font-weight: 600 !important; }
body.article-page .vs-table .win { color: #4ade80 !important; font-weight: 700 !important; }
body.article-page .vs-table .lose { color: #f87171 !important; }

/* ── Stat cards ── */
body.article-page .stat-row { display: flex !important; gap: 16px !important; margin: 2rem 0 !important; flex-wrap: wrap !important; }
body.article-page .stat-card { flex: 1 !important; min-width: 150px !important; background: #111 !important; border: 1px solid #1e1e1e !important; border-radius: 10px !important; padding: 20px !important; text-align: center !important; }
body.article-page .stat-card .stat-num { font-size: 2rem !important; font-weight: 800 !important; color: #c0392b !important; }
body.article-page .stat-card .stat-label { font-size: 0.78rem !important; color: #666 !important; margin-top: 4px !important; }

/* ── Comparison grid ── */
body.article-page .comparison-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px !important; margin: 2rem 0 !important; }
body.article-page .comparison-card { background: #111 !important; border: 1px solid #1e1e1e !important; border-radius: 10px !important; padding: 20px !important; }
body.article-page .comparison-card h4 { color: #e0e0e0 !important; margin-top: 0 !important; font-size: 0.9rem !important; margin-bottom: 12px !important; }
body.article-page .comparison-card ul { padding-left: 0 !important; margin: 0 !important; list-style: none !important; }
body.article-page .comparison-card li { color: #888 !important; font-size: 0.85rem !important; padding-left: 16px !important; position: relative !important; margin-bottom: 6px !important; }
body.article-page .comparison-card li::before { content: '–' !important; position: absolute !important; left: 0 !important; color: #555 !important; background: none !important; width: auto !important; height: auto !important; border-radius: 0 !important; }

/* ── FAQ ── */
body.article-page .faq-section h3 { color: #e0e0e0 !important; font-size: 1rem !important; margin-top: 2rem !important; padding-bottom: 8px !important; border-bottom: 1px solid #1a1a1a !important; }

/* ── HR / Breadcrumb ── */
body.article-page hr { border: none !important; border-top: 1px solid #1e1e1e !important; margin: 3rem 0 !important; }
body.article-page nav[aria-label="Breadcrumb"] { color: #444 !important; }
body.article-page nav[aria-label="Breadcrumb"] a { color: #555 !important; }

@media (max-width: 600px) {
    body.article-page .comparison-grid { grid-template-columns: 1fr !important; }
    body.article-page .stat-row { flex-direction: column !important; }
}
