/* NewsFlow Custom Editorial Stylesheet */
/* Google Fonts loaded via preconnected <link> in HTML <head> for zero-delay Core Web Vitals */

:root, html[data-theme="light"] {
    --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', Times, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --color-eu-blue: #003399;
    --color-eu-yellow: #FFCC00;
    
    /* 1. Light Mode (Daylight Paper) */
    --theme-bg: #fafaf9;
    --theme-surface: #ffffff;
    --theme-surface-subtle: #f8fafc;
    --theme-surface-hover: #f1f5f9;
    --theme-border: #e2e8f0;
    --theme-border-subtle: #f1f5f9;
    --theme-border-input: #cbd5e1;
    --theme-text-primary: #0f172a;
    --theme-text-secondary: #475569;
    --theme-text-muted: #64748b;
    --theme-accent: #003399;
    --theme-accent-hover: #1e40af;
    --theme-accent-light: #eff6ff;
    --theme-header-bg: #ffffff;
    --theme-header-border: #e7e5e4;
    --theme-nav-bg: rgba(250, 250, 249, 0.95);
    --theme-input-bg: #fafaf9;
    --theme-input-text: #0f172a;
    --theme-pill-bg: #f5f5f4;
    --theme-pill-border: #d6d3d1;
    --theme-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
    --theme-selection-bg: #dbeafe;
    --theme-selection-text: #003399;
}

html[data-theme="dark"], body.theme-dark {
    /* 2. Dark Mode (Midnight Slate) */
    --theme-bg: #0b1120;
    --theme-surface: #131c31;
    --theme-surface-subtle: #19243c;
    --theme-surface-hover: #202e4d;
    --theme-border: #1e293b;
    --theme-border-subtle: #182236;
    --theme-border-input: #293854;
    --theme-text-primary: #f8fafc;
    --theme-text-secondary: #cbd5e1;
    --theme-text-muted: #94a3b8;
    --theme-accent: #38bdf8;
    --theme-accent-hover: #60a5fa;
    --theme-accent-light: rgba(56, 189, 248, 0.12);
    --theme-header-bg: #0f172a;
    --theme-header-border: #1e293b;
    --theme-nav-bg: rgba(15, 23, 42, 0.94);
    --theme-input-bg: #16223a;
    --theme-input-text: #f8fafc;
    --theme-pill-bg: #111a2e;
    --theme-pill-border: #223252;
    --theme-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
    --theme-selection-bg: #1e3a8a;
    --theme-selection-text: #93c5fd;
}

html[data-theme="night"], body.theme-night {
    /* 3. Night Mode (Pure OLED Warm Eye-Care) */
    --theme-bg: #000000;
    --theme-surface: #0a0a0a;
    --theme-surface-subtle: #121212;
    --theme-surface-hover: #1c1c1c;
    --theme-border: #222222;
    --theme-border-subtle: #191919;
    --theme-border-input: #2e2e2e;
    --theme-text-primary: #f5f5f4;
    --theme-text-secondary: #d6d3d1;
    --theme-text-muted: #a8a29e;
    --theme-accent: #f59e0b;
    --theme-accent-hover: #fbbf24;
    --theme-accent-light: rgba(245, 158, 11, 0.12);
    --theme-header-bg: #050505;
    --theme-header-border: #1f1f1f;
    --theme-nav-bg: rgba(10, 10, 10, 0.94);
    --theme-input-bg: #121212;
    --theme-input-text: #f5f5f4;
    --theme-pill-bg: #111111;
    --theme-pill-border: #2b2b2b;
    --theme-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
    --theme-selection-bg: #78350f;
    --theme-selection-text: #fef3c7;
}

