/**
 * SiloPress — Frontend Article Styles (Dark / Obsidian Observatory)
 * ◼ — True black OLED, electric cyan, warm amber embers
 *
 * Design Direction:
 *   Premium science journal on an OLED display.
 *   True #000 black canvas with luminous cyan accents that feel like
 *   bioluminescence in deep water. Warm amber for secondary warmth.
 *   Generous negative space, razor-sharp typography, gentle glow effects.
 *   Think Nature journal × Bloomberg Terminal × deep-sea observatory.
 *
 * Typography:
 *   Display : Instrument Serif  — sharp contrast serif, editorial authority
 *   Body    : Geist             — geometric Swiss precision, excellent legibility
 *   Mono    : Geist Mono        — matched monospace for data/stats
 *
 * Palette:
 *   Void       #000000  (true OLED black)
 *   Obsidian   #0A0A0C  (near-black with blue undertone)
 *   Graphite   #141418  (elevated surface)
 *   Slate      #1E1E24  (card/panel surface)
 *   Silver     #E8E8EC  (primary text — not pure white for comfort)
 *   Mist       #A0A0A8  (secondary text)
 *   Fog        #606068  (muted/disabled text)
 *   Cyan       #00D4AA  (primary accent — electric teal-cyan)
 *   Cyan Deep  #009E7E  (accent hover/pressed)
 *   Amber      #F0A830  (secondary accent — warm ember)
 *   Ember      #CC8820  (amber pressed)
 *
 * @package SiloPress
 * @since   2.16.0
 */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500&display=swap');
@import url('./niche/shared/article-structure.css');

/* ============================================================================
   CSS Variables — Obsidian Observatory Palette
   ============================================================================ */
body.silopress-template-dark {
    /* Ink hierarchy — inverted: light text on dark */
    --sp-ink:          #E8E8EC;
    --sp-ink-soft:     #CCCCD2;
    --sp-ink-muted:    #888890;
    --sp-ink-faded:    #505058;

    /* Paper hierarchy — deep blacks */
    --sp-paper:        #000000;
    --sp-paper-warm:   #0A0A0C;
    --sp-paper-cream:  #0E0E12;
    --sp-paper-deep:   #141418;

    /* Cyan — primary accent (bioluminescent teal) */
    --sp-accent:       #00D4AA;
    --sp-accent-deep:  #00B892;
    --sp-accent-glow:  #33EDCA;
    --sp-accent-subtle: rgba(0, 212, 170, 0.07);
    --sp-accent-line:  rgba(0, 212, 170, 0.25);

    /* Amber — secondary (warm ember) */
    --sp-amber:        #F0A830;
    --sp-amber-deep:   #CC8820;
    --sp-amber-subtle: rgba(240, 168, 48, 0.08);

    /* Crimson — tertiary (alert/error warmth) */
    --sp-crimson:      #FF6B6B;
    --sp-crimson-subtle: rgba(255, 107, 107, 0.08);

    /* Semantics */
    --sp-warning:      #F0A830;
    --sp-error:        #FF6B6B;
    --sp-success:      #00D4AA;
    --sp-warning-bg:   rgba(240, 168, 48, 0.08);
    --sp-error-bg:     rgba(255, 107, 107, 0.07);

    /* Typography */
    --sp-font-display: 'Instrument Serif', 'Georgia', serif;
    --sp-font-body:    'Geist', 'Helvetica Neue', sans-serif;
    --sp-font-mono:    'Geist Mono', 'Consolas', monospace;

    /* Layout */
    --sp-content-width:  720px;
    --sp-wide-width:     980px;

    /* Type Scale */
    --sp-font-size-body: 1.08rem;
    --sp-font-size-lead: 1.28rem;
    --sp-font-size-h2:   2.3rem;
    --sp-font-size-h3:   1.45rem;
    --sp-font-size-quote: 1.35rem;
    --sp-line-body:      1.82;
    --sp-line-lead:      1.72;
    --sp-drop-cap-size:  5.2rem;
    --sp-drop-cap-color: var(--sp-accent);

    --sp-takeaways-label: '◼ Points Clés';
    --sp-list-mark:       '–';

    /* Radii — sharp with slight softness */
    --sp-radius-sm:   4px;
    --sp-radius-md:   8px;
    --sp-radius-lg:   14px;
    --sp-radius-pill: 999px;

    /* Motion */
    --sp-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --sp-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows — luminous glow on dark */
    --sp-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.5);
    --sp-shadow-card: 0 8px 40px rgba(0, 0, 0, 0.6);

    /* Panel overrides for shared structure */
    --sp-panel-bg:   var(--sp-paper-deep);
    --sp-panel-line: rgba(255, 255, 255, 0.06);
    --sp-callout-bg: var(--sp-paper-warm);
    --sp-link:       var(--sp-accent);
    --sp-link-hover: var(--sp-accent-glow);
}

