/* ==========================================================================

   EVERGREEN HYDRA - FAQ THEME ENGINE (LIGHT & DARK MODES)

   Default: Light Mode

   Preference stored in cookie: faq_theme (light | dark)

   ========================================================================== */



/* --------------------------------------------------------------------------

   1. Theme Variables

   -------------------------------------------------------------------------- */

:root,

html[data-theme="light"],

html:not([data-theme="dark"]) {

    --bg-main: #ffffff;

    --bg-page: #ffffff;

    --bg-card: #ffffff;

    --bg-card-hover: #f1f5f9;

    --bg-card-subtle: #ffffff;

    --text-primary: #0f172a;

    --text-secondary: #475569;

    --text-muted: #64748b;

    --accent-blue: #0284c7;

    --accent-green: #16a34a;

    --accent-orange: #ea580c;

    --accent-red: #dc2626;

    --accent-purple: #9333ea;

    --neon-yellow: #d97706;

    --border-color: #e2e8f0;

    --border-light: #f1f5f9;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);

    --shadow-dropdown: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);

}



html[data-theme="dark"] {

    --bg-main: #0b0f19;

    --bg-page: #0b0f19;

    --bg-card: #111827;

    --bg-card-hover: #1e293b;

    --bg-card-subtle: rgba(15, 23, 42, 0.6);

    --text-primary: #f8fafc;

    --text-secondary: #94a3b8;

    --text-muted: #64748b;

    --accent-blue: #38bdf8;

    --accent-green: #22c55e;

    --accent-orange: #f97316;

    --accent-red: #ef4444;

    --accent-purple: #a855f7;

    --neon-yellow: #facc15;

    --border-color: #1f2937;

    --border-light: rgba(255, 255, 255, 0.08);

    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.4);

    --shadow-dropdown: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);

}



/* --------------------------------------------------------------------------

   2. Header Controls Wrapper & Theme Toggle Button

   -------------------------------------------------------------------------- */

.faq-header-controls {

    display: inline-flex !important;

    align-items: center !important;

    gap: 12px !important;

    flex: 1 1 540px !important;

    max-width: 580px !important;

    justify-content: flex-end !important;

}



.faq-theme-toggle-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    height: 42px;

    padding: 0 14px;

    border-radius: 10px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

    white-space: nowrap;

    user-select: none;

    flex-shrink: 0;

    outline: none;

}



/* Theme Toggle Button in Light Mode */

html:not([data-theme="dark"]) .faq-theme-toggle-btn,

html[data-theme="light"] .faq-theme-toggle-btn {

    background: #ffffff;

    border: 1px solid #cbd5e1;

    color: #334155;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

}



html:not([data-theme="dark"]) .faq-theme-toggle-btn:hover,

html[data-theme="light"] .faq-theme-toggle-btn:hover {

    background: #ffffff;

    border-color: #94a3b8;

    color: #0f172a;

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

}



html:not([data-theme="dark"]) .faq-theme-toggle-btn i,

html[data-theme="light"] .faq-theme-toggle-btn i {

    color: #6366f1; /* Indigo moon */

    font-size: 14px;

}



/* Theme Toggle Button in Dark Mode */

html[data-theme="dark"] .faq-theme-toggle-btn {

    background: rgba(15, 23, 42, 0.85);

    border: 1px solid rgba(255, 255, 255, 0.14);

    color: #e2e8f0;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

}