body {
    font-family: var(--font-sans);
    color: var(--theme-text-primary);
    background-color: var(--theme-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Fluid Media & Overflow Protection */
img, video, canvas, svg {
    max-width: 100%;
}

img {
    height: auto;
}

/* Universal Headline Word Wrapping */
h1, h2, h3, h4, h5, h6, .font-serif-headline {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Touch-optimized horizontal scrolling without visual scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* Safe Area Inset Support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: max(1.5rem, calc(1rem + env(safe-area-inset-bottom)));
    }
}

/* Reading progress bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #003399;
    width: 0%;
    z-index: 100;
    transition: width 0.1s ease-out;
}

/* Editorial article content styling */
.article-body p {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: #334155;
}

@media (min-width: 640px) {
    .article-body p {
        font-size: 1.125rem;
        line-height: 1.85;
        margin-bottom: 1.5rem;
    }
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

@media (min-width: 640px) {
    .article-body h2 {
        font-size: 1.75rem;
        margin-top: 2.25rem;
        margin-bottom: 1rem;
    }
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.article-body ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #334155;
    line-height: 1.75;
}

.article-body blockquote {
    border-left: 4px solid #003399;
    padding-left: 1.25rem;
    font-style: italic;
    margin: 1.75rem 0;
    color: #475569;
}

/* Subtle line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   NEWS MODE THEME SWITCHER CONTROLS
   ========================================================================== */

/* Desktop 3-Theme Switcher Pill */
.theme-switcher-pill {
    background-color: var(--theme-pill-bg) !important;
    border-color: var(--theme-pill-border) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-switcher-btn {
    color: var(--theme-text-muted) !important;
    border: 1px solid transparent;
    cursor: pointer;
}
.theme-switcher-btn:hover {
    color: var(--theme-text-primary) !important;
}

/* Light Active Button */
html[data-theme="light"] .theme-switcher-btn[data-theme-choice="light"],
.theme-switcher-btn[data-theme-choice="light"].active-theme {
    background-color: #ffffff !important;
    color: #003399 !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    font-weight: 800 !important;
}

/* Dark Active Button */
html[data-theme="dark"] .theme-switcher-btn[data-theme-choice="dark"],
.theme-switcher-btn[data-theme-choice="dark"].active-theme {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 1px 6px rgba(56, 189, 248, 0.25) !important;
    font-weight: 800 !important;
}

/* Night Active Button */
html[data-theme="night"] .theme-switcher-btn[data-theme-choice="night"],
.theme-switcher-btn[data-theme-choice="night"].active-theme {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.32) 100%) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 1px 6px rgba(245, 158, 11, 0.25) !important;
    font-weight: 800 !important;
}

/* Mobile Theme Selector Box */
.mobile-theme-box {
    background-color: var(--theme-surface-subtle) !important;
    border-color: var(--theme-border) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-theme-choice-btn {
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text-secondary) !important;
    cursor: pointer;
}
.mobile-theme-choice-btn:hover {
    color: var(--theme-text-primary) !important;
}

/* Mobile Active Theme States */
html[data-theme="light"] .mobile-theme-choice-btn[data-theme-choice="light"],
.mobile-theme-choice-btn[data-theme-choice="light"].active-theme {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #003399 !important;
    font-weight: 800 !important;
}

html[data-theme="dark"] .mobile-theme-choice-btn[data-theme-choice="dark"],
.mobile-theme-choice-btn[data-theme-choice="dark"].active-theme {
    background-color: rgba(56, 189, 248, 0.15) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

html[data-theme="night"] .mobile-theme-choice-btn[data-theme-choice="night"],
.mobile-theme-choice-btn[data-theme-choice="night"].active-theme {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
    font-weight: 800 !important;
}

#mobile-theme-active-tag {
    background-color: var(--theme-accent) !important;
    color: #ffffff !important;
}
html[data-theme="night"] #mobile-theme-active-tag {
    color: #000000 !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   GLOBAL COMPONENT OVERRIDES: DARK & NIGHT MODES
   ========================================================================== */

/* 1. Global Viewport, Body & Selection */
html[data-theme="dark"] body,
html[data-theme="night"] body {
    background-color: var(--theme-bg) !important;
    color: var(--theme-text-primary) !important;
}

html[data-theme="dark"] ::selection {
    background-color: var(--theme-selection-bg) !important;
    color: var(--theme-selection-text) !important;
}
html[data-theme="night"] ::selection {
    background-color: var(--theme-selection-bg) !important;
    color: var(--theme-selection-text) !important;
}

/* 2. Header & Sticky Navigation Bars */
html[data-theme="dark"] header,
html[data-theme="night"] header {
    background-color: var(--theme-header-bg) !important;
    border-color: var(--theme-header-border) !important;
}

html[data-theme="dark"] nav#main-category-nav,
html[data-theme="night"] nav#main-category-nav {
    background-color: var(--theme-nav-bg) !important;
    border-color: var(--theme-header-border) !important;
}