/* ============================================================================
   Page Background — True black with subtle vignette
   ============================================================================ */
body.silopress-template-dark main#main.site-main.hfeed {
    background: #000000;
}

/* ============================================================================
   Article Container — Silver text on void
   ============================================================================ */
body.silopress-template-dark :is(.sp-article, .entry-content, .post-content, .mrcontent-science, article .content) {
    color: var(--sp-ink);
}

/* ============================================================================
   Paragraphs — Comfortable reading on dark
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-paragraph, .entry-content p, .mrcontent-science p) {
    color: var(--sp-ink-soft);
}

body.silopress-template-dark :is(.sp-article-paragraph, .entry-content > p, .mrcontent-science > p):first-of-type {
    color: var(--sp-ink);
}

/* ============================================================================
   H2 — Horizontal cyan filament line with glow
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-section, .entry-content h2, .mrcontent-science h2) {
    position: relative;
    font-family: var(--sp-font-display);
    font-size: var(--sp-font-size-h2);
    font-weight: 400;
    font-style: italic;
    line-height: 1.22;
    color: var(--sp-ink);
    letter-spacing: -0.01em;
    margin: 4rem 0 1.6rem;
    padding-top: 2.2rem;
    padding-bottom: 0;
    border-left: none;
    border-bottom: none;
}

/* Cyan filament line above */
body.silopress-template-dark :is(.sp-article-section, .entry-content h2, .mrcontent-science h2)::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 2px;
    background: var(--sp-accent);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
    border-radius: 1px;
    margin-bottom: 0;
}

/* ============================================================================
   H3 — Amber dot marker
   ============================================================================ */
body.silopress-template-dark :is(.entry-content h3, .mrcontent-science h3) {
    font-family: var(--sp-font-display);
    font-size: var(--sp-font-size-h3);
    font-weight: 400;
    font-style: normal;
    line-height: 1.35;
    color: var(--sp-ink);
    letter-spacing: 0;
    margin: 2.8rem 0 1.2rem;
    padding-left: 1.6rem;
    position: relative;
}

body.silopress-template-dark :is(.entry-content h3, .mrcontent-science h3)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.38em;
    width: 8px;
    height: 8px;
    background: var(--sp-amber);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(240, 168, 48, 0.3);
}

/* ============================================================================
   Internal Links — Cyan underline with glow hover
   ============================================================================ */
body.silopress-template-dark :is(.sp-internal-link, .entry-content a:not([class]), .mrcontent-science a:not([class])) {
    color: var(--sp-accent);
    text-decoration: none;
    background-image: none;
    border-bottom: 1px solid var(--sp-accent-line);
    transition: color 0.25s var(--sp-ease-out), border-color 0.25s var(--sp-ease-out), text-shadow 0.25s ease;
    padding: 0 1px;
}

body.silopress-template-dark :is(.sp-internal-link, .entry-content a:not([class]), .mrcontent-science a:not([class])):hover {
    color: var(--sp-accent-glow);
    border-color: var(--sp-accent-glow);
    text-shadow: 0 0 14px rgba(0, 212, 170, 0.25);
}