html[data-theme="dark"] .faq-theme-toggle-btn:hover {

    background: rgba(30, 41, 59, 0.95);

    border-color: rgba(56, 189, 248, 0.5);

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



html[data-theme="dark"] .faq-theme-toggle-btn i {

    color: #facc15; /* Golden sun */

    font-size: 14px;

}



/* --------------------------------------------------------------------------

   3. Search Component Styling for Light & Dark Modes

   -------------------------------------------------------------------------- */

/* Light Mode Search Box */

html:not([data-theme="dark"]) .faq-search-box,

html[data-theme="light"] .faq-search-box {

    background: #ffffff;

    border: 1px solid #cbd5e1;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

}



html:not([data-theme="dark"]) .faq-search-box:hover,

html[data-theme="light"] .faq-search-box:hover {

    border-color: #0284c7;

    background: #ffffff;

}



html:not([data-theme="dark"]) .faq-search-box.is-focused,

html[data-theme="light"] .faq-search-box.is-focused {

    border-color: #0284c7;

    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 4px 14px rgba(0, 0, 0, 0.08);

}



html:not([data-theme="dark"]) .faq-search-icon,

html[data-theme="light"] .faq-search-icon {

    color: #64748b;

}



html:not([data-theme="dark"]) .faq-search-box.is-focused .faq-search-icon,

html[data-theme="light"] .faq-search-box.is-focused .faq-search-icon {

    color: #0284c7;

}



html:not([data-theme="dark"]) .faq-search-input,

html[data-theme="light"] .faq-search-input {

    color: #0f172a;

}



html:not([data-theme="dark"]) .faq-search-input::placeholder,

html[data-theme="light"] .faq-search-input::placeholder {

    color: #94a3b8;

}



html:not([data-theme="dark"]) .faq-search-kbd,

html[data-theme="light"] .faq-search-kbd {

    background: #ffffff;

    border: 1px solid #cbd5e1;

    color: #475569;

}



html:not([data-theme="dark"]) .faq-search-dropdown,

html[data-theme="light"] .faq-search-dropdown {

    background: #ffffff;

    border: 1px solid #cbd5e1;

    box-shadow: var(--shadow-dropdown);

}



html:not([data-theme="dark"]) .faq-search-dropdown-header,

html[data-theme="light"] .faq-search-dropdown-header {

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;

    color: #475569;

}



html:not([data-theme="dark"]) .faq-search-results-list::-webkit-scrollbar-track,

html[data-theme="light"] .faq-search-results-list::-webkit-scrollbar-track {

    background: #f1f5f9;

}



html:not([data-theme="dark"]) .faq-search-results-list::-webkit-scrollbar-thumb,

html[data-theme="light"] .faq-search-results-list::-webkit-scrollbar-thumb {

    background: #cbd5e1;

}



html:not([data-theme="dark"]) .faq-search-item,

html[data-theme="light"] .faq-search-item {

    border-bottom: 1px solid #f1f5f9;

    color: #0f172a;

}



html:not([data-theme="dark"]) .faq-search-item:hover,

html:not([data-theme="dark"]) .faq-search-item.is-selected,

html[data-theme="light"] .faq-search-item:hover,

html[data-theme="light"] .faq-search-item.is-selected {

    background: #f0f9ff;

    border-left-color: #0284c7;

}



html:not([data-theme="dark"]) .faq-search-item-title,

html[data-theme="light"] .faq-search-item-title {

    color: #0f172a;

}



html:not([data-theme="dark"]) .faq-search-item-snippet,

html[data-theme="light"] .faq-search-item-snippet {

    color: #475569;

}



html:not([data-theme="dark"]) .faq-search-item-footer,

html[data-theme="light"] .faq-search-item-footer {

    color: #0284c7;

}



html:not([data-theme="dark"]) .faq-search-dropdown-footer,

html[data-theme="light"] .faq-search-dropdown-footer {

    background: #ffffff;

    border-top: 1px solid #e2e8f0;

    color: #64748b;

}



html:not([data-theme="dark"]) .faq-search-dropdown-footer kbd,

html[data-theme="light"] .faq-search-dropdown-footer kbd {

    background: #ffffff;

    border: 1px solid #cbd5e1;

    color: #334155;

}



html:not([data-theme="dark"]) .faq-search-empty-title,

html[data-theme="light"] .faq-search-empty-title {

    color: #1e293b;

}



/* --------------------------------------------------------------------------

   4. LIGHT MODE GLOBAL TYPOGRAPHY, CARDS & CONTAINERS

   -------------------------------------------------------------------------- */

html:not([data-theme="dark"]) body,

html[data-theme="light"] body {

    background-color: var(--bg-main) !important;

    color: var(--text-primary) !important;

}



/* Main Cards */

html:not([data-theme="dark"]) .memo-card,

html:not([data-theme="dark"]) .content-card,

html:not([data-theme="dark"]) .data-card,

html:not([data-theme="dark"]) .chart-container-card,

html[data-theme="light"] .memo-card,

html[data-theme="light"] .content-card,

html[data-theme="light"] .data-card,

html[data-theme="light"] .chart-container-card {

    background: var(--bg-card) !important;

    border-color: var(--border-color) !important;

    box-shadow: var(--shadow-card) !important;

}



/* Brand Header */

html:not([data-theme="dark"]) .faq-brand-header a > div > div:first-child,

html[data-theme="light"] .faq-brand-header a > div > div:first-child {

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .faq-brand-header a > div > div:last-child,

html[data-theme="light"] .faq-brand-header a > div > div:last-child {

    color: #64748b !important;

}



html:not([data-theme="dark"]) .faq-brand-header img,

html[data-theme="light"] .faq-brand-header img {

    border-color: #cbd5e1 !important;

}



/* Breadcrumbs & Navigation */

html:not([data-theme="dark"]) .nav-breadcrumb,

html:not([data-theme="dark"]) .nav-breadcrumbs,

html[data-theme="light"] .nav-breadcrumb,

html[data-theme="light"] .nav-breadcrumbs {

    color: #64748b !important;

}



html:not([data-theme="dark"]) .nav-breadcrumb a,

html:not([data-theme="dark"]) .nav-breadcrumbs a,

html:not([data-theme="dark"]) .back-link,

html[data-theme="light"] .nav-breadcrumb a,

html[data-theme="light"] .nav-breadcrumbs a,

html[data-theme="light"] .back-link {

    color: #0284c7 !important;

}



html:not([data-theme="dark"]) .back-link:hover,

html:not([data-theme="dark"]) .nav-breadcrumb a:hover,

html[data-theme="light"] .back-link:hover,

html[data-theme="light"] .nav-breadcrumb a:hover {

    color: #0369a1 !important;

}



/* Headings in Light Mode */

html:not([data-theme="dark"]) .section-header i,

html[data-theme="light"] .section-header i {

    color: #0284c7 !important;

}

html[data-theme="dark"] .section-header,

html[data-theme="dark"] .section-header span,

html.theme-dark .section-header,

html.theme-dark .section-header span {

    color: #ffffff !important;

}

html[data-theme="dark"] .section-header i,

html.theme-dark .section-header i {

    color: #38bdf8 !important;

}



html:not([data-theme="dark"]) h1,

html:not([data-theme="dark"]) h2,

html:not([data-theme="dark"]) h3,

html:not([data-theme="dark"]) .article-title,

html:not([data-theme="dark"]) .section-header,

html:not([data-theme="dark"]) .section-header span,

html:not([data-theme="dark"]) .section-header h2,

html:not([data-theme="dark"]) .confidential-header div div:first-child,

html[data-theme="light"] h1,

html[data-theme="light"] h2,

html[data-theme="light"] h3,

html[data-theme="light"] .article-title,

html[data-theme="light"] .section-header,

html[data-theme="light"] .section-header span,

html[data-theme="light"] .section-header h2,

html[data-theme="light"] .confidential-header div div:first-child {

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .article-subtitle,

html:not([data-theme="dark"]) .subtitle,

html[data-theme="light"] .article-subtitle,

html[data-theme="light"] .subtitle {

    color: #475569 !important;

}



/* Paragraphs & Text */

html:not([data-theme="dark"]) p,

html:not([data-theme="dark"]) li,

html:not([data-theme="dark"]) .faq-answer,

html[data-theme="light"] p,

html[data-theme="light"] li,

html[data-theme="light"] .faq-answer {

    color: #334155 !important;

}



html:not([data-theme="dark"]) strong,

html:not([data-theme="dark"]) b,

html[data-theme="light"] strong,

html[data-theme="light"] b {

    color: #0f172a;

}



/* Elements with inline white text in Light Mode (re-map to dark slate) */

html:not([data-theme="dark"]) [style*="color: #fff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn),

html:not([data-theme="dark"]) [style*="color:#fff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn),

html:not([data-theme="dark"]) [style*="color: #ffffff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn),

html:not([data-theme="dark"]) [style*="color:#ffffff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn),

html[data-theme="light"] [style*="color: #fff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn),

html[data-theme="light"] [style*="color:#fff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn),

html[data-theme="light"] [style*="color: #ffffff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn),

html[data-theme="light"] [style*="color:#ffffff"]:not(.badge):not(.btn):not(.ctrl-btn.active):not(.line-toggle):not(.featured-banner-btn) {

    color: #0f172a !important;

}



/* Light Slate Text mappings */

html:not([data-theme="dark"]) [style*="color: #cbd5e1"],

html:not([data-theme="dark"]) [style*="color:#cbd5e1"],

html:not([data-theme="dark"]) [style*="color: #e2e8f0"],

html:not([data-theme="dark"]) [style*="color:#e2e8f0"],

html[data-theme="light"] [style*="color: #cbd5e1"],

html[data-theme="light"] [style*="color:#cbd5e1"],

html[data-theme="light"] [style*="color: #e2e8f0"],

html[data-theme="light"] [style*="color:#e2e8f0"] {

    color: #334155 !important;

}



/* --------------------------------------------------------------------------

   5. ALL KPI CARDS, METRIC BOXES & WIDGETS IN LIGHT MODE

   -------------------------------------------------------------------------- */

html:not([data-theme="dark"]) .stat-card,

html:not([data-theme="dark"]) .metric-card,

html:not([data-theme="dark"]) .metric-box,

html:not([data-theme="dark"]) .kpi-card,

html:not([data-theme="dark"]) .chart-container-box,

html:not([data-theme="dark"]) .chart-box,

html:not([data-theme="dark"]) .pillar-card,

html:not([data-theme="dark"]) .tradeoff-card,

html:not([data-theme="dark"]) .comp-card,

html:not([data-theme="dark"]) .step-card,

html:not([data-theme="dark"]) .period-card,

html:not([data-theme="dark"]) .pipeline-card,

html:not([data-theme="dark"]) .star-card,

html:not([data-theme="dark"]) .alert-card,

html:not([data-theme="dark"]) .year1-kpi-card,

html[data-theme="light"] .stat-card,

html[data-theme="light"] .metric-card,

html[data-theme="light"] .metric-box,

html[data-theme="light"] .kpi-card,

html[data-theme="light"] .chart-container-box,

html[data-theme="light"] .chart-box,

html[data-theme="light"] .pillar-card,

html[data-theme="light"] .tradeoff-card,

html[data-theme="light"] .comp-card,

html[data-theme="light"] .step-card,

html[data-theme="light"] .period-card,

html[data-theme="light"] .pipeline-card,

html[data-theme="light"] .star-card,

html[data-theme="light"] .alert-card,

html[data-theme="light"] .year1-kpi-card {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;

}



/* Labels and Subtitles */

html:not([data-theme="dark"]) .stat-label,

html:not([data-theme="dark"]) .metric-label,

html:not([data-theme="dark"]) .box-label,

html:not([data-theme="dark"]) .kpi-label,

html:not([data-theme="dark"]) .chart-title,

html:not([data-theme="dark"]) .section-title,

html:not([data-theme="dark"]) .comp-card-title,

html:not([data-theme="dark"]) .step-title,

html:not([data-theme="dark"]) .period-title,

html[data-theme="light"] .stat-label,

html[data-theme="light"] .metric-label,

html[data-theme="light"] .box-label,

html[data-theme="light"] .kpi-label,

html[data-theme="light"] .chart-title,

html[data-theme="light"] .section-title,

html[data-theme="light"] .comp-card-title,

html[data-theme="light"] .step-title,

html[data-theme="light"] .period-title {

    color: #0f172a !important;

    font-weight: 700 !important;

}



html:not([data-theme="dark"]) .stat-sub,

html:not([data-theme="dark"]) .metric-sub,

html:not([data-theme="dark"]) .box-sub,

html:not([data-theme="dark"]) .kpi-desc,

html:not([data-theme="dark"]) .chart-subtitle,

html:not([data-theme="dark"]) .step-desc,

html[data-theme="light"] .stat-sub,

html[data-theme="light"] .metric-sub,

html[data-theme="light"] .box-sub,

html[data-theme="light"] .kpi-desc,

html[data-theme="light"] .chart-subtitle,

html[data-theme="light"] .step-desc {

    color: #64748b !important;

}



/* Sub-boxes with translucent black backgrounds */

html:not([data-theme="dark"]) [style*="background: rgba(0,0,0,0.3)"],

html:not([data-theme="dark"]) [style*="background: rgba(0, 0, 0, 0.3)"],

html:not([data-theme="dark"]) [style*="background: rgba(0,0,0,0.25)"],

html:not([data-theme="dark"]) [style*="background: rgba(0, 0, 0, 0.25)"],

html[data-theme="light"] [style*="background: rgba(0,0,0,0.3)"],

html[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.3)"],

html[data-theme="light"] [style*="background: rgba(0,0,0,0.25)"],

html[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.25)"] {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;

}



/* Overarching Regime Cards (Section 1) in Light Mode */

html:not([data-theme="dark"]) [style*="rgba(16, 185, 129, 0.12)"],

html[data-theme="light"] [style*="rgba(16, 185, 129, 0.12)"] {

    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;

    border: 1px solid rgba(16, 185, 129, 0.35) !important;

    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.08) !important;

}



html:not([data-theme="dark"]) [style*="rgba(239, 68, 68, 0.12)"],

html[data-theme="light"] [style*="rgba(239, 68, 68, 0.12)"] {

    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%) !important;

    border: 1px solid rgba(239, 68, 68, 0.35) !important;

    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.08) !important;

}



/* Regime sub-boxes inside Section 1 */

html:not([data-theme="dark"]) [style*="background: rgba(0,0,0,0.35)"],

html:not([data-theme="dark"]) [style*="background: rgba(0, 0, 0, 0.35)"],

html[data-theme="light"] [style*="background: rgba(0,0,0,0.35)"],

html[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.35)"] {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;

}



/* Tables in Light Mode */

html:not([data-theme="dark"]) table,

html:not([data-theme="dark"]) .comparison-table,

html:not([data-theme="dark"]) .data-table,

html:not([data-theme="dark"]) .percentile-table,

html[data-theme="light"] table,

html[data-theme="light"] .comparison-table,

html[data-theme="light"] .data-table,

html[data-theme="light"] .percentile-table {

    background: #ffffff !important;

    border-color: #e2e8f0 !important;

}



html:not([data-theme="dark"]) th,

html:not([data-theme="dark"]) .comparison-table th,

html:not([data-theme="dark"]) .data-table th,

html[data-theme="light"] th,

html[data-theme="light"] .comparison-table th,

html[data-theme="light"] .data-table th {

    background: #ffffff !important;

    color: #1e293b !important;

    border-color: #cbd5e1 !important;

}



html:not([data-theme="dark"]) td,

html:not([data-theme="dark"]) .comparison-table td,

html:not([data-theme="dark"]) .data-table td,

html[data-theme="light"] td,

html[data-theme="light"] .comparison-table td,

html[data-theme="light"] .data-table td {

    background: #ffffff;

    color: #1e293b !important;

    border-color: #e2e8f0 !important;

}



html:not([data-theme="dark"]) tr:hover td,

html[data-theme="light"] tr:hover td {

    background: #f8fafc !important;

}



/* Callout and Quote Boxes in Light Mode */

html:not([data-theme="dark"]) .callout-box,

html:not([data-theme="dark"]) .highlight-box,

html:not([data-theme="dark"]) .case-study-box,

html:not([data-theme="dark"]) .formula-box,

html:not([data-theme="dark"]) .executive-summary-box,

html:not([data-theme="dark"]) .conclusion-box,

html:not([data-theme="dark"]) .faq-item,

html[data-theme="light"] .callout-box,

html[data-theme="light"] .highlight-box,

html[data-theme="light"] .case-study-box,

html[data-theme="light"] .formula-box,

html[data-theme="light"] .executive-summary-box,

html[data-theme="light"] .conclusion-box,

html[data-theme="light"] .faq-item {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #1e293b !important;

}



/* Index.html Library Cards */

html:not([data-theme="dark"]) .library-card,

html[data-theme="light"] .library-card {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;

}



html:not([data-theme="dark"]) .library-card:hover,

html[data-theme="light"] .library-card:hover {

    background: #ffffff !important;

    border-color: #0284c7 !important;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;

    transform: translateY(-2px);

}



html:not([data-theme="dark"]) .library-card-title,

html[data-theme="light"] .library-card-title {

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .library-card-desc,

html[data-theme="light"] .library-card-desc {

    color: #475569 !important;

}



html:not([data-theme="dark"]) .library-card-icon,

html:not([data-theme="dark"]) .library-card-link,

html[data-theme="light"] .library-card-icon,

html[data-theme="light"] .library-card-link {

    color: #0284c7 !important;

}



/* Index.html Featured Banner in Light Mode */

html:not([data-theme="dark"]) .featured-banner,

html[data-theme="light"] .featured-banner {

    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(2, 132, 199, 0.08) 100%) !important;

    border: 1px solid rgba(234, 179, 8, 0.35) !important;

}



html:not([data-theme="dark"]) .featured-banner-content h3,

html[data-theme="light"] .featured-banner-content h3 {

    color: #b45309 !important;

}



html:not([data-theme="dark"]) .featured-banner-content p,

html[data-theme="light"] .featured-banner-content p {

    color: #334155 !important;

}



/* ==========================================================================

   Comprehensive Button, Tab, and Pill Styles for Light Mode

   ========================================================================== */



/* 1. Standard Inactive Control Buttons & Filter Pills */

html:not([data-theme="dark"]) .ctrl-btn,

html:not([data-theme="dark"]) .t-pill,

html:not([data-theme="dark"]) .q-pill,

html:not([data-theme="dark"]) .ctrl-pill,

html:not([data-theme="dark"]) .calc-btn,

html:not([data-theme="dark"]) .btn-action,

html:not([data-theme="dark"]) .btn-page,

html:not([data-theme="dark"]) .line-toggle,

html[data-theme="light"] .ctrl-btn,

html[data-theme="light"] .t-pill,

html[data-theme="light"] .q-pill,

html[data-theme="light"] .ctrl-pill,

html[data-theme="light"] .calc-btn,

html[data-theme="light"] .btn-action,

html[data-theme="light"] .btn-page,

html[data-theme="light"] .line-toggle {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #334155 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

    font-weight: 600 !important;

    transition: all 0.15s ease !important;

}



/* 2. Hover States for Inactive Buttons & Pills */

html:not([data-theme="dark"]) .ctrl-btn:hover:not(.active),

html:not([data-theme="dark"]) .t-pill:hover:not(.active),

html:not([data-theme="dark"]) .q-pill:hover:not(.active),

html:not([data-theme="dark"]) .ctrl-pill:hover:not(.active),

html:not([data-theme="dark"]) .calc-btn:hover:not(.active),

html:not([data-theme="dark"]) .btn-action:hover,

html:not([data-theme="dark"]) .btn-page:hover:not(:disabled):not(.active),

html:not([data-theme="dark"]) .line-toggle:hover:not(.inactive),

html[data-theme="light"] .ctrl-btn:hover:not(.active),

html[data-theme="light"] .t-pill:hover:not(.active),

html[data-theme="light"] .q-pill:hover:not(.active),

html[data-theme="light"] .ctrl-pill:hover:not(.active),

html[data-theme="light"] .calc-btn:hover:not(.active),

html[data-theme="light"] .btn-action:hover,

html[data-theme="light"] .btn-page:hover:not(:disabled):not(.active),

html[data-theme="light"] .line-toggle:hover:not(.inactive) {

    background: #f1f5f9 !important;

    border-color: #0284c7 !important;

    color: #0284c7 !important;

    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.12) !important;

}



/* Disabled State */

html:not([data-theme="dark"]) .btn-page:disabled,

html[data-theme="light"] .btn-page:disabled {

    background: #ffffff !important;

    border-color: #e2e8f0 !important;

    color: #94a3b8 !important;

    opacity: 0.5 !important;

    box-shadow: none !important;

    cursor: not-allowed !important;

}



/* 3. Active State for Standard Control Buttons & Filter Pills */

html:not([data-theme="dark"]) .ctrl-btn.active,

html:not([data-theme="dark"]) .t-pill.active,

html:not([data-theme="dark"]) .ctrl-pill.active,

html:not([data-theme="dark"]) .btn-page.active,

html[data-theme="light"] .ctrl-btn.active,

html[data-theme="light"] .t-pill.active,

html[data-theme="light"] .ctrl-pill.active,

html[data-theme="light"] .btn-page.active {

    background: #0284c7 !important;

    border-color: #0284c7 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;

}



/* 4. Specialized Quadrant Filter Pills (.q-pill) */

html:not([data-theme="dark"]) .q-pill.active,

html[data-theme="light"] .q-pill.active {

    background: #0284c7 !important;

    border-color: #0284c7 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;

}

html:not([data-theme="dark"]) .q-pill.q-pill-q1.active,

html[data-theme="light"] .q-pill.q-pill-q1.active {

    background: #10b981 !important;

    border-color: #059669 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;

}

html:not([data-theme="dark"]) .q-pill.q-pill-q2.active,

html[data-theme="light"] .q-pill.q-pill-q2.active {

    background: #0284c7 !important;

    border-color: #0369a1 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;

}

html:not([data-theme="dark"]) .q-pill.q-pill-q3.active,

html[data-theme="light"] .q-pill.q-pill-q3.active {

    background: #64748b !important;

    border-color: #475569 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.35) !important;

}

html:not([data-theme="dark"]) .q-pill.q-pill-q4.active,

html[data-theme="light"] .q-pill.q-pill-q4.active {

    background: #ea580c !important;

    border-color: #c2410c !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35) !important;

}



/* 5. Tax Calculator Active Buttons (.calc-btn.active) */

html:not([data-theme="dark"]) .calc-btn.active,

html[data-theme="light"] .calc-btn.active {

    background: #059669 !important;

    border-color: #047857 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35) !important;

}



/* 6. Chart Tab Buttons (.chart-tab-btn) */

html:not([data-theme="dark"]) .chart-tab-btn,

html[data-theme="light"] .chart-tab-btn {

    background: #ffffff !important;

    background-color: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #475569 !important;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;

    font-weight: 600 !important;

}

html:not([data-theme="dark"]) .chart-tab-btn:hover:not(.active),

html[data-theme="light"] .chart-tab-btn:hover:not(.active) {

    background: #ffffff !important;

    background-color: #ffffff !important;

    border-color: #0284c7 !important;

    color: #0284c7 !important;

}

html:not([data-theme="dark"]) .chart-tab-btn.active,

html[data-theme="light"] .chart-tab-btn.active {

    background: #ffffff !important;

    background-color: #ffffff !important;

    border: 2px solid #0284c7 !important;

    color: #0284c7 !important;

    font-weight: 800 !important;

    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2) !important;

}

html:not([data-theme="dark"]) .chart-tab-btn.active i,

html[data-theme="light"] .chart-tab-btn.active i {

    color: #0284c7 !important;

}



/* 7. Launch Terminal Action Button */

html:not([data-theme="dark"]) .btn-launch-terminal,

html[data-theme="light"] .btn-launch-terminal {

    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;

    color: #ffffff !important;

    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;

}

html:not([data-theme="dark"]) .btn-launch-terminal:hover,

html[data-theme="light"] .btn-launch-terminal:hover {

    color: #ffffff !important;

    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;

}



/* 8. Search Input Boxes */

html:not([data-theme="dark"]) .search-box input,

html:not([data-theme="dark"]) .search-input,

html:not([data-theme="dark"]) #ledgerSearchInput,

html:not([data-theme="dark"]) #searchInput,

html[data-theme="light"] .search-box input,

html[data-theme="light"] .search-input,

html[data-theme="light"] #ledgerSearchInput,

html[data-theme="light"] #searchInput {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #0f172a !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

}

html:not([data-theme="dark"]) .search-box input::placeholder,

html:not([data-theme="dark"]) .search-input::placeholder,

html:not([data-theme="dark"]) #ledgerSearchInput::placeholder,

html:not([data-theme="dark"]) #searchInput::placeholder,

html[data-theme="light"] .search-box input::placeholder,

html[data-theme="light"] .search-input::placeholder,

html[data-theme="light"] #ledgerSearchInput::placeholder,

html[data-theme="light"] #searchInput::placeholder {

    color: #94a3b8 !important;

}



/* Responsive adjustments */

@media (max-width: 768px) {

    .faq-header-controls {

        flex: 1 1 100% !important;

        max-width: 100% !important;

        justify-content: space-between !important;

        margin-top: 10px !important;

    }

    .faq-theme-toggle-btn {

        padding: 0 10px;

    }

}





/* ==========================================================================

   UNIFORM ARTICLE SERIES NAVIGATION (HEADER & FOOTER)

   ========================================================================== */

.faq-article-nav {

    display: grid !important;

    grid-template-columns: 1fr auto 1fr !important;

    align-items: center !important;

    gap: 16px !important;

    padding: 14px 20px !important;

    border-radius: 12px !important;

    transition: all 0.2s ease !important;

    box-sizing: border-box !important;

    width: 100% !important;

    text-decoration: none !important;

}



.faq-article-nav-header {

    margin-top: 10px !important;

    margin-bottom: 24px !important;

    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;

    background: rgba(15, 23, 42, 0.45) !important;

}



.faq-article-nav-footer {

    margin-top: 40px !important;

    margin-bottom: 24px !important;

    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;

    background: rgba(15, 23, 42, 0.45) !important;

}



/* Light Mode Navigation */

html:not([data-theme="dark"]) .faq-article-nav,

html[data-theme="light"] .faq-article-nav {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;

}



/* Dark Mode Navigation */

html[data-theme="dark"] .faq-article-nav {

    background: rgba(15, 23, 42, 0.55) !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;

}



.faq-article-nav a {

    text-decoration: none !important;

    display: flex !important;

    flex-direction: column !important;

    gap: 3px !important;

    transition: all 0.2s ease !important;

}



.faq-article-nav .nav-prev {

    text-align: left !important;

    display: flex !important;

    justify-content: flex-start !important;

}



.faq-article-nav .nav-next {

    text-align: right !important;

    display: flex !important;

    justify-content: flex-end !important;

}



.faq-article-nav .nav-next a {

    align-items: flex-end !important;

}



.faq-article-nav .nav-hub {

    text-align: center !important;

    display: flex !important;

    justify-content: center !important;

}



.faq-article-nav .nav-direction {

    font-size: 11px !important;

    font-weight: 700 !important;

    text-transform: uppercase !important;

    letter-spacing: 0.05em !important;

    display: inline-flex !important;

    align-items: center !important;

    gap: 6px !important;

}



.faq-article-nav .nav-prev .nav-direction {

    color: #38bdf8 !important;

}



html:not([data-theme="dark"]) .faq-article-nav .nav-prev .nav-direction,

html[data-theme="light"] .faq-article-nav .nav-prev .nav-direction {

    color: #0284c7 !important;

}



.faq-article-nav .nav-next .nav-direction {

    color: #facc15 !important;

}



html:not([data-theme="dark"]) .faq-article-nav .nav-next .nav-direction,

html[data-theme="light"] .faq-article-nav .nav-next .nav-direction {

    color: #d97706 !important;

}



.faq-article-nav .nav-title {

    font-size: 13.5px !important;

    font-weight: 600 !important;

    color: #e2e8f0 !important;

    line-height: 1.35 !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    max-width: 320px !important;

}



html:not([data-theme="dark"]) .faq-article-nav .nav-title,

html[data-theme="light"] .faq-article-nav .nav-title {

    color: #1e293b !important;

}



.faq-article-nav .nav-prev:hover .nav-title,

.faq-article-nav .nav-next:hover .nav-title {

    color: #38bdf8 !important;

}



.faq-article-nav .nav-hub a {

    align-items: center !important;

    padding: 7px 15px !important;

    border-radius: 8px !important;

    border: 1px solid rgba(255, 255, 255, 0.1) !important;

    background: rgba(255, 255, 255, 0.04) !important;

}



html:not([data-theme="dark"]) .faq-article-nav .nav-hub a,

html[data-theme="light"] .faq-article-nav .nav-hub a {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;

}



.faq-article-nav .nav-hub a:hover {

    border-color: #38bdf8 !important;

    background: rgba(56, 189, 248, 0.08) !important;

}



.faq-article-nav .nav-badge {

    font-family: 'JetBrains Mono', monospace !important;

    font-size: 11px !important;

    font-weight: 700 !important;

    color: #38bdf8 !important;

    letter-spacing: 0.04em !important;

}



html:not([data-theme="dark"]) .faq-article-nav .nav-badge,

html[data-theme="light"] .faq-article-nav .nav-badge {

    color: #0284c7 !important;

}



.faq-article-nav .nav-hub-link {

    font-size: 11.5px !important;

    font-weight: 600 !important;

    color: #94a3b8 !important;

    display: inline-flex !important;

    align-items: center !important;

    gap: 5px !important;

}



html:not([data-theme="dark"]) .faq-article-nav .nav-hub-link,

html[data-theme="light"] .faq-article-nav .nav-hub-link {

    color: #64748b !important;

}



/* Article Letter Badges for Headings and Cards */

.faq-letter-badge {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    font-family: 'JetBrains Mono', monospace !important;

    font-size: 12px !important;

    font-weight: 800 !important;

    padding: 3px 8px !important;

    border-radius: 6px !important;

    background: rgba(56, 189, 248, 0.15) !important;

    color: #38bdf8 !important;

    border: 1px solid rgba(56, 189, 248, 0.35) !important;

    letter-spacing: 0.05em !important;

    vertical-align: middle !important;

    margin-right: 8px !important;

}



html:not([data-theme="dark"]) .faq-letter-badge,

html[data-theme="light"] .faq-letter-badge {

    background: rgba(2, 132, 199, 0.1) !important;

    color: #0284c7 !important;

    border-color: rgba(2, 132, 199, 0.3) !important;

}



/* Responsive collapse for navigation */

@media (max-width: 768px) {

    .faq-article-nav {

        grid-template-columns: 1fr !important;

        gap: 12px !important;

        padding: 12px 14px !important;

    }

    .faq-article-nav .nav-prev,

    .faq-article-nav .nav-next,

    .faq-article-nav .nav-hub {

        text-align: center !important;

        align-items: center !important;

        justify-content: center !important;

    }

    .faq-article-nav .nav-next a {

        align-items: center !important;

    }

    .faq-article-nav .nav-title {

        max-width: 100% !important;

        white-space: normal !important;

    }

    .faq-article-nav .nav-hub {

        order: -1 !important;

    }

}



/* Light Mode Control Wrappers & Toolbars */

html:not([data-theme="dark"]) .table-controls-bar,

html[data-theme="light"] .table-controls-bar {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;

}



html:not([data-theme="dark"]) .table-controls-bar span,

html[data-theme="light"] .table-controls-bar span {

    color: #475569 !important;

}



html:not([data-theme="dark"]) .btn-group-wrapper,

html[data-theme="light"] .btn-group-wrapper,

html:not([data-theme="dark"]) .ctrl-group,

html[data-theme="light"] .ctrl-group {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

}



html:not([data-theme="dark"]) .interactive-calc-box,

html[data-theme="light"] .interactive-calc-box {

    background: #ffffff !important;

    border: 1px solid rgba(16, 185, 129, 0.4) !important;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;

}



html:not([data-theme="dark"]) .calc-input-label,

html:not([data-theme="dark"]) .calc-box label,

html:not([data-theme="dark"]) .interactive-calc-box label,

html[data-theme="light"] .calc-input-label,

html[data-theme="light"] .calc-box label,

html[data-theme="light"] .interactive-calc-box label {

    color: #475569 !important;

}





/* ==========================================================================

   ADDITIONAL LIGHT MODE COMPONENT & ELEMENT OVERRIDES

   ========================================================================== */



/* 1. Highlight Cards & Featured Content */

html:not([data-theme="dark"]) .highlight-card,

html[data-theme="light"] .highlight-card {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;

    color: #1e293b !important;

}



html:not([data-theme="dark"]) .highlight-card h4,

html:not([data-theme="dark"]) .highlight-card strong,

html[data-theme="light"] .highlight-card h4,

html[data-theme="light"] .highlight-card strong {

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .highlight-card li,

html:not([data-theme="dark"]) .highlight-card p,

html[data-theme="light"] .highlight-card li,

html[data-theme="light"] .highlight-card p {

    color: #334155 !important;

}



/* 2. Specialized Tables (.spec-table, .crisis-table, .custom-table) */

html:not([data-theme="dark"]) table.spec-table th,

html:not([data-theme="dark"]) .crisis-table th,

html:not([data-theme="dark"]) .custom-table th,

html[data-theme="light"] table.spec-table th,

html[data-theme="light"] .crisis-table th,

html[data-theme="light"] .custom-table th {

    background: #ffffff !important;

    color: #0f172a !important;

    border-bottom: 2px solid #cbd5e1 !important;

    font-weight: 700 !important;

}



html:not([data-theme="dark"]) table.spec-table td,

html:not([data-theme="dark"]) .crisis-table td,

html:not([data-theme="dark"]) .custom-table td,

html[data-theme="light"] table.spec-table td,

html[data-theme="light"] .crisis-table td,

html[data-theme="light"] .custom-table td {

    background: #ffffff !important;

    color: #334155 !important;

    border-bottom: 1px solid #e2e8f0 !important;

}



html:not([data-theme="dark"]) table.spec-table tr:hover td,

html:not([data-theme="dark"]) .crisis-table tr:hover td,

html:not([data-theme="dark"]) .custom-table tr:hover td,

html[data-theme="light"] table.spec-table tr:hover td,

html[data-theme="light"] .crisis-table tr:hover td,

html[data-theme="light"] .custom-table tr:hover td {

    background: #f8fafc !important;

}



html:not([data-theme="dark"]) table.spec-table tr.highlight-row td,

html[data-theme="light"] table.spec-table tr.highlight-row td {

    background: #f0fdf4 !important;

    color: #166534 !important;

}



html:not([data-theme="dark"]) .data-table-container,

html:not([data-theme="dark"]) .data-table-wrapper,

html[data-theme="light"] .data-table-container,

html[data-theme="light"] .data-table-wrapper {

    background: #ffffff !important;

    border-color: #e2e8f0 !important;

}



/* 3. Callout Pillars & Section Headers */

html:not([data-theme="dark"]) .callout-pillar,

html[data-theme="light"] .callout-pillar {

    background: #f0f9ff !important;

    border-left: 3px solid #0284c7 !important;

}



html:not([data-theme="dark"]) .callout-pillar h4,

html[data-theme="light"] .callout-pillar h4 {

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .callout-pillar p,

html[data-theme="light"] .callout-pillar p {

    color: #334155 !important;

}



html:not([data-theme="dark"]) .callout-quote,

html[data-theme="light"] .callout-quote {

    background: #fffbeb !important;

    border-left: 3px solid #d97706 !important;

    color: #1e293b !important;

}



html:not([data-theme="dark"]) .callout-quote p,

html:not([data-theme="dark"]) .callout-quote strong,

html[data-theme="light"] .callout-quote p,

html[data-theme="light"] .callout-quote strong {

    color: #1e293b !important;

}



/* 4. Timeline Steps (Wash Sale Page) */

html:not([data-theme="dark"]) .timeline-step,

html[data-theme="light"] .timeline-step {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;

}



html:not([data-theme="dark"]) .timeline-date,

html[data-theme="light"] .timeline-date {

    color: #0284c7 !important;

}



html:not([data-theme="dark"]) .timeline-desc,

html:not([data-theme="dark"]) .timeline-desc strong,

html[data-theme="light"] .timeline-desc,

html[data-theme="light"] .timeline-desc strong {

    color: #1e293b !important;

}



/* 5. 2026 Monthly Grid Cards (Percentile Rankings Page) */

html:not([data-theme="dark"]) .m-card-2026,

html[data-theme="light"] .m-card-2026 {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;

}



html:not([data-theme="dark"]) .m-card-2026.is-current,

html[data-theme="light"] .m-card-2026.is-current {

    background: #f0f9ff !important;

    border-color: #0284c7 !important;

}



html:not([data-theme="dark"]) .m-card-2026.is-worst,

html[data-theme="light"] .m-card-2026.is-worst {

    background: #fef2f2 !important;

    border-color: #ef4444 !important;

}



html:not([data-theme="dark"]) .m-card-name,

html[data-theme="light"] .m-card-name {

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .m-card-detail,

html:not([data-theme="dark"]) .m-card-detail span,

html[data-theme="light"] .m-card-detail,

html[data-theme="light"] .m-card-detail span {

    color: #64748b !important;

}



/* 6. Code & Pre Blocks */

html:not([data-theme="dark"]) pre,

html:not([data-theme="dark"]) code,

html[data-theme="light"] pre,

html[data-theme="light"] code {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    color: #0f172a !important;

}



/* 7. Confidential Tags & Header Tags */

html:not([data-theme="dark"]) .confidential-tag,

html[data-theme="light"] .confidential-tag {

    background: rgba(2, 132, 199, 0.1) !important;

    color: #0284c7 !important;

    border-color: rgba(2, 132, 199, 0.3) !important;

}



/* 8. Math and Formula Blocks */

html:not([data-theme="dark"]) .formula-box,

html:not([data-theme="dark"]) [style*="background: #0f172a"],

html:not([data-theme="dark"]) [style*="background:#0f172a"],

html[data-theme="light"] .formula-box,

html[data-theme="light"] [style*="background: #0f172a"],

html[data-theme="light"] [style*="background:#0f172a"] {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .formula-box *,

html[data-theme="light"] .formula-box * {

    color: #0f172a !important;

}



/* 9. Catch-All for Translucent Dark Backgrounds in Light Mode */

html:not([data-theme="dark"]) [style*="background: rgba(15, 23, 42"],

html:not([data-theme="dark"]) [style*="background:rgba(15, 23, 42"],

html:not([data-theme="dark"]) [style*="background: rgba(15,23,42"],

html:not([data-theme="dark"]) [style*="background:rgba(15,23,42"],

html:not([data-theme="dark"]) [style*="background: rgba(17, 24, 39"],

html:not([data-theme="dark"]) [style*="background:rgba(17, 24, 39"],

html:not([data-theme="dark"]) [style*="background: rgba(30, 41, 59"],

html:not([data-theme="dark"]) [style*="background:rgba(30, 41, 59"],

html:not([data-theme="dark"]) [style*="background: linear-gradient(135deg, rgba(15, 23, 42"],

html[data-theme="light"] [style*="background: rgba(15, 23, 42"],

html[data-theme="light"] [style*="background:rgba(15, 23, 42"],

html[data-theme="light"] [style*="background: rgba(15,23,42"],

html[data-theme="light"] [style*="background:rgba(15,23,42"],

html[data-theme="light"] [style*="background: rgba(17, 24, 39"],

html[data-theme="light"] [style*="background:rgba(17, 24, 39"],

html[data-theme="light"] [style*="background: rgba(30, 41, 59"],

html[data-theme="light"] [style*="background:rgba(30, 41, 59"],

html[data-theme="light"] [style*="background: linear-gradient(135deg, rgba(15, 23, 42"] {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;

    color: #1e293b !important;

}



/* Translucent black backgrounds (sub-boxes, stat pills, SVG containers) */

html:not([data-theme="dark"]) [style*="background: rgba(0,0,0,0.45)"],

html:not([data-theme="dark"]) [style*="background: rgba(0, 0, 0, 0.45)"],

html:not([data-theme="dark"]) [style*="background: rgba(0,0,0,0.4)"],

html:not([data-theme="dark"]) [style*="background: rgba(0, 0, 0, 0.4)"],

html:not([data-theme="dark"]) [style*="background: rgba(0,0,0,0.35)"],

html:not([data-theme="dark"]) [style*="background: rgba(0, 0, 0, 0.35)"],

html[data-theme="light"] [style*="background: rgba(0,0,0,0.45)"],

html[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.45)"],

html[data-theme="light"] [style*="background: rgba(0,0,0,0.4)"],

html[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.4)"],

html[data-theme="light"] [style*="background: rgba(0,0,0,0.35)"],

html[data-theme="light"] [style*="background: rgba(0, 0, 0, 0.35)"] {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;

    color: #1e293b !important;

}



/* Tooltip container in Light Mode */

html:not([data-theme="dark"]) [style*="background: rgba(17, 24, 39, 0.96)"],

html[data-theme="light"] [style*="background: rgba(17, 24, 39, 0.96)"] {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;

    color: #0f172a !important;

}



html:not([data-theme="dark"]) #faqChartTooltip,

html:not([data-theme="dark"]) #faqScatterTooltip,

html[data-theme="light"] #faqChartTooltip,

html[data-theme="light"] #faqScatterTooltip {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;

    color: #0f172a !important;

}



html:not([data-theme="dark"]) #faqTtDate,

html:not([data-theme="dark"]) #tt6mDate,

html[data-theme="light"] #faqTtDate,

html[data-theme="light"] #tt6mDate {

    color: #0284c7 !important;

    border-bottom: 1px solid #e2e8f0 !important;

}



html:not([data-theme="dark"]) #faqTtRegime,

html:not([data-theme="dark"]) #tt6mRegime,

html[data-theme="light"] #faqTtRegime,

html[data-theme="light"] #tt6mRegime {

    background: #f1f5f9 !important;

    color: #0284c7 !important;

    border: 1px solid #cbd5e1 !important;

}



/* 10. Border Color Overrides in Light Mode */

html:not([data-theme="dark"]) [style*="border: 1px solid rgba(255,255,255"],

html:not([data-theme="dark"]) [style*="border: 1px solid rgba(255, 255, 255"],

html:not([data-theme="dark"]) [style*="border-color: rgba(255,255,255"],

html:not([data-theme="dark"]) [style*="border-color: rgba(255, 255, 255"],

html[data-theme="light"] [style*="border: 1px solid rgba(255,255,255"],

html[data-theme="light"] [style*="border: 1px solid rgba(255, 255, 255"],

html[data-theme="light"] [style*="border-color: rgba(255,255,255"],

html[data-theme="light"] [style*="border-color: rgba(255, 255, 255"] {

    border-color: #e2e8f0 !important;

}



/* 11. Callout Box Titles & Icons in Light Mode */

html:not([data-theme="dark"]) .callout-title,

html[data-theme="light"] .callout-title {

    color: #0f172a !important;

    font-weight: 700 !important;

}





/* ==========================================================================

   FURTHER REFINED LIGHT MODE COMPONENT OVERRIDES

   ========================================================================== */



/* 1. Period Stats Grid (S&P 500 Outperformance Page) */

html:not([data-theme="dark"]) .period-stats-grid,

html[data-theme="light"] .period-stats-grid {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

}



html:not([data-theme="dark"]) .stat-value:not([style*="color"]),

html[data-theme="light"] .stat-value:not([style*="color"]) {

    color: #0f172a !important;

}



/* 2. Formula Callouts & Lines (Sharpe Ratio Page) */

html:not([data-theme="dark"]) .formula-callout,

html[data-theme="light"] .formula-callout {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #0f172a !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;

}



html:not([data-theme="dark"]) .formula-line,

html[data-theme="light"] .formula-line {

    color: #0284c7 !important;

}



html:not([data-theme="dark"]) .formula-desc,

html[data-theme="light"] .formula-desc {

    color: #334155 !important;

}



html:not([data-theme="dark"]) .formula-callout .katex,

html[data-theme="light"] .formula-callout .katex,

html:not([data-theme="dark"]) .katex,

html[data-theme="light"] .katex {

    color: #0f172a !important;

}



/* 3. Quote Boxes & Regime Cards (Why Evergreen Hydra Page) */

html:not([data-theme="dark"]) .quote-box,

html[data-theme="light"] .quote-box {

    background: #fffbeb !important;

    border-left: 4px solid #d97706 !important;

    color: #1e293b !important;

}



html:not([data-theme="dark"]) .regime-card,

html[data-theme="light"] .regime-card {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;

}



html:not([data-theme="dark"]) .regime-card h4,

html[data-theme="light"] .regime-card h4 {

    color: #0f172a !important;

}



html:not([data-theme="dark"]) .regime-card p,

html[data-theme="light"] .regime-card p {

    color: #334155 !important;

}



html:not([data-theme="dark"]) .regime-card li,

html[data-theme="light"] .regime-card li {

    color: #334155 !important;

}



/* 4. Gold Callout Pillars */

html:not([data-theme="dark"]) .callout-pillar.gold,

html[data-theme="light"] .callout-pillar.gold {

    background: #fffbeb !important;

    border-left: 3px solid #d97706 !important;

}



/* 5. Generic Callout Headings */

html:not([data-theme="dark"]) .callout-box h3,

html:not([data-theme="dark"]) .callout-box h4,

html:not([data-theme="dark"]) .callout-box h5,

html[data-theme="light"] .callout-box h3,

html[data-theme="light"] .callout-box h4,

html[data-theme="light"] .callout-box h5 {

    color: #0f172a !important;

}



/* 6. Box Values Fallback */

html:not([data-theme="dark"]) .box-value:not([style*="color"]),

html[data-theme="light"] .box-value:not([style*="color"]) {

    color: #0f172a !important;

}





/* ==========================================================================

   SVG CHART & VISUALIZER LIGHT MODE OVERRIDES

   ========================================================================== */



/* 1. Grid lines and axis dividers with white stroke */

html:not([data-theme="dark"]) svg line[stroke*="255,255,255"],

html:not([data-theme="dark"]) svg line[stroke*="255, 255, 255"],

html:not([data-theme="dark"]) svg line[stroke*="rgba(255"],

html[data-theme="light"] svg line[stroke*="255,255,255"],

html[data-theme="light"] svg line[stroke*="255, 255, 255"],

html[data-theme="light"] svg line[stroke*="rgba(255"] {

    stroke: rgba(0, 0, 0, 0.12) !important;

}



/* Axis Zero reference lines */

html:not([data-theme="dark"]) svg line[stroke-width="1.5"][stroke*="255"],

html[data-theme="light"] svg line[stroke-width="1.5"][stroke*="255"] {

    stroke: rgba(0, 0, 0, 0.35) !important;

}



/* 2. SVG Text labels (Axis ticks, coordinate values, axis titles) */

html:not([data-theme="dark"]) svg text[fill="#94a3b8"],

html:not([data-theme="dark"]) svg text[fill="#64748b"],

html:not([data-theme="dark"]) svg text[fill="#cbd5e1"],

html[data-theme="light"] svg text[fill="#94a3b8"],

html[data-theme="light"] svg text[fill="#64748b"],

html[data-theme="light"] svg text[fill="#cbd5e1"] {

    fill: #334155 !important;

}



/* SVG Text titles (Spread %, Trading Day Progression, etc.) */

html:not([data-theme="dark"]) svg text[font-weight="600"][fill="#cbd5e1"],

html[data-theme="light"] svg text[font-weight="600"][fill="#cbd5e1"] {

    fill: #0f172a !important;

}



/* 3. Quadrant labels in light mode for higher contrast */

html:not([data-theme="dark"]) svg text[fill="rgba(56, 189, 248, 0.6)"],

html[data-theme="light"] svg text[fill="rgba(56, 189, 248, 0.6)"] {

    fill: #0284c7 !important;

}



html:not([data-theme="dark"]) svg text[fill="rgba(16, 185, 129, 0.6)"],

html[data-theme="light"] svg text[fill="rgba(16, 185, 129, 0.6)"] {

    fill: #059669 !important;

}



html:not([data-theme="dark"]) svg text[fill="rgba(239, 68, 68, 0.6)"],

html[data-theme="light"] svg text[fill="rgba(239, 68, 68, 0.6)"] {

    fill: #dc2626 !important;

}



html:not([data-theme="dark"]) svg text[fill="rgba(148, 163, 184, 0.5)"],

html[data-theme="light"] svg text[fill="rgba(148, 163, 184, 0.5)"] {

    fill: #64748b !important;

}



/* 4. Chart Tooltips (Rich hover popups across all chart types) */

html:not([data-theme="dark"]) #chartTooltip,

html:not([data-theme="dark"]) #tooltip6m,

html:not([data-theme="dark"]) #faqChartTooltip,

html:not([data-theme="dark"]) #faqScatterTooltip,

html[data-theme="light"] #chartTooltip,

html[data-theme="light"] #tooltip6m,

html[data-theme="light"] #faqChartTooltip,

html[data-theme="light"] #faqScatterTooltip {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;

    color: #0f172a !important;

}



html:not([data-theme="dark"]) #ttDate,

html:not([data-theme="dark"]) #faqTtDate,

html:not([data-theme="dark"]) #tt6mDate,

html[data-theme="light"] #ttDate,

html[data-theme="light"] #faqTtDate,

html[data-theme="light"] #tt6mDate {

    color: #0284c7 !important;

    border-bottom: 1px solid #e2e8f0 !important;

}





