/* ==========================================================================
   CARDSAHAYAK GOD-TIER FINANCIAL EDITORIAL THEME (2026)
   NerdWallet Aesthetic • High-Trust Institutional Authority
   Core Web Vitals & 60fps Hardware-Accelerated Performance Architecture
   ========================================================================== */

/* --- 0. TYPOGRAPHY & ZERO-FOIT FONT DELIVERY (SWAP PROTOCOL) ---
   Preconnected and loaded via <head> with font-display: swap.
   Render-blocking @import removed for Core Web Vitals (LCP < 1.2s). */
:root {
    --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-editorial: 'Newsreader', Georgia, serif;
    --font-tabular: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* --- 1. DESIGN TOKENS (LIGHT MODE / WARM FINANCIAL SAND) --- */
:root {
    --cs-brand-primary: #0D5C3A;
    --cs-brand-hover: #08422A;
    --cs-brand-accent: #00875A;
    --cs-brand-tint: #EBF5F0;
    --cs-brand-badge: #D1FAE5;
    
    --cs-bg-canvas: #FAF8F5;
    --cs-bg-surface: #FFFFFF;
    --cs-bg-subtle: #F4F1EB;
    --cs-bg-elevated: #FFFFFF;
    
    --cs-border-subtle: rgba(0, 0, 0, 0.08);
    --cs-border-strong: #E2E8F0;
    --cs-border-brand: rgba(13, 92, 58, 0.22);
    
    --cs-text-primary: #0F172A;
    --cs-text-secondary: #334155;
    --cs-text-muted: #64748B;
    --cs-text-inverse: #FFFFFF;
    
    --cs-accent-gold: #D97706;
    --cs-accent-gold-bg: #FEF3C7;
    --cs-accent-danger: #DC2626;
    --cs-accent-danger-bg: #FEE2E2;
    --cs-accent-blue: #2563EB;
    --cs-accent-blue-bg: #EFF6FF;
    
    --cs-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --cs-shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    --cs-shadow-hover: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.04);
    --cs-shadow-spotlight: 0 12px 28px -6px rgba(13, 92, 58, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* --- 2. DARK MODE TOKENS (CLEAN OBSIDIAN MIDNIGHT) --- */
html[data-theme="dark"],
html.dark,
html[data-theme="dark"] body.editorial-theme,
html.dark body.editorial-theme,
html[data-theme="dark"] .editorial-theme,
html.dark .editorial-theme,
.dark .editorial-theme {
    --cs-brand-primary: #10B981;
    --cs-brand-hover: #34D399;
    --cs-brand-accent: #059669;
    --cs-brand-tint: rgba(16, 185, 129, 0.12);
    --cs-brand-badge: rgba(16, 185, 129, 0.18);
    
    --cs-bg-canvas: #090D16;
    --cs-bg-surface: #131B2B;
    --cs-bg-subtle: #182236;
    --cs-bg-elevated: #1E293B;
    
    --cs-border-subtle: rgba(255, 255, 255, 0.08);
    --cs-border-strong: rgba(255, 255, 255, 0.16);
    --cs-border-brand: rgba(16, 185, 129, 0.35);
    
    --cs-text-primary: #F8FAFC;
    --cs-text-secondary: #E2E8F0;
    --cs-text-muted: #CBD5E1;
    --cs-text-inverse: #090D16;
    
    --cs-accent-gold: #F59E0B;
    --cs-accent-gold-bg: rgba(245, 158, 11, 0.14);
    --cs-accent-danger: #F87171;
    --cs-accent-danger-bg: rgba(248, 113, 113, 0.14);
    --cs-accent-blue: #60A5FA;
    --cs-accent-blue-bg: rgba(96, 165, 250, 0.14);
    
    --cs-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --cs-shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.5), 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    --cs-shadow-hover: 0 10px 24px -5px rgba(0, 0, 0, 0.65), 0 4px 10px -2px rgba(0, 0, 0, 0.4);
    --cs-shadow-spotlight: 0 16px 32px -8px rgba(16, 185, 129, 0.15), 0 6px 14px -3px rgba(0, 0, 0, 0.6);
}

/* --- 3. BASE BODY, VIEWPORT CONTAINMENT & TYPOGRAPHY MAPPINGS --- */
html {
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.editorial-theme {
    background-color: var(--cs-bg-canvas);
    color: var(--cs-text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.editorial-hub-root {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.font-editorial {
    font-family: 'Newsreader', Georgia, serif;
    letter-spacing: -0.015em;
}

.font-ui {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.font-tabular {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* --- 4. REALISTIC CSS DIGITAL TWIN CARDS (PURE METALLIC ELEGANCE) --- */
.cs-card-canvas {
    aspect-ratio: 1.586;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    user-select: none;
}

.cs-card-canvas:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 10px 24px -5px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Pure CSS Metallic & Refined Brand Gradients (Zero External Assets) */

/* HDFC Portfolio */
.sheen-infinia {
    background: linear-gradient(135deg, #18191c 0%, #0e0f12 50%, #202228 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.5);
}
.sheen-diners-black {
    background: linear-gradient(135deg, #16171a 0%, #0a0b0d 50%, #22242c 100%);
    border: 1px solid rgba(226, 232, 240, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.5);
}
.sheen-regalia-gold {
    background: linear-gradient(135deg, #0b1329 0%, #171f38 50%, #1e1b4b 100%);
    border: 1px solid rgba(234, 179, 8, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(11, 19, 41, 0.45);
}
.sheen-millennia {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0284c7 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 18px -4px rgba(30, 58, 138, 0.4);
}
.sheen-tata-neu {
    background: linear-gradient(135deg, #3b0764 0%, #581c87 50%, #1e1b4b 100%);
    border: 1px solid rgba(217, 70, 239, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -4px rgba(59, 7, 100, 0.4);
}
.sheen-swiggy {
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 45%, #431407 100%);
    border: 1px solid rgba(251, 146, 60, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -4px rgba(67, 20, 7, 0.4);
}
.sheen-freedom {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(30, 27, 75, 0.4);
}
.sheen-moneyback {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(3, 105, 161, 0.35);
}
.sheen-shoppers-stop {
    background: linear-gradient(135deg, #18181b 0%, #1c1917 50%, #27272a 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px -4px rgba(0, 0, 0, 0.5);
}

/* SBI Portfolio */
.sheen-simplyclick {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(2, 132, 199, 0.35);
}
.sheen-sbi-cashback {
    background: linear-gradient(135deg, #082f49 0%, #0c4a6e 40%, #064e3b 85%, #059669 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -4px rgba(8, 47, 73, 0.45);
}
.sheen-sbi-prime {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0284c7 100%);
    border: 1px solid rgba(147, 197, 253, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -4px rgba(15, 23, 42, 0.45);
}
.sheen-aurum {
    background: linear-gradient(135deg, #18181b 0%, #09090b 45%, #27272a 100%);
    border: 1px solid rgba(234, 179, 8, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.6);
}
.sheen-sbi-pulse {
    background: linear-gradient(135deg, #1c1917 0%, #3f1816 45%, #7f1d1d 100%);
    border: 1px solid rgba(248, 113, 113, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.45);
}
.sheen-simplysave {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 45%, #450a0a 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(69, 10, 10, 0.45);
}
.sheen-sbi-elite {
    background: linear-gradient(135deg, #111827 0%, #1f2937 45%, #030712 100%);
    border: 1px solid rgba(209, 213, 219, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.6);
}
.sheen-bpcl-octane {
    background: linear-gradient(135deg, #18181b 0%, #9a3412 45%, #d97706 100%);
    border: 1px solid rgba(251, 146, 60, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -4px rgba(24, 24, 27, 0.5);
}
.sheen-airindia-sbi {
    background: linear-gradient(135deg, #701a2d 0%, #881337 40%, #1c1917 100%);
    border: 1px solid rgba(250, 204, 21, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.5);
}

/* ICICI Portfolio */
.sheen-sapphiro {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #312e81 100%);
    border: 1px solid rgba(192, 132, 252, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(15, 23, 42, 0.45);
}
.sheen-emeralde {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #022c22 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(2, 44, 34, 0.45);
}
.sheen-amazon-pay {
    background: linear-gradient(135deg, #0b0c10 0%, #161a22 42%, #5c2c09 82%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.5);
}
.sheen-rubyx {
    background: linear-gradient(135deg, #1f0b12 0%, #4c0519 50%, #881337 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(31, 11, 18, 0.45);
}
.sheen-coral {
    background: linear-gradient(135deg, #181926 0%, #3f1816 50%, #9a3412 100%);
    border: 1px solid rgba(251, 146, 60, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(67, 24, 22, 0.4);
}

/* Axis Portfolio */
.sheen-magnus {
    background: linear-gradient(135deg, #4c0519 0%, #701a2d 40%, #1e1b4b 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(76, 5, 25, 0.45);
}
.sheen-atlas {
    background: linear-gradient(135deg, #230612 0%, #4c0519 45%, #1c1917 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(35, 6, 18, 0.45);
}
.sheen-ace {
    background: linear-gradient(135deg, #090d16 0%, #0f2744 45%, #047857 100%);
    border: 1px solid rgba(45, 212, 191, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.45);
}
.sheen-airtel {
    background: linear-gradient(135deg, #121214 0%, #3b0a0e 45%, #be123c 100%);
    border: 1px solid rgba(225, 29, 72, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(59, 10, 14, 0.45);
}
.sheen-flipkart {
    background: linear-gradient(135deg, #091224 0%, #1e3a8a 55%, #1d4ed8 100%);
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -4px rgba(9, 18, 36, 0.45);
}
.sheen-myzone {
    background: linear-gradient(135deg, #13091f 0%, #3b0764 50%, #6d28d9 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(19, 9, 31, 0.45);
}
.sheen-neo {
    background: linear-gradient(135deg, #0b1520 0%, #064e3b 50%, #0f766e 100%);
    border: 1px solid rgba(45, 212, 191, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(11, 21, 32, 0.45);
}

/* American Express Portfolio */
.sheen-amex-plat {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 22%, #94a3b8 48%, #e2e8f0 72%, #64748b 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 8px 20px -4px rgba(15, 23, 42, 0.25);
}
.sheen-amex-plat .font-ui,
.sheen-amex-plat p.font-black {
    color: #0f172a !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.sheen-amex-plat p.font-mono {
    color: #334155 !important;
}
.sheen-amex-plat .contactless-waves svg {
    color: #334155 !important;
}

/* Amex Gold Charge: Champagne Gold Metallic Sheen */
.sheen-amex-gold {
    background: linear-gradient(135deg, #fef9c3 0%, #ca8a04 35%, #854d0e 70%, #b45309 100%);
    border: 1px solid rgba(254, 240, 138, 0.6);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 8px 20px -4px rgba(0, 0, 0, 0.35);
}
.sheen-amex-gold .font-ui,
.sheen-amex-gold p.font-black {
    color: #451a03 !important;
    text-shadow: 0 1px 0 rgba(254, 240, 138, 0.6);
}
.sheen-amex-gold p.font-mono {
    color: #713f12 !important;
}
.sheen-amex-gold .contactless-waves svg {
    color: #713f12 !important;
}

/* Amex MRCC: Slate Cobalt Metallic Sheen */
.sheen-amex-mrcc {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #172554 100%);
    border: 1px solid rgba(147, 197, 253, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.4);
}

/* Amex SmartEarn: Modern Bright Amex Blue Sheen */
.sheen-amex-smartearn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #075985 80%, #0f172a 100%);
    border: 1px solid rgba(125, 211, 252, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.4);
}

/* IDFC FIRST Portfolio */
.sheen-idfc-mayura {
    background: linear-gradient(135deg, #091322 0%, #10243e 35%, #060e1a 70%, #172d4c 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.5);
}
.sheen-idfc-mayura::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 9px;
    pointer-events: none;
}

.sheen-idfc-ashva {
    background: linear-gradient(135deg, #1c1917 0%, #292524 40%, #0c0a09 75%, #382519 100%);
    border: 1px solid rgba(217, 119, 6, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.5);
}
.sheen-idfc-ashva::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 9px;
    pointer-events: none;
}

.sheen-idfc-wealth {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #312e81 100%);
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.4);
}

.sheen-idfc-select {
    background: linear-gradient(135deg, #450a0a 0%, #1c1917 50%, #7f1d1d 100%);
    border: 1px solid rgba(248, 113, 113, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.4);
}

.sheen-idfc-classic {
    background: linear-gradient(135deg, #1c1917 0%, #292524 50%, #44403c 100%);
    border: 1px solid rgba(214, 211, 209, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.4);
}

.sheen-idfc-wow {
    background: linear-gradient(135deg, #18181b 0%, #27272a 45%, #593d0c 100%);
    border: 1px solid rgba(234, 179, 8, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.45);
}

.sheen-default {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px -4px rgba(15, 23, 42, 0.35);
}

/* Micro-Chip Realism */
.emv-chip {
    width: 32px;
    height: 24px;
    background: linear-gradient(135deg, #fde047 0%, #eab308 50%, #ca8a04 100%);
    border-radius: 4px;
    position: relative;
    border: 1px solid rgba(161, 98, 7, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.emv-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(161, 98, 7, 0.5);
}
.emv-chip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(161, 98, 7, 0.5);
}

/* Contactless Symbol */
.contactless-waves {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Hologram Shimmer Overlay (Pure Specular Reflection) */
.card-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 44%, rgba(255, 255, 255, 0.04) 50%, transparent 56%);
    pointer-events: none;
    transform: rotate(30deg);
}

/* --- 5. EDITORIAL REVIEW DOSSIER COMPONENT --- */
.editorial-dossier {
    background: var(--cs-bg-surface);
    border: 1px solid var(--cs-border-subtle);
    border-radius: 16px;
    box-shadow: var(--cs-shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 0 420px;
}

.editorial-dossier:hover {
    border-color: var(--cs-border-brand);
    box-shadow: var(--cs-shadow-hover);
}

.editorial-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
    background: var(--cs-brand-tint);
    color: var(--cs-brand-primary);
}

/* Live Net Annual Value (NAV) Badge */
.nav-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 92, 58, 0.06) 0%, rgba(13, 92, 58, 0.02) 100%);
    border: 1px solid var(--cs-border-brand);
    color: var(--cs-brand-primary);
    font-weight: 700;
}

html[data-theme="dark"] .nav-badge-pill,
html.dark .nav-badge-pill {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
}

/* 4-Column Key Terms Grid */
.editorial-terms-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    background: var(--cs-bg-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--cs-border-subtle);
}

.term-cell {
    display: flex;
    flex-direction: column;
}

.term-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cs-text-muted);
    margin-bottom: 2px;
}

.term-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--cs-text-primary);
}

/* Fine Print Unmasked MITC Radar Box */
.fine-print-radar {
    background: var(--cs-bg-subtle);
    border-left: 3px solid var(--cs-accent-gold);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
}

/* Hardware-Accelerated Action Buttons (60fps Compositing) */
.btn-editorial-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    background: var(--cs-brand-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 4px 0 rgba(13, 92, 58, 0.18);
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    touch-action: manipulation;
}

.btn-editorial-primary:hover {
    background: var(--cs-brand-hover);
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px -2px rgba(13, 92, 58, 0.3);
}

html[data-theme="dark"] .btn-editorial-primary,
html.dark .btn-editorial-primary {
    background: #10B981;
    color: #090D16;
    font-weight: 800;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .btn-editorial-primary:hover,
html.dark .btn-editorial-primary:hover {
    background: #34D399;
    color: #090D16;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.3);
}

.btn-editorial-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
    color: var(--cs-text-primary);
    border: 1px solid var(--cs-border-strong);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    touch-action: manipulation;
}

.btn-editorial-outline:hover {
    background: var(--cs-bg-subtle);
    border-color: var(--cs-text-muted);
}

/* --- 6. MOBILE STICKY FILTER BAR & BOTTOM SHEET ENGINE --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    width: max-content;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    background: var(--cs-bg-surface);
    border: 1px solid var(--cs-border-subtle);
    border-radius: 9999px;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

html[data-theme="dark"] .mobile-sticky-bar,
html.dark .mobile-sticky-bar {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

@supports (padding-bottom: max(0px)) {
    .mobile-sticky-bar {
        bottom: max(16px, calc(10px + env(safe-area-inset-bottom)));
    }
}

.mobile-sticky-bar button,
.mobile-sticky-bar a,
.mobile-sticky-bar .sticky-action-pill {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    touch-action: manipulation;
}

/* iOS Bottom Sheet Modal Engine */
.bottom-sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet-modal.is-open,
.bottom-sheet-modal[aria-hidden="false"],
.bottom-sheet-modal:not([x-cloak]):not([style*="display: none"]):not([style*="display:none"]) {
    visibility: visible;
    pointer-events: auto;
}

.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    cursor: pointer;
    touch-action: none;
}

.bottom-sheet-modal.is-open .bottom-sheet-backdrop,
.bottom-sheet-modal[aria-hidden="false"] .bottom-sheet-backdrop,
.bottom-sheet-modal:not([x-cloak]):not([style*="display: none"]):not([style*="display:none"]) .bottom-sheet-backdrop {
    opacity: 1;
}

.bottom-sheet-panel {
    position: relative;
    background: var(--cs-bg-surface);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid var(--cs-border-subtle);
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
    box-shadow: 0 -8px 30px -4px rgba(0, 0, 0, 0.25);
    transform: translate3d(0, 100%, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet-modal.is-open .bottom-sheet-panel,
.bottom-sheet-modal[aria-hidden="false"] .bottom-sheet-panel,
.bottom-sheet-modal:not([x-cloak]):not([style*="display: none"]):not([style*="display:none"]) .bottom-sheet-panel {
    transform: translate3d(0, 0, 0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    border-radius: 9999px;
    background: var(--cs-border-strong);
    margin: 0 auto 16px auto;
    flex-shrink: 0;
    cursor: grab;
}

/* --- 7. RESPONSIVE BREAKPOINTS & MOBILE TOUCH ERGONOMICS --- */

/* Tablet & Mobile Screens (< 768px) */
@media (max-width: 768px) {
    /* Fluid Editorial Headings with clamp() */
    .font-editorial.text-3xl,
    .font-editorial.text-4xl,
    .font-editorial.text-5xl,
    .font-editorial.text-6xl,
    .editorial-h1 {
        font-size: clamp(1.75rem, 5vw + 0.5rem, 3.25rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
    }

    .font-editorial.text-2xl,
    .editorial-h2 {
        font-size: clamp(1.35rem, 3.5vw + 0.3rem, 2rem) !important;
        line-height: 1.25 !important;
    }

    .editorial-body-p,
    .editorial-hub-root p {
        font-size: clamp(14px, 2vw + 6px, 16px);
    }

    /* iOS Safari Input auto-zoom prevention (min 16px font-size) */
    .editorial-theme input,
    .editorial-theme select,
    .editorial-theme textarea {
        font-size: 16px !important;
    }

    /* Editorial Card Dossier Clean 2x2 Metric Tile Grid */
    .editorial-terms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    .term-cell {
        min-width: 0;
        overflow: hidden;
    }

    .term-cell .term-value {
        font-size: clamp(13px, 3.5vw, 15px);
        word-break: break-word;
    }

    .term-cell .term-label {
        font-size: clamp(9.5px, 2.5vw, 11px);
    }

    /* Touch Targets minimum 44px x 44px */
    .btn-editorial-primary,
    .btn-editorial-outline {
        min-height: 44px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Fast track navigation pills & filter pills (44x44px WCAG AAA) */
    .editorial-nav-pill,
    .hub-tab-btn,
    .spend-preset-btn,
    .editorial-filter-pill,
    .cs-touch-target,
    .cs-compare-label,
    label.group\/cmp,
    .toc-pill,
    .sticky-action-pill,
    [data-touch-target="44"] {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Range slider thumb comfort */
    input[type="range"]#monthly-spend-slider {
        height: 28px;
        padding: 8px 0;
    }

    /* Containment & padding for dossiers on tablets/mobile */
    .editorial-dossier {
        padding: 16px !important;
        border-radius: 14px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* Ultra-Compact Mobile Phones (< 480px, e.g. iPhone SE, 360px Android) */
@media (max-width: 480px) {
    body.editorial-theme,
    .editorial-hub-root {
        padding-left: 0;
        padding-right: 0;
    }

    .editorial-dossier {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .editorial-terms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }

    .term-cell {
        padding: 6px 8px;
        background: rgba(0, 0, 0, 0.025);
        border-radius: 8px;
        border: none !important;
    }

    html[data-theme="dark"] .term-cell,
    html.dark .term-cell {
        background: rgba(255, 255, 255, 0.035);
    }

    .term-cell .term-label {
        font-size: 10px !important;
        letter-spacing: 0.02em !important;
    }

    .term-cell .term-value {
        font-size: 13.5px !important;
        line-height: 1.2 !important;
    }

    .cs-card-canvas {
        max-width: 100% !important;
    }
    .cs-card-canvas.w-56,
    .cs-card-canvas.sm:w-64 {
        width: 100% !important;
        max-width: 280px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .editorial-hub-root [x-data*="activeHub"] .flex.items-center.p-1.rounded-xl {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: space-between;
    }
    .editorial-hub-root [x-data*="activeHub"] button {
        min-height: 44px;
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 11px !important;
        flex: 1;
        text-align: center;
    }

    .editorial-hub-root [x-data*="spend"] .flex.flex-wrap.gap-2 button {
        min-height: 44px;
        flex: 1 1 calc(50% - 8px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
    }

    .mobile-sticky-bar {
        width: calc(100vw - 20px) !important;
        padding: 6px 10px !important;
        gap: 6px !important;
    }

    .mobile-sticky-bar button,
    .mobile-sticky-bar a {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    .nav-badge-pill .animate-ping {
        display: none;
    }
}

/* --- 8. WCAG AAA EMV Gold Chip & Metallic Sheen Protection (Zero Invert Filters) --- */
html[data-theme="dark"] .emv-chip,
html.dark .emv-chip,
html[data-theme="dark"] .cs-card-canvas,
html.dark .cs-card-canvas,
html[data-theme="dark"] [class*="sheen-"],
html.dark [class*="sheen-"] {
    filter: none !important;
    -webkit-filter: none !important;
}

/* ==========================================================================
   MINIMALIST EDITORIAL GLOBAL SHELL (HEADER & FOOTER ARCHITECTURE)
   NerdWallet-inspired ultra-clean, high-trust institutional aesthetic
   ========================================================================== */

/* 1. Ultra-Clean Sticky Header & Navbar */
body.editorial-theme header.sticky {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] body.editorial-theme header.sticky,
html.dark body.editorial-theme header.sticky {
    background-color: rgba(9, 13, 22, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.4);
}

/* 2. Clean Rounded Search Input with ⌘K */
body.editorial-theme #editorial-header-search {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body.editorial-theme #editorial-header-search:focus {
    box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.15);
    border-color: #0D5C3A;
}

html[data-theme="dark"] body.editorial-theme #editorial-header-search:focus,
html.dark body.editorial-theme #editorial-header-search:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    border-color: #10B981;
}

/* 3. Subtle Dark Mode Toggle Button */
body.editorial-theme .cs-global-theme-btn {
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.editorial-theme .cs-global-theme-btn:hover {
    transform: translateY(-1px);
}

body.editorial-theme .cs-global-theme-btn:active {
    transform: translateY(0);
}

/* 4. High-Contrast Emerald Green Primary CTA */
body.editorial-theme a[href*="card-finder"].bg-emerald-600 {
    background-color: #0D5C3A;
    box-shadow: 0 1px 2px 0 rgba(13, 92, 58, 0.18);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.editorial-theme a[href*="card-finder"].bg-emerald-600:hover {
    background-color: #08422A;
    box-shadow: 0 4px 12px -2px rgba(13, 92, 58, 0.3);
    transform: translateY(-1px);
}

body.editorial-theme a[href*="card-finder"].bg-emerald-600:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(13, 92, 58, 0.18);
}

html[data-theme="dark"] body.editorial-theme a[href*="card-finder"].bg-emerald-600,
html.dark body.editorial-theme a[href*="card-finder"].bg-emerald-600 {
    background-color: #10B981;
    color: #090D16 !important;
    font-weight: 800;
}

html[data-theme="dark"] body.editorial-theme a[href*="card-finder"].bg-emerald-600:hover,
html.dark body.editorial-theme a[href*="card-finder"].bg-emerald-600:hover {
    background-color: #34D399;
    color: #090D16 !important;
}

/* 5. Minimalist Institutional Footer */
body.editorial-theme footer {
    border-top: 1px solid var(--cs-border-subtle);
    letter-spacing: -0.01em;
}

html[data-theme="dark"] body.editorial-theme footer,
html.dark body.editorial-theme footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.editorial-theme footer a {
    transition: color 0.16s ease, transform 0.16s ease;
}

body.editorial-theme footer a:hover {
    color: var(--cs-brand-primary) !important;
}

html[data-theme="dark"] body.editorial-theme footer a:hover,
html.dark body.editorial-theme footer a:hover {
    color: #34D399 !important;
}

/* 6. Micro Viewport Refinements (<= 360px: iPhone SE 1st Gen & 320px Foldables) */
@media (max-width: 360px) {
    .editorial-dossier {
        padding: 12px 8px !important;
        border-radius: 10px !important;
    }
    .editorial-terms-grid {
        gap: 4px !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }
    .term-cell {
        padding: 4px 6px !important;
        border-radius: 6px !important;
    }
    .term-cell .term-label {
        font-size: 8.5px !important;
        letter-spacing: 0 !important;
    }
    .term-cell .term-value {
        font-size: 11.5px !important;
        line-height: 1.15 !important;
    }
    .editorial-hub-root .grid-cols-2 {
        gap: 6px !important;
    }
}


/* ==========================================================================
   7. NERDWALLET WCAG 2.2 AAA CONTRAST & TOUCH ERGONOMICS ENGINE
   Guarantees > 7.0:1 AAA contrast across both Warm Sand and Obsidian Dark modes
   ========================================================================== */

/* Light Mode: Elevate faint grays to AAA compliant high-trust slate tones (> 7.15:1 to 10.35:1) */
body.editorial-theme .text-slate-500:not([class*="dark:"]),
body.editorial-theme .text-gray-500:not([class*="dark:"]) {
    color: #334155; /* 9.77:1 AAA on #FAF8F5, 10.35:1 AAA on #FFFFFF */
}

body.editorial-theme .text-slate-400:not([class*="dark:"]):not(svg),
body.editorial-theme .text-gray-400:not([class*="dark:"]):not(svg) {
    color: #475569; /* 7.15:1 AAA on #FAF8F5, 7.58:1 AAA on #FFFFFF */
}

/* Dark Mode: Elevate faint grays to crystalline high-contrast tones (> 11.6:1 to 15.7:1 AAA) */
html[data-theme="dark"] body.editorial-theme .text-slate-500,
html.dark body.editorial-theme .text-slate-500,
html[data-theme="dark"] body.editorial-theme .text-gray-500,
html.dark body.editorial-theme .text-gray-500 {
    color: #E2E8F0; /* 13.97:1 AAA on #131B2B, 15.76:1 AAA on #090D16 */
}

html[data-theme="dark"] body.editorial-theme .text-slate-400,
html.dark body.editorial-theme .text-slate-400,
html[data-theme="dark"] body.editorial-theme .text-gray-400,
html.dark body.editorial-theme .text-gray-400 {
    color: #CBD5E1; /* 11.60:1 AAA on #131B2B, 13.09:1 AAA on #090D16 */
}

html[data-theme="dark"] body.editorial-theme .text-slate-600,
html.dark body.editorial-theme .text-slate-600,
html[data-theme="dark"] body.editorial-theme .text-gray-600,
html.dark body.editorial-theme .text-gray-600 {
    color: #F1F5F9; /* 15.72:1 AAA on #131B2B, 17.74:1 AAA on #090D16 */
}

/* Form Input & Select High-Contrast Focus & Hover States */
body.editorial-theme input[type="text"]:focus,
body.editorial-theme input[type="number"]:focus,
body.editorial-theme input[type="search"]:focus,
body.editorial-theme select:focus {
    border-color: #0D5C3A;
    box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.16);
    outline: none;
}

html[data-theme="dark"] body.editorial-theme input[type="text"]:focus,
html.dark body.editorial-theme input[type="text"]:focus,
html[data-theme="dark"] body.editorial-theme input[type="number"]:focus,
html.dark body.editorial-theme input[type="number"]:focus,
html[data-theme="dark"] body.editorial-theme input[type="search"]:focus,
html.dark body.editorial-theme input[type="search"]:focus,
html[data-theme="dark"] body.editorial-theme select:focus,
html.dark body.editorial-theme select:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
    outline: none;
}

/* Touch Target Minimum 44px Guarantee on Mobile */
@media (max-width: 768px) {
    body.editorial-theme button,
    body.editorial-theme .btn-editorial-primary,
    body.editorial-theme .btn-editorial-outline,
    body.editorial-theme select,
    body.editorial-theme .cs-touch-target {
        min-height: 44px;
        touch-action: manipulation;
    }
}


/* ==========================================================================
   8. 100x MOBILE ERGONOMICS & ZERO-OVERFLOW RESPONSIVENESS ENGINE (2026)
   ========================================================================== */

/* Zero Horizontal Overflow / Anti-Jitter Guarantee */
html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
    width: 100% !important;
}
@supports not (overflow-x: clip) {
    html, body {
        overflow-x: hidden !important;
    }
}
main, #main-content {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

/* 60fps Native Touch Inertia on Scrollable Containers without Vertical Scroll Chaining Locks */
.overflow-x-auto,
.touch-scroll-x,
.spec-matrix-scroll,
.table-wrap,
.blog-table-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

.overflow-y-auto {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
}

/* Smooth Table Swipe Visual Gradient Cue on Right Edge */
.table-swipe-wrapper {
    position: relative;
    max-width: 100%;
}
.table-swipe-cue {
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to left, rgba(15, 23, 42, 0.08), transparent);
    z-index: 5;
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;
}
html[data-theme="dark"] .table-swipe-cue,
html.dark .table-swipe-cue {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
}

/* Fluid Typography for Small Screens (320px - 414px) */
.fluid-headline {
    font-size: clamp(1.6rem, 5vw + 0.4rem, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    word-break: break-word;
    overflow-wrap: break-word;
}
.fluid-subheadline {
    font-size: clamp(1.15rem, 3.5vw + 0.3rem, 1.85rem);
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
}
.fluid-card-title {
    font-size: clamp(0.95rem, 3.2vw + 0.2rem, 1.35rem);
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* WCAG AAA 44x44px Touch Targets */
.touch-target-44 {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hardware-Accelerated Bottom Sheet Drawers (60fps Physics) */
.mobile-bottom-sheet {
    will-change: transform;
    transform: translateZ(0);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overscroll-behavior-y: contain;
}

/* Sticky Bottom Safe Area Utility */
.pb-safe-nav {
    padding-bottom: max(16px, calc(10px + env(safe-area-inset-bottom, 0px))) !important;
}
.bottom-safe-bar {
    bottom: 0 !important;
    padding-bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px))) !important;
}

/* ==========================================================================
   GLOBAL NAVIGATION, OMNISEARCH & 60FPS DRAWER UX ENHANCEMENTS
   ========================================================================== */
.omnisearch-modal-backdrop {
    background-color: rgba(9, 13, 22, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.omnisearch-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.omnisearch-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.omnisearch-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 9999px;
}
.omnisearch-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Nav Link Underline Transitions (NerdWallet Style) */
.nav-link-editorial {
    position: relative;
    transition: color 0.18s ease;
}
.nav-link-editorial::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--cs-brand-primary, #0D5C3A);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-editorial:hover::after,
.nav-link-editorial.is-active::after {
    transform: scaleX(1);
}
html[data-theme="dark"] .nav-link-editorial::after,
html.dark .nav-link-editorial::after {
    background-color: #10B981;
}

/* 60fps Drawer Performance */
.mobile-nav-drawer {
    will-change: transform, opacity;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   CardSahayak Verified Badges & Trust Seals (Universal Cross-Viewport Safety)
   Ensures badges maintain atomic inline-flex integrity without awkward multiline breaks
   ========================================================================== */
.cs-verified-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 700;
    flex-shrink: 0;
    max-width: 100%;
}

.cs-verified-badge-subtle {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cs-verified-badge-responsive {
        white-space: normal !important;
        word-break: break-word;
        border-radius: 0.5rem !important;
    }
}