/* ============================================================================
   Figure / Images — Obsidian frame with subtle border
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-figure, .entry-content figure, .mrcontent-science figure) {
    margin: 2.5rem -0.5rem;
    padding: 0;
    border-radius: var(--sp-radius-md);
    overflow: hidden;
    background: var(--sp-paper-deep);
    box-shadow: var(--sp-shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body.silopress-template-dark :is(.sp-article-figure, .entry-content figure, .mrcontent-science figure) img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    transition: transform 0.5s var(--sp-ease-out), filter 0.5s ease;
}

body.silopress-template-dark :is(.sp-article-figure, .entry-content figure, .mrcontent-science figure):hover img {
    transform: scale(1.015);
}

body.silopress-template-dark :is(.sp-article-figure, .entry-content figure, .mrcontent-science figure) figcaption {
    font-family: var(--sp-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sp-ink-muted);
    padding: 0.7rem 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================================================
   Blockquote — Graphite panel with cyan bar
   ============================================================================ */
body.silopress-template-dark :is(.entry-content blockquote, .mrcontent-science blockquote) {
    position: relative;
    margin: 2.8rem 0;
    padding: 1.8rem 2rem 1.8rem 2.4rem;
    background: var(--sp-paper-deep);
    border-left: 3px solid var(--sp-accent);
    border-radius: 0 var(--sp-radius-md) var(--sp-radius-md) 0;
    box-shadow: var(--sp-shadow-soft);
    border: none;
    border-left: 3px solid var(--sp-accent);
}

/* Luminous quotation mark */
body.silopress-template-dark :is(.entry-content blockquote, .mrcontent-science blockquote)::before {
    content: '\201C';
    position: absolute;
    top: 0.2rem;
    left: 0.8rem;
    font-family: var(--sp-font-display);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--sp-accent);
    opacity: 0.15;
    line-height: 1;
}

body.silopress-template-dark :is(.entry-content blockquote p, .mrcontent-science blockquote p) {
    font-family: var(--sp-font-display);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.65;
    color: var(--sp-ink);
    border-left: none;
    padding-left: 0;
    margin: 0;
}

body.silopress-template-dark :is(.entry-content blockquote cite, .mrcontent-science blockquote cite) {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--sp-font-body);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 500;
    color: var(--sp-accent-deep);
    letter-spacing: 0.02em;
}

/* ============================================================================
   Lists — Cyan markers on dark
   ============================================================================ */
body.silopress-template-dark :is(.entry-content ul, .mrcontent-science ul) > li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--sp-accent);
    border-radius: 50%;
    top: 0.72em;
    box-shadow: 0 0 6px rgba(0, 212, 170, 0.2);
}

body.silopress-template-dark :is(.entry-content ol li, .mrcontent-science ol li)::before {
    font-family: var(--sp-font-mono);
    font-weight: 400;
    color: var(--sp-accent);
}

/* ============================================================================
   Table of Contents — Obsidian glass panel
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-toc) {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2rem 1.8rem;
    background: linear-gradient(160deg, #0E0E14 0%, #141420 50%, #0E0E14 100%);
    border-radius: var(--sp-radius-lg);
    color: var(--sp-ink);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Subtle cyan glow on right edge */