/* ==========================================================================

   ENHANCED LIGHT THEME BUTTONS, FORMULAS & INTERACTIVE CARDS (20261103)

   ========================================================================== */



/* 1. Chart Tabs Navigation & Buttons */

.chart-tabs-nav {

    display: inline-flex;

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 8px;

    padding: 3px;

    gap: 4px;

}



html[data-theme="light"] .chart-tabs-nav,

html:not([data-theme="dark"]) .chart-tabs-nav {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

}



.chart-tab-btn {

    background: transparent;

    border: none;

    color: #94a3b8;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    padding: 6px 14px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.chart-tab-btn:hover:not(.active) {

    color: #f8fafc;

    background: rgba(255, 255, 255, 0.05);

}



.chart-tab-btn.active {

    background: #38bdf8;

    color: #0b1120;

    font-weight: 700;

    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);

}



html[data-theme="light"] .chart-tab-btn,

html:not([data-theme="dark"]) .chart-tab-btn {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #334155 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

    font-weight: 600 !important;

}



html[data-theme="light"] .chart-tab-btn:hover:not(.active),

html:not([data-theme="dark"]) .chart-tab-btn:hover:not(.active) {

    background: #f1f5f9 !important;

    border-color: #0284c7 !important;

    color: #0284c7 !important;

}



