/* The Spin The Wheel — Blog Design System */
.editorial-prose { font-size: 1.075rem; line-height: 1.85; color: var(--text-secondary); }
.editorial-prose h1, .editorial-prose h2, .editorial-prose h3, .editorial-prose h4 { color: var(--text-primary); font-weight: 800; letter-spacing: -0.02em; }
.editorial-prose h2 { font-size: 1.85rem; margin: 3.5rem 0 1.25rem 0; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.65rem; line-height: 1.3; }
.editorial-prose h3 { font-size: 1.35rem; font-weight: 700; margin: 2.25rem 0 0.85rem 0; line-height: 1.4; }
.editorial-prose h4 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.65rem 0; }
.editorial-prose p { margin-bottom: 1.35rem; color: var(--text-secondary); }
.editorial-prose strong { color: var(--text-primary); font-weight: 600; }
.editorial-prose a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s ease; }
.editorial-prose a:hover { color: #38bdf8; }
.editorial-prose ul, .editorial-prose ol { margin: 1.25rem 0 1.75rem 1.5rem; color: var(--text-secondary); }
.editorial-prose li { margin-bottom: 0.65rem; line-height: 1.75; }

/* Global Article Figures & Visual Blocks - CLS & Responsive Invariant */
figure,
.editorial-figure,
.article-visual-block,
.article-figure {
    margin: 2.5rem auto;
    text-align: center;
    max-width: 100%;
    display: block;
}

figure picture,
figure img,
.editorial-figure picture,
.editorial-figure img,
.article-visual-block picture,
.article-visual-block img,
.article-figure picture,
.article-figure img,
.editorial-prose img,
.editorial-prose picture,
.blog-reading-container img,
.img-fluid,
.aligncenter,
.size-full {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 12px);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    box-sizing: border-box;
}

figure figcaption,
.editorial-figure figcaption,
.article-visual-block figcaption,
.article-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.75rem;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* KaTeX Display Formula Responsive Scrolling & MathML Mobile Overflow Fix */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}
.katex-mathml {
    left: 0 !important;
    top: 0 !important;
}

.editorial-prose pre { position: relative; background-color: #0b1120; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.25rem; overflow-x: auto; font-size: 0.9rem; margin: 2rem 0; line-height: 1.6; }
.editorial-prose code { background-color: rgba(255,255,255,0.08); padding: 0.2rem 0.45rem; border-radius: 4px; font-size: 0.875em; color: var(--accent-cyan); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.editorial-prose pre code { background-color: transparent; padding: 0; color: #38bdf8; }
.copy-code-btn { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(255,255,255,0.08); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; cursor: pointer; transition: all 0.2s ease; backdrop-filter: blur(4px); }
.copy-code-btn:hover { background: var(--accent-cyan); color: #0b0f17; border-color: var(--accent-cyan); }

.reading-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent-cyan)); width: 0%; z-index: 9999; transition: width 0.08s linear; pointer-events: none; }
.back-to-top-btn { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.25s ease; z-index: 90; }
.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); transform: translateY(-2px); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3.5rem; max-width: 1180px; margin: 2rem auto 5rem auto; padding: 0 1.5rem; align-items: start; min-width: 0; }
.article-main { max-width: 740px; width: 100%; min-width: 0; }
.article-sidebar { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sticky-toc { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.35rem 1.25rem; box-shadow: var(--shadow-soft); }
.sticky-toc-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.sticky-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.sticky-toc a, .editorial-toc a, .article-toc a, .toc-link { display: block; font-size: 0.875rem; line-height: 1.45; color: var(--text-secondary); text-decoration: none; padding: 0.35rem 0.65rem; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: all 0.15s ease; }
.sticky-toc a:hover, .editorial-toc a:hover, .article-toc a:hover, .toc-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.sticky-toc a.active, .editorial-toc a.active, .article-toc a.active, .toc-link.active { color: var(--accent-cyan) !important; font-weight: 700; border-left-color: var(--accent-cyan); background: rgba(6,182,212,0.08); }
.sidebar-tool-card { background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(6,182,212,0.06) 100%); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; }
.sidebar-tool-card h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.sidebar-tool-card p { font-size: 0.825rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.85rem; }
.sidebar-tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0.6rem 1rem; border-radius: var(--radius-full); background: var(--primary); color: #ffffff !important; text-decoration: none !important; font-size: 0.85rem; font-weight: 600; transition: background 0.2s ease; }
.sidebar-tool-btn:hover { background: var(--primary-hover); }

.mobile-toc { display: none; margin-bottom: 2.5rem; }
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; min-width: 0; padding: 0 1rem; }
    .article-sidebar { display: none; }
    .article-main { max-width: 100%; min-width: 0; }
    .mobile-toc { display: block; }
}

