/**
 * SiloPress — Shared Article Structure Styles
 * Shared typography/layout/components for niche templates.
 *
 * @package SiloPress
 * @since 2.5.0
 */

body[class*='silopress-template-'] :is(.sp-article, .entry-content, .post-content, .mrcontent-science, article .content) {
    font-family: var(--sp-font-body);
    font-size: var(--sp-font-size-body, 1.125rem);
    font-weight: 400;
    line-height: var(--sp-line-body, 1.85);
    color: var(--sp-ink);
    max-width: var(--sp-content-width, 680px);
    margin: 0 auto;
    padding: var(--sp-space-8, 2rem) var(--sp-space-6, 1.5rem);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
cite {
    letter-spacing: normal !important;

}

body[class*='silopress-template-'] :is(.sp-article-paragraph, .he-paragraph, .health-paragraph, .entry-content p, .mrcontent-science p) {
    margin: 0 0 var(--sp-space-6, 1.5rem);
    color: var(--sp-ink-soft);
    letter-spacing: -0.003em;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

body[class*='silopress-template-'] :is(.sp-article-paragraph, .he-paragraph, .health-paragraph):first-of-type,
body[class*='silopress-template-'] .entry-content > p:first-of-type,
body[class*='silopress-template-'] .mrcontent-science > p:first-of-type {
    font-size: var(--sp-font-size-lead, 1.325rem);
    line-height: var(--sp-line-lead, 1.72);
    color: var(--sp-ink);
    margin-bottom: var(--sp-space-8, 2rem);
}

body[class*='silopress-template-'] :is(.sp-article-paragraph, .he-paragraph, .health-paragraph):first-of-type::first-letter,
body[class*='silopress-template-'] .entry-content > p:first-of-type::first-letter,
body[class*='silopress-template-'] .mrcontent-science > p:first-of-type::first-letter {
    float: left;
    font-family: var(--sp-font-display);
    font-size: var(--sp-drop-cap-size, 5rem);
    font-weight: 700;
    line-height: 0.78;
    margin: 0.08em 0.14em 0 0;
    color: var(--sp-drop-cap-color, var(--sp-ink));
}

body[class*='silopress-template-'] :is(.sp-article-section, .he-section-heading, .health-section-heading, .entry-content h2, .mrcontent-science h2) {
    font-family: var(--sp-font-display);
    font-size: var(--sp-font-size-h2, 2rem);
    font-weight: 600;
    color: var(--sp-ink);
    margin: var(--sp-space-16, 4rem) 0 var(--sp-space-6, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
}

body[class*='silopress-template-'] :is(.sp-article-section, .he-section-heading, .health-section-heading, .entry-content h2)::before {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin-bottom: var(--sp-space-4, 1rem);
    background: var(--sp-accent);
}

body[class*='silopress-template-'] :is(.sp-article-subsection, .entry-content h3, .mrcontent-science h3) {
    font-family: var(--sp-font-display);
    font-size: var(--sp-font-size-h3, 1.5rem);
    font-weight: 600;
    color: var(--sp-ink);
    margin: var(--sp-space-12, 3rem) 0 var(--sp-space-4, 1rem);
    line-height: 1.34;
}

body[class*='silopress-template-'] :is(.sp-internal-link, .he-internal-link, .health-internal-link, .entry-content a, .mrcontent-science a) {
    color: var(--sp-link, var(--sp-ink));
    text-decoration: none;
    background-image: linear-gradient(var(--sp-accent), var(--sp-accent));
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.25s var(--sp-ease-out), color 0.2s var(--sp-ease-out);
}

body[class*='silopress-template-'] :is(.sp-internal-link, .he-internal-link, .health-internal-link, .entry-content a, .mrcontent-science a):hover {
    color: var(--sp-link-hover, var(--sp-accent-deep));
    background-size: 100% 2px;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) {
    background: var(--sp-panel-bg, transparent);
    border: 1px solid var(--sp-panel-line, rgba(0, 0, 0, 0.1));
    border-radius: var(--sp-radius-md, 0);
    padding: var(--sp-space-6, 1.5rem) var(--sp-space-6, 1.5rem) var(--sp-space-4, 1rem);
    margin: var(--sp-space-8, 2rem) 0 var(--sp-space-12, 3rem);
}

/* ── TOC Title ──────────────────────────────────────────────────── */
body[class*='silopress-template-'] .sp-article-toc-title {
    display: flex;
    align-items: center;
    gap: 0.35em;
    font-family: var(--sp-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sp-ink-muted);
    margin-bottom: var(--sp-space-4, 1rem);
    padding-bottom: var(--sp-space-3, 0.75rem);
    border-bottom: 1px solid var(--sp-panel-line, rgba(0, 0, 0, 0.1));
}

body[class*='silopress-template-'] .sp-article-toc-title::before {
    content: none;
}

body[class*='silopress-template-'] .sp-article-toc-title[role="button"] {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: color 0.2s ease;
}

body[class*='silopress-template-'] .sp-article-toc-title[role="button"]:hover {
    color: var(--sp-ink-soft, var(--sp-ink));
}

/* ── TOC Chevron ────────────────────────────────────────────────── */
body[class*='silopress-template-'] .sp-toc-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3em;
    height: 1.3em;
    margin-left: auto;
    border-radius: 50%;
    background: var(--sp-accent-subtle, rgba(0, 0, 0, 0.04));
    transition: transform 0.35s var(--sp-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
                background-color 0.2s ease;
    flex-shrink: 0;
}

body[class*='silopress-template-'] .sp-toc-chevron::after {
    content: '';
    display: block;
    width: 0.4em;
    height: 0.4em;
    border-right: 1.5px solid var(--sp-ink-muted, #666);
    border-bottom: 1.5px solid var(--sp-ink-muted, #666);
    transform: rotate(45deg);
    margin-top: -0.1em;
}

body[class*='silopress-template-'] .sp-article-toc-title[role="button"]:hover .sp-toc-chevron {
    background: var(--sp-accent-subtle, rgba(0, 0, 0, 0.08));
}

body[class*='silopress-template-'] .sp-toc-collapsed .sp-toc-chevron {
    transform: rotate(-180deg);
}

body[class*='silopress-template-'] .sp-toc-collapsed .sp-article-toc-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
}

/* ── TOC List ───────────────────────────────────────────────────── */
body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sp-toc;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) li {
    counter-increment: sp-toc;
    margin-bottom: 0;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: var(--sp-radius-sm, 4px);
    color: var(--sp-ink-soft, #333);
    font-size: 0.95rem;
    line-height: 1.45;
    text-decoration: none;
    background: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) a:hover {
    background: var(--sp-accent-subtle, rgba(0, 0, 0, 0.04));
    color: var(--sp-ink, #111);
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) a::before {
    content: counter(sp-toc, decimal-leading-zero);
    flex-shrink: 0;
    min-width: 1.4rem;
    color: var(--sp-accent);
    font-family: var(--sp-font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ── TOC Sub-list (H3 headings) ─────────────────────────────────── */
body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) ol.sp-toc-sub {
    margin: 0;
    padding: 0 0 0 1.9rem;
    list-style: none;
    counter-reset: sp-toc-sub;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) ol.sp-toc-sub li {
    counter-increment: sp-toc-sub;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) ol.sp-toc-sub a {
    font-size: 0.88rem;
    color: var(--sp-ink-muted, #666);
    padding: 0.28rem 0.5rem;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) ol.sp-toc-sub a::before {
    content: counter(sp-toc) '.' counter(sp-toc-sub);
    min-width: 1.8rem;
    font-size: 0.72rem;
}

body[class*='silopress-template-'] :is(.sp-article-toc, .he-toc, .health-toc) ol.sp-toc-sub a:hover {
    color: var(--sp-ink-soft, #333);
}

body[class*='silopress-template-'] :is(.sp-article-takeaways, .sp-key-takeaways, .he-takeaways, .health-takeaways) {
    background: var(--sp-callout-bg, var(--sp-paper-warm));
    border-left: 4px solid var(--sp-accent);
    padding: var(--sp-space-8, 2rem);
    margin: var(--sp-space-12, 3rem) 0;
}

body[class*='silopress-template-'] :is(.sp-article-takeaways, .sp-key-takeaways, .he-takeaways, .health-takeaways)::before {
    content: var(--sp-takeaways-label, 'Key Points');
    display: block;
    font-family: var(--sp-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sp-accent-deep);
    margin-bottom: var(--sp-space-4, 1rem);
}

body[class*='silopress-template-'] :is(.sp-article-takeaways-title, .sp-key-takeaways-title) {
    display: none;
}

body[class*='silopress-template-'] :is(.sp-article-takeaways, .sp-key-takeaways, .he-takeaways, .health-takeaways) ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body[class*='silopress-template-'] :is(.sp-article-takeaways, .sp-key-takeaways, .he-takeaways, .health-takeaways) li {
    position: relative;
    padding-left: var(--sp-space-6, 1.5rem);
    margin-bottom: var(--sp-space-3, 0.75rem);
}

body[class*='silopress-template-'] :is(.sp-article-takeaways, .sp-key-takeaways, .he-takeaways, .health-takeaways) li::before {
    content: var(--sp-list-mark, '—');
    position: absolute;
    left: 0;
    color: var(--sp-accent);
}

body[class*='silopress-template-'] :is(.sp-article-figure, .he-img-wrap, .health-img-wrap, .entry-content figure, .mrcontent-science figure) {
    --_fig-radius: var(--sp-radius-md, 12px);
    margin: var(--sp-space-10, 2.5rem) auto;
    padding: 0;
    max-width: 100%;
    position: relative;
}

@media (min-width: 800px) {
    body[class*='silopress-template-'] :is(.sp-article-figure, .he-img-wrap, .health-img-wrap, .entry-content figure, .mrcontent-science figure) {
        max-width: min(100%, var(--sp-content-width, 680px));
    }
}

body[class*='silopress-template-'] :is(.sp-article-figure, .he-img-wrap, .health-img-wrap, .entry-content figure, .mrcontent-science figure) img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--_fig-radius);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

body[class*='silopress-template-'] :is(.sp-article-figure, .he-img-wrap, .health-img-wrap, .entry-content figure, .mrcontent-science figure) figcaption {
    font-family: var(--sp-font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--sp-ink-muted);
    padding: var(--sp-space-3, 0.75rem) var(--sp-space-2, 0.5rem) 0;
    max-width: var(--sp-content-width, 680px);
    margin: 0 auto;
    text-align: center;
    line-height: 1.55;
    letter-spacing: 0.005em;
}

body[class*='silopress-template-'] :is(.entry-content blockquote, .mrcontent-science blockquote) {
    margin: var(--sp-space-12, 3rem) 0;
    position: relative;
    border: 0;
}

body[class*='silopress-template-'] :is(.entry-content blockquote, .mrcontent-science blockquote)::before {
    content: '"';
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    font-family: var(--sp-font-display);
    font-size: 5.5rem;
    color: var(--sp-accent);
    opacity: 0.3;
    line-height: 1;
}

body[class*='silopress-template-'] :is(.entry-content blockquote p, .mrcontent-science blockquote p) {
    font-family: var(--sp-font-display);
    font-size: var(--sp-font-size-quote, 1.5rem);
    line-height: 1.45;
    color: var(--sp-ink);
    margin: 0;
    padding-left: var(--sp-space-8, 2rem);
    border-left: 3px solid var(--sp-accent);
}

body[class*='silopress-template-'] :is(.entry-content ul, .entry-content ol, .mrcontent-science ul, .mrcontent-science ol) {
    margin: var(--sp-space-6, 1.5rem) 0;
    padding-left: var(--sp-space-6, 1.5rem);
}

body[class*='silopress-template-'] :is(.entry-content ul, .mrcontent-science ul) {
    list-style: none;
    padding-left: 0;
}

body[class*='silopress-template-'] :is(.entry-content ul li, .mrcontent-science ul li) {
    position: relative;
    padding-left: var(--sp-space-6, 1.5rem);
    margin-bottom: var(--sp-space-3, 0.75rem);
}

body[class*='silopress-template-'] :is(.entry-content ul li, .mrcontent-science ul li)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    background: var(--sp-accent);
}

body[class*='silopress-template-'] :is(.entry-content ol, .mrcontent-science ol) {
    list-style: none;
    padding-left: 0;
    counter-reset: sp-ol;
}

body[class*='silopress-template-'] :is(.entry-content ol li, .mrcontent-science ol li) {
    position: relative;
    counter-increment: sp-ol;
    padding-left: var(--sp-space-8, 2rem);
    margin-bottom: var(--sp-space-4, 1rem);
}

body[class*='silopress-template-'] :is(.entry-content ol li, .mrcontent-science ol li)::before {
    content: counter(sp-ol);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--sp-font-display);
    color: var(--sp-accent);
}

/* =========================================================
   INFO BOXES PREMIUM — Structured Cards with Accent Badge
   ========================================================= */

body[class*='silopress-template-'] .sp-info-box {
    --ibox-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --ibox-bg-soft: #ffffff;
    --ibox-border: #e2e8f0;
    --ibox-accent: var(--sp-accent, #0f766e);
    --ibox-accent-2: var(--sp-accent-glow, #14b8a6);
    --ibox-accent-soft: rgba(45, 109, 177, 0.10);
    --ibox-accent-soft-2: rgba(45, 109, 177, 0.08);
    --ibox-kicker: var(--sp-accent-deep, #0f766e);
    --ibox-title: var(--sp-ink, #0f172a);
    --ibox-text: var(--sp-ink-soft, #334155);
    --ibox-icon-color: #ffffff;
    --ibox-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;

    position: relative;
    overflow: hidden;
    margin: 1.75rem 0;
    padding: 1.2rem 1.2rem 1.15rem 1.2rem;
    border: 1px solid var(--ibox-border);
    border-left: 5px solid var(--ibox-accent);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.94) 100%),
        var(--ibox-bg);
    box-shadow: var(--ibox-shadow);
    isolation: isolate;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

/* halo top-left */
body[class*='silopress-template-'] .sp-info-box::before {
    content: "";
    position: absolute;
    top: -28px;
    left: -28px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--ibox-accent-soft) 0%, rgba(255,255,255,0) 68%);
    pointer-events: none;
    z-index: 0;
}

/* decorative accent badge top-right */
body[class*='silopress-template-'] .sp-info-box::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, var(--ibox-accent) 0%, var(--ibox-accent-2) 100%);
    box-shadow:
        0 14px 30px color-mix(in srgb, var(--ibox-accent) 22%, transparent),
        inset 0 1px 0 rgba(255,255,255,0.24);
    z-index: 0;
    pointer-events: none;
}

body[class*='silopress-template-'] .sp-info-box > * {
    position: relative;
    z-index: 1;
}

/* ── Head ── */
body[class*='silopress-template-'] .sp-info-box-head {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin-bottom: 0.9rem;
    padding-right: 4rem;
}

body[class*='silopress-template-'] .sp-info-box-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.45rem;
    min-height: 28px;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: var(--ibox-accent-soft);
    color: var(--ibox-kicker);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* dot before kicker */
body[class*='silopress-template-'] .sp-info-box-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ibox-accent) 0%, var(--ibox-accent-2) 100%);
    box-shadow: 0 0 0 5px var(--ibox-accent-soft-2);
    flex: 0 0 auto;
}

body[class*='silopress-template-'] .sp-info-box-title {
    margin: 0;
    color: var(--ibox-title);
    font-size: 1.06rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── Content ── */
body[class*='silopress-template-'] .sp-info-box-content p,
body[class*='silopress-template-'] .sp-info-box-content li {
    margin: 0;
    color: var(--ibox-text);
    font-size: 0.985rem;
    line-height: 1.75;
}

body[class*='silopress-template-'] .sp-info-box-content p + p {
    margin-top: 0.78rem;
}

body[class*='silopress-template-'] .sp-info-box-content strong {
    color: var(--sp-ink, #0f172a);
    font-weight: 800;
}

body[class*='silopress-template-'] .sp-info-box-content ul,
body[class*='silopress-template-'] .sp-info-box-content ol {
    margin: 0.15rem 0 0 0;
    padding: 0;
    list-style: none;
}

body[class*='silopress-template-'] .sp-info-box-content li {
    position: relative;
    margin: 0 0 0.82rem 0;
    padding-left: 1.5rem;
}

body[class*='silopress-template-'] .sp-info-box-content li:last-child {
    margin-bottom: 0;
}

/* elegant bullets */
body[class*='silopress-template-'] .sp-info-box-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ibox-accent) 0%, var(--ibox-accent-2) 100%);
    transform: translateY(-50%);
    box-shadow: 0 0 0 5px var(--ibox-accent-soft);
}

/* subtle texture */
body[class*='silopress-template-'] .sp-info-box .sp-info-box-content::after {
    content: "";
    position: absolute;
    inset: auto -10% -50px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 72%);
    pointer-events: none;
    z-index: -1;
}