html[data-theme="light"] .chart-tab-btn.active,

html:not([data-theme="dark"]) .chart-tab-btn.active {

    background: #ffffff !important;

    background-color: #ffffff !important;

    border: 2px solid #0284c7 !important;

    color: #0284c7 !important;

    font-weight: 800 !important;

    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2) !important;

}



/* 2. Mathematical Fraction & Formula Walkthroughs */

.math-fraction {

    display: inline-flex;

    flex-direction: column;

    vertical-align: middle;

    text-align: center;

    padding: 0 4px;

    font-family: 'JetBrains Mono', 'Fira Code', monospace;

    font-size: 0.9em;

    line-height: 1.1;

}



.math-fraction .math-num {

    border-bottom: 1.5px solid currentColor;

    padding-bottom: 2px;

}



.math-fraction .math-den {

    padding-top: 2px;

}



.formula-title {

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 10px;

    color: #94a3b8;

}



html[data-theme="light"] .formula-title,

html:not([data-theme="dark"]) .formula-title {

    color: #0369a1 !important;

}



.formula-line-gold {

    color: #facc15;

}



html[data-theme="light"] .formula-line-gold,

html:not([data-theme="dark"]) .formula-line-gold {

    color: #b45309 !important;

}



/* 3. Live Market Status & Recommendation Card (dca-vs-lump-sum.html) */

