/* ================================================================
   SHARED ARTICLE STYLES — all blog article pages
   ================================================================ */

/* Hero */
.art-hero {
    background: linear-gradient(135deg, #07101e 0%, #0d1a2e 55%, #12213b 100%);
    border-bottom: 4px solid var(--red);
    padding: 44px 24px 36px;
    color: #fff;
}
.art-hero-inner { max-width: 820px; margin: 0 auto; }
.art-hero .breadcrumb-bar {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}
.art-hero .breadcrumb-bar a { color: rgba(255,255,255,0.6); text-decoration: none; }
.art-hero .breadcrumb-bar a:hover { color: #fff; }
.art-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.art-cat-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}
.tag-procedures { background: #1565c0; color: #fff; }
.tag-guide      { background: #2e7d32; color: #fff; }
.tag-research   { background: #e65100; color: #fff; }
.tag-comparison { background: #6a1b9a; color: #fff; }
.art-meta-item {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}
.art-hero h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #fff;
}
.art-sub {
    color: rgba(255,255,255,0.62);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
    max-width: 680px;
}

/* Layout */
.art-layout {
    max-width: 1060px;
    margin: 0 auto;
    padding: 44px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 36px;
    align-items: start;
}

/* Article body */
.art-body { min-width: 0; }

.art-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #f9a825;
    border-radius: 7px;
    padding: 14px 16px;
    margin-bottom: 28px;
    font-size: 0.84rem;
    color: #5d4037;
    line-height: 1.6;
}
.art-disclaimer i { color: #f9a825; font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.art-disclaimer p { margin: 0; }

.art-lead {
    font-size: 1.08rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 500;
}

.art-body h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--dark);
    margin: 40px 0 12px;
    padding-top: 8px;
    border-top: 2px solid var(--border);
    letter-spacing: -0.02em;
}
.art-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin: 24px 0 8px;
}
.art-body p {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
}
.art-body a { color: var(--red); font-weight: 600; }
.art-body a:hover { text-decoration: underline; }

.art-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 18px;
}
.art-list li {
    font-size: 0.95rem;
    color: #444;
    padding: 7px 0 7px 28px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}
.art-list li:last-child { border-bottom: none; }
.art-list li::before {
    content: '\F26C';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 4px;
    color: var(--red);
    font-size: 0.8rem;
    top: 10px;
}