html[data-theme="dark"] nav#main-category-nav a,
html[data-theme="night"] nav#main-category-nav a {
    color: var(--theme-text-secondary);
}
html[data-theme="dark"] nav#main-category-nav a:hover,
html[data-theme="night"] nav#main-category-nav a:hover {
    color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
}

/* 3. Surface & Card Backgrounds */
html[data-theme="dark"] .bg-white,
html[data-theme="night"] .bg-white {
    background-color: var(--theme-surface) !important;
}

html[data-theme="dark"] .bg-stone-50,
html[data-theme="dark"] .bg-stone-100,
html[data-theme="dark"] .bg-stone-100\/80,
html[data-theme="dark"] .bg-stone-100\/50,
html[data-theme="dark"] .bg-stone-200,
html[data-theme="dark"] .bg-stone-50\/50,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-blue-50,
html[data-theme="dark"] .bg-blue-50\/40,
html[data-theme="dark"] .bg-blue-50\/30,
html[data-theme="night"] .bg-stone-50,
html[data-theme="night"] .bg-stone-100,
html[data-theme="night"] .bg-stone-100\/80,
html[data-theme="night"] .bg-stone-100\/50,
html[data-theme="night"] .bg-stone-200,
html[data-theme="night"] .bg-stone-50\/50,
html[data-theme="night"] .bg-slate-50,
html[data-theme="night"] .bg-slate-100,
html[data-theme="night"] .bg-blue-50,
html[data-theme="night"] .bg-blue-50\/40,
html[data-theme="night"] .bg-blue-50\/30 {
    background-color: var(--theme-surface-subtle) !important;
}

/* 4. Borders & Dividers */
html[data-theme="dark"] .border-stone-100,
html[data-theme="dark"] .border-stone-200,
html[data-theme="dark"] .border-stone-300,
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-300,
html[data-theme="dark"] .border-slate-900,
html[data-theme="dark"] .border-blue-100,
html[data-theme="dark"] .border-blue-200,
html[data-theme="dark"] .border-blue-300,
html[data-theme="night"] .border-stone-100,
html[data-theme="night"] .border-stone-200,
html[data-theme="night"] .border-stone-300,
html[data-theme="night"] .border-slate-200,
html[data-theme="night"] .border-slate-300,
html[data-theme="night"] .border-slate-900,
html[data-theme="night"] .border-blue-100,
html[data-theme="night"] .border-blue-200,
html[data-theme="night"] .border-blue-300 {
    border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .divide-stone-100 > :not([hidden]) ~ :not([hidden]),
html[data-theme="night"] .divide-stone-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--theme-border-subtle) !important;
}

/* 5. Typography Hierarchy */
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800,
html[data-theme="night"] .text-slate-900,
html[data-theme="night"] .text-slate-800 {
    color: var(--theme-text-primary) !important;
}

html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-600,
html[data-theme="night"] .text-slate-700,
html[data-theme="night"] .text-slate-600 {
    color: var(--theme-text-secondary) !important;
}

html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-400,
html[data-theme="night"] .text-slate-500,
html[data-theme="night"] .text-slate-400 {
    color: var(--theme-text-muted) !important;
}

/* 6. Links & Accent Accoutrements */
html[data-theme="dark"] a.text-eu-blue,
html[data-theme="dark"] .text-eu-blue,
html[data-theme="dark"] a:hover.hover\:text-eu-blue,
html[data-theme="dark"] .group:hover .group-hover\:text-eu-blue,
html[data-theme="dark"] #country-dropdown-btn:hover {
    color: var(--theme-accent) !important;
}

html[data-theme="night"] a.text-eu-blue,
html[data-theme="night"] .text-eu-blue,
html[data-theme="night"] a:hover.hover\:text-eu-blue,
html[data-theme="night"] .group:hover .group-hover\:text-eu-blue,
html[data-theme="night"] #country-dropdown-btn:hover {
    color: var(--theme-accent) !important;
}