html[data-theme="light"] #live-recommendation-card,

html:not([data-theme="dark"]) #live-recommendation-card {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;

}



html[data-theme="light"] .live-card-title,

html:not([data-theme="dark"]) .live-card-title {

    color: #0f172a !important;

}



html[data-theme="light"] #live-recommendation-box,

html:not([data-theme="dark"]) #live-recommendation-box {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

}



html[data-theme="light"] #live-rec-title,

html:not([data-theme="dark"]) #live-rec-title {

    color: #0f172a !important;

}



html[data-theme="light"] #live-rec-explanation,

html:not([data-theme="dark"]) #live-rec-explanation {

    color: #334155 !important;

}



html[data-theme="light"] #live-spy-price,

html[data-theme="light"] #live-spy-200,

html:not([data-theme="dark"]) #live-spy-price,

html:not([data-theme="dark"]) #live-spy-200 {

    color: #0f172a !important;

}



/* 4. Protocol Trigger Boxes (dca-vs-lump-sum.html) */

html[data-theme="light"] .protocol-trigger-box,

html:not([data-theme="dark"]) .protocol-trigger-box {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;

}



html[data-theme="light"] .trigger-title-blue,

html:not([data-theme="dark"]) .trigger-title-blue {

    color: #0369a1 !important;

}



html[data-theme="light"] .trigger-title-green,

html:not([data-theme="dark"]) .trigger-title-green {

    color: #047857 !important;

}



html[data-theme="light"] .protocol-trigger-box li,

html:not([data-theme="dark"]) .protocol-trigger-box li {

    color: #334155 !important;

}



html[data-theme="light"] .protocol-trigger-box li strong,

html:not([data-theme="dark"]) .protocol-trigger-box li strong {

    color: #0f172a !important;

}



/* 5. Interactive Control Buttons & Pills Across All FAQ Pages */

/* Inactive ctrl-btn */

html[data-theme="light"] .ctrl-btn,

html:not([data-theme="dark"]) .ctrl-btn {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #334155 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

}



html[data-theme="light"] .ctrl-btn:hover:not(.active),

html:not([data-theme="dark"]) .ctrl-btn:hover:not(.active) {

    background: #f1f5f9 !important;

    border-color: #0284c7 !important;

    color: #0284c7 !important;

}



html[data-theme="light"] .ctrl-btn.active,

html:not([data-theme="dark"]) .ctrl-btn.active {

    background: #0284c7 !important;

    border-color: #0284c7 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;

    font-weight: 700 !important;

}



/* ctrl-pill */

html[data-theme="light"] .ctrl-pill,

html:not([data-theme="dark"]) .ctrl-pill {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #475569 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

}



html[data-theme="light"] .ctrl-pill:hover:not(.active),

html:not([data-theme="dark"]) .ctrl-pill:hover:not(.active) {

    background: #f1f5f9 !important;

    border-color: #0284c7 !important;

    color: #0284c7 !important;

}



html[data-theme="light"] .ctrl-pill.active,

html:not([data-theme="dark"]) .ctrl-pill.active {

    background: #0284c7 !important;

    border-color: #0284c7 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;

    font-weight: 700 !important;

}



/* calc-btn */

html[data-theme="light"] .calc-btn,

html:not([data-theme="dark"]) .calc-btn {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #334155 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

}



html[data-theme="light"] .calc-btn:hover:not(.active),

html:not([data-theme="dark"]) .calc-btn:hover:not(.active) {

    background: #f1f5f9 !important;

    border-color: #059669 !important;

    color: #059669 !important;

}



html[data-theme="light"] .calc-btn.active,

html:not([data-theme="dark"]) .calc-btn.active {

    background: #059669 !important;

    border-color: #047857 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35) !important;

    font-weight: 700 !important;

}



/* btn-action & t-pill */

html[data-theme="light"] .btn-action,

html:not([data-theme="dark"]) .btn-action {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #334155 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

}



html[data-theme="light"] .btn-action:hover,

html:not([data-theme="dark"]) .btn-action:hover {

    background: #f1f5f9 !important;

    border-color: #0284c7 !important;

    color: #0284c7 !important;

}



html[data-theme="light"] .t-pill,

html:not([data-theme="dark"]) .t-pill {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #475569 !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;

}



html[data-theme="light"] .t-pill:hover:not(.active),

html:not([data-theme="dark"]) .t-pill:hover:not(.active) {

    background: #f1f5f9 !important;

    border-color: #0284c7 !important;

    color: #0284c7 !important;

}



html[data-theme="light"] .t-pill.active,

html:not([data-theme="dark"]) .t-pill.active {

    background: #0284c7 !important;

    border-color: #0284c7 !important;

    color: #ffffff !important;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;

}



/* deep-dive-btn in index.html */

html[data-theme="light"] .deep-dive-btn,

html:not([data-theme="dark"]) .deep-dive-btn {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #0284c7 !important;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;

}



html[data-theme="light"] .deep-dive-btn:hover,

html:not([data-theme="dark"]) .deep-dive-btn:hover {

    background: #0284c7 !important;

    border-color: #0284c7 !important;

    color: #ffffff !important;

    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;

}



/* 6. Universal Light Overrides for Dark Inline Wrappers & Boxes */

html[data-theme="light"] div[style*="background: rgba(0,0,0,0.4)"],

html[data-theme="light"] div[style*="background: rgba(0, 0, 0, 0.4)"],

html[data-theme="light"] div[style*="background:rgba(0,0,0,0.4)"],

html:not([data-theme="dark"]) div[style*="background: rgba(0,0,0,0.4)"],

html:not([data-theme="dark"]) div[style*="background: rgba(0, 0, 0, 0.4)"],

html:not([data-theme="dark"]) div[style*="background:rgba(0,0,0,0.4)"] {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

}



html[data-theme="light"] div[style*="background: rgba(0,0,0,0.3)"],

html[data-theme="light"] div[style*="background: rgba(0, 0, 0, 0.3)"],

html[data-theme="light"] div[style*="background:rgba(0,0,0,0.3)"],

html:not([data-theme="dark"]) div[style*="background: rgba(0,0,0,0.3)"],

html:not([data-theme="dark"]) div[style*="background: rgba(0, 0, 0, 0.3)"],

html:not([data-theme="dark"]) div[style*="background:rgba(0,0,0,0.3)"] {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;

}



html[data-theme="light"] div[style*="background: rgba(15, 23, 42"],

html[data-theme="light"] div[style*="background:rgba(15,23,42"],

html[data-theme="light"] div[style*="background: linear-gradient(135deg, rgba(15, 23, 42"],

html:not([data-theme="dark"]) div[style*="background: rgba(15, 23, 42"],

html:not([data-theme="dark"]) div[style*="background:rgba(15,23,42"],

html:not([data-theme="dark"]) div[style*="background: linear-gradient(135deg, rgba(15, 23, 42"] {

    background: #ffffff !important;

    border-color: #cbd5e1 !important;

    color: #0f172a !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;

}



/* 7. Headings with hardcoded inline #fff in Light Mode */

html[data-theme="light"] h1[style*="color: #fff"],

html[data-theme="light"] h2[style*="color: #fff"],

html[data-theme="light"] h3[style*="color: #fff"],

html[data-theme="light"] h4[style*="color: #fff"],

html[data-theme="light"] h5[style*="color: #fff"],

html[data-theme="light"] h1[style*="color:#fff"],

html[data-theme="light"] h2[style*="color:#fff"],

html[data-theme="light"] h3[style*="color:#fff"],

html[data-theme="light"] h4[style*="color:#fff"],

html[data-theme="light"] h5[style*="color:#fff"],

html[data-theme="light"] span[style*="color: #fff;"][style*="font-weight"],

html[data-theme="light"] span[style*="color:#fff;"][style*="font-weight"] {

    color: #0f172a !important;

}



/* 8. Headings and links with hardcoded yellow #facc15 in Light Mode */

html[data-theme="light"] h1[style*="facc15"],

html[data-theme="light"] h2[style*="facc15"],

html[data-theme="light"] h3[style*="facc15"],

html[data-theme="light"] h4[style*="facc15"],

html[data-theme="light"] h5[style*="facc15"],

html[data-theme="light"] a[style*="color: #facc15"],

html[data-theme="light"] a[style*="color:#facc15"],

html[data-theme="light"] span[style*="color: #facc15"],

html[data-theme="light"] span[style*="color:#facc15"] {

    color: #b45309 !important;

}



/* 9. Cross-Research Action Links */

html[data-theme="light"] a[style*="background: rgba(56, 189, 248"],

html[data-theme="light"] a[style*="background:rgba(56,189,248"] {

    background: #f0f9ff !important;

    border: 1px solid #0284c7 !important;

    color: #0284c7 !important;

}



html[data-theme="light"] a[style*="background: rgba(250, 204, 21"],

html[data-theme="light"] a[style*="background:rgba(250,204,21"] {

    background: #fefce8 !important;

    border: 1px solid #b45309 !important;

    color: #b45309 !important;

}



html[data-theme="light"] a[style*="background: rgba(16, 185, 129"],

html[data-theme="light"] a[style*="background:rgba(16,185,129"] {

    background: #ecfdf5 !important;

    border: 1px solid #059669 !important;

    color: #047857 !important;

}



html[data-theme="light"] a[style*="background: rgba(255,255,255,0.06)"],

html[data-theme="light"] a[style*="background: rgba(255, 255, 255, 0.06)"] {

    background: #f1f5f9 !important;

    border: 1px solid #cbd5e1 !important;

    color: #334155 !important;

}





/* ==========================================================================

   INTERACTIVE WEALTH COMPOUNDING VISUALIZER (TAX DRAG FAQ)

   ========================================================================== */

html[data-theme="light"] .interactive-calc-box,

html:not([data-theme="dark"]) .interactive-calc-box {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;

}



html[data-theme="light"] .tax-visualizer-header,

html:not([data-theme="dark"]) .tax-visualizer-header {

    border-bottom: 1px solid #e2e8f0 !important;

}



html[data-theme="light"] .tax-visualizer-title,

html:not([data-theme="dark"]) .tax-visualizer-title {

    color: #0f172a !important;

}



html[data-theme="light"] .calc-label,

html:not([data-theme="dark"]) .calc-label {

    color: #334155 !important;

}



html[data-theme="light"] .tax-kpi-card,

html:not([data-theme="dark"]) .tax-kpi-card {

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;

}



html[data-theme="light"] .tax-kpi-eh,

html:not([data-theme="dark"]) .tax-kpi-eh {

    background: #f0fdf4 !important;

    border: 1px solid #bbf7d0 !important;

}

html[data-theme="light"] .tax-kpi-eh .tax-kpi-label,

html[data-theme="light"] .tax-kpi-eh .tax-kpi-val,

html:not([data-theme="dark"]) .tax-kpi-eh .tax-kpi-label,

html:not([data-theme="dark"]) .tax-kpi-eh .tax-kpi-val {

    color: #047857 !important;

}



html[data-theme="light"] .tax-kpi-sp,

html:not([data-theme="dark"]) .tax-kpi-sp {

    background: #f0f9ff !important;

    border: 1px solid #bae6fd !important;

}

html[data-theme="light"] .tax-kpi-sp .tax-kpi-label,

html[data-theme="light"] .tax-kpi-sp .tax-kpi-val,

html:not([data-theme="dark"]) .tax-kpi-sp .tax-kpi-label,

html:not([data-theme="dark"]) .tax-kpi-sp .tax-kpi-val {

    color: #0369a1 !important;

}



html[data-theme="light"] .tax-kpi-adv,

html:not([data-theme="dark"]) .tax-kpi-adv {

    background: #fefce8 !important;

    border: 1px solid #fde68a !important;

}

