/* The Common Path — shared stylesheet (used by every language version) */
:root {
    --parchment: #FDFCF8;
    --prophetic-green: #065F46;
    --antique-gold: #D4AF37;
    --gold-ink: #7F6318;          /* gold for TEXT on light backgrounds (4.5:1 on parchment; #D4AF37 is 2:1) */
    --midnight-blue: #111827;
}

* {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--parchment);
    color: var(--midnight-blue);
    overflow-x: hidden;
}

.font-serif-display {
    font-family: 'Cormorant Garamond', serif;
}

/* Arabic script (Qur'anic verses) - previously only defined inside the print stylesheet */
.font-arabic {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    direction: rtl;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--parchment);
}
::-webkit-scrollbar-thumb {
    background: var(--antique-gold);
    border-radius: 4px;
}

/* Particle background */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--antique-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.6; }
}

/* Progress bar */
.progress-bar {
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--antique-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Enhanced Focus Indicators for Keyboard Navigation */
*:focus {
    outline: none;
}

/* Navigation links focus */
.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Button focus */
button:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* Case card focus */
.case-card:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 2px;
    transform: translateY(-2px);
}

/* Input focus */
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--antique-gold);
    outline-offset: 2px;
    border-color: var(--antique-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Search input focus */
#caseSearch:focus-visible {
    outline: 2px solid var(--antique-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--prophetic-green);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-to-main:focus {
    top: 0;
}

/* Hero animations */
.hero-fade-in {
    animation: fadeInUp 1s ease-out;
}

.hero-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo animation */
.logo-pulse {
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)); }
}

/* Case cards */
.case-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.case-card:hover::before {
    left: 100%;
}

.case-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.12);
    border-color: var(--antique-gold);
}

.case-card:active {
    transform: scale(0.98);
}

/* Staggered card animation */
.case-card-animate {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInCard 0.5s ease-out forwards;
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Expanded case transitions */
.expanded-enter {
    /* no "forwards": a retained transform would turn the overlay into the containing block of its fixed controls,
       which would then scroll away with the text */
    animation: expandIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.expanded-exit {
    animation: expandOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Typing effect for headers */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--antique-gold);
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

/* CTA button effects */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(6, 95, 70, 0.3);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    transform: translateX(0);
}

.hamburger-line {
    transition: all 0.3s ease;
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Share toast */
.share-toast {
    animation: slideInToast 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Decorative elements */
.decorative-line {
    background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
}

/* Form focus effects */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.15);
}

/* Next/Prev case navigation */
.case-nav-btn {
    transition: all 0.3s ease;
}

.case-nav-btn:hover {
    transform: scale(1.1);
}

.case-nav-btn:active {
    transform: scale(0.95);
}

/* Haptic feedback simulation for touch */
@media (hover: none) {
    .case-card:active,
    .cta-button:active,
    .case-nav-btn:active {
        transform: scale(0.97);
    }
}

/* Section dividers */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--antique-gold);
    border-radius: 2px;
}

