/**
 * SiloPress — Frontend Article Styles (Sante)
 * Clinical Authority Aesthetic — Precise, Trustworthy, Data-Driven
 *
 * @package SiloPress
 * @since   2.5.0
 */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');
@import url('./niche/shared/article-structure.css');

body.silopress-template-health {
    --sp-ink: #102236;
    --sp-ink-soft: #233e59;
    --sp-ink-muted: #5a7692;
    --sp-ink-faded: #879db3;
    --sp-paper: #f7fbff;
    --sp-paper-warm: #edf4fb;
    --sp-paper-cream: #fbfdff;
    --sp-accent: #2d6db1;
    --sp-accent-deep: #1e4f84;
    --sp-accent-glow: #5290d1;
    --sp-accent-subtle: rgba(45, 109, 177, 0.1);
    --sp-warning: #b0761c;
    --sp-error: #9c3f4d;
    --sp-warning-bg: rgba(176, 118, 28, 0.1);
    --sp-error-bg: rgba(156, 63, 77, 0.1);
    --sp-font-display: 'Libre Baskerville', Georgia, serif;
    --sp-font-body: 'Source Sans 3', Arial, sans-serif;
    --sp-font-mono: 'IBM Plex Mono', Consolas, monospace;
    --sp-content-width: 720px;
    --sp-wide-width: 980px;
    --sp-font-size-body: 1.125rem;
    --sp-font-size-h2: 2rem;
    --sp-font-size-h3: 1.4rem;
    --sp-drop-cap-size: 4.6rem;
    --sp-takeaways-label: 'Synthese clinique';
    --sp-list-mark: '—';
    --sp-ease-out: cubic-bezier(0.2, 0.9, 0.2, 1);
}

body.silopress-template-health main#main.site-main.hfeed {
    background:
        linear-gradient(180deg, rgba(45, 109, 177, 0.07), transparent 26%),
        repeating-linear-gradient(90deg, rgba(16, 34, 54, 0.035) 0, rgba(16, 34, 54, 0.035) 1px, transparent 1px, transparent 22px),
        var(--sp-paper);
}

body.silopress-template-health :is(.sp-article-section, .health-section-heading, .entry-content h2, .mrcontent-science h2) {
    letter-spacing: -0.012em;
}

body.silopress-template-health :is(.sp-article-section, .health-section-heading, .entry-content h2)::before {
    width: 36px;
    height: 4px;
}



body.silopress-template-health .sp-article-toc,
body.silopress-template-health .health-toc {
    background: rgba(45, 109, 177, 0.04);
    border-color: rgba(45, 109, 177, 0.12);
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) .sp-article-toc-title {
    color: var(--sp-ink-muted);
    border-bottom-color: rgba(45, 109, 177, 0.12);
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) .sp-article-toc-title[role="button"]:hover {
    color: var(--sp-accent);
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) .sp-toc-chevron {
    background: rgba(45, 109, 177, 0.08);
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) .sp-toc-chevron::after {
    border-color: var(--sp-accent);
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) .sp-article-toc-title[role="button"]:hover .sp-toc-chevron {
    background: rgba(45, 109, 177, 0.14);
}

body.silopress-template-health .sp-article-toc.sp-toc-collapsed .sp-article-toc-title {
    border-bottom-color: transparent;
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) a::before {
    min-width: 1.7rem;
    text-align: center;
    border: 1px solid rgba(45, 109, 177, 0.28);
    border-radius: 3px;
    font-size: 0.7rem;
    line-height: 1.45;
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) a:hover {
    background: rgba(45, 109, 177, 0.05);
}

/* Sub-list (H3) */
body.silopress-template-health :is(.sp-article-toc, .health-toc) ol.sp-toc-sub a::before {
    min-width: 2rem;
    font-size: 0.65rem;
}

body.silopress-template-health :is(.sp-article-toc, .health-toc) ol.sp-toc-sub a:hover {
    color: var(--sp-accent);
}

body.silopress-template-health .sp-article-faq > h2 {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-left: 3px solid var(--sp-accent);
    padding-left: 0.75rem;
}


body.silopress-template-health .sp-faq-item h3::before {
    content: '+';
    width: 1.45rem;
    height: 1.45rem;
    border: 1.5px solid rgba(45, 109, 177, 0.55);
    color: var(--sp-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sp-font-mono);
}

body.silopress-template-health .sp-faq-item.sp-faq-open h3::before {
    background: var(--sp-accent);
    color: #fff;
}

body.silopress-template-health .sp-faq-item h3::after {
    content: '▸';
    margin-left: auto;
    color: var(--sp-accent);
    transition: transform 0.25s var(--sp-ease-out);
}

body.silopress-template-health .sp-faq-item.sp-faq-open h3::after {
    transform: rotate(90deg);
}

body.silopress-template-health .sp-article-sources {
    border-top: 1px solid rgba(45, 109, 177, 0.25);
    padding-top: 1.2rem;
}

body.silopress-template-health .sp-sources-count-badge {
    margin-left: 0.5rem;
    padding: 0.15rem 0.42rem;
    background: rgba(45, 109, 177, 0.1);
    border: 1px solid rgba(45, 109, 177, 0.28);
    color: var(--sp-accent-deep);
    font: 500 0.62rem/1 var(--sp-font-mono);
}

body.silopress-template-health .sp-source-domain {
    background: rgba(45, 109, 177, 0.1);
    color: var(--sp-accent-deep);
    border: 1px solid rgba(45, 109, 177, 0.24);
}

body.silopress-template-health :is(.sp-article-stat, .health-stat) {
    border: 1px solid rgba(45, 109, 177, 0.3);
    padding: 0.15rem 0.45rem;
    background: rgba(45, 109, 177, 0.08);
}

body.silopress-template-health .sp-article-cta,
body.silopress-template-health .health-cta {
    background: linear-gradient(145deg, #14334f, #10283d);
}

body.silopress-template-health .sp-article-cta-button {
    display: inline-block;
    padding: 0.62rem 1.5rem;
    background: var(--sp-accent);
    color: #0f2235;
    text-decoration: none;
    font: 600 0.8rem/1 var(--sp-font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.silopress-template-health .sp-article-cta-button:hover {
    background: var(--sp-accent-glow);
}