html[data-theme="light"] .tax-kpi-adv .tax-kpi-label,

html[data-theme="light"] .tax-kpi-adv .tax-kpi-val,

html:not([data-theme="dark"]) .tax-kpi-adv .tax-kpi-label,

html:not([data-theme="dark"]) .tax-kpi-adv .tax-kpi-val {

    color: #b45309 !important;

}



html[data-theme="light"] .tax-kpi-irs,

html:not([data-theme="dark"]) .tax-kpi-irs {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

}

html[data-theme="light"] .tax-kpi-irs .tax-kpi-label,

html:not([data-theme="dark"]) .tax-kpi-irs .tax-kpi-label {

    color: #475569 !important;

}

html[data-theme="light"] .tax-kpi-irs .tax-kpi-val,

html:not([data-theme="dark"]) .tax-kpi-irs .tax-kpi-val {

    color: #0f172a !important;

}



html[data-theme="light"] .tax-kpi-sub,

html:not([data-theme="dark"]) .tax-kpi-sub {

    color: #64748b !important;

}



html[data-theme="light"] .tax-curve-container,

html:not([data-theme="dark"]) .tax-curve-container {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;

}



html[data-theme="light"] .tax-curve-legend,

html:not([data-theme="dark"]) .tax-curve-legend {

    color: #334155 !important;

}



html[data-theme="light"] .legend-item,

html:not([data-theme="dark"]) .legend-item {

    color: #334155 !important;

}



html[data-theme="light"] .legend-eh-after,

html:not([data-theme="dark"]) .legend-eh-after {

    color: #047857 !important;

}

html[data-theme="light"] .legend-eh-after .legend-swatch,

html:not([data-theme="dark"]) .legend-eh-after .legend-swatch {

    background: #047857 !important;

}



html[data-theme="light"] .legend-eh-pre,

html:not([data-theme="dark"]) .legend-eh-pre {

    color: #0284c7 !important;

}

html[data-theme="light"] .legend-eh-pre .legend-swatch,

html:not([data-theme="dark"]) .legend-eh-pre .legend-swatch {

    border-top-color: #0284c7 !important;

}



html[data-theme="light"] .legend-sp-pre,

html:not([data-theme="dark"]) .legend-sp-pre {

    color: #4f46e5 !important;

}

html[data-theme="light"] .legend-sp-pre .legend-swatch,

html:not([data-theme="dark"]) .legend-sp-pre .legend-swatch {

    background: #4f46e5 !important;

}



html[data-theme="light"] .legend-sp-after,

html:not([data-theme="dark"]) .legend-sp-after {

    color: #9333ea !important;

}

html[data-theme="light"] .legend-sp-after .legend-swatch,

html:not([data-theme="dark"]) .legend-sp-after .legend-swatch {

    border-top-color: #9333ea !important;

}



html[data-theme="light"] .legend-note,

html:not([data-theme="dark"]) .legend-note {

    color: #64748b !important;

}





/* ==========================================================================

   24-HOUR RETURN DISPERSION & SCATTER POINT ANALYSIS (ARTICLE O)

   ========================================================================== */

.scatter-widget-card {

    background: rgba(15, 23, 42, 0.85);

    border: 1px solid rgba(56, 189, 248, 0.25);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

}

.scatter-widget-header {

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}

.scatter-status-dot {

    background: #38bdf8;

    box-shadow: 0 0 8px #38bdf8;

}

.scatter-widget-title {

    color: #fff;

}

.scatter-widget-badge {

    color: #94a3b8;

}

.scatter-widget-sub {

    color: #64748b;

}



.scatter-stat-card {

    background: rgba(0, 0, 0, 0.3);

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 8px;

    padding: 10px 14px;

}

.scatter-stat-label {

    font-size: 11px;

    color: #94a3b8;

    text-transform: uppercase;

    font-weight: 600;

}

.scatter-stat-val {

    font-size: 16px;

    font-weight: 800;

    font-family: 'JetBrains Mono', monospace;

}