body.silopress-template-dark :is(.sp-article-toc)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(0, 212, 170, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

body.silopress-template-dark .sp-article-toc-title {
    display: flex;
    align-items: center;
    gap: 0.35em;
    font-family: var(--sp-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sp-ink-muted);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

body.silopress-template-dark :is(.sp-article-toc) .sp-toc-chevron {
    background: rgba(0, 212, 170, 0.08);
}

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

body.silopress-template-dark .sp-article-toc-title[role="button"]:hover .sp-toc-chevron {
    background: rgba(0, 212, 170, 0.14);
}

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

body.silopress-template-dark :is(.sp-article-toc) a {
    color: var(--sp-ink-soft);
    text-decoration: none;
    background: none;
    border-radius: var(--sp-radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
}

body.silopress-template-dark :is(.sp-article-toc) a:hover {
    color: var(--sp-ink);
    background: rgba(255, 255, 255, 0.03);
}

body.silopress-template-dark :is(.sp-article-toc) a::before {
    color: var(--sp-accent);
    opacity: 0.7;
}

body.silopress-template-dark :is(.sp-article-toc) ol {
    counter-reset: toc-counter;
    list-style: none;
    padding-left: 0;
}

body.silopress-template-dark :is(.sp-article-toc) ol > li {
    counter-increment: toc-counter;
    position: relative;
    font-size: 0.95rem;
}

body.silopress-template-dark :is(.sp-article-toc) ol > li::before {
    content: none;
}

body.silopress-template-dark :is(.sp-article-toc) li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.silopress-template-dark :is(.sp-article-toc) li:last-child {
    border-bottom: none;
}

/* Sub-list (H3) */
body.silopress-template-dark :is(.sp-article-toc) ol.sp-toc-sub a {
    color: var(--sp-ink-muted);
    font-size: 0.88rem;
}

body.silopress-template-dark :is(.sp-article-toc) ol.sp-toc-sub a:hover {
    color: var(--sp-ink-soft);
}

body.silopress-template-dark :is(.sp-article-toc) ol.sp-toc-sub a::before {
    color: rgba(0, 212, 170, 0.45);
}

/* ============================================================================
   Key Takeaways — Graphite card with cyan accent
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-takeaways, .sp-key-takeaways) {
    position: relative;
    margin: 2.8rem 0;
    padding: 2rem 2rem 1.6rem;
    background: var(--sp-paper-deep);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--sp-accent);
    border-radius: var(--sp-radius-md);
    box-shadow: var(--sp-shadow-soft);
    overflow: hidden;
}

/* Decorative glyph — ◼ */
body.silopress-template-dark :is(.sp-article-takeaways, .sp-key-takeaways)::after {
    content: '◼';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.4rem;
    color: var(--sp-accent);
    opacity: 0.06;
    pointer-events: none;
}

body.silopress-template-dark :is(.sp-article-takeaways, .sp-key-takeaways)::before {
    content: var(--sp-takeaways-label, '◼ Points Clés');
    color: var(--sp-accent);
}

body.silopress-template-dark :is(.sp-article-takeaways, .sp-key-takeaways) li {
    color: var(--sp-ink-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0 0.5rem 1.8rem;
}

body.silopress-template-dark :is(.sp-article-takeaways, .sp-key-takeaways) li:last-child {
    border-bottom: none;
}

body.silopress-template-dark :is(.sp-article-takeaways, .sp-key-takeaways) li::before {
    content: '▸';
    color: var(--sp-accent);
    font-size: 0.85rem;
    top: 0.55rem;
}

/* ============================================================================
   CTA Box — Cyan gradient with dark text
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-cta) {
    position: relative;
    margin: 3rem 0;
    padding: 2.2rem 2.4rem;
    background: linear-gradient(140deg, #00D4AA 0%, #009E7E 100%);
    border-radius: var(--sp-radius-md);
    color: #000;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 212, 170, 0.15);
    overflow: hidden;
}

/* Noise texture overlay */
body.silopress-template-dark :is(.sp-article-cta)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    height: 3px;
    top: 0;
    background: var(--sp-accent);
}

body.silopress-template-dark :is(.sp-article-cta) strong,
body.silopress-template-dark :is(.sp-article-cta) h3 {
    font-family: var(--sp-font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
}

body.silopress-template-dark :is(.sp-article-cta) p {
    color: rgba(0, 0, 0, 0.75);
    font-size: 0.98rem;
}

body.silopress-template-dark :is(.sp-article-cta) a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: #000;
    color: var(--sp-accent);
    font-family: var(--sp-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--sp-radius-sm);
    transition: transform 0.25s var(--sp-ease-out), box-shadow 0.25s var(--sp-ease-out);
}

body.silopress-template-dark :is(.sp-article-cta) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    background-image: none;
    background: #000;
}

/* ============================================================================
   Info Boxes — Three dark variants
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-info) {
    position: relative;
    margin: 2rem 0;
    padding: 1.4rem 1.5rem 1.4rem 3.2rem;
    border-radius: var(--sp-radius-md);
    font-size: 0.95rem;
    line-height: 1.7;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Tip — cyan */
body.silopress-template-dark .sp-info-tip {
    background: rgba(0, 212, 170, 0.06);
    border-left: 3px solid var(--sp-accent);
    color: var(--sp-ink-soft);
}

body.silopress-template-dark .sp-info-tip::before {
    content: '✦';
    position: absolute;
    left: 0.9rem;
    top: 1.35rem;
    font-size: 1rem;
    color: var(--sp-accent);
}

/* Warning — amber */
body.silopress-template-dark .sp-info-warning {
    background: rgba(240, 168, 48, 0.06);
    border-left: 3px solid var(--sp-amber);
    color: var(--sp-ink-soft);
}

body.silopress-template-dark .sp-info-warning::before {
    content: '△';
    position: absolute;
    left: 0.9rem;
    top: 1.3rem;
    font-size: 1.1rem;
    color: var(--sp-amber);
}

/* Important — crimson */
body.silopress-template-dark .sp-info-important {
    background: rgba(255, 107, 107, 0.06);
    border-left: 3px solid var(--sp-crimson);
    color: var(--sp-ink-soft);
}

body.silopress-template-dark .sp-info-important::before {
    content: '◆';
    position: absolute;
    left: 0.9rem;
    top: 1.35rem;
    font-size: 1rem;
    color: var(--sp-crimson);
}

/* ============================================================================
   Stat / Highlight Box — Obsidian card with cyan number
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-stat) {
    display: block;
    margin: 2rem 0;
    padding: 1.8rem 2rem;
    background: linear-gradient(160deg, #0E0E14 0%, #141420 100%);
    border-radius: var(--sp-radius-md);
    text-align: center;
    box-shadow: var(--sp-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body.silopress-template-dark :is(.sp-article-stat) strong,
body.silopress-template-dark :is(.sp-article-stat-value) {
    display: block;
    font-family: var(--sp-font-display);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--sp-accent);
    line-height: 1.1;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 30px rgba(0, 212, 170, 0.15);
}

body.silopress-template-dark :is(.sp-article-stat) span,
body.silopress-template-dark :is(.sp-article-stat) em,
body.silopress-template-dark :is(.sp-article-stat-label) {
    font-family: var(--sp-font-body);
    font-size: 0.82rem;
    font-weight: 500;
    font-style: normal;
    color: var(--sp-ink-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================================================
   Tables — Dark glass with cyan header
   ============================================================================ */
body.silopress-template-dark :is(.entry-content table, .mrcontent-science table) {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.92rem;
    border-radius: var(--sp-radius-md);
    overflow: hidden;
    box-shadow: var(--sp-shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body.silopress-template-dark :is(.entry-content table, .mrcontent-science table) thead {
    background: linear-gradient(135deg, #0E0E14, #1A1A22);
}

body.silopress-template-dark :is(.entry-content table, .mrcontent-science table) th {
    font-family: var(--sp-font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
    text-align: left;
    color: var(--sp-accent);
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
}

body.silopress-template-dark :is(.entry-content table, .mrcontent-science table) td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--sp-ink-soft);
}

body.silopress-template-dark :is(.entry-content table, .mrcontent-science table) tbody tr {
    background: var(--sp-paper-warm);
    transition: background 0.2s ease;
}

body.silopress-template-dark :is(.entry-content table, .mrcontent-science table) tbody tr:nth-child(even) {
    background: var(--sp-paper-deep);
}

body.silopress-template-dark :is(.entry-content table, .mrcontent-science table) tbody tr:hover {
    background: rgba(0, 212, 170, 0.04);
}

/* ============================================================================
   Code — Slate on obsidian
   ============================================================================ */
body.silopress-template-dark :is(.entry-content code, .mrcontent-science code) {
    font-family: var(--sp-font-mono);
    font-size: 0.86em;
    padding: 0.15em 0.45em;
    background: rgba(0, 212, 170, 0.06);
    color: var(--sp-accent);
    border-radius: 3px;
    border: 1px solid rgba(0, 212, 170, 0.08);
}

body.silopress-template-dark :is(.entry-content pre, .mrcontent-science pre) {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    background: #08080C;
    border-radius: var(--sp-radius-md);
    overflow-x: auto;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body.silopress-template-dark :is(.entry-content pre, .mrcontent-science pre) code {
    background: none;
    color: var(--sp-ink-soft);
    padding: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    border: none;
}

/* ============================================================================
   FAQ Section — Glass accordion on dark
   ============================================================================ */
body.silopress-template-dark .sp-faq-item {
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--sp-radius-md);
    overflow: hidden;
    background: var(--sp-paper-warm);
    transition: box-shadow 0.25s var(--sp-ease-out), border-color 0.25s ease;
}

body.silopress-template-dark .sp-faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.06);
}

body.silopress-template-dark .sp-faq-item h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.3rem;
    font-family: var(--sp-font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--sp-ink);
    cursor: pointer;
    margin: 0;
}

body.silopress-template-dark .sp-faq-item h3::before {
    content: none;
}

body.silopress-template-dark .sp-faq-item.sp-faq-open h3 {
    color: var(--sp-accent);
}

body.silopress-template-dark .sp-faq-item div[itemprop='acceptedAnswer'] {
    padding: 0 1.3rem 1.2rem;
    font-size: 0.95rem;
    color: var(--sp-ink-soft);
    line-height: 1.75;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================================================
   Horizontal Rule — Fade-to-center cyan line
   ============================================================================ */
body.silopress-template-dark :is(.entry-content hr, .mrcontent-science hr) {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 212, 170, 0.2) 30%,
        rgba(0, 212, 170, 0.2) 70%,
        transparent 100%
    );
    margin: 3.5rem auto;
    max-width: 400px;
    position: relative;
}