/* Comparison table */
.comparison-table-wrap {
    overflow-x: auto;
    margin-bottom: 28px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.comparison-table thead th {
    background: var(--dark);
    color: #fff;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
}
.comparison-table thead th:first-child { border-radius: 0; }
.comparison-table tbody tr:nth-child(even) { background: #f9fafb; }
.comparison-table tbody td {
    padding: 10px 16px;
    color: #444;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.comparison-table tbody td:first-child { font-weight: 700; color: var(--dark); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* Research block */
.research-block {
    background: #e8f4fd;
    border: 1px solid #90caf9;
    border-left: 4px solid #1565c0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.research-block h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1565c0;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.research-block ul { margin: 0; padding-left: 0; list-style: none; }
.research-block ul li {
    font-size: 0.88rem;
    color: #1a237e;
    padding: 7px 0;
    border-bottom: 1px solid rgba(21,101,192,0.15);
    line-height: 1.6;
}
.research-block ul li:last-child { border-bottom: none; }

/* Safe use grid */
.safe-use-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.safe-card {
    border-radius: 8px;
    padding: 18px;
}
.safe-do { background: #e8f5e9; border: 1px solid #a5d6a7; }
.safe-dont { background: #fce4ec; border: 1px solid #f48fb1; }
.safe-card h5 {
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.safe-do h5 { color: #2e7d32; }
.safe-do h5 i { color: #2e7d32; }
.safe-dont h5 { color: #c62828; }
.safe-dont h5 i { color: #c62828; }
.safe-card ul { padding-left: 0; margin: 0; list-style: none; }
.safe-card ul li {
    font-size: 0.83rem;
    padding: 5px 0 5px 18px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    line-height: 1.5;
    color: #333;
}
.safe-card ul li:last-child { border-bottom: none; }
.safe-do ul li::before { content: '✓'; position: absolute; left: 0; color: #2e7d32; font-weight: 900; }
.safe-dont ul li::before { content: '✗'; position: absolute; left: 0; color: #c62828; font-weight: 900; }

/* Spectrum visual */
.spectrum-visual { margin-bottom: 32px; }
.spectrum-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.spec-item {
    padding: 16px 12px;
    text-align: center;
}
.spec-temp { background: #e3f2fd; }
.spec-semi { background: #e8f5e9; }
.spec-perm-filler { background: #fff8e1; }
.spec-surgical { background: #fce4ec; }
.spec-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.spec-sub { font-size: 0.74rem; color: #666; line-height: 1.4; display: block; }
.spectrum-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    font-weight: 700;
    padding: 6px 4px 0;
}

/* Decision cards */
.decision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.decision-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.decision-card h5 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.decision-card h5 i { color: var(--red); }
.decision-card p {
    font-size: 0.83rem;
    color: #555;
    margin: 0;
    line-height: 1.65;
}

/* CTA box */
.art-cta-box {
    background: var(--dark);
    border-radius: 10px;
    padding: 28px 24px;
    margin: 40px 0;
    text-align: center;
}
.art-cta-box h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 8px;
}
.art-cta-box p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0 0 20px;
    line-height: 1.7;
}
.art-cta-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.art-cta-btns a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.art-cta-btns a:hover { transform: translateY(-2px); }
.btn-art-red { background: var(--red); color: #fff; }
.btn-art-red:hover { background: #a32318; color: #fff; }
.btn-art-dark { background: rgba(255,255,255,0.12); color: #fff; }
.btn-art-dark:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-art-ghost { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.25); }
.btn-art-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Override .art-body a color inheritance for CTA buttons */
.art-cta-btns .btn-art-red,
.art-cta-btns .btn-art-red:hover { color: #fff; text-decoration: none; }
.art-cta-btns .btn-art-dark,
.art-cta-btns .btn-art-dark:hover { color: #fff; text-decoration: none; }
.art-cta-btns .btn-art-ghost { color: rgba(255,255,255,0.75); text-decoration: none; }
.art-cta-btns .btn-art-ghost:hover { color: #fff; text-decoration: none; }

/* Article nav */
.art-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.art-nav-back, .art-nav-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}
.art-nav-back:hover, .art-nav-next:hover { color: var(--red); }

/* Sidebar */
.art-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; }

.toc-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.toc-head {
    background: var(--dark);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.toc-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.toc-list li a {
    display: block;
    padding: 7px 14px;
    font-size: 0.82rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    line-height: 1.4;
}
.toc-list li a:hover { color: var(--red); border-left-color: var(--red); background: #fff8f8; }

.sidebar-cta-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sidebar-cta-widget h5 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list li a {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 8px 0;
    font-size: 0.82rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}
.related-list li a:hover { color: var(--red); }
.related-list li a i { color: var(--red); margin-top: 2px; flex-shrink: 0; font-size: 0.7rem; }

.ai-widget {
    background: var(--dark);
    border-radius: 9px;
    padding: 18px 16px;
    text-align: center;
}
.ai-icon {
    font-size: 2rem;
    color: var(--red);
    display: block;
    margin-bottom: 8px;
}
.ai-widget h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 6px;
}
.ai-widget p {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0 0 12px;
}
.ai-widget a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
}
.ai-widget a:hover { background: #a32318; color: #fff; }

/* Footer */
.cs-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 24px 16px;
    font-size: 0.85rem;
}
.cs-footer a { color: #fff; text-decoration: none; font-weight: 700; margin: 0 10px; }
.cs-footer a:hover { color: var(--red); }

/* Responsive */
@media (max-width: 860px) {
    .art-layout { grid-template-columns: 1fr; }
    .art-sidebar { position: static; order: -1; }
    .art-hero h1 { font-size: 1.5rem; }
    .safe-use-grid { grid-template-columns: 1fr; }
    .spectrum-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .art-cta-btns { flex-direction: column; align-items: center; }
}