.val-green { color: #4ade80; }

.val-red { color: #f87171; }

.val-blue { color: #38bdf8; }

.scatter-stat-sep { font-size: 12px; color: #64748b; }

.scatter-stat-sub { font-size: 12px; color: #94a3b8; }



.scatter-chart-canvas-box {

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.05);

}

.scatter-tooltip {

    background: rgba(17, 24, 39, 0.96);

    border: 1px solid rgba(56, 189, 248, 0.4);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);

    color: #f8fafc;

}

#faqTtDate {

    color: #38bdf8;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.tt-label { color: #94a3b8; }

.tt-divider { border-top: 1px solid rgba(255, 255, 255, 0.1); }

#faqTtRegime {

    color: #38bdf8;

    background: rgba(0, 0, 0, 0.3);

}

.scatter-legend-box {

    color: #94a3b8;

}

.legend-pill-outperform .legend-dot { background: #10b981; }

.legend-pill-underperform .legend-dot { background: #f43f5e; }

.legend-pill-today .legend-dot-today { border: 2px solid #10b981; background: #10b981; }

.legend-pill-today strong { color: #10b981; }

.scatter-legend-note { color: #64748b; }



/* Light Mode Overrides */

html[data-theme="light"] .scatter-widget-card,

html:not([data-theme="dark"]) .scatter-widget-card {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;

}

html[data-theme="light"] .scatter-widget-header,

html:not([data-theme="dark"]) .scatter-widget-header {

    border-bottom: 1px solid #e2e8f0 !important;

}

html[data-theme="light"] .scatter-status-dot,

html:not([data-theme="dark"]) .scatter-status-dot {

    background: #0284c7 !important;

    box-shadow: 0 0 8px rgba(2, 132, 199, 0.35) !important;

}

html[data-theme="light"] .scatter-widget-title,

html:not([data-theme="dark"]) .scatter-widget-title {

    color: #0f172a !important;

}

html[data-theme="light"] .scatter-widget-badge,

html:not([data-theme="dark"]) .scatter-widget-badge {

    color: #64748b !important;

}

html[data-theme="light"] .scatter-widget-sub,

html:not([data-theme="dark"]) .scatter-widget-sub {

    color: #475569 !important;

}



/* Light Mode 4 Stat Cards */

html[data-theme="light"] .scatter-stat-card,

html:not([data-theme="dark"]) .scatter-stat-card {

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;

}

html[data-theme="light"] .stat-card-today,

html:not([data-theme="dark"]) .stat-card-today,

html[data-theme="light"] .stat-card-surge,

html:not([data-theme="dark"]) .stat-card-surge {

    background: #f0fdf4 !important;

    border: 1px solid #bbf7d0 !important;

}

html[data-theme="light"] .stat-card-outperform,

html:not([data-theme="dark"]) .stat-card-outperform,

html[data-theme="light"] .stat-card-corr,

html:not([data-theme="dark"]) .stat-card-corr {

    background: #f0f9ff !important;

    border: 1px solid #bae6fd !important;

}



html[data-theme="light"] .scatter-stat-label,

html:not([data-theme="dark"]) .scatter-stat-label {

    color: #334155 !important;

    font-weight: 700 !important;

}

html[data-theme="light"] .val-green,

html:not([data-theme="dark"]) .val-green {

    color: #047857 !important;

}

html[data-theme="light"] .val-red,

html:not([data-theme="dark"]) .val-red {

    color: #dc2626 !important;

}

html[data-theme="light"] .val-blue,

html:not([data-theme="dark"]) .val-blue {

    color: #0369a1 !important;

}

html[data-theme="light"] .scatter-stat-sep,

html:not([data-theme="dark"]) .scatter-stat-sep,

html[data-theme="light"] .scatter-stat-sub,

html:not([data-theme="dark"]) .scatter-stat-sub {

    color: #64748b !important;

}



/* Light Mode Chart Canvas */

html[data-theme="light"] .scatter-chart-canvas-box,

html:not([data-theme="dark"]) .scatter-chart-canvas-box {

    background: #ffffff !important;

    background-color: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;

}

html[data-theme="light"] #faqScatterSvg,

html:not([data-theme="dark"]) #faqScatterSvg {

    background: #ffffff !important;

    background-color: #ffffff !important;

}



/* Light Mode Tooltip */

html[data-theme="light"] .scatter-tooltip,

html:not([data-theme="dark"]) .scatter-tooltip {

    background: #ffffff !important;

    border: 1px solid #cbd5e1 !important;

    color: #0f172a !important;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;

}

html[data-theme="light"] #faqTtDate,

html:not([data-theme="dark"]) #faqTtDate {

    color: #0284c7 !important;

    border-bottom: 1px solid #e2e8f0 !important;

}

html[data-theme="light"] .tt-label,

html:not([data-theme="dark"]) .tt-label {

    color: #475569 !important;

}

html[data-theme="light"] .tt-divider,

html:not([data-theme="dark"]) .tt-divider {

    border-top: 1px solid #e2e8f0 !important;

}



/* Light Mode Legend */

html[data-theme="light"] .scatter-legend-box,

html:not([data-theme="dark"]) .scatter-legend-box {

    color: #334155 !important;

}

html[data-theme="light"] .legend-pill-outperform,

html:not([data-theme="dark"]) .legend-pill-outperform {

    color: #047857 !important;

}

html[data-theme="light"] .legend-pill-outperform .legend-dot,

html:not([data-theme="dark"]) .legend-pill-outperform .legend-dot {

    background: #047857 !important;

}

html[data-theme="light"] .legend-pill-underperform,

html:not([data-theme="dark"]) .legend-pill-underperform {

    color: #dc2626 !important;

}

html[data-theme="light"] .legend-pill-underperform .legend-dot,

html:not([data-theme="dark"]) .legend-pill-underperform .legend-dot {

    background: #dc2626 !important;

}

html[data-theme="light"] .legend-pill-today,

html:not([data-theme="dark"]) .legend-pill-today,

html[data-theme="light"] .legend-pill-today strong,

html:not([data-theme="dark"]) .legend-pill-today strong {

    color: #047857 !important;

}

html[data-theme="light"] .legend-pill-today .legend-dot-today,

html:not([data-theme="dark"]) .legend-pill-today .legend-dot-today {

    background: #047857 !important;

    border-color: #047857 !important;

}

html[data-theme="light"] .scatter-legend-note,

html:not([data-theme="dark"]) .scatter-legend-note {

    color: #64748b !important;

}



/* ==========================================================================

   6-MONTH 24-HOUR RETURN SCATTER AUDIT (ARTICLE P)

   ========================================================================== */



/* Dark Mode Base for Quadrant Pills */

.stat-card-q1 {

    background: rgba(16, 185, 129, 0.08);

    border: 1px solid rgba(16, 185, 129, 0.25);

}

.stat-label-q1 {

    color: #4ade80;

}

.val-q1 {

    color: #ffffff;

}



.stat-card-q2 {

    background: rgba(56, 189, 248, 0.08);

    border: 1px solid rgba(56, 189, 248, 0.25);

}

.stat-label-q2 {

    color: #38bdf8;

}

.val-q2 {

    color: #ffffff;

}



.stat-card-q3 {

    background: rgba(148, 163, 184, 0.08);

    border: 1px solid rgba(148, 163, 184, 0.2);

}

.stat-label-q3 {

    color: #94a3b8;

}

.val-q3 {

    color: #ffffff;

}



.stat-card-q4 {

    background: rgba(239, 68, 68, 0.08);

    border: 1px solid rgba(239, 68, 68, 0.25);

}

.stat-label-q4 {

    color: #f87171;

}

.val-q4 {

    color: #ffffff;

}



/* Light Mode Overrides for Quadrant Pills */

html[data-theme="light"] .stat-card-q1,

html:not([data-theme="dark"]) .stat-card-q1 {

    background: #f0fdf4 !important;

    border: 1px solid #bbf7d0 !important;

}

html[data-theme="light"] .stat-label-q1,

html:not([data-theme="dark"]) .stat-label-q1 {

    color: #047857 !important;

}

html[data-theme="light"] .val-q1,

html:not([data-theme="dark"]) .val-q1 {

    color: #047857 !important;

}



html[data-theme="light"] .stat-card-q2,

html:not([data-theme="dark"]) .stat-card-q2 {

    background: #f0f9ff !important;

    border: 1px solid #bae6fd !important;

}

html[data-theme="light"] .stat-label-q2,

html:not([data-theme="dark"]) .stat-label-q2 {

    color: #0369a1 !important;

}

html[data-theme="light"] .val-q2,

html:not([data-theme="dark"]) .val-q2 {

    color: #0369a1 !important;

}



html[data-theme="light"] .stat-card-q3,

html:not([data-theme="dark"]) .stat-card-q3 {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

}

html[data-theme="light"] .stat-label-q3,

html:not([data-theme="dark"]) .stat-label-q3 {

    color: #475569 !important;

}

html[data-theme="light"] .val-q3,

html:not([data-theme="dark"]) .val-q3 {

    color: #334155 !important;

}



html[data-theme="light"] .stat-card-q4,

html:not([data-theme="dark"]) .stat-card-q4 {

    background: #fef2f2 !important;

    border: 1px solid #fecaca !important;

}

html[data-theme="light"] .stat-label-q4,

html:not([data-theme="dark"]) .stat-label-q4 {

    color: #b91c1c !important;

}

html[data-theme="light"] .val-q4,

html:not([data-theme="dark"]) .val-q4 {

    color: #dc2626 !important;

}



/* Tooltip Date & Regime for 6M */

html[data-theme="light"] #tt6mDate,

html:not([data-theme="dark"]) #tt6mDate {

    color: #0284c7 !important;

    border-bottom: 1px solid #e2e8f0 !important;

}

html[data-theme="light"] #tt6mRegime,

html:not([data-theme="dark"]) #tt6mRegime {

    background: #f1f5f9 !important;

    color: #0369a1 !important;

    border: 1px solid #cbd5e1 !important;

}



/* ==========================================================================

   BETA INSIGHTS CARDS (ARTICLE P: 1. Multiplier, 2. Organic, 3. Reading, 4. Tail Risk)

   ========================================================================== */



.beta-insight-card {

    border-radius: 12px;

    padding: 20px;

    background: rgba(15, 23, 42, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    transition: transform 0.15s ease, box-shadow 0.15s ease;

}

.beta-insight-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

}

.beta-insight-card .insight-title {

    font-size: 15px;

    margin: 0 0 10px 0;

    font-weight: 700;

}

.beta-insight-card.card-multiplier .insight-title {

    color: #38bdf8;

}

.beta-insight-card.card-organic .insight-title {

    color: #4ade80;

}

.beta-insight-card.card-reading .insight-title {

    color: #facc15;

}

.beta-insight-card.card-tailrisk .insight-title {

    color: #c084fc;

}

.beta-insight-card .insight-desc {

    margin: 0;

    font-size: 13.5px;

    color: #cbd5e1;

    line-height: 1.6;

}

.beta-insight-card .insight-desc strong {

    color: #f8fafc;

}



/* Base stat val colors */

.val-blue { color: #38bdf8; }

.val-green { color: #4ade80; }

.val-amber { color: #facc15; }

.val-purple { color: #c084fc; }

.val-slate { color: #cbd5e1; }

.val-red { color: #f87171; }



.q-name-1 { color: #4ade80; }

.q-name-2 { color: #38bdf8; }

.q-name-3 { color: #94a3b8; }

.q-name-4 { color: #f87171; }



/* Light Mode Overrides for Beta Insight Cards */

html[data-theme="light"] .beta-insight-card,

html:not([data-theme="dark"]) .beta-insight-card {

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;

}

html[data-theme="light"] .beta-insight-card:hover,

html:not([data-theme="dark"]) .beta-insight-card:hover {

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;

}

html[data-theme="light"] .beta-insight-card.card-multiplier,

html:not([data-theme="dark"]) .beta-insight-card.card-multiplier {

    background: #f0f9ff !important;

    border: 1px solid #bae6fd !important;

}

html[data-theme="light"] .beta-insight-card.card-multiplier .insight-title,

html:not([data-theme="dark"]) .beta-insight-card.card-multiplier .insight-title {

    color: #0369a1 !important;

}



html[data-theme="light"] .beta-insight-card.card-organic,

html:not([data-theme="dark"]) .beta-insight-card.card-organic {

    background: #f0fdf4 !important;

    border: 1px solid #bbf7d0 !important;

}

html[data-theme="light"] .beta-insight-card.card-organic .insight-title,

html:not([data-theme="dark"]) .beta-insight-card.card-organic .insight-title {

    color: #047857 !important;

}



html[data-theme="light"] .beta-insight-card.card-reading,

html:not([data-theme="dark"]) .beta-insight-card.card-reading {

    background: #fffbeb !important;

    border: 1px solid #fde68a !important;

}

html[data-theme="light"] .beta-insight-card.card-reading .insight-title,

html:not([data-theme="dark"]) .beta-insight-card.card-reading .insight-title {

    color: #b45309 !important;

}



html[data-theme="light"] .beta-insight-card.card-tailrisk,

html:not([data-theme="dark"]) .beta-insight-card.card-tailrisk {

    background: #faf5ff !important;

    border: 1px solid #e9d5ff !important;

}

html[data-theme="light"] .beta-insight-card.card-tailrisk .insight-title,

html:not([data-theme="dark"]) .beta-insight-card.card-tailrisk .insight-title {

    color: #6d28d9 !important;

}



html[data-theme="light"] .beta-insight-card .insight-desc,

html:not([data-theme="dark"]) .beta-insight-card .insight-desc {

    color: #334155 !important;

}

html[data-theme="light"] .beta-insight-card .insight-desc strong,

html:not([data-theme="dark"]) .beta-insight-card .insight-desc strong {

    color: #0f172a !important;

}



/* Light mode stat-val color overrides */

html[data-theme="light"] .val-blue,

html:not([data-theme="dark"]) .val-blue { color: #0369a1 !important; }



html[data-theme="light"] .val-green,

html:not([data-theme="dark"]) .val-green { color: #047857 !important; }



html[data-theme="light"] .val-amber,

html:not([data-theme="dark"]) .val-amber { color: #b45309 !important; }



html[data-theme="light"] .val-purple,

html:not([data-theme="dark"]) .val-purple { color: #6d28d9 !important; }



html[data-theme="light"] .val-slate,

html:not([data-theme="dark"]) .val-slate { color: #334155 !important; }



html[data-theme="light"] .val-red,

html:not([data-theme="dark"]) .val-red { color: #dc2626 !important; }



/* Light mode quadrant names */

html[data-theme="light"] .q-name-1,

html:not([data-theme="dark"]) .q-name-1 { color: #047857 !important; }



html[data-theme="light"] .q-name-2,

html:not([data-theme="dark"]) .q-name-2 { color: #0369a1 !important; }



html[data-theme="light"] .q-name-3,

html:not([data-theme="dark"]) .q-name-3 { color: #475569 !important; }



html[data-theme="light"] .q-name-4,

html:not([data-theme="dark"]) .q-name-4 { color: #dc2626 !important; }



/* ==========================================================================

   2026 MONTHLY GRID & PERCENTILE CATEGORY BADGES (ARTICLE N)

   ========================================================================== */



/* Base Dark Mode Month Card Returns */

.m-card-ret.ret-pos {

    color: #10b981;

}

.m-card-ret.ret-neg {

    color: #ef4444;

}



/* Light Mode Overrides for 2026 Monthly Cards */

html[data-theme="light"] .m-card-2026,

html:not([data-theme="dark"]) .m-card-2026 {

    border-radius: 10px !important;

    padding: 14px 16px !important;

    transition: transform 0.15s ease, box-shadow 0.15s ease !important;

}



html[data-theme="light"] .m-card-2026.is-pos,

html:not([data-theme="dark"]) .m-card-2026.is-pos {

    background: #f0fdf4 !important;

    border: 1px solid #bbf7d0 !important;

    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.06) !important;

}



html[data-theme="light"] .m-card-2026.is-neg,

html:not([data-theme="dark"]) .m-card-2026.is-neg {

    background: #fef2f2 !important;

    border: 1px solid #fecaca !important;

    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.06) !important;

}



html[data-theme="light"] .m-card-2026.is-worst,

html:not([data-theme="dark"]) .m-card-2026.is-worst {

    background: #fff1f2 !important;

    border: 1.5px solid #f43f5e !important;

    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.12) !important;

}



html[data-theme="light"] .m-card-2026.is-current,

html:not([data-theme="dark"]) .m-card-2026.is-current {

    background: #f0f9ff !important;

    border: 1.5px solid #0284c7 !important;

    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12) !important;

}



html[data-theme="light"] .m-card-2026:hover,

html:not([data-theme="dark"]) .m-card-2026:hover {

    transform: translateY(-2px) !important;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;

}



html[data-theme="light"] .m-card-name,

html:not([data-theme="dark"]) .m-card-name {

    color: #0f172a !important;

    font-weight: 700 !important;

    font-size: 13.5px !important;

}



html[data-theme="light"] .m-card-ret.ret-pos,

html:not([data-theme="dark"]) .m-card-ret.ret-pos {

    color: #047857 !important;

    font-weight: 800 !important;

}



html[data-theme="light"] .m-card-ret.ret-neg,

html:not([data-theme="dark"]) .m-card-ret.ret-neg {

    color: #dc2626 !important;

    font-weight: 800 !important;

}



html[data-theme="light"] .m-card-detail,

html[data-theme="light"] .m-card-detail span,

html:not([data-theme="dark"]) .m-card-detail,

html:not([data-theme="dark"]) .m-card-detail span {

    color: #475569 !important;

    font-size: 11.5px !important;

    font-weight: 500 !important;

}



/* Category Badges in Light Mode */

html[data-theme="light"] .cat-top,

html:not([data-theme="dark"]) .cat-top {

    background: #dcfce7 !important;

    color: #047857 !important;

    border: 1px solid #86efac !important;

    font-weight: 700 !important;

}



html[data-theme="light"] .cat-strong,

html:not([data-theme="dark"]) .cat-strong {

    background: #e0f2fe !important;

    color: #0369a1 !important;

    border: 1px solid #7dd3fc !important;

    font-weight: 700 !important;

}



html[data-theme="light"] .cat-moderate,

html:not([data-theme="dark"]) .cat-moderate {

    background: #e0e7ff !important;

    color: #4338ca !important;

    border: 1px solid #a5b4fc !important;

    font-weight: 700 !important;

}



html[data-theme="light"] .cat-drag,

html:not([data-theme="dark"]) .cat-drag {

    background: #fef9c3 !important;

    color: #854d0e !important;

    border: 1px solid #fde047 !important;

    font-weight: 700 !important;

}



html[data-theme="light"] .cat-correction,

html:not([data-theme="dark"]) .cat-correction {

    background: #ffedd5 !important;

    color: #c2410c !important;

    border: 1px solid #fdba74 !important;

    font-weight: 700 !important;

}



html[data-theme="light"] .cat-severe,

html:not([data-theme="dark"]) .cat-severe {

    background: #fee2e2 !important;

    color: #b91c1c !important;

    border: 1px solid #fca5a5 !important;

    font-weight: 700 !important;

}



html[data-theme="light"] .cat-tail,

html:not([data-theme="dark"]) .cat-tail {

    background: #ffe4e6 !important;

    color: #be123c !important;

    border: 1px solid #fda4af !important;

    font-weight: 800 !important;

}



/* Historical Recovery Pattern Cards */

.recovery-stat-card {

    background: rgba(15, 23, 42, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

}

.recovery-stat-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);

}

.recovery-stat-card.is-perfect {

    background: rgba(16, 185, 129, 0.08);

    border: 1.5px solid rgba(16, 185, 129, 0.4);

    box-shadow: 0 0 16px rgba(16, 185, 129, 0.1);

}

.recovery-stat-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

}

.recovery-stat-label {

    font-size: 11.5px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    color: #94a3b8;

}

.recovery-stat-card.is-perfect .recovery-stat-label {

    color: #34d399;

}

.recovery-pill {

    font-size: 10.5px;

    padding: 2px 7px;

    border-radius: 4px;

    font-weight: 700;

    font-family: 'JetBrains Mono', monospace;

    background: rgba(255, 255, 255, 0.06);

    color: #94a3b8;

    border: 1px solid rgba(255, 255, 255, 0.1);

}

.recovery-pill.rec-pill-1m,

.recovery-pill.rec-pill-3m {

    background: rgba(56, 189, 248, 0.12);

    color: #38bdf8;

    border: 1px solid rgba(56, 189, 248, 0.25);

}

.recovery-pill.rec-pill-6m {

    background: rgba(16, 185, 129, 0.15);

    color: #34d399;

    border: 1px solid rgba(16, 185, 129, 0.3);

}

.recovery-pill.rec-pill-12m {

    background: rgba(16, 185, 129, 0.25);

    color: #4ade80;

    border: 1px solid rgba(16, 185, 129, 0.5);

    font-weight: 800;

}

.recovery-stat-val {

    font-size: 22px;

    font-weight: 800;

    font-family: 'JetBrains Mono', monospace;

    color: #4ade80;

    margin-top: 2px;

}

.recovery-stat-card.is-perfect .recovery-stat-val {

    color: #34d399;

}

.recovery-stat-sub {

    font-size: 11.5px;

    color: #64748b;

}

.recovery-stat-card.is-perfect .recovery-stat-sub {

    color: #10b981;

    font-weight: 600;

}



/* Light Mode Overrides for Recovery Stat Cards */

html[data-theme="light"] .recovery-stat-card,

html:not([data-theme="dark"]) .recovery-stat-card {

    border-radius: 10px !important;

    padding: 16px !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;

}

html[data-theme="light"] .recovery-stat-card:hover,

html:not([data-theme="dark"]) .recovery-stat-card:hover {

    transform: translateY(-2px) !important;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;

}



html[data-theme="light"] .recovery-stat-card.rec-1m,

html:not([data-theme="dark"]) .recovery-stat-card.rec-1m {

    background: #ffffff !important;

    border: 1px solid #e2e8f0 !important;

}

html[data-theme="light"] .recovery-stat-card.rec-3m,

html:not([data-theme="dark"]) .recovery-stat-card.rec-3m {

    background: #f0fdf4 !important;

    border: 1px solid #bbf7d0 !important;

}

html[data-theme="light"] .recovery-stat-card.rec-6m,

html:not([data-theme="dark"]) .recovery-stat-card.rec-6m {

    background: #ecfdf5 !important;

    border: 1px solid #a7f3d0 !important;

}

html[data-theme="light"] .recovery-stat-card.rec-12m.is-perfect,

html:not([data-theme="dark"]) .recovery-stat-card.rec-12m.is-perfect {

    background: #dcfce7 !important;

    border: 1.5px solid #10b981 !important;

    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15) !important;

}



html[data-theme="light"] .recovery-stat-label,

html:not([data-theme="dark"]) .recovery-stat-label {

    color: #334155 !important;

    font-size: 11.5px !important;

    font-weight: 700 !important;

}

html[data-theme="light"] .recovery-stat-card.is-perfect .recovery-stat-label,

html:not([data-theme="dark"]) .recovery-stat-card.is-perfect .recovery-stat-label {

    color: #047857 !important;

}



html[data-theme="light"] .recovery-pill.rec-pill-1m,

html:not([data-theme="dark"]) .recovery-pill.rec-pill-1m {

    background: #e0f2fe !important;

    color: #0369a1 !important;

    border: 1px solid #bae6fd !important;

}

html[data-theme="light"] .recovery-pill.rec-pill-3m,

html:not([data-theme="dark"]) .recovery-pill.rec-pill-3m {

    background: #dcfce7 !important;

    color: #047857 !important;

    border: 1px solid #bbf7d0 !important;

}

html[data-theme="light"] .recovery-pill.rec-pill-6m,

html:not([data-theme="dark"]) .recovery-pill.rec-pill-6m {

    background: #d1fae5 !important;

    color: #047857 !important;

    border: 1px solid #6ee7b7 !important;

    font-weight: 800 !important;

}

html[data-theme="light"] .recovery-pill.rec-pill-12m,

html:not([data-theme="dark"]) .recovery-pill.rec-pill-12m {

    background: #047857 !important;

    color: #ffffff !important;

    border: 1px solid #047857 !important;

    font-weight: 800 !important;

}



html[data-theme="light"] .recovery-stat-val,

html:not([data-theme="dark"]) .recovery-stat-val {

    color: #047857 !important;

    font-weight: 800 !important;

    font-size: 24px !important;

}



html[data-theme="light"] .recovery-stat-sub,

html:not([data-theme="dark"]) .recovery-stat-sub {

    color: #475569 !important;

    font-size: 11.5px !important;

}

html[data-theme="light"] .recovery-stat-card.is-perfect .recovery-stat-sub,

html:not([data-theme="dark"]) .recovery-stat-card.is-perfect .recovery-stat-sub {

    color: #047857 !important;

    font-weight: 700 !important;

}



/* ==========================================================================
   Article E & Global Gold / Amber Refinements (Dark & Light Mode)
   ========================================================================== */
.val-gold, td.val-gold {
    color: #facc15 !important;
}
.step-title-gold, .step-title.step-title-gold {
    color: #facc15 !important;
}

/* Light Mode Overrides for High Contrast Executive Amber / Gold */
html:not([data-theme="dark"]) .val-gold,
html[data-theme="light"] .val-gold,
html:not([data-theme="dark"]) td.val-gold,
html[data-theme="light"] td.val-gold {
    color: #b45309 !important;
}

html:not([data-theme="dark"]) .step-title-gold,
html[data-theme="light"] .step-title-gold,
html:not([data-theme="dark"]) .step-title.step-title-gold,
html[data-theme="light"] .step-title.step-title-gold {
    color: #b45309 !important;
}

/* Callout Warning: All words black font in Light Mode */
html:not([data-theme="dark"]) .callout-warning,
html[data-theme="light"] .callout-warning {
    background: #ffffff !important;
    border-left: 4px solid #ef4444 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

html:not([data-theme="dark"]) .callout-warning,
html[data-theme="light"] .callout-warning,
html:not([data-theme="dark"]) .callout-warning div,
html[data-theme="light"] .callout-warning div,
html:not([data-theme="dark"]) .callout-warning strong,
html[data-theme="light"] .callout-warning strong,
html:not([data-theme="dark"]) .callout-warning p,
html[data-theme="light"] .callout-warning p,
html:not([data-theme="dark"]) .callout-warning span,
html[data-theme="light"] .callout-warning span {
    color: #000000 !important;
}

html:not([data-theme="dark"]) .callout-warning i,
html[data-theme="light"] .callout-warning i {
    color: #ef4444 !important;
}

html:not([data-theme="dark"]) .callout-gold,
html[data-theme="light"] .callout-gold {
    background: #ffffff !important;
    border-left: 4px solid #d97706 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

html:not([data-theme="dark"]) .callout-gold strong,
html[data-theme="light"] .callout-gold strong {
    color: #0f172a !important;
}

html:not([data-theme="dark"]) .tag-yellow,
html[data-theme="light"] .tag-yellow {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
    box-shadow: 0 1px 2px rgba(180, 83, 9, 0.08) !important;
}

html:not([data-theme="dark"]) .metric-box.metric-box-gold,
html[data-theme="light"] .metric-box.metric-box-gold {
    border-top: 3px solid #d97706 !important;
}

html:not([data-theme="dark"]) .metric-val.metric-val-gold,
html[data-theme="light"] .metric-val.metric-val-gold {
    color: #b45309 !important;
}


        /* High-Contrast Light Theme Tag Pills & Badges */
        html[data-theme="light"] .tag-purple,
        html:not([data-theme="dark"]) .tag-purple {
            background: #f3e8ff !important;
            color: #581c87 !important;
            border: 1px solid #d8b4fe !important;
            font-weight: 800 !important;
        }
        html[data-theme="light"] .tag-emerald,
        html:not([data-theme="dark"]) .tag-emerald {
            background: #ecfdf5 !important;
            color: #064e3b !important;
            border: 1px solid #a7f3d0 !important;
            font-weight: 800 !important;
        }
        html[data-theme="light"] .tag-yellow,
        html:not([data-theme="dark"]) .tag-yellow {
            background: #fefce8 !important;
            color: #78350f !important;
            border: 1px solid #fde047 !important;
            font-weight: 800 !important;
        }
        html[data-theme="light"] .tag-cyan,
        html:not([data-theme="dark"]) .tag-cyan,
        html[data-theme="light"] .tag-blue,
        html:not([data-theme="dark"]) .tag-blue {
            background: #ffffff !important;
            color: #0369a1 !important;
            border: 1.5px solid #38bdf8 !important;
            font-weight: 800 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        }
        html[data-theme="light"] .tag-red,
        html:not([data-theme="dark"]) .tag-red,
        html[data-theme="light"] .tag-rose,
        html:not([data-theme="dark"]) .tag-rose {
            background: #ffffff !important;
            color: #b91c1c !important;
            border: 1.5px solid #f87171 !important;
            font-weight: 800 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        }
        html[data-theme="light"] .tag-green,
        html:not([data-theme="dark"]) .tag-green,
        html[data-theme="light"] .tag-emerald,
        html:not([data-theme="dark"]) .tag-emerald {
            background: #ffffff !important;
            color: #15803d !important;
            border: 1.5px solid #4ade80 !important;
            font-weight: 800 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        }
        html[data-theme="light"] .tag-yellow,
        html:not([data-theme="dark"]) .tag-yellow,
        html[data-theme="light"] .tag-gold,
        html:not([data-theme="dark"]) .tag-gold {
            background: #ffffff !important;
            color: #b45309 !important;
            border: 1.5px solid #facc15 !important;
            font-weight: 800 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        }
        html[data-theme="light"] .confidential-tag,
        html:not([data-theme="dark"]) .confidential-tag {
            background: #ffffff !important;
            color: #6b21a8 !important;
            border: 1.5px solid #d8b4fe !important;
            font-weight: 800 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        }
        html[data-theme="light"] .metric-val-purple,
        html:not([data-theme="dark"]) .metric-val-purple {
            color: #6b21a8 !important;
        }
        html[data-theme="light"] .metric-val-blue,
        html:not([data-theme="dark"]) .metric-val-blue {
            color: #0369a1 !important;
        }
        html[data-theme="light"] .metric-val-gold,
        html:not([data-theme="dark"]) .metric-val-gold {
            color: #b45309 !important;
        }
        html[data-theme="light"] .metric-val-green,
        html:not([data-theme="dark"]) .metric-val-green {
            color: #15803d !important;
        }
        html[data-theme="light"] .metric-val-rose,
        html:not([data-theme="dark"]) .metric-val-rose,
        html[data-theme="light"] .metric-val-red,
        html:not([data-theme="dark"]) .metric-val-red {
            color: #b91c1c !important;
        }
        html[data-theme="light"] .paper-card,
        html:not([data-theme="dark"]) .paper-card {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
        }
        html[data-theme="light"] .paper-card:hover,
        html:not([data-theme="dark"]) .paper-card:hover {
            border-color: #0284c7 !important;
            box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08) !important;
        }
        html[data-theme="light"] .paper-title,
        html:not([data-theme="dark"]) .paper-title {
            color: #0f172a !important;
        }
        html[data-theme="light"] .paper-authors,
        html:not([data-theme="dark"]) .paper-authors {
            color: #0369a1 !important;
            font-weight: 700 !important;
        }
        html[data-theme="light"] .paper-summary,
        html:not([data-theme="dark"]) .paper-summary {
            color: #334155 !important;
        }
        html[data-theme="light"] .paper-summary strong,
        html:not([data-theme="dark"]) .paper-summary strong {
            color: #0f172a !important;
        }
        html[data-theme="light"] .paper-link,
        html:not([data-theme="dark"]) .paper-link {
            color: #0284c7 !important;
        }
        html[data-theme="light"] .paper-link:hover,
        html:not([data-theme="dark"]) .paper-link:hover {
            color: #0369a1 !important;
        }
        html[data-theme="light"] .sop-step,
        html:not([data-theme="dark"]) .sop-step {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        }
        html[data-theme="light"] .sop-num,
        html:not([data-theme="dark"]) .sop-num {
            background: #ffffff !important;
            color: #0284c7 !important;
            border: 2px solid #0284c7 !important;
        }
        html[data-theme="light"] .sop-content h4,
        html:not([data-theme="dark"]) .sop-content h4 {
            color: #0f172a !important;
        }
        html[data-theme="light"] .sop-content p,
        html:not([data-theme="dark"]) .sop-content p {
            color: #334155 !important;
        }



/* ==========================================================================
   Article AC (International Markets Performance Audit) & Global Pure-White Mode
   ========================================================================== */

/* Pure White Page & Body in Light Mode */
html:not([data-theme="dark"]),
html[data-theme="light"],
html:not([data-theme="dark"]) body,
html[data-theme="light"] body {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Ensure Page Container has no gray bleed */
html:not([data-theme="dark"]) .page-container,
html[data-theme="light"] .page-container {
    background-color: transparent !important;
}

/* Article AC Memo Card & Main Content Cards */
html:not([data-theme="dark"]) .memo-card,
html[data-theme="light"] .memo-card,
html:not([data-theme="dark"]) .content-card,
html[data-theme="light"] .content-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Article AC Highlight Box */
html:not([data-theme="dark"]) .highlight-box,
html[data-theme="light"] .highlight-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Article AC KPI Cards */
html:not([data-theme="dark"]) .kpi-card,
html[data-theme="light"] .kpi-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

html:not([data-theme="dark"]) .kpi-val,
html[data-theme="light"] .kpi-val {
    color: #0f172a !important;
}

html:not([data-theme="dark"]) .kpi-label,
html[data-theme="light"] .kpi-label,
html:not([data-theme="dark"]) .kpi-sub,
html[data-theme="light"] .kpi-sub {
    color: #64748b !important;
}

/* Article AC Matrix Table */
html:not([data-theme="dark"]) .matrix-table-wrap,
html[data-theme="light"] .matrix-table-wrap {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

html:not([data-theme="dark"]) table.matrix-table th,
html[data-theme="light"] table.matrix-table th {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 8px 8px !important;
    font-size: 12px !important;
}

html:not([data-theme="dark"]) table.matrix-table td,
html[data-theme="light"] table.matrix-table td {
    background: #ffffff !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
}

html:not([data-theme="dark"]) table.matrix-table th.col-center,
html:not([data-theme="dark"]) table.matrix-table td.col-center,
html[data-theme="light"] table.matrix-table th.col-center,
html[data-theme="light"] table.matrix-table td.col-center {
    text-align: center !important;
}

html:not([data-theme="dark"]) table.matrix-table tr:hover td,
html[data-theme="light"] table.matrix-table tr:hover td {
    background: #f0f9ff !important;
}

/* Article AC Chart Container Box */
html:not([data-theme="dark"]) .chart-container-box,
html[data-theme="light"] .chart-container-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html:not([data-theme="dark"]) .chart-title,
html[data-theme="light"] .chart-title {
    color: #0f172a !important;
}

html:not([data-theme="dark"]) .chart-subtitle,
html[data-theme="light"] .chart-subtitle {
    color: #64748b !important;
}

/* Article AC Tab Buttons */
html:not([data-theme="dark"]) .tab-btn-group,
html[data-theme="light"] .tab-btn-group {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

html:not([data-theme="dark"]) .tab-btn,
html[data-theme="light"] .tab-btn {
    background: transparent !important;
    color: #64748b !important;
}

html:not([data-theme="dark"]) .tab-btn.active,
html[data-theme="light"] .tab-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* Article AC Country Deconstruction Cards */
html:not([data-theme="dark"]) .country-card,
html[data-theme="light"] .country-card {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

html:not([data-theme="dark"]) .country-title,
html[data-theme="light"] .country-title {
    color: #0f172a !important;
}

html:not([data-theme="dark"]) .section-header,
html[data-theme="light"] .section-header {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html:not([data-theme="dark"]) .confidential-header,
html[data-theme="light"] .confidential-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

html:not([data-theme="dark"]) .h1-title,
html[data-theme="light"] .h1-title {
    color: #0f172a !important;
}

html:not([data-theme="dark"]) .memo-subtitle,
html[data-theme="light"] .memo-subtitle {
    color: #475569 !important;
}

/* All Callouts and Items in Index */
html:not([data-theme="dark"]) .faq-item,
html[data-theme="light"] .faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}