/* hover */
body[class*='silopress-template-'] .sp-info-box:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.10),
        0 1px 0 rgba(255,255,255,0.72) inset;
}

/* ── VARIANT: TIP / CONSEIL ── */
body[class*='silopress-template-'] .sp-info-box-tip {
    --ibox-bg: linear-gradient(180deg, #f7fdf8 0%, #eefbf2 100%);
    --ibox-border: #d4ecd8;
    --ibox-accent: #16a34a;
    --ibox-accent-2: #4ade80;
    --ibox-accent-soft: rgba(22, 163, 74, 0.10);
    --ibox-accent-soft-2: rgba(74, 222, 128, 0.08);
    --ibox-kicker: #15803d;
    --ibox-shadow:
        0 10px 30px rgba(22, 163, 74, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── VARIANT: WARNING / ATTENTION ── */
body[class*='silopress-template-'] .sp-info-box-warning {
    --ibox-bg: linear-gradient(180deg, #fffbf0 0%, #fff7e6 100%);
    --ibox-border: #ffe4a8;
    --ibox-accent: #d97706;
    --ibox-accent-2: #fbbf24;
    --ibox-accent-soft: rgba(217, 119, 6, 0.10);
    --ibox-accent-soft-2: rgba(251, 191, 36, 0.08);
    --ibox-kicker: #b45309;
    --ibox-shadow:
        0 10px 30px rgba(217, 119, 6, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── VARIANT: URGENT / AVIS MEDICAL ── */
body[class*='silopress-template-'] .sp-info-box-urgent {
    --ibox-bg: linear-gradient(180deg, #fff8f6 0%, #fff2ef 100%);
    --ibox-border: #ffd8d0;
    --ibox-accent: #dc2626;
    --ibox-accent-2: #f97316;
    --ibox-accent-soft: rgba(220, 38, 38, 0.10);
    --ibox-accent-soft-2: rgba(249, 115, 22, 0.08);
    --ibox-kicker: #b91c1c;
    --ibox-shadow:
        0 10px 30px rgba(220, 38, 38, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── VARIANT: DEFINITION / SCIENCE ── */
body[class*='silopress-template-'] .sp-info-box-definition {
    --ibox-bg: linear-gradient(180deg, #f4fbff 0%, #eef8ff 100%);
    --ibox-border: #d4eafb;
    --ibox-accent: #0284c7;
    --ibox-accent-2: #38bdf8;
    --ibox-accent-soft: rgba(2, 132, 199, 0.10);
    --ibox-accent-soft-2: rgba(56, 189, 248, 0.08);
    --ibox-kicker: #0369a1;
    --ibox-shadow:
        0 10px 30px rgba(2, 132, 199, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── VARIANT: RESEARCH / DONNEES ── */
body[class*='silopress-template-'] .sp-info-box-research {
    --ibox-bg: linear-gradient(180deg, #f7f8ff 0%, #eef2ff 100%);
    --ibox-border: #dbe3ff;
    --ibox-accent: #4f46e5;
    --ibox-accent-2: #818cf8;
    --ibox-accent-soft: rgba(79, 70, 229, 0.10);
    --ibox-accent-soft-2: rgba(129, 140, 248, 0.08);
    --ibox-kicker: #4338ca;
    --ibox-shadow:
        0 10px 30px rgba(79, 70, 229, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── VARIANT: CONTRAINDICATION ── */
body[class*='silopress-template-'] .sp-info-box-contraindication {
    --ibox-bg: linear-gradient(180deg, #fff7f7 0%, #fff0f0 100%);
    --ibox-border: #ffd3d3;
    --ibox-accent: #b91c1c;
    --ibox-accent-2: #ef4444;
    --ibox-accent-soft: rgba(185, 28, 28, 0.10);
    --ibox-accent-soft-2: rgba(239, 68, 68, 0.08);
    --ibox-kicker: #991b1b;
    --ibox-shadow:
        0 10px 30px rgba(185, 28, 28, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── VARIANT: IMPORTANT ── */
body[class*='silopress-template-'] .sp-info-box-important {
    --ibox-bg: linear-gradient(180deg, #fff8f6 0%, #fff2ef 100%);
    --ibox-border: #ffd8d0;
    --ibox-accent: #dc2626;
    --ibox-accent-2: #f97316;
    --ibox-accent-soft: rgba(220, 38, 38, 0.10);
    --ibox-accent-soft-2: rgba(249, 115, 22, 0.08);
    --ibox-kicker: #b91c1c;
    --ibox-shadow:
        0 10px 30px rgba(220, 38, 38, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── VARIANT: FACT CHECK ── */
body[class*='silopress-template-'] .sp-info-box-fact-check {
    --ibox-bg: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    --ibox-border: #bbf7d0;
    --ibox-accent: #059669;
    --ibox-accent-2: #34d399;
    --ibox-accent-soft: rgba(5, 150, 105, 0.10);
    --ibox-accent-soft-2: rgba(52, 211, 153, 0.08);
    --ibox-kicker: #047857;
    --ibox-shadow:
        0 10px 30px rgba(5, 150, 105, 0.07),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

body[class*='silopress-template-'] .sp-info-box + .sp-info-box {
    margin-top: 1.1rem;
}

body[class*='silopress-template-'] .sp-info-box-urgent .sp-info-box-head p {
    margin-bottom: 5px;
}

/* ── INFO BOX RESPONSIVE: DESKTOP ── */
@media (min-width: 992px) {
    body[class*='silopress-template-'] .sp-info-box {
        padding: 1.35rem 1.35rem 1.25rem 1.35rem;
    }

    body[class*='silopress-template-'] .sp-info-box::before {
        width: 180px;
        height: 180px;
    }

    body[class*='silopress-template-'] .sp-info-box::after {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    body[class*='silopress-template-'] .sp-info-box-title {
        font-size: 1.1rem;
    }

    body[class*='silopress-template-'] .sp-info-box-content p,
    body[class*='silopress-template-'] .sp-info-box-content li {
        font-size: 1rem;
    }
}

/* ── INFO BOX RESPONSIVE: MOBILE ── */
@media (max-width: 767px) {
    body[class*='silopress-template-'] .sp-info-box {
        margin: 1.3rem 0;
        padding: 1rem 1rem 0.98rem 1rem;
        border-radius: 18px;
    }

    body[class*='silopress-template-'] .sp-info-box::before {
        top: -24px;
        left: -24px;
        width: 110px;
        height: 110px;
    }

    body[class*='silopress-template-'] .sp-info-box::after {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    body[class*='silopress-template-'] .sp-info-box-head {
        margin-bottom: 0.8rem;
        padding-right: 3.2rem;
    }

    body[class*='silopress-template-'] .sp-info-box-kicker {
        font-size: 0.68rem;
        padding: 0.35rem 0.62rem;
    }

    body[class*='silopress-template-'] .sp-info-box-title {
        font-size: 1rem;
        line-height: 1.35;
    }

    body[class*='silopress-template-'] .sp-info-box-content p,
    body[class*='silopress-template-'] .sp-info-box-content li {
        font-size: 0.95rem;
        line-height: 1.68;
    }
}

/* Legacy info-box fallback */
body[class*='silopress-template-'] :is(.sp-article-info, .he-info, .health-info) {
    margin: var(--sp-space-8, 2rem) 0;
    padding: var(--sp-space-6, 1.5rem);
    font-size: 0.9375rem;
    line-height: 1.65;
    border-left: 3px solid var(--sp-accent);
}

body[class*='silopress-template-'] :is(.sp-article-info.sp-info-tip, .he-info.he-info-tip, .health-info.health-info-tip) {
    background: var(--sp-accent-subtle);
}

body[class*='silopress-template-'] :is(.sp-article-info.sp-info-warning, .he-info.he-info-warning, .health-info.health-info-warning) {
    background: var(--sp-warning-bg, rgba(184, 134, 11, 0.08));
    border-left-color: var(--sp-warning);
}

body[class*='silopress-template-'] :is(.sp-article-info.sp-info-important, .he-info.he-info-important, .health-info.health-info-important) {
    background: var(--sp-error-bg, rgba(155, 44, 44, 0.08));
    border-left-color: var(--sp-error);
}

body[class*='silopress-template-'] :is(.sp-article-stat, .he-stat, .health-stat) {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-space-1, 0.25rem);
}

body[class*='silopress-template-'] :is(.sp-article-stat-value, .he-stat-value, .health-stat-value) {
    font-family: var(--sp-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--sp-accent-deep);
}

body[class*='silopress-template-'] :is(.sp-article-stat-label, .he-stat-label, .health-stat-label) {
    font-size: 0.9375rem;
    color: var(--sp-ink-muted);
}

body[class*='silopress-template-'] :is(.sp-article-cta, .he-cta, .health-cta) {
    margin: var(--sp-space-12, 3rem) 0;
    padding: var(--sp-space-8, 2rem);
    background: var(--sp-ink);
    color: var(--sp-paper);
    text-align: center;
    position: relative;
}

body[class*='silopress-template-'] :is(.sp-article-cta, .he-cta, .health-cta)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sp-accent);
}

body[class*='silopress-template-'] .sp-article-faq {
    margin: var(--sp-space-16, 4rem) 0;
}

body[class*='silopress-template-'] .sp-faq-item {
    border-bottom: 1px solid var(--sp-panel-line, rgba(0, 0, 0, 0.08));
}

body[class*='silopress-template-'] .sp-faq-item h3 {
    margin: 0;
    padding: 1.2rem 0;
    display: flex;
    gap: var(--sp-space-4, 1rem);
    align-items: flex-start;
    font-family: var(--sp-font-display);
    font-size: 1.05rem;
}

body[class*='silopress-template-'] .sp-faq-item h3 + div {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.44s var(--sp-ease-out), opacity 0.28s ease;
}

body[class*='silopress-template-'] .sp-faq-item.sp-faq-open h3 + div {
    opacity: 1;
    pointer-events: auto;
}

/* ── Autopilot Appendix (key stats / data section) ── */
body[class*='silopress-template-'] .sp-autopilot-appendix {
    margin-top: var(--sp-space-12, 3rem);
    padding-top: var(--sp-space-8, 2rem);
    border-top: 2px solid var(--sp-panel-line, rgba(0, 0, 0, 0.1));
}

body[class*='silopress-template-'] .sp-autopilot-appendix ul {
    list-style: none;
    margin: var(--sp-space-4, 1rem) 0 0;
    padding: 0;
}

body[class*='silopress-template-'] .sp-autopilot-appendix li {
    position: relative;
    padding-left: var(--sp-space-6, 1.5rem);
    margin-bottom: var(--sp-space-4, 1rem);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sp-ink-soft);
}

body[class*='silopress-template-'] .sp-autopilot-appendix li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    background: var(--sp-accent);
    border-radius: 50%;
}

body[class*='silopress-template-'] .sp-article-sources {
    margin: var(--sp-space-16, 4rem) 0 var(--sp-space-8, 2rem);
}

body[class*='silopress-template-'] .sp-source-snippet {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    transition: max-height 0.35s var(--sp-ease-out), opacity 0.25s ease;
}

body[class*='silopress-template-'] .sp-source-item.sp-source-open .sp-source-snippet {
    max-height: 240px !important;
    opacity: 1;
}

body[class*='silopress-template-'] :is(.entry-content code, .mrcontent-science code) {
    font-family: var(--sp-font-mono);
    font-size: 0.875em;
    background: var(--sp-paper-warm);
    padding: 0.15em 0.4em;
}

@media (max-width: 768px) {
    body[class*='silopress-template-'] :is(.sp-article, .entry-content, .post-content, .mrcontent-science, article .content) {
        padding: var(--sp-space-6, 1.5rem) var(--sp-space-4, 1rem);
        font-size: 1.03rem;
    }

    body[class*='silopress-template-'] :is(.sp-article-section, .he-section-heading, .health-section-heading, .entry-content h2, .mrcontent-science h2) {
        font-size: 1.6rem;
        margin-top: var(--sp-space-12, 3rem);
    }

    body[class*='silopress-template-'] :is(.entry-content blockquote p, .mrcontent-science blockquote p) {
        font-size: 1.28rem;
    }
}

@media print {
    body[class*='silopress-template-'] :is(.sp-article-toc, .sp-article-cta, .he-toc, .he-cta, .health-toc, .health-cta) {
        display: none !important;
    }

    body[class*='silopress-template-'] :is(.sp-article, .entry-content, .mrcontent-science) {
        max-width: 100%;
        padding: 0;
        font-size: 11pt;
    }
}

@keyframes sp-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body[class*='silopress-template-'] :is(.sp-article-section, .he-section-heading, .health-section-heading, .sp-article-figure, .he-img-wrap, .health-img-wrap, .sp-faq-item) {
    animation: sp-fade-up 0.55s var(--sp-ease-out) both;
}