body.silopress-template-dark :is(.entry-content hr, .mrcontent-science hr)::after {
    content: '◇';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--sp-paper);
    padding: 0 0.8rem;
    color: var(--sp-accent);
    font-size: 0.6rem;
    opacity: 0.5;
}

/* ============================================================================
   Drop Cap — Cyan luminous initial letter
   ============================================================================ */
body.silopress-template-dark :is(.sp-article-paragraph, .entry-content > p, .mrcontent-science > p):first-of-type::first-letter {
    color: var(--sp-accent);
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

/* ============================================================================
   Selection — Cyan highlight
   ============================================================================ */
body.silopress-template-dark ::selection {
    background: rgba(0, 212, 170, 0.22);
    color: #fff;
}

body.silopress-template-dark ::-moz-selection {
    background: rgba(0, 212, 170, 0.22);
    color: #fff;
}

/* ============================================================================
   Sources section
   ============================================================================ */
body.silopress-template-dark .sp-article-sources {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
}

body.silopress-template-dark .sp-source-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.silopress-template-dark .sp-source-item a {
    color: var(--sp-accent);
}

/* ============================================================================
   Mobile Responsive
   ============================================================================ */
@media (max-width: 768px) {
    body.silopress-template-dark {
        --sp-font-size-h2: 1.75rem;
        --sp-font-size-h3: 1.25rem;
        --sp-font-size-body: 1.02rem;
        --sp-drop-cap-size: 4rem;
    }

    body.silopress-template-dark :is(.sp-article-toc) {
        padding: 1.4rem 1.2rem;
    }

    body.silopress-template-dark :is(.sp-article-figure, .entry-content figure, .mrcontent-science figure) {
        margin: 1.5rem -0.5rem;
    }

    body.silopress-template-dark :is(.sp-article-cta) {
        padding: 1.6rem 1.4rem;
    }

    body.silopress-template-dark :is(.sp-article-stat) strong,
    body.silopress-template-dark .sp-article-stat-value {
        font-size: 2.2rem;
    }
}

/* ============================================================================
   Print Styles — Invert for paper
   ============================================================================ */
@media print {
    body.silopress-template-dark {
        --sp-ink: #000;
        --sp-ink-soft: #222;
        --sp-paper: #fff;
        --sp-paper-warm: #fafafa;
        --sp-paper-deep: #f5f5f5;
        --sp-accent: #0a7a5e;
        --sp-amber: #8a6010;
    }

    body.silopress-template-dark :is(.sp-article-toc),
    body.silopress-template-dark :is(.sp-article-cta) {
        box-shadow: none;
        background: #f0f0f0;
        color: #000;
    }

    body.silopress-template-dark main#main.site-main.hfeed {
        background: #fff;
    }
}