html[data-theme="dark"] .bg-eu-blue {
    background-color: #0284c7 !important;
}
html[data-theme="night"] .bg-eu-blue {
    background-color: #d97706 !important;
}

/* 7. Input Controls, Search Bars & Forms */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] textarea,
html[data-theme="night"] input[type="text"],
html[data-theme="night"] input[type="search"],
html[data-theme="night"] input[type="email"],
html[data-theme="night"] textarea {
    background-color: var(--theme-input-bg) !important;
    border-color: var(--theme-border-input) !important;
    color: var(--theme-input-text) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="night"] input::placeholder {
    color: var(--theme-text-muted) !important;
}

/* 8. Popovers, Dropdowns & Modals */
html[data-theme="dark"] #country-dropdown-menu,
html[data-theme="dark"] #nav-all-categories-dropdown,
html[data-theme="dark"] #market-selector-menu,
html[data-theme="dark"] #mobile-menu,
html[data-theme="night"] #country-dropdown-menu,
html[data-theme="night"] #nav-all-categories-dropdown,
html[data-theme="night"] #market-selector-menu,
html[data-theme="night"] #mobile-menu {
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow) !important;
}

html[data-theme="dark"] #country-dropdown-btn,
html[data-theme="dark"] #market-selector-btn,
html[data-theme="night"] #country-dropdown-btn,
html[data-theme="night"] #market-selector-btn {
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text-primary) !important;
}

html[data-theme="dark"] #country-dropdown-menu a:hover,
html[data-theme="dark"] #nav-all-categories-dropdown a:hover,
html[data-theme="dark"] #mobile-menu a:hover,
html[data-theme="dark"] #market-selector-menu button:hover,
html[data-theme="night"] #country-dropdown-menu a:hover,
html[data-theme="night"] #nav-all-categories-dropdown a:hover,
html[data-theme="night"] #mobile-menu a:hover,
html[data-theme="night"] #market-selector-menu button:hover {
    background-color: var(--theme-surface-hover) !important;
}

/* 9. Article Detail View Styling */
/* Standfirst Summary */
html[data-theme="dark"] .article-standfirst,
html[data-theme="dark"] p.bg-blue-50\/30 {
    background-color: rgba(56, 189, 248, 0.08) !important;
    border-left-color: #38bdf8 !important;
    color: #e2e8f0 !important;
}
html[data-theme="night"] .article-standfirst,
html[data-theme="night"] p.bg-blue-50\/30 {
    background-color: rgba(245, 158, 11, 0.08) !important;
    border-left-color: #f59e0b !important;
    color: #f5f5f4 !important;
}