/* Glowing effect for important elements */
.glow-gold {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reading time indicator */
.reading-time {
    font-size: 0.875rem;
    color: var(--midnight-blue);
    opacity: 0.6;
}

/* Keyboard navigation focus styles */
*:focus-visible {
    outline: 2px solid var(--antique-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
}

/* Print Styles */
@media print {
    .no-print,
    nav,
    .mobile-menu,
    button,
    #toast,
    #keyboardHint,
    #progressContainer,
    .particles,
    .share-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .case-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    #expandedCase {
        position: static;
        overflow: visible;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Language Selector Styles */
.language-selector { position: relative; }
#langDropdown { animation: slideDown 0.2s ease-out; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-option { cursor: pointer; transition: background-color 0.2s; }
@media print { .language-selector { display: none !important; } }

/* ===== v2 additions (generated block start) ===== */

/* Honeypot field: kept out of sight and out of the tab order (screen readers skip it via aria-hidden) */
.hp-field { position:absolute !important; left:-10000px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden !important; }

/* Case cards are real links now */
a.case-card { display:block; color:inherit; text-decoration:none; }
.case-badge { display:inline-flex; align-items:center; gap:.25rem; font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; border-radius:9999px; padding:.1rem .5rem; border:1px solid transparent; line-height:1.3; }
.case-badge-done { background:rgba(6,95,70,.10); color:#065F46; border-color:rgba(6,95,70,.25); }
.case-badge-progress { background:rgba(212,175,55,.14); color:#7A5E12; border-color:rgba(212,175,55,.35); }

/* Journey progress */
.journey-progress-track { height:6px; max-width:20rem; width:100%; border-radius:9999px; background:rgba(17,24,39,.08); overflow:hidden; }
.journey-progress-fill { height:100%; border-radius:9999px; background:linear-gradient(90deg, var(--emerald, #065F46), var(--antique-gold)); transition:width .6s cubic-bezier(.4,0,.2,1); }
.continue-card { transition:transform .3s ease, box-shadow .3s ease; }
.continue-card:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(17,24,39,.10); }

/* "What have you heard?" chips */
.chip { display:inline-flex; align-items:center; padding:.45rem .9rem; border-radius:9999px; border:1px solid rgba(212,175,55,.45); background:rgba(255,255,255,.7); color:#111827; font-size:.875rem; font-weight:500; line-height:1.2; text-decoration:none; transition:all .25s ease; backdrop-filter:blur(4px); }
.chip:hover { border-color:#065F46; background:#065F46; color:#fff; transform:translateY(-1px); box-shadow:0 8px 20px rgba(6,95,70,.18); }
.chip-start { border-color:#065F46; color:#065F46; background:rgba(6,95,70,.06); font-weight:600; }

/* Table of contents inside a case */
.case-toc { margin:0 0 2rem; padding:1rem 1.25rem; border:1px solid rgba(212,175,55,.35); border-left:4px solid var(--antique-gold); border-radius:0 .75rem .75rem 0; background:rgba(6,95,70,.04); }
.case-toc-title { font-size:.75rem; letter-spacing:.15em; text-transform:uppercase; font-weight:600; color:#065F46; margin-bottom:.5rem; }
.case-toc-list { list-style:decimal; margin:0 0 0 1.25rem; padding:0; columns:1; font-size:.95rem; line-height:1.5; }
.case-toc-list li { margin:.2rem 0; padding-left:.15rem; }
.toc-link { color:inherit; text-decoration:none; border-bottom:1px solid transparent; }
.toc-link:hover { color:#065F46; border-bottom-color:var(--antique-gold); }
@media (min-width:640px) { .case-toc-list { columns:2; column-gap:2rem; } }
#expandedCaseContent h3[id] { scroll-margin-top:5rem; }

/* Mobile language buttons */
.mobile-lang[aria-current="true"] { background:#065F46; color:#fff; border-color:#065F46; }

/* Reading tools popover */
#readingTools { z-index:70; }
.rt-btn { display:inline-flex; align-items:center; justify-content:center; gap:1px; width:2.75rem; height:2.25rem; border-radius:.5rem; border:1px solid rgba(212,175,55,.45); background:#fff; color:#111827; font-weight:600; font-family:'Cormorant Garamond', serif; transition:all .2s ease; }
.rt-btn:hover { border-color:#065F46; color:#065F46; }
.rt-theme { flex:1; padding:.4rem .25rem; border-radius:.5rem; border:1px solid rgba(212,175,55,.45); font-size:.8rem; font-weight:500; transition:all .2s ease; }
.rt-theme-light { background:#FDFCF8; color:#111827; }
.rt-theme-sepia { background:#F4ECD8; color:#4A3B1E; }
.rt-theme-dark { background:#12161C; color:#ECE7DC; }
.rt-theme[aria-checked="true"] { border-color:#065F46; box-shadow:0 0 0 2px rgba(6,95,70,.35); }
#expandedCaseContent { transition:zoom 0s; }

/* Quote toolbar (appears when text inside a case is selected) */
.quote-tools { position:fixed; z-index:80; display:flex; gap:.25rem; padding:.25rem; border-radius:.75rem; background:#111827; color:#fff; box-shadow:0 12px 30px rgba(0,0,0,.25); opacity:0; pointer-events:none; transform:translateY(4px); transition:opacity .15s ease, transform .15s ease; }
.quote-tools.visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.quote-tools-btn { display:inline-flex; align-items:center; gap:.4rem; padding:.4rem .7rem; border-radius:.5rem; font-size:.8rem; font-weight:500; color:#fff; white-space:nowrap; }
.quote-tools-btn:hover { background:rgba(255,255,255,.12); color:var(--antique-gold); }

/* End of the journey */
.journey-end .decorative-line { width:4rem; }

/* Reading themes (sepia / dark) — override the utility colours used inside the case view */
#expandedCase.theme-sepia { background-color:#F4ECD8; }
#expandedCase.theme-sepia .bg-white { background-color:#FBF5E6; }
#expandedCase.theme-sepia .bg-white\/95 { background-color:rgba(251,245,230,.95); }
#expandedCase.theme-sepia .border-gray-200 { border-color:#E4D8BE; }
#expandedCase.theme-sepia .bg-\[\#111827\]\/5 { background-color:rgba(92,72,32,.07); }
#expandedCase.theme-dark { background-color:#12161C; color:#ECE7DC; color-scheme:dark; }
#expandedCase.theme-dark .text-\[\#111827\] { color:#ECE7DC; }
#expandedCase.theme-dark .text-\[\#111827\]\/80 { color:rgba(236,231,220,.86); }
#expandedCase.theme-dark .text-\[\#111827\]\/70 { color:rgba(236,231,220,.78); }
#expandedCase.theme-dark .text-\[\#111827\]\/60 { color:rgba(236,231,220,.70); }
#expandedCase.theme-dark .text-\[\#111827\]\/50 { color:rgba(236,231,220,.62); }
#expandedCase.theme-dark .text-\[\#111827\]\/40 { color:rgba(236,231,220,.52); }
#expandedCase.theme-dark .text-\[\#065F46\] { color:#7FD6B0; }
#expandedCase.theme-dark .text-\[\#000000\] { color:#ECE7DC; }
#expandedCase.theme-dark .bg-\[\#065F46\]\/5 { background-color:rgba(127,214,176,.10); }
#expandedCase.theme-dark .bg-\[\#065F46\]\/10 { background-color:rgba(127,214,176,.16); }
#expandedCase.theme-dark .bg-\[\#D4AF37\]\/10 { background-color:rgba(212,175,55,.14); }
#expandedCase.theme-dark .bg-\[\#D4AF37\]\/20 { background-color:rgba(212,175,55,.26); }
#expandedCase.theme-dark .bg-\[\#111827\]\/5 { background-color:rgba(255,255,255,.07); }
#expandedCase.theme-dark .bg-white { background-color:#1B2027; }
#expandedCase.theme-dark .bg-white\/95 { background-color:rgba(27,32,39,.95); }
#expandedCase.theme-dark .border-gray-200 { border-color:#343B45; }
#expandedCase.theme-dark .border-\[\#111827\] { border-color:#AEB6C0; }
#expandedCase.theme-dark .from-\[\#065F46\]\/5 { --tw-gradient-from:rgba(127,214,176,.10); }
#expandedCase.theme-dark .from-\[\#065F46\]\/10 { --tw-gradient-from:rgba(127,214,176,.16); }
#expandedCase.theme-dark .to-\[\#D4AF37\]\/5 { --tw-gradient-to:rgba(212,175,55,.10); }
#expandedCase.theme-dark .to-\[\#D4AF37\]\/10 { --tw-gradient-to:rgba(212,175,55,.16); }
#expandedCase.theme-dark .case-toc, #expandedCase.theme-dark .rt-btn, #expandedCase.theme-dark .rt-theme { background-color:rgba(255,255,255,.05); border-color:rgba(212,175,55,.35); color:#ECE7DC; }
#expandedCase.theme-dark .case-nav-btn:disabled { opacity:.35; }
#expandedCase.theme-dark .case-badge-done, #expandedCase.theme-dark .rt-theme[aria-checked="true"] { background-color:rgba(127,214,176,.18); color:#7FD6B0; border-color:#7FD6B0; }

/* ============================================================
   v3 additions: branding, legibility, reader bar, lazy loading, site-wide themes
   ============================================================ */
/* Gold text on light backgrounds uses the darker "ink gold"; SVG chevrons, the dark footer and the dark theme keep the bright gold */
main :is(p, span, cite, small, em, strong, a, h2, h3, h4, li, button).text-\[\#D4AF37\],
#expandedCase :is(p, span, cite, small, em, strong, a, h2, h3, h4, li).text-\[\#D4AF37\] { color: var(--gold-ink); }
main a.text-\[\#D4AF37\]:hover, main a.hover\:text-\[\#c9a430\]:hover { color: #5E4A10; }
main button.text-\[\#D4AF37\]:hover { color: var(--midnight-blue); }
main button.border-\[\#D4AF37\].text-\[\#D4AF37\] { border-color: var(--gold-ink); }
main button.border-\[\#D4AF37\].text-\[\#D4AF37\]:hover { background-color: var(--antique-gold); }
#expandedCase.theme-dark :is(p, span, cite, small, em, strong, a, h2, h3, h4, li).text-\[\#D4AF37\],
html[data-theme="dark"] main :is(p, span, cite, small, em, strong, a, h2, h3, h4, li).text-\[\#D4AF37\] { color: #E4C463; }

/* Brand marks: the reverse (dark-background) versions replace the standard ones in the dark theme */
.theme-dark-only { display: none; }
html[data-theme="dark"] .theme-light-only { display: none; }
html[data-theme="dark"] .theme-dark-only { display: block; }
html[data-theme="dark"] .nav-mark.theme-dark-only { display: inline-block; }
.nav-mark { width: 52px; height: 45px; flex-shrink: 0; }
@media (max-width: 640px) { .nav-mark { width: 44px; height: 38px; } }
.footer-mark { width: 64px; height: 55px; flex-shrink: 0; opacity: .95; }
.logo-pulse { filter: drop-shadow(0 6px 14px rgba(17, 24, 39, .10)); }
.lang-dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: var(--antique-gold); flex-shrink: 0; }
.lang-option[aria-current="true"] .lang-dot, .lang-option.active .lang-dot { background: var(--prophetic-green); }

/* Case cards: the whole question is always visible */
.case-card-title { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* Reader: a translucent bar behind the floating controls, so they never sit on top of running text */
.reader-bar { pointer-events: none; background: rgba(253, 252, 248, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212, 175, 55, .22); }
#expandedCase.theme-sepia .reader-bar { background: rgba(244, 236, 216, .90); }
#expandedCase.theme-dark .reader-bar { background: rgba(18, 22, 28, .88); border-bottom-color: rgba(212, 175, 55, .28); }

/* Lazy-loaded case body: skeleton while the JSON arrives */
.case-skeleton { display: flex; flex-direction: column; gap: .8rem; padding: .5rem 0 3rem; }
.case-skeleton .skeleton { display: block; height: 1rem; border-radius: 4px; }
.case-skeleton-gap { height: .9rem; }
#expandedCase.theme-dark .skeleton, html[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #262C35 25%, #323944 50%, #262C35 75%); background-size: 200% 100%; }

/* ---------- Site-wide themes (html[data-theme], chosen in the reading tools, restored by assets/theme.js) ---------- */
html[data-theme="sepia"] body, html[data-theme="sepia"] ::-webkit-scrollbar-track { background-color: #F4ECD8; }
html[data-theme="sepia"] :is(.bg-\[\#FDFCF8\], .bg-\[\#F9FAFB\], #mobileMenu) { background-color: #F4ECD8; }
html[data-theme="sepia"] .bg-\[\#FDFCF8\]\/95 { background-color: rgba(244, 236, 216, .95); }
html[data-theme="sepia"] :is(.from-\[\#FDFCF8\], .to-\[\#FDFCF8\]) { --tw-gradient-from: #F4ECD8; --tw-gradient-to: #F4ECD8; }
html[data-theme="sepia"] :is(.to-\[\#f5f3eb\], .from-\[\#f0ede3\], .to-\[\#f0ede3\]) { --tw-gradient-from: #EDE2C8; --tw-gradient-to: #EDE2C8; }
html[data-theme="sepia"] .bg-white { background-color: #FBF5E6; }
html[data-theme="sepia"] .bg-white\/95 { background-color: rgba(251, 245, 230, .95); }
html[data-theme="sepia"] .border-gray-200 { border-color: #E4D8BE; }
html[data-theme="sepia"] .bg-gray-200\/50 { background-color: rgba(228, 216, 190, .5); }
html[data-theme="sepia"] .form-input, html[data-theme="sepia"] #caseSearch { background-color: #FBF5E6; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body, html[data-theme="dark"] ::-webkit-scrollbar-track { background-color: #12161C; color: #ECE7DC; }
html[data-theme="dark"] :is(.bg-\[\#FDFCF8\], .bg-\[\#F9FAFB\], #mobileMenu) { background-color: #12161C; }
html[data-theme="dark"] .bg-\[\#FDFCF8\]\/95 { background-color: rgba(18, 22, 28, .92); }
html[data-theme="dark"] :is(.from-\[\#FDFCF8\], .to-\[\#FDFCF8\]) { --tw-gradient-from: #12161C; --tw-gradient-to: #12161C; }
html[data-theme="dark"] :is(.to-\[\#f5f3eb\], .from-\[\#f0ede3\], .to-\[\#f0ede3\]) { --tw-gradient-from: #171C23; --tw-gradient-to: #171C23; }
html[data-theme="dark"] .bg-white { background-color: #1B2027; }
html[data-theme="dark"] .bg-white\/95 { background-color: rgba(27, 32, 39, .95); }
html[data-theme="dark"] .text-\[\#111827\] { color: #ECE7DC; }
html[data-theme="dark"] .text-\[\#111827\]\/80 { color: rgba(236, 231, 220, .86); }
html[data-theme="dark"] .text-\[\#111827\]\/70 { color: rgba(236, 231, 220, .78); }
html[data-theme="dark"] .text-\[\#111827\]\/60 { color: rgba(236, 231, 220, .70); }
html[data-theme="dark"] .text-\[\#111827\]\/50 { color: rgba(236, 231, 220, .62); }
html[data-theme="dark"] .text-\[\#111827\]\/40 { color: rgba(236, 231, 220, .52); }
html[data-theme="dark"] .text-\[\#065F46\] { color: #7FD6B0; }
html[data-theme="dark"] .hover\:text-\[\#065F46\]:hover { color: #A6E6C9; }
html[data-theme="dark"] .text-\[\#000000\] { color: #ECE7DC; }
html[data-theme="dark"] :is(.bg-\[\#065F46\]\/5, .hover\:bg-\[\#065F46\]\/5:hover) { background-color: rgba(127, 214, 176, .10); }
html[data-theme="dark"] :is(.bg-\[\#065F46\]\/10, .hover\:bg-\[\#065F46\]\/10:hover) { background-color: rgba(127, 214, 176, .16); }
html[data-theme="dark"] .bg-\[\#D4AF37\]\/10 { background-color: rgba(212, 175, 55, .14); }
html[data-theme="dark"] .bg-\[\#D4AF37\]\/20 { background-color: rgba(212, 175, 55, .26); }
html[data-theme="dark"] .bg-\[\#111827\]\/5 { background-color: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .bg-gray-200\/50 { background-color: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .border-gray-200 { border-color: #343B45; }
html[data-theme="dark"] .border-\[\#111827\] { border-color: #AEB6C0; }
html[data-theme="dark"] .from-\[\#065F46\]\/5 { --tw-gradient-from: rgba(127, 214, 176, .10); }
html[data-theme="dark"] .from-\[\#065F46\]\/10 { --tw-gradient-from: rgba(127, 214, 176, .16); }
html[data-theme="dark"] .to-\[\#D4AF37\]\/5 { --tw-gradient-to: rgba(212, 175, 55, .10); }
html[data-theme="dark"] .to-\[\#D4AF37\]\/10 { --tw-gradient-to: rgba(212, 175, 55, .16); }
html[data-theme="dark"] .hamburger-line { background-color: #ECE7DC; }
html[data-theme="dark"] .form-input, html[data-theme="dark"] #caseSearch { background-color: #1B2027; color: #ECE7DC; border-color: rgba(212, 175, 55, .35); }
html[data-theme="dark"] :is(.form-input, #caseSearch)::placeholder { color: rgba(236, 231, 220, .45); }
html[data-theme="dark"] .case-card { box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .case-card:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
html[data-theme="dark"] :is(.chip, .case-toc, .continue-card) { background-color: rgba(255, 255, 255, .05); color: #ECE7DC; border-color: rgba(212, 175, 55, .35); }
html[data-theme="dark"] .chip-start { border-color: #7FD6B0; color: #7FD6B0; background: rgba(127, 214, 176, .10); }
html[data-theme="dark"] .case-badge-done { background: rgba(127, 214, 176, .18); color: #7FD6B0; border-color: #7FD6B0; }
html[data-theme="dark"] .case-badge-progress { background: rgba(212, 175, 55, .18); color: #E4C463; }
html[data-theme="dark"] .journey-progress-track { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] #langDropdown { background-color: #1B2027; }
html[data-theme="dark"] .section-divider { opacity: .5; }
html[data-theme="dark"] .rt-btn, html[data-theme="dark"] .rt-theme { background-color: rgba(255, 255, 255, .05); border-color: rgba(212, 175, 55, .35); color: #ECE7DC; }
html[data-theme="dark"] .rt-theme[aria-checked="true"] { background-color: rgba(127, 214, 176, .18); color: #7FD6B0; border-color: #7FD6B0; }
html[data-theme="dark"] img.logo-pulse { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }

/* Respect the visitor's motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
    .reveal, .hero-fade-in, .hero-fade-in-delay, .hero-fade-in-delay-2, .case-card-animate { opacity:1 !important; transform:none !important; }
    .particle { display:none; }
    .logo-pulse { animation:none; }
}

/* Print: hide the interactive extras */
@media print { .case-toc, #readingToolsWrap, .quote-tools, #heroChips, #continueCard, #journeyProgress, #journeyEnd, #nextCaseTeaser { display:none !important; } }