.callout-box { border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.35rem 1.5rem; margin: 2.25rem 0; background-color: var(--bg-surface); border: 1px solid var(--border-subtle); border-left-width: 4px; }
.callout-box p { margin: 0; font-size: 0.975rem; line-height: 1.7; color: var(--text-primary); }
.callout-takeaway { border-left-color: var(--accent-cyan); background-color: rgba(6,182,212,0.08); }
.callout-science { border-left-color: var(--primary); background-color: rgba(99,102,241,0.08); }
.callout-warning { border-left-color: var(--accent-amber); background-color: rgba(245,158,11,0.08); }
.callout-pedagogy { border-left-color: var(--accent-emerald); background-color: rgba(16,185,129,0.08); }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 2rem 0; }
.metric-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.25rem 1rem; text-align: center; transition: border-color 0.2s ease; }
.metric-card:hover { border-color: var(--border-accent); }
.metric-value { font-size: 1.65rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: 0.35rem; }
.metric-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.table-responsive,
.editorial-prose .table-responsive { overflow-x: auto; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; margin: 2.25rem 0 1rem 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background-color: var(--bg-surface); }
.editorial-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; text-align: left; }
.editorial-table th, .editorial-table td { padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.editorial-table th { background-color: rgba(255,255,255,0.03); font-weight: 700; color: var(--text-primary); font-size: 0.825rem; text-transform: uppercase; letter-spacing: 0.05em; }
.editorial-table tbody tr:nth-child(even) { background-color: rgba(255,255,255,0.015); }
.editorial-table tbody tr:hover { background-color: rgba(255,255,255,0.035); }
.editorial-table tr:last-child td { border-bottom: none; }
.editorial-table td strong { color: var(--accent-cyan); }

.blog-hub-container { max-width: 1180px; margin: 2rem auto 5rem auto; padding: 0 1.5rem; }
.blog-header-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); padding: 0.3rem 0.85rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.blog-hero-card { background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(14,165,233,0.05) 100%); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); padding: 2.25rem; margin-bottom: 3rem; position: relative; overflow: hidden; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .blog-hero-card { grid-template-columns: 1fr; padding: 1.5rem; } }
.blog-filter-bar { display: flex; gap: 0.65rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.filter-tab-btn { background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-secondary); padding: 0.5rem 1.1rem; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; }
.filter-tab-btn:hover { color: var(--text-primary); border-color: var(--border-accent); }
.filter-tab-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 2px 10px rgba(99,102,241,0.35); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; margin-bottom: 4rem; }
.blog-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-soft); }
.blog-card-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; margin-bottom: 0.65rem; }
.blog-card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--text-primary); margin-bottom: 0.75rem; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--accent-cyan); }
.blog-card-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border-subtle); font-size: 0.825rem; color: var(--text-muted); }
.blog-card-link { color: var(--accent-cyan); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; transition: transform 0.15s ease; }
.blog-card-link:hover { transform: translateX(3px); }

.author-bio-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.5rem; margin: 3.5rem 0 2rem 0; display: flex; gap: 1.25rem; align-items: center; }
.author-bio-avatar { width: 56px; height: 56px; border-radius: var(--radius-full); background: rgba(99,102,241,0.15); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.author-bio-info h4 { margin: 0 0 0.35rem 0; font-size: 1rem; color: var(--text-primary); }
.author-bio-info p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    .blog-filter-bar {
        max-width: 100%;
        width: 100%;
    }
}

/* Minimalist Audio Player Component (The Spin The Wheel Standard) */
.blog-audio-container {
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 8px);
    padding: 0.65rem 0.85rem;
    margin: 1.5rem 0 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.blog-audio-element {
    width: 100%;
    height: 38px;
    display: block;
    border-radius: 4px;
    outline: none;
}

/* Breadcrumb Navigation Standards */
.breadcrumb-nav, .breadcrumb-trail { margin-bottom: 1.75rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; gap: 0.45rem; }
.breadcrumb-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--text-muted); opacity: 0.6; }
.breadcrumb-nav a, .breadcrumb-item a { color: var(--text-secondary); text-decoration: none; transition: color 0.15s ease; }
.breadcrumb-nav a:hover, .breadcrumb-item a:hover { color: var(--accent-cyan); text-decoration: underline; }
.breadcrumb-item.active, .breadcrumb-item[aria-current="page"] { color: var(--accent-cyan); font-weight: 600; }

/* Callout Box Modifiers */
.callout-box.info-callout { border-left-color: var(--accent-cyan, #06b6d4); background-color: rgba(6, 182, 212, 0.08); }
.callout-box.warning-callout, .callout-box.contrarian { border-left-color: var(--accent-amber, #f59e0b); background-color: rgba(245, 158, 11, 0.08); }

/* Table Badges & Status Pills */
.pill-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.65rem; border-radius: var(--radius-full, 9999px); font-size: 0.75rem; font-weight: 700; }
.pill-yes { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.pill-no { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* FAQ Accordion Component */
.faq-accordion-group { display: flex; flex-direction: column; gap: 0.85rem; margin: 1.5rem 0 2.5rem 0; }
.faq-accordion-item { border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08)); border-radius: var(--radius-md, 8px); background: var(--bg-card, rgba(255, 255, 255, 0.02)); overflow: hidden; transition: border-color 0.2s ease; }
.faq-accordion-item:hover { border-color: var(--border-accent, rgba(99, 102, 241, 0.4)); }
.faq-accordion-question { width: 100%; text-align: left; background: none; border: none; padding: 1.15rem 1.35rem; font-size: 1rem; font-weight: 700; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-accordion-question:hover { color: var(--accent-cyan); }
.faq-accordion-answer { padding: 0 1.35rem 1.25rem 1.35rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; display: none; }
.faq-accordion-item.active .faq-accordion-answer { display: block; }
.faq-icon { font-size: 1.2rem; font-weight: 400; line-height: 1; color: var(--accent-cyan); flex-shrink: 0; }

/* Fallback Container for Editorial Content */
.blog-reading-container { max-width: 1180px; margin: 2rem auto 5rem auto; padding: 0 1.5rem; min-width: 0; }
.lead-paragraph, .lead-sapo { font-size: 1.15rem; line-height: 1.7; color: var(--text-primary); margin-bottom: 1.75rem; }