/* Article Body Typography */
html[data-theme="dark"] .article-body p {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .article-body strong,
html[data-theme="dark"] .article-body b {
    color: #f8fafc !important;
}
html[data-theme="dark"] .article-body a {
    color: #38bdf8 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html[data-theme="dark"] .article-body a:hover {
    color: #7dd3fc !important;
}
html[data-theme="dark"] .article-body h2,
html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-body h4 {
    color: #f8fafc !important;
}
html[data-theme="dark"] .article-body blockquote {
    border-left-color: var(--theme-accent) !important;
    color: #94a3b8 !important;
    background-color: var(--theme-surface-subtle) !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
}
html[data-theme="dark"] .article-body ul,
html[data-theme="dark"] .article-body ol,
html[data-theme="dark"] .article-body li {
    color: #cbd5e1 !important;
}

html[data-theme="night"] .article-body p {
    color: #d6d3d1 !important;
}
html[data-theme="night"] .article-body strong,
html[data-theme="night"] .article-body b {
    color: #f5f5f4 !important;
}
html[data-theme="night"] .article-body a {
    color: #fbbf24 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html[data-theme="night"] .article-body a:hover {
    color: #fde68a !important;
}
html[data-theme="night"] .article-body h2,
html[data-theme="night"] .article-body h3,
html[data-theme="night"] .article-body h4 {
    color: #f5f5f4 !important;
}
html[data-theme="night"] .article-body blockquote {
    border-left-color: var(--theme-accent) !important;
    color: #a8a29e !important;
    background-color: var(--theme-surface-subtle) !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
}
html[data-theme="night"] .article-body ul,
html[data-theme="night"] .article-body ol,
html[data-theme="night"] .article-body li {
    color: #d6d3d1 !important;
}

/* 9.1 Article Verified Key Facts & Key Takeaways Box */
html[data-theme="dark"] .article-key-facts-card {
    background-color: #131c31 !important;
    border-color: #263554 !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .article-key-facts-card h3 {
    color: #f8fafc !important;
}
html[data-theme="dark"] .article-key-facts-card svg,
html[data-theme="dark"] .article-key-facts-card span.text-eu-blue {
    color: #38bdf8 !important;
}
html[data-theme="dark"] .article-key-facts-card ul,
html[data-theme="dark"] .article-key-facts-card li,
html[data-theme="dark"] .article-key-facts-card li span {
    color: #e2e8f0 !important;
}

html[data-theme="night"] .article-key-facts-card {
    background-color: #0d0d0d !important;
    border-color: #262626 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme="night"] .article-key-facts-card h3 {
    color: #f5f5f4 !important;
}
html[data-theme="night"] .article-key-facts-card svg,
html[data-theme="night"] .article-key-facts-card span.text-eu-blue {
    color: #f59e0b !important;
}
html[data-theme="night"] .article-key-facts-card ul,
html[data-theme="night"] .article-key-facts-card li,
html[data-theme="night"] .article-key-facts-card li span {
    color: #f5f5f4 !important;
}

/* 9.2 Product Deal Information Box (Retail & Tech Deals) */
html[data-theme="dark"] .article-deal-card {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.5) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .article-deal-card .deal-retailer-name,
html[data-theme="dark"] .article-deal-card .text-emerald-900 {
    color: #6ee7b7 !important;
}
html[data-theme="dark"] .article-deal-card .deal-category-name {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .article-deal-card .deal-status-badge.bg-emerald-100 {
    background-color: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
}
html[data-theme="dark"] .article-deal-card .deal-status-badge.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}
html[data-theme="dark"] .article-deal-card .deal-product-title,
html[data-theme="dark"] .article-deal-card h4 {
    color: #ffffff !important;
}
html[data-theme="dark"] .article-deal-card .deal-price-current,
html[data-theme="dark"] .article-deal-card .text-emerald-700 {
    color: #34d399 !important;
}
html[data-theme="dark"] .article-deal-card .deal-price-original {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .article-deal-card .deal-action-row {
    border-color: rgba(52, 211, 153, 0.25) !important;
}
html[data-theme="dark"] .article-deal-card .deal-action-btn {
    background-color: #059669 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .article-deal-card .deal-action-btn:hover {
    background-color: #10b981 !important;
}
html[data-theme="dark"] .article-deal-card .deal-disclosure {
    color: #94a3b8 !important;
}

html[data-theme="night"] .article-deal-card {
    background: linear-gradient(135deg, #071710 0%, #0c0c0c 100%) !important;
    border-color: #144633 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.9) !important;
}
html[data-theme="night"] .article-deal-card .deal-retailer-name,
html[data-theme="night"] .article-deal-card .text-emerald-900 {
    color: #a7f3d0 !important;
}
html[data-theme="night"] .article-deal-card .deal-category-name {
    color: #d6d3d1 !important;
}
html[data-theme="night"] .article-deal-card .deal-status-badge.bg-emerald-100 {
    background-color: #062b1e !important;
    color: #6ee7b7 !important;
    border-color: #0f5132 !important;
}
html[data-theme="night"] .article-deal-card .deal-status-badge.bg-red-100 {
    background-color: #2b0e0e !important;
    color: #fca5a5 !important;
    border-color: #571c1c !important;
}
html[data-theme="night"] .article-deal-card .deal-product-title,
html[data-theme="night"] .article-deal-card h4 {
    color: #f5f5f4 !important;
}
html[data-theme="night"] .article-deal-card .deal-price-current,
html[data-theme="night"] .article-deal-card .text-emerald-700 {
    color: #6ee7b7 !important;
}
html[data-theme="night"] .article-deal-card .deal-price-original {
    color: #a8a29e !important;
}
html[data-theme="night"] .article-deal-card .deal-action-row {
    border-color: #1a382c !important;
}
html[data-theme="night"] .article-deal-card .deal-action-btn {
    background-color: #047857 !important;
    color: #ffffff !important;
}
html[data-theme="night"] .article-deal-card .deal-action-btn:hover {
    background-color: #059669 !important;
}
html[data-theme="night"] .article-deal-card .deal-disclosure {
    color: #a8a29e !important;
}

/* 9.3 Financial & Market Information Disclosure */
html[data-theme="dark"] .article-financial-disclaimer {
    background-color: #131c31 !important;
    border-color: #263554 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .article-financial-disclaimer p.font-bold {
    color: #f8fafc !important;
}

html[data-theme="night"] .article-financial-disclaimer {
    background-color: #0d0d0d !important;
    border-color: #262626 !important;
    color: #d6d3d1 !important;
}
html[data-theme="night"] .article-financial-disclaimer p.font-bold {
    color: #f5f5f4 !important;
}

/* 9.4 Source Attribution & Citations Box */
html[data-theme="dark"] .article-sources-card {
    background-color: rgba(19, 28, 49, 0.75) !important;
    border-color: #263554 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .article-sources-card div > span:first-child {
    color: #38bdf8 !important;
}
html[data-theme="dark"] .article-sources-card .bg-white {
    background-color: #16223a !important;
    border-color: #253856 !important;
}
html[data-theme="dark"] .article-sources-card .bg-white span.font-bold {
    color: #f8fafc !important;
}
html[data-theme="dark"] .article-sources-card .bg-white a {
    background-color: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

html[data-theme="night"] .article-sources-card {
    background-color: #0c0c0c !important;
    border-color: #222222 !important;
    color: #d6d3d1 !important;
}
html[data-theme="night"] .article-sources-card div > span:first-child {
    color: #f59e0b !important;
}
html[data-theme="night"] .article-sources-card .bg-white {
    background-color: #141414 !important;
    border-color: #262626 !important;
}
html[data-theme="night"] .article-sources-card .bg-white span.font-bold {
    color: #f5f5f4 !important;
}
html[data-theme="night"] .article-sources-card .bg-white a {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}

/* 9.5 Story Scenes / Visual Chapters Figcaption */
html[data-theme="dark"] .story-scenes-section figure figcaption {
    background-color: #162035 !important;
}
html[data-theme="night"] .story-scenes-section figure figcaption {
    background-color: #141414 !important;
}

/* 9.6 Comments Section Overrides */
html[data-theme="dark"] #comments .bg-stone-50 {
    background-color: #131c31 !important;
    border-color: #263554 !important;
}
html[data-theme="dark"] #comments .bg-white {
    background-color: #131c31 !important;
    border-color: #263554 !important;
}
html[data-theme="dark"] #comments #comment-submit-btn {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] #comments #comment-submit-btn:hover {
    background-color: #0369a1 !important;
}
html[data-theme="dark"] #comments .bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}

html[data-theme="night"] #comments .bg-stone-50 {
    background-color: #0e0e0e !important;
    border-color: #262626 !important;
}
html[data-theme="night"] #comments .bg-white {
    background-color: #0e0e0e !important;
    border-color: #262626 !important;
}
html[data-theme="night"] #comments #comment-submit-btn {
    background-color: #f59e0b !important;
    color: #000000 !important;
}
html[data-theme="night"] #comments #comment-submit-btn:hover {
    background-color: #d97706 !important;
}
html[data-theme="night"] #comments .bg-emerald-50 {
    background-color: #062b1e !important;
    color: #6ee7b7 !important;
    border-color: #0f5132 !important;
}

/* 10. Reading Progress Bar */
html[data-theme="dark"] #reading-progress {
    background-color: #38bdf8 !important;
}
html[data-theme="night"] #reading-progress {
    background-color: #f59e0b !important;
}

/* 11. Footer Section */
html[data-theme="dark"] footer {
    background-color: #070b14 !important;
    border-color: #1e293b !important;
}
html[data-theme="night"] footer {
    background-color: #000000 !important;
    border-color: #1a1a1a !important;
}

/* Print Styles */
@media print {
    #reading-progress, header, footer, .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
