/* ==========================================================================
   MINI-SAMVIDHAN (भारतीय संविधान सेतु) - Modern UI Design System
   Tricolor Palette: Saffron (#FF671F), White (#FFFFFF), Green (#046A38), Navy (#06038D)
   ========================================================================== */
:root {
    --color-saffron: #FF671F;
    --color-saffron-light: #FFF0E6;
    --color-saffron-dark: #D94E0E;
    --color-green: #046A38;
    --color-green-light: #E8F5EC;
    --color-green-dark: #024D28;
    --color-navy: #06038D;
    --color-navy-light: #EEF0FD;
    --color-navy-hover: #040263;
    --color-gold: #C59B27;
    --color-gold-light: #FEF9E7;
    --bg-primary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-parchment: #FDFBF7;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --border-accent: rgba(6, 3, 141, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-chakra: 0 0 25px rgba(6, 3, 141, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
/* Tricolor Top Ambient Bar */
.tricolor-ribbon {
    height: 6px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    background: linear-gradient(90deg,
        var(--color-saffron) 0%,
        var(--color-saffron) 33.3%,
        #FFFFFF 33.3%,
        #FFFFFF 66.6%,
        var(--color-green) 66.6%,
        var(--color-green) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Container */
.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
/* Navigation */
.navbar {
    position: sticky;
    top: 6px;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-normal);
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 12px;
    width: 100%;
    max-width: 1360px;
    padding: 0 16px;
    box-sizing: border-box;
}
/* ========================================================
   Brand Identity & Interactive Emblem
   ======================================================== */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    position: relative;
    user-select: none;
    padding: 4px 6px;
    border-radius: 12px;
    transition: background 0.25s ease;
}
.brand:hover {
    background: rgba(255, 255, 255, 0.65);
}
/* Emblem Medallion with Tricolor Ambient Glass */
.brand-emblem {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFFFFF 45%, #F0FDF4 80%, #FFF7ED 100%);
    border: 1.5px solid rgba(218, 165, 32, 0.4);
    box-shadow: 0 3px 12px rgba(6, 3, 141, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Tricolor Halo Radiance on Hover */
.brand-emblem-halo {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255, 103, 31, 0.7), rgba(255, 255, 255, 0.9), rgba(4, 106, 56, 0.7), rgba(6, 3, 141, 0.8), rgba(255, 103, 31, 0.7));
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
}
.brand:hover .brand-emblem {
    transform: scale(1.08);
    border-color: rgba(218, 165, 32, 0.85);
    box-shadow: 0 6px 18px rgba(255, 103, 31, 0.22), 0 0 16px rgba(4, 106, 56, 0.18);
}
.brand:hover .brand-emblem-halo {
    opacity: 0.65;
    animation: haloRotate 3.5s linear infinite;
}
@keyframes haloRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Ashok Chakra Vector & Hover Acceleration */
.brand-chakra {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(6, 3, 141, 0.25));
    animation: spinChakra 40s linear infinite;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}
.brand:hover .brand-chakra {
    animation: spinChakra 6s linear infinite;
    filter: drop-shadow(0 2px 7px rgba(6, 3, 141, 0.45));
}
/* Momentary Click Easter Egg Burst */
.emblem-burst .brand-chakra {
    animation: burstSpin 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards !important;
}
@keyframes burstSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(540deg) scale(1.22); }
    100% { transform: rotate(720deg) scale(1); }
}
@keyframes spinChakra {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Typography & Interactive Shimmer */
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    line-height: 1.15;
    white-space: nowrap;
}
.brand-title .saffron-text {
    background: linear-gradient(135deg, #FF671F 0%, #EA580C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.25s ease;
}
.brand-title .green-text {
    background: linear-gradient(135deg, #046A38 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.25s ease;
}
.brand:hover .saffron-text {
    transform: translateY(-1px);
}
.brand:hover .green-text {
    transform: translateY(-1px);
}
/* Active Legal Engine Live Beacon Dot */
.brand-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: liveBeacon 2s infinite cubic-bezier(0.66, 0, 0, 1);
    flex-shrink: 0;
}
@keyframes liveBeacon {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
/* Tagline Row with Gold National Badge */
.brand-tagline-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1px;
}
.brand-tagline {
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 600;
    letter-spacing: 0.015em;
    white-space: nowrap;
}
.brand-tagline-badge {
    font-size: 0.62rem;
    font-weight: 800;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    line-height: 1.25;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 11px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-link:hover {
    color: var(--color-navy);
    background: var(--color-navy-light);
}
.nav-link.active {
    color: var(--color-navy);
    background: var(--color-navy-light);
    font-weight: 700;
}
/* Navbar Dropdown for More / Secondary Items */
/* ==========================================================================
   FULL-WIDTH CONSTITUTIONAL MEGA MENU
   ========================================================================== */
.nav-dropdown {
    display: inline-flex;
    align-items: center;
}
.nav-mega-dropdown {
    position: static !important; /* Spans full width of the navbar */
}
.nav-dropdown-toggle {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.nav-dropdown-toggle:hover,
.nav-mega-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
    color: var(--color-navy);
    background: var(--color-navy-light);
    border-color: rgba(0, 0, 128, 0.1);
}
.nav-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-toggle-icon {
    width: 15px;
    height: 15px;
    color: var(--color-saffron);
}
.nav-more-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 103, 31, 0.12);
    color: #C2410C;
    border: 1px solid rgba(255, 103, 31, 0.25);
    line-height: 1.2;
}
.nav-mega-dropdown:hover .nav-chevron-icon {
    transform: rotate(180deg);
}
.nav-chevron-icon {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Full Width Mega Menu Dropdown Panel */
.nav-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-bottom: 2px solid #CBD5E1;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    margin: 0;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
}

/* Bridge hover gap */
.nav-mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

/* Hover & Focus display */
.nav-mega-dropdown:hover .nav-mega-menu,
.nav-mega-dropdown:focus-within .nav-mega-menu {
    display: block;
    animation: navMegaSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navMegaSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tricolor Top Accent Line */
.nav-mega-tricolor-bar {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #FF671F 0%, #FFA858 35%, #FFFFFF 50%, #22C55E 65%, #046A38 100%);
}

/* Inner Mega Container */
.nav-mega-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 22px 24px 18px 24px;
    box-sizing: border-box;
}

/* Top Ribbon */
.nav-mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}
.mega-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1E293B;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.mega-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-header-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}
.mega-header-tag.saffron {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FFEDD5;
}

/* Body: 290px Spotlight + Flexible Grid */
.nav-mega-body {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 16px;
}

/* Left Showcase Dossier Card */
.nav-mega-spotlight {
    background: linear-gradient(145deg, #0B192C 0%, #1E293B 65%, #172554 100%);
    border-radius: 16px;
    padding: 22px 20px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px -6px rgba(11, 25, 44, 0.35);
}
.nav-mega-spotlight::after {
    content: '🇮🇳';
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5.5rem;
    opacity: 0.08;
    pointer-events: none;
}
.spotlight-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 103, 31, 0.2);
    border: 1px solid rgba(255, 103, 31, 0.4);
    color: #FDBA74;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
    align-self: flex-start;
    margin-bottom: 12px;
}
.spotlight-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}
.spotlight-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #CBD5E1;
    margin: 0 0 16px 0;
    flex-grow: 1;
}
.spotlight-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-spotlight-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #FF671F;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.18s ease;
}
.btn-spotlight-primary:hover {
    background: #EA580C;
    color: #FFFFFF;
}
.btn-spotlight-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-spotlight-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Right Side: 3x2 Grid */
.nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 1180px) and (min-width: 901px) {
    .nav-mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual Module Card */
.nav-mega-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 15px;
    border-radius: 14px;
    text-decoration: none;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.nav-mega-item:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}
.nav-mega-item.active {
    background: #EFF6FF;
    border-color: #BFDBFE;
}
.nav-mega-item.active .mega-item-title {
    color: var(--color-navy);
}

/* Icon Badges */
.mega-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.nav-mega-item:hover .mega-item-icon {
    transform: scale(1.08);
}
.mega-item-icon.saffron {
    background: rgba(255, 103, 31, 0.14);
    color: #EA580C;
}
.mega-item-icon.green {
    background: rgba(4, 106, 56, 0.14);
    color: #046A38;
}
.mega-item-icon.gold {
    background: rgba(245, 158, 11, 0.16);
    color: #D97706;
}
.mega-item-icon.emerald {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
}
.mega-item-icon.blue {
    background: rgba(37, 99, 235, 0.14);
    color: #2563EB;
}
.mega-item-icon.amber {
    background: rgba(217, 119, 6, 0.14);
    color: #B45309;
}

/* Item Content */
.mega-item-content {
    flex: 1;
    min-width: 0;
}
.mega-item-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}
.mega-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.25;
    transition: color 0.15s ease;
}
.nav-mega-item:hover .mega-item-title {
    color: var(--color-navy);
}
.mega-item-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.badge-saffron { background: #FFF7ED; color: #C2410C; }
.badge-green { background: #ECFDF5; color: #047857; }
.badge-gold { background: #FEF3C7; color: #92400E; }
.badge-emerald { background: #ECFDF5; color: #065F46; }
.badge-blue { background: #EFF6FF; color: #1D4ED8; }
.badge-amber { background: #FFFBEB; color: #B45309; }

.mega-arrow {
    width: 13px;
    height: 13px;
    color: #94A3B8;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.nav-mega-item:hover .mega-arrow {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--color-navy);
}
.mega-item-desc {
    margin: 0;
    font-size: 0.77rem;
    color: #64748B;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mega-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.mega-tag {
    font-size: 0.68rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #475569;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}
.nav-mega-item:hover .mega-tag {
    background: #E2E8F0;
    color: #1E293B;
}

/* Bottom Strip */
.nav-mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    font-size: 0.8rem;
    color: #64748B;
}
.mega-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mega-sos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0F172A;
}
.mega-footer-dot {
    color: #CBD5E1;
}
.mega-footer-meta {
    color: #94A3B8;
    font-size: 0.75rem;
}
.mega-footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mega-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-navy);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}
.mega-footer-link:hover {
    color: var(--color-saffron);
}
.nav-ai-pill {
    background: linear-gradient(135deg, rgba(255, 103, 31, 0.1) 0%, rgba(255, 153, 51, 0.15) 100%) !important;
    color: #C2410C !important;
    border: 1px solid rgba(255, 103, 31, 0.3) !important;
    font-weight: 700 !important;
}
.nav-ai-pill:hover {
    background: rgba(255, 103, 31, 0.2) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 103, 31, 0.2);
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.lang-selector-group {
    display: inline-flex;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
}
.lang-pill {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.lang-pill:hover {
    color: var(--color-navy);
}
.lang-pill.active {
    background: var(--color-navy);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(6, 3, 141, 0.25);
}
body.lang-bn {
    font-family: 'Noto Sans Bengali', 'Outfit', 'Inter', sans-serif;
}
body.lang-hi {
    font-family: 'Noto Sans Devanagari', 'Outfit', 'Inter', sans-serif;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}
/* ==========================================================================
   Article Reader Layout (Sidebar + Formatted Clauses)
   ========================================================================== */
.article-reader-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 32px;
    align-items: start;
}
.article-sidebar {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.sidebar-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.sidebar-part-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-saffron-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sidebar-part-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-top: 2px;
}
.sidebar-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-article-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
}
.sidebar-art-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 3px 6px;
    border-radius: 6px;
    background: #EEF2F6;
    color: var(--color-navy);
    font-size: 0.74rem;
    font-weight: 700;
    flex-shrink: 0;
    text-align: center;
}
.sidebar-article-link.active .sidebar-art-badge {
    background: var(--color-navy);
    color: #FFFFFF;
}
.sidebar-art-title {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text-secondary);
}
.sidebar-article-link.active .sidebar-art-title {
    color: var(--color-navy);
    font-weight: 700;
}
.sidebar-article-link:hover {
    background: var(--bg-primary);
    color: var(--color-navy);
}
.sidebar-article-link:hover .sidebar-art-title {
    color: var(--color-navy);
}
.sidebar-article-link.active {
    background: var(--color-navy-light);
    color: var(--color-navy);
}
.reader-main-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 36px;
}
.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.font-size-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.font-size-btn:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
}
.clause-card {
    background: #FDFBF7;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: var(--transition-fast);
}
.clause-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-sm);
}
.clause-badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--color-navy);
    background: var(--color-navy-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.clause-text {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.04rem;
    line-height: 1.7;
    color: #1E293B;
}
.subclause-list {
    margin-top: 10px;
    margin-left: 18px;
    list-style: none;
}
.subclause-item {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.6;
    border-left: 2px solid #CBD5E1;
}
/* ==========================================================================
   Sambidhan Sathi: Prestige Civic Portal Layout (Mockup-Matched Architecture)
   ========================================================================== */
/* 1. HERO SECTION: Full Supreme Court Background with Smooth Left Gradient Overlay */
.civic-hero {
    position: relative;
    padding: 65px 0 75px;
    background-color: #F0F4FA;
    background-image: url('../assets/hero_court_justice.png');
    background-repeat: no-repeat;
    background-position: right 8% center;
    background-size: cover;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.civic-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Soft civic gradient: solid/opaque on left for pristine readability, smoothly fading out to reveal Supreme Court & Lady Justice on the right */
    background: linear-gradient(
        90deg,
        rgba(240, 244, 250, 0.98) 0%,
        rgba(240, 244, 250, 0.96) 38%,
        rgba(240, 244, 250, 0.85) 52%,
        rgba(240, 244, 250, 0.45) 68%,
        rgba(240, 244, 250, 0.08) 84%,
        rgba(240, 244, 250, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}
.civic-hero-container {
    position: relative;
    z-index: 2;
}
.civic-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 620px;
}
/* Authority Badge */
.civic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: #FFFFFF;
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #1E40AF;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}
.civic-badge i {
    color: #2563EB;
}
/* Authority Headline */
.civic-title {
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}
.civic-title .title-navy {
    color: #0F172A;
}
.civic-title .title-saffron {
    color: #EA580C;
}
.civic-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 560px;
}
/* Search Omnibar */
.civic-search-form {
    width: 100%;
    max-width: 580px;
    margin-bottom: 16px;
}
.civic-search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 9999px;
    padding: 5px 6px 5px 18px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
    transition: all 0.2s ease;
}
.civic-search-box:focus-within {
    border-color: #06038D;
    box-shadow: 0 0 0 4px rgba(6, 3, 141, 0.09), 0 8px 26px rgba(15, 23, 42, 0.09);
}
.civic-search-icon {
    width: 18px;
    height: 18px;
    color: #64748B;
    margin-right: 10px;
    flex-shrink: 0;
}
.civic-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.94rem;
    color: #0F172A;
    background: transparent;
    font-family: inherit;
    padding: 8px 0;
    min-width: 0;
}
.civic-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #06038D;
    color: #FFFFFF;
    border: none;
    outline: none;
    border-radius: 9999px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.civic-search-btn:hover {
    background: #0F172A;
    transform: translateY(-1px);
}
/* Topic Chips Row */
.civic-topic-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.civic-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.civic-chip:hover {
    border-color: #06038D;
    color: #06038D;
    background: #F8FAFC;
    transform: translateY(-1px);
}
.civic-chip i {
    width: 13px;
    height: 13px;
    stroke-width: 2px;
}
.chip-icon-orange { color: #EA580C; }
.chip-icon-amber { color: #D97706; }
.chip-icon-blue { color: #2563EB; }
.chip-icon-green { color: #16A34A; }
.chip-icon-purple { color: #7C3AED; }
/* 2. FLOATING METRICS RIBBON (Card Bridging Hero to Pillars) */
.civic-floating-stats {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    padding: 20px 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    margin-top: -38px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}
.floating-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon-wrap.icon-blue { background: #EFF6FF; color: #2563EB; }
.stat-icon-wrap.icon-orange { background: #FFF7ED; color: #EA580C; }
.stat-icon-wrap.icon-purple { background: #FAF5FF; color: #7C3AED; }
.stat-icon-wrap.icon-green { background: #F0FDF4; color: #16A34A; }
.stat-icon-wrap i {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
}
.stat-text-wrap {
    display: flex;
    flex-direction: column;
}
.stat-big-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
}
.stat-caption {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
}
.floating-stat-divider {
    width: 1px;
    height: 38px;
    background: #E2E8F0;
}
/* 3. SECTION 1: 4 CORE CITIZEN PILLARS GRID */
.civic-pillars-section {
    padding: 10px 0 30px;
}
.section-header-centered {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}
.section-badge-orange {
    display: inline-block;
    padding: 4px 14px;
    background: #FFEDD5;
    color: #C2410C;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.section-heading-navy {
    font-size: 2rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
    line-height: 1.22;
}
.section-subtext-gray {
    font-size: 0.94rem;
    color: #64748B;
    line-height: 1.55;
    margin: 0;
}
.civic-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
.service-card.theme-orange:hover { border-color: #FDBA74; }
.service-card.theme-blue:hover { border-color: #93C5FD; }
.service-card.theme-purple:hover { border-color: #C4B5FD; }
.service-card.theme-green:hover { border-color: #86EFAC; }
.service-card-top {
    display: flex;
    flex-direction: column;
}
.service-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.service-icon-box.bg-orange { background: #FFF7ED; color: #EA580C; }
.service-icon-box.bg-blue { background: #EFF6FF; color: #2563EB; }
.service-icon-box.bg-purple { background: #FAF5FF; color: #7C3AED; }
.service-icon-box.bg-green { background: #F0FDF4; color: #16A34A; }
.service-icon-box i {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}
.service-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
    line-height: 1.35;
}
.service-desc {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 22px;
}
.service-round-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
}
.service-round-btn:hover {
    transform: scale(1.12);
}
.service-round-btn.btn-orange { background: #EA580C; box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3); }
.service-round-btn.btn-blue { background: #2563EB; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.service-round-btn.btn-purple { background: #7C3AED; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }
.service-round-btn.btn-green { background: #16A34A; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3); }
.service-round-btn i {
    width: 17px;
    height: 17px;
    stroke-width: 2.2px;
}
/* 4. SECTION 2: SPECIAL ASSISTANCE SPOTLIGHT BANNER (Dynamic Scenario + Gavel) */
.civic-spotlight-section {
    margin: 36px 0 46px;
}
.civic-spotlight-card {
    background: linear-gradient(90deg, #FFF8F1 0%, #FFFFFF 52%, #FFFDF9 100%);
    border: 1.5px solid #FED7AA;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(234, 88, 12, 0.05);
    padding: 28px 34px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 26px;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.spotlight-left-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #FFEDD5;
    color: #EA580C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.spotlight-left-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}
.spotlight-center-content {
    display: flex;
    flex-direction: column;
}
.spotlight-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.spotlight-badge-tag {
    color: #EA580C;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.spotlight-sub-badge {
    color: #64748B;
    font-size: 0.74rem;
    font-weight: 700;
}
.spotlight-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    line-height: 1.35;
}
.spotlight-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
}
.spotlight-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.spotlight-cta-btn {
    background: #EA580C;
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}
.spotlight-cta-btn:hover {
    background: #C2410C;
    transform: translateY(-1px);
}
.prompt-shuffle-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.prompt-shuffle-btn:hover {
    border-color: #EA580C;
    color: #EA580C;
    background: #FFF7ED;
}
.prompt-shuffle-btn.loading i {
    animation: spinChakra 1s linear infinite;
}
.dossier-helpline-pill {
    font-size: 0.78rem;
    font-weight: 700;
    color: #DC2626;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    padding: 6px 12px;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.dossier-helpline-pill:hover {
    background: #FEE2E2;
}
/* 5. SECTION 3: HOW IT WORKS - 4-STEP CIVIC PROCESS FLOW */
.civic-workflow-section {
    padding: 10px 0 40px;
}
.workflow-header {
    text-align: left;
    margin-bottom: 28px;
}
.workflow-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}
.workflow-subtitle {
    font-size: 0.92rem;
    color: #64748B;
    margin: 0;
}
.workflow-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.workflow-step-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
}
.workflow-step-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.step-num-bubble {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-icon-bubble i {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}
.step-num-bubble.bubble-blue { background: #2563EB; }
.step-icon-bubble.bubble-blue { background: #EFF6FF; color: #2563EB; }
.step-num-bubble.bubble-orange { background: #EA580C; }
.step-icon-bubble.bubble-orange { background: #FFF7ED; color: #EA580C; }
.step-num-bubble.bubble-green { background: #16A34A; }
.step-icon-bubble.bubble-green { background: #F0FDF4; color: #16A34A; }
.step-num-bubble.bubble-purple { background: #7C3AED; }
.step-icon-bubble.bubble-purple { background: #FAF5FF; color: #7C3AED; }
.step-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
}
.step-card-desc {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.45;
    margin: 0;
}
/* 6. SECTION 4: CALL TO ACTION BANNER (Deep Navy Ribbon) */
.civic-cta-ribbon {
    background: linear-gradient(135deg, #0A192F 0%, #06038D 100%);
    border-radius: 18px;
    padding: 36px 44px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 36px 0 50px;
    position: relative;
    overflow: hidden;
}
.cta-ribbon-watermark {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    opacity: 0.05;
    pointer-events: none;
    color: #FFFFFF;
}
.cta-ribbon-watermark i {
    width: 100%;
    height: 100%;
}
.cta-ribbon-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.cta-ribbon-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    line-height: 1.25;
}
.cta-ribbon-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    margin: 0;
}
.cta-ribbon-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.cta-btn-orange {
    background: #EA580C;
    color: #FFFFFF;
    padding: 11px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.cta-btn-orange:hover {
    background: #C2410C;
    transform: translateY(-1px);
}
.cta-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}
/* 7. RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .civic-hero {
        background-position: right 18% center;
        padding: 48px 0 60px;
    }
    .civic-hero::before {
        background: linear-gradient(
            90deg,
            rgba(240, 244, 250, 0.98) 0%,
            rgba(240, 244, 250, 0.95) 52%,
            rgba(240, 244, 250, 0.82) 72%,
            rgba(240, 244, 250, 0.45) 100%
        );
    }
    .civic-hero-content {
        max-width: 100%;
    }
    .civic-floating-stats {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 18px 20px;
        margin-top: -20px;
        margin-bottom: 36px;
    }
    .floating-stat-divider {
        display: none;
    }
    .civic-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .civic-spotlight-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }
    .workflow-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .civic-cta-ribbon {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
        gap: 20px;
    }
    .cta-ribbon-actions {
        justify-content: center;
    }
}
@media (max-width: 640px) {
    .civic-hero {
        padding: 32px 0 42px;
        background-position: right 25% center;
    }
    .civic-hero::before {
        background: linear-gradient(
            180deg,
            rgba(240, 244, 250, 0.97) 0%,
            rgba(240, 244, 250, 0.92) 100%
        );
    }
    .civic-title {
        font-size: 1.85rem;
        line-height: 1.18;
    }
    .civic-desc {
        font-size: 0.9rem;
    }
    .civic-search-box {
        padding: 4px 4px 4px 14px;
    }
    .civic-search-input {
        font-size: 0.88rem;
    }
    .civic-search-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .civic-topic-chips-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        width: 100%;
    }
    .civic-topic-chips-row::-webkit-scrollbar {
        display: none;
    }
    .civic-chip {
        flex-shrink: 0;
    }
    .civic-floating-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }
    .floating-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        background: #F8FAFC;
        padding: 10px 8px;
        border-radius: 12px;
        border: 1px solid #EEF2F6;
    }
    .stat-big-num {
        font-size: 1.25rem;
    }
    .stat-caption {
        font-size: 0.66rem;
    }
    .civic-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .workflow-steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .civic-cta-ribbon {
        padding: 24px 18px;
    }
    .cta-ribbon-title {
        font-size: 1.25rem;
    }
    .cta-ribbon-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-btn-orange, .cta-btn-outline {
        width: 100%;
        justify-content: center;
    }
}
/* Legacy Hero Fallback */
.hero-section {
    position: relative;
    padding: 70px 0 50px;
    background: radial-gradient(circle at 50% 20%, rgba(255, 103, 31, 0.05) 0%, rgba(4, 106, 56, 0.04) 50%, rgba(248, 250, 252, 1) 100%);
    overflow: hidden;
}
.hero-background-chakra {
    position: absolute;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    width: 580px;
    height: 580px;
    opacity: 0.05;
    pointer-events: none;
    animation: spinChakra 120s linear infinite;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 20px;
    text-decoration: none !important;
}
.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--color-saffron) 0%, #B84700 50%, var(--color-navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 32px;
}
/* Quick Real-life Scenario Banner */
.scenario-quick-prompt {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-parchment) 100%);
    border: 2px solid var(--color-saffron);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(255, 103, 31, 0.12);
    margin-bottom: 36px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
}
.prompt-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--color-saffron-light);
    color: var(--color-saffron-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.prompt-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.prompt-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-navy);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}
.prompt-btn:hover {
    background: var(--color-navy-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.prompt-shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #CBD5E1;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.prompt-shuffle-btn:hover {
    background: #FFFFFF;
    border-color: var(--color-saffron);
    color: var(--color-saffron-dark);
    box-shadow: 0 2px 8px rgba(255, 103, 31, 0.15);
    transform: translateY(-1px);
}
.prompt-shuffle-btn.loading i {
    animation: promptSpin 0.7s linear infinite;
}
@keyframes promptSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Search Bar */
.search-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto 28px;
}
.main-search-input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
}
.main-search-input:focus {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(6, 3, 141, 0.12), var(--shadow-md);
}
.search-icon-inside {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    pointer-events: none;
}
.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.search-tag-chip {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.search-tag-chip:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
    background: var(--color-navy-light);
    text-decoration: none !important;
}
/* Constitution Fast Stats */
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.stat-card {
    background: #FFFFFF;
    padding: 18px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-fast);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-navy);
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.section-tag.saffron {
    background: var(--color-saffron-light);
    color: var(--color-saffron-dark);
}
.section-tag.green {
    background: var(--color-green-light);
    color: var(--color-green-dark);
}
.section-tag.navy {
    background: var(--color-navy-light);
    color: var(--color-navy);
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}
/* ==========================================================================
   Real-Life Situation Advisor (Citizen Shield)
   ========================================================================== */
.scenarios-section {
    padding: 70px 0;
    background: #FFFFFF;
    position: relative;
}
.scenario-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.filter-btn {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-btn:hover {
    background: #FFFFFF;
    color: var(--color-navy);
    border-color: var(--color-navy);
}
.filter-btn.active {
    background: var(--color-navy);
    color: #FFFFFF;
    border-color: var(--color-navy);
    box-shadow: 0 4px 10px rgba(6, 3, 141, 0.25);
}
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.scenario-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}
.scenario-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 3, 141, 0.25);
    transform: translateY(-3px);
}
.scenario-card.featured-card {
    border-color: var(--color-saffron);
    box-shadow: 0 6px 20px rgba(255, 103, 31, 0.12);
}
.scenario-card.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-saffron);
}
.scenario-header {
    padding: 24px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scenario-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.scenario-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.scenario-badge.saffron-badge {
    background: var(--color-saffron-light);
    color: var(--color-saffron-dark);
}
.scenario-badge.green-badge {
    background: var(--color-green-light);
    color: var(--color-green-dark);
}
.scenario-badge.navy-badge {
    background: var(--color-navy-light);
    color: var(--color-navy);
}
.scenario-verdict {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: #FEE2E2;
    color: #B91C1C;
    letter-spacing: 0.04em;
}
.scenario-verdict.valid {
    background: var(--color-green-light);
    color: var(--color-green-dark);
}
.scenario-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}
.scenario-summary {
    font-size: 0.96rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0 24px 16px;
}
.scenario-law-box {
    margin: 0 24px 16px;
    background: var(--bg-parchment);
    border-left: 3px solid var(--color-gold);
    padding: 10px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.scenario-law-box strong {
    color: #92400E;
}
.scenario-actions-bar {
    padding: 16px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.toggle-details-btn {
    background: none;
    border: none;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.toggle-details-btn:hover {
    text-decoration: underline;
}
/* Expanded scenario details */
.scenario-details-drawer {
    display: none;
    padding: 20px 24px;
    background: #FFFFFF;
    border-top: 1px dashed var(--border-light);
}
.scenario-details-drawer.open {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.breakdown-title {
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.breakdown-list {
    list-style: none;
    margin-bottom: 18px;
}
.breakdown-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.91rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}
.breakdown-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: -2px;
    color: var(--color-saffron);
    font-size: 1.3rem;
    font-weight: bold;
}
.steps-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 16px;
}
.steps-list li {
    font-size: 0.91rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}
.share-copy-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.share-copy-btn:hover {
    background: var(--color-navy-light);
    color: var(--color-navy);
    border-color: var(--color-navy);
}
/* ==========================================================================
   Constitutional Explorer (Articles & Parts)
   ========================================================================== */
.explorer-section {
    padding: 70px 0;
    background: var(--bg-primary);
}
.explorer-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 36px;
    gap: 8px;
}
.tab-btn {
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}
.tab-btn:hover {
    color: var(--color-navy);
}
.tab-btn.active {
    color: var(--color-navy);
    border-bottom-color: var(--color-navy);
}
.explorer-pane {
    display: none;
}
.explorer-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
/* Fundamental Rights Highlights Row */
.rights-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.right-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}
.right-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-saffron);
}
.right-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.right-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--color-saffron-light);
    color: var(--color-saffron-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.right-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}
.right-card-articles {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
}
.right-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
/* Articles Grid - 2 per row */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
@media (max-width: 820px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.article-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
    padding: 22px 24px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #94A3B8;
    transition: height 0.2s ease;
}
.article-card:hover {
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
    border-color: #CBD5E1;
    transform: translateY(-4px);
}
.article-card:hover::before {
    height: 5px;
}
.article-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.art-num-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: #F1F5F9;
    color: #1E293B;
}
.art-part-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 5px;
}
.art-card-title {
    font-size: 1.16rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    margin: 0 0 12px;
    letter-spacing: -0.2px;
}
.art-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
.art-card-title a:hover {
    color: #2563EB;
}
.art-snippet-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #94A3B8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card.cat-rights .art-snippet-box {
    background: #F0FDF4;
    border-color: #DCFCE7;
    border-left-color: #10B981;
}
.article-card.cat-union .art-snippet-box {
    background: #F0F7FF;
    border-color: #DBEAFE;
    border-left-color: #3B82F6;
}
.art-snippet-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-card.cat-rights .art-snippet-label {
    color: #047857;
}
.article-card.cat-union .art-snippet-label {
    color: #1D4ED8;
}
.art-snippet-text {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}
.art-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
}
.art-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: #0F172A;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
}
.art-read-btn:hover {
    background: #2563EB;
    color: #FFFFFF;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.art-cad-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    padding: 3px 9px;
    border-radius: 999px;
}
.article-badge-num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-navy-light);
    color: var(--color-navy);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
}
.article-group-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.article-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.plain-meaning-box {
    background: var(--color-green-light);
    border-left: 3px solid var(--color-green);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 16px;
}
.plain-meaning-box h4 {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-green-dark);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}
.plain-meaning-box p {
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.5;
}
.citizen-rights-section {
    margin-bottom: 16px;
}
.citizen-rights-section h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.citizen-rights-section ul {
    list-style: disc;
    margin-left: 20px;
}
.citizen-rights-section li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.landmark-box {
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: auto;
}
.landmark-box strong {
    color: var(--text-secondary);
}
/* Parts Grid */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.part-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}
.part-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-navy);
}
.part-number {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-saffron-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.part-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.part-articles-range {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-navy);
    background: var(--color-navy-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}
.part-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
/* ==========================================================================
   Preamble Interactive Experience
   ========================================================================== */
.preamble-section {
    padding: 70px 0;
    background: #FFFFFF;
}
.preamble-parchment {
    background: var(--bg-parchment);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 35px rgba(197, 155, 39, 0.12);
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
}
.preamble-parchment::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-radius: var(--radius-md);
    pointer-events: none;
}
.preamble-title {
    text-align: center;
    font-family: 'Cinzel', serif, Georgia;
    font-size: 1.75rem;
    font-weight: 700;
    color: #78350F;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}
.preamble-text {
    font-size: 1.12rem;
    line-height: 2.1;
    color: #1E293B;
    text-align: justify;
    text-justify: inter-word;
}
.preamble-highlight {
    color: var(--color-navy);
    font-weight: 800;
    cursor: pointer;
    border-bottom: 2px dotted var(--color-navy);
    padding: 0 2px;
    transition: var(--transition-fast);
}
.preamble-highlight:hover {
    background: var(--color-navy-light);
    border-bottom-style: solid;
}
.terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.term-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}
.term-card:hover, .term-card.selected {
    border-color: var(--color-navy);
    background: var(--color-navy-light);
    transform: translateY(-2px);
}
.term-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}
.term-meaning {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
/* ==========================================================================
   Citizen Rights Quiz
   ========================================================================== */
.quiz-section {
    padding: 70px 0;
    background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, var(--bg-primary) 100%);
}
.quiz-container {
    max-width: 760px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 36px;
}
.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.quiz-progress-text {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-navy);
}
.quiz-score-badge {
    background: var(--color-green-light);
    color: var(--color-green-dark);
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}
.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.4;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.quiz-option-btn {
    text-align: left;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    background: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}
.quiz-option-btn:hover:not([disabled]) {
    border-color: var(--color-navy);
    background: var(--color-navy-light);
}
.quiz-option-btn.correct {
    border-color: var(--color-green);
    background: var(--color-green-light);
    color: var(--color-green-dark);
}
.quiz-option-btn.wrong {
    border-color: #EF4444;
    background: #FEE2E2;
    color: #991B1B;
}
.quiz-feedback-box {
    display: none;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-parchment);
    border-left: 4px solid var(--color-navy);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
.quiz-feedback-box.show {
    display: block;
    animation: fadeIn 0.2s ease;
}
.next-question-btn {
    display: none;
    margin-left: auto;
    background: var(--color-navy);
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.next-question-btn.show {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.next-question-btn:hover {
    background: var(--color-navy-hover);
    transform: translateY(-2px);
}
/* ==========================================================================
   Emergency Helplines & Legal Aid
   ========================================================================== */
.helplines-section {
    padding: 60px 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
}
.helpline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.helpline-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition-fast);
}
.helpline-card:hover {
    border-color: var(--color-saffron);
    box-shadow: var(--shadow-md);
    background: #FFFFFF;
}
.helpline-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-saffron-dark);
    margin-bottom: 4px;
}
.helpline-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.helpline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #090F1E;
    color: #E2E8F0;
    padding: 55px 0 28px;
    border-top: 4px solid var(--color-saffron);
    position: relative;
}
.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.05fr 1.2fr;
    gap: 36px;
    margin-bottom: 32px;
    align-items: start;
}
.footer-col {
    display: flex;
    flex-direction: column;
}
/* Brand Column */
.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-emblem {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.footer-brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.2px;
}
.footer-brand-sub {
    font-size: 0.78rem;
    color: var(--color-saffron);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}
.footer-brand-desc {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.78rem;
    color: #CBD5E1;
    font-weight: 600;
    width: fit-content;
}
/* Column Headers */
.footer-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    margin: 0;
}
/* Link Lists */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-link-list li {
    margin-bottom: 10px;
}
.footer-link-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-fast);
    line-height: 1.4;
}
.footer-link-list a .link-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}
.footer-link-list a:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}
.footer-link-list a:hover .link-arrow {
    opacity: 1;
    color: var(--color-saffron);
}
/* Highlight items & badges in footer */
.footer-tag-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-left: 6px;
}
.badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-saffron {
    background: rgba(255, 103, 31, 0.15);
    color: #FB923C;
    border: 1px solid rgba(255, 103, 31, 0.3);
}
.link-highlight-pocket {
    color: #86EFAC !important;
}
.link-highlight-pocket:hover {
    color: #BBF7D0 !important;
}
.link-highlight-ai {
    color: #FDBA74 !important;
}
.link-highlight-ai:hover {
    color: #FED7AA !important;
}
/* Helplines Column Cards */
.footer-helplines-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-helpline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-helpline-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.helpline-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.helpline-number {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
.num-red {
    color: #F87171;
}
.num-green {
    color: #4ADE80;
}
.num-orange {
    color: #FB923C;
}
.num-blue {
    color: #38BDF8;
}
.helpline-label {
    font-size: 0.72rem;
    color: #94A3B8;
    line-height: 1.2;
}
.helpline-dial-icon {
    width: 15px;
    height: 15px;
    color: #64748B;
    transition: color 0.2s ease;
}
.footer-helpline-card:hover .helpline-dial-icon {
    color: #FFFFFF;
}
/* Educational Notice Banner */
.footer-notice-banner {
    margin: 28px 0 20px;
    font-size: 0.82rem;
    color: #94A3B8;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    line-height: 1.5;
}
.footer-notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.footer-notice-icon {
    width: 18px;
    height: 18px;
    color: #FCD34D;
    flex-shrink: 0;
}
.footer-notice-link {
    color: #FCD34D;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.footer-notice-link:hover {
    color: #FDE68A;
    text-decoration: underline;
}
/* Footer Bottom Bar */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #64748B;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom-dedication {
    color: #94A3B8;
}
.footer-bottom-meta {
    color: #64748B;
}
/* ==========================================================================
   Modal Dialog (Article / Scenario Deep Dive)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}
.modal-container {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.modal-close-btn:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}
/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .parts-grid, .rights-highlight-grid, .terms-grid, .helpline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid-4, .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .scenario-quick-prompt {
        flex-direction: column;
        text-align: center;
    }
    .parts-grid, .rights-highlight-grid, .terms-grid, .helpline-grid, .homepage-utilities-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-grid-4, .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-notice-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ==========================================================================
   MINI-SAMVIDHAN 2.0 - REFINED COMPONENT STYLES
   ========================================================================== */
/* Navbar Refinements */
.nav-count-badge {
    background: var(--color-saffron-light);
    color: var(--color-saffron-dark);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}
.sos-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}
.sos-nav-pill:hover {
    background: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.sos-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DC2626;
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.spin-icon {
    animation: spinLoader 0.8s linear infinite;
}
@keyframes spinLoader {
    to { transform: rotate(360deg); }
}
/* Intermediate Desktop Optimization (1025px - 1220px) */
@media (min-width: 1025px) {
    .mobile-drawer-utility {
        display: none !important;
    }
}
@media (min-width: 1025px) and (max-width: 1280px) {
    .navbar-container {
        gap: 8px;
        padding: 0 12px;
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .brand-tagline {
        display: none !important;
    }
    .nav-links {
        gap: 2px;
    }
    .nav-link, .nav-dropdown-toggle {
        padding: 5px 8px;
        font-size: 0.82rem;
    }
    .sos-nav-pill {
        padding: 5px 9px;
        font-size: 0.75rem;
    }
    .lang-pill {
        padding: 4px 7px;
        font-size: 0.74rem;
    }
}
/* Mobile & Tablet Nav Drawer (<= 1024px) */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 24px;
        border-bottom: 2px solid var(--border-light);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
        gap: 6px;
        z-index: 1002;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .nav-links.mobile-open {
        display: flex;
        animation: mobileNavSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-links .nav-link {
        padding: 11px 16px;
        border-radius: var(--radius-md);
        font-size: 0.98rem;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: var(--color-navy-light);
        color: var(--color-navy);
    }
    .nav-dropdown,
    .nav-mega-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .nav-dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 11px 16px;
        border-radius: var(--radius-md);
        font-size: 0.98rem;
        font-weight: 600;
        color: var(--text-primary);
        background: transparent;
        border: none;
        box-sizing: border-box;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .nav-dropdown-toggle:hover,
    .nav-dropdown-toggle:active {
        background: var(--color-navy-light);
        color: var(--color-navy);
    }
    .nav-dropdown-toggle.active {
        background: rgba(217, 119, 6, 0.08);
        color: #B45309;
        font-weight: 700;
    }
    .nav-toggle-main {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .nav-toggle-icon {
        width: 17px;
        height: 17px;
        color: var(--color-saffron);
        flex-shrink: 0;
    }
    .nav-more-badge {
        font-size: 0.68rem;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 9999px;
        background: rgba(255, 103, 31, 0.12);
        color: #C2410C;
        border: 1px solid rgba(255, 103, 31, 0.25);
    }
    .nav-chevron-icon {
        width: 16px !important;
        height: 16px !important;
        color: #64748B;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        flex-shrink: 0;
    }
    .nav-mega-dropdown.mobile-dropdown-open .nav-chevron-icon {
        transform: rotate(180deg);
        color: var(--color-saffron);
    }

    /* Mobile Submenu Container (Clean, compact card list) */
    .nav-mega-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-direction: column;
    }
    .nav-mega-dropdown.mobile-dropdown-open .nav-mega-menu {
        display: flex !important;
        animation: mobileNavSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .nav-mega-tricolor-bar,
    .nav-mega-header,
    .nav-mega-spotlight,
    .nav-mega-footer,
    .nav-mega-item .mega-item-desc,
    .nav-mega-item .mega-item-tags,
    .nav-mega-item .mega-arrow {
        display: none !important;
    }
    .nav-mega-container {
        padding: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #F8FAFC !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 14px !important;
        margin: 4px 0 8px 0 !important;
    }
    .nav-mega-body {
        display: block !important;
        padding: 0 !important;
    }
    .nav-mega-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 100% !important;
    }
    .nav-mega-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 9px 12px !important;
        border-radius: 10px !important;
        background: #FFFFFF !important;
        border: 1px solid #EEF2F6 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        text-decoration: none !important;
        transition: all 0.15s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .nav-mega-item:hover,
    .nav-mega-item:active {
        background: #F1F5F9 !important;
        border-color: #CBD5E1 !important;
        transform: none !important;
    }
    .nav-mega-item.active {
        background: rgba(255, 103, 31, 0.08) !important;
        border-color: rgba(255, 103, 31, 0.35) !important;
    }
    .nav-mega-item .mega-item-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    .nav-mega-item .mega-item-icon i {
        width: 16px !important;
        height: 16px !important;
    }
    .nav-mega-item .mega-item-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .nav-mega-item .mega-item-title-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }
    .nav-mega-item .mega-item-title {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #1E293B !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .nav-mega-item.active .mega-item-title {
        color: #C2410C !important;
        font-weight: 700 !important;
    }
    .nav-mega-item .mega-item-badge {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        padding: 2px 7px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }
    .nav-mega-item .mega-item-content::after {
        content: '›';
        font-size: 1.15rem;
        font-weight: 700;
        color: #94A3B8;
        margin-left: 4px;
        line-height: 1;
    }
    .nav-mega-item:hover .mega-item-content::after {
        color: var(--color-saffron);
    }
    .nav-controls {
        display: contents;
    }
    .topbar-lang-switcher {
        display: inline-flex !important;
        align-items: center;
        flex-shrink: 0;
        margin: 0 auto;
    }
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: var(--radius-sm);
        background: #F8FAFC;
        border: 1px solid #CBD5E1;
        cursor: pointer;
        color: var(--text-primary);
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    .mobile-menu-toggle:hover {
        background: var(--color-navy-light);
        color: var(--color-navy);
        border-color: var(--color-navy);
    }
    .mobile-drawer-utility {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid var(--border-light);
    }
    .mobile-drawer-langs {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}
@keyframes mobileNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Mobile Header Viewport Protection (<= 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }
    .navbar-container {
        height: 62px;
        gap: 6px;
        justify-content: space-between;
    }
    .brand {
        gap: 8px;
        padding: 2px 4px;
        min-width: 0;
    }
    .brand-emblem {
        width: 34px;
        height: 34px;
    }
    .brand-chakra {
        width: 24px;
        height: 24px;
    }
    .brand-title {
        font-size: 1.08rem;
    }
    .brand-tagline-row,
    .brand-tagline {
        display: none !important;
    }
    .sos-nav-pill {
        padding: 5px 8px;
        font-size: 0.72rem;
    }
    .topbar-lang-switcher {
        padding: 2px;
        gap: 2px;
    }
    .topbar-lang-switcher .lang-pill {
        padding: 4px 7px;
        font-size: 0.72rem;
        line-height: 1.15;
    }
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
}
@media (max-width: 420px) {
    .container {
        padding: 0 10px;
    }
    .navbar-container {
        gap: 4px;
        padding: 0 8px;
    }
    .brand {
        gap: 6px;
        padding: 2px;
    }
    .brand-emblem {
        width: 30px;
        height: 30px;
    }
    .brand-chakra {
        width: 20px;
        height: 20px;
    }
    .brand-title {
        font-size: 0.95rem;
    }
    .topbar-lang-switcher {
        display: inline-flex !important;
        padding: 2px;
        gap: 1px;
    }
    .topbar-lang-switcher .lang-pill {
        padding: 3.5px 6px;
        font-size: 0.68rem;
        line-height: 1.1;
        white-space: nowrap;
    }
    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
    }
    .sos-nav-pill {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
@media (max-width: 355px) {
    .brand-title {
        font-size: 0.86rem;
    }
    .brand-live-dot {
        display: none;
    }
    .topbar-lang-switcher .lang-pill {
        padding: 3px 4.5px;
        font-size: 0.64rem;
    }
}
/* Emergency SOS Modal (Inset 0 prevents 100vw horizontal overflow) */
.emergency-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.emergency-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.emergency-modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}
.emergency-modal-backdrop.active .emergency-modal-card {
    transform: scale(1);
}
.emergency-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #FEF2F2;
    border-bottom: 1px solid #FECACA;
}
.emergency-modal-body {
    padding: 24px;
}
.emergency-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .emergency-modal-grid {
        grid-template-columns: 1fr;
    }
}
.sos-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.sos-card:hover {
    border-color: #DC2626;
    background: #FFF5F5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.12);
}
.sos-card-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #DC2626;
    line-height: 1;
}
/* ==========================================================================
   HOMEPAGE DECONGESTION & REFINEMENTS
   ========================================================================== */
.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-navy);
    color: #FFFFFF;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.search-submit-btn:hover {
    background: var(--color-navy-hover);
}
.pillars-section {
    padding: 60px 0;
    background: #FFFFFF;
}
.rights-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}
@media (max-width: 992px) {
    .rights-highlight-grid {
        grid-template-columns: 1fr;
    }
}
.right-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}
.right-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}
.right-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.right-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.right-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
}
.right-card-articles {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}
.right-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}
/* Preamble & Quiz Banner */
.preamble-quiz-banner {
    padding: 48px 0;
    background: var(--bg-parchment);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.banner-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.banner-text-block {
    max-width: 640px;
}
.banner-text-block h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
}
.banner-text-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}
.banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.banner-outline-btn {
    background: #FFFFFF;
    color: var(--color-navy);
    border: 1px solid var(--color-gold);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.banner-outline-btn:hover {
    background: #FEF9E7;
}
.banner-solid-btn {
    background: var(--color-navy);
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.banner-solid-btn:hover {
    background: var(--color-navy-hover);
}
/* ==========================================================================
   ARTICLE READER - PRISTINE 2-COLUMN DESIGN
   ========================================================================== */
.article-reader-wrapper {
    padding: 24px 0 70px;
    background: var(--bg-primary);
}
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}
.breadcrumb-nav a:hover {
    color: var(--color-navy);
}
.breadcrumb-current {
    font-weight: 700;
    color: var(--color-navy);
}
.article-reader-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) {
    .article-reader-layout {
        grid-template-columns: 1fr;
    }
    .article-reader-layout > .reader-main-card {
        order: -1;
    }
}
/* Sidebar Navigator */
.article-sidebar {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 960px) {
    .article-sidebar {
        position: static;
        max-height: none;
    }
}
.sidebar-header {
    margin-bottom: 12px;
}
.sidebar-part-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-saffron-dark);
    display: block;
}
.sidebar-part-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 2px 0 0;
}
.sidebar-part-switcher-wrap {
    margin-top: 10px;
}
.sidebar-part-select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.sidebar-part-select:hover,
.sidebar-part-select:focus {
    border-color: var(--color-navy);
    background: #FFFFFF;
}
.mobile-sidebar-toggle {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid #CBD5E1;
    background: #F1F5F9;
    color: var(--color-navy);
    font-size: 0.82rem;
    font-weight: 700;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.sidebar-collapsible-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
@media (max-width: 960px) {
    .mobile-sidebar-toggle {
        display: flex;
    }
    .sidebar-collapsible-body {
        display: none;
        margin-top: 12px;
    }
    .article-sidebar.mobile-expanded .sidebar-collapsible-body {
        display: flex;
    }
    .article-sidebar.mobile-expanded #mobileSidebarChevron {
        transform: rotate(180deg);
    }
}
.sidebar-search-box {
    position: relative;
    margin-bottom: 12px;
}
.sidebar-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.sidebar-search-box input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
    background: #F8FAFC;
    transition: border 0.15s ease;
}
.sidebar-search-box input:focus {
    border-color: var(--color-navy);
    background: #FFFFFF;
}
.sidebar-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 4px;
    max-height: 420px;
}
.sidebar-article-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 0.84rem;
    transition: all 0.15s ease;
}
.sidebar-article-link:hover {
    background: var(--bg-primary);
    color: var(--color-navy);
}
.sidebar-article-link.active {
    background: var(--color-navy-light);
    color: var(--color-navy);
    font-weight: 700;
}
.sidebar-art-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-navy);
    background: rgba(6, 3, 141, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.sidebar-art-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.sidebar-footer-cta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.sidebar-situations-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-saffron-light);
    color: var(--color-saffron-dark);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}
.sidebar-situations-btn:hover {
    background: #FED7AA;
}
/* Reader Main Card */
.reader-main-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px 38px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
@media (max-width: 600px) {
    .reader-main-card {
        padding: 20px 16px;
    }
}
.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 18px;
}
.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-badge-num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EEF2FF;
    color: var(--color-navy);
    border: 1px solid #E0E7FF;
    padding: 5px 13px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
}
.part-badge {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #E2E8F0;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}
.fundamental-right-badge {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
}
.reader-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E2E8F0;
    overflow-x: auto;
}
.reader-mode-toggle {
    display: inline-flex;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
}
.mode-btn {
    border: 1px solid transparent;
    outline: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}
.mode-btn:hover {
    color: #0F172A;
    background: rgba(255, 255, 255, 0.6);
}
.mode-btn.active {
    background: #FFFFFF;
    color: var(--color-navy);
    border-color: #E2E8F0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.tool-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    padding: 6px 13px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tool-action-btn:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    color: var(--color-navy);
}
.tool-action-btn.active-speaking {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #B45309;
}
.font-size-controls {
    display: inline-flex;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: #FFFFFF;
}
.font-size-btn {
    border: none;
    background: #FFFFFF;
    padding: 6px 11px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}
.font-size-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}
.article-main-title {
    font-size: 1.92rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 18px;
    letter-spacing: -0.015em;
}
/* Article Cards — Clean, Calm Editorial Hierarchy */
.article-tldr-card {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFFFFF 100%);
    border: 1px solid #FED7AA;
    border-left: 4px solid var(--color-saffron);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(255, 103, 31, 0.04);
}
.tldr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-saffron-dark);
    margin-bottom: 8px;
}
.tldr-text {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.65;
}
.plain-meaning-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 26px 30px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}
.card-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    margin-bottom: 14px;
}
.card-section-label.saffron { color: var(--color-saffron-dark); }
.card-section-label.green { color: var(--color-green-dark); }
.card-section-label.blue { color: #1D4ED8; }
.card-section-label.purple { color: #7E22CE; }
.card-section-label.gold { color: #B45309; }
.plain-meaning-body {
    font-size: 1.04rem;
    line-height: 1.85;
    color: #1E293B;
}
.citizen-rights-card {
    background: #F8FDF9;
    border: 1px solid #DCFCE7;
    border-left: 4px solid #16A34A;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 22px;
}
.rights-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.right-item-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
    color: #14532D;
    line-height: 1.65;
    background: #FFFFFF;
    border: 1px solid #DCFCE7;
    border-radius: 10px;
    padding: 11px 15px;
}
.right-check-icon {
    width: 18px;
    height: 18px;
    color: #16A34A;
    flex-shrink: 0;
    margin-top: 3px;
}
.restrictions-card {
    background: #FFFDF7;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 22px;
}
.restrictions-body {
    font-size: 0.96rem;
    line-height: 1.75;
    color: #78350F;
}
.why-matters-card {
    background: #FCF9FF;
    border: 1px solid #F3E8FF;
    border-left: 4px solid #9333EA;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 22px;
}
.why-matters-body {
    font-size: 0.96rem;
    line-height: 1.75;
    color: #4C1D95;
}
.landmark-precedent-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--color-navy);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 22px;
}
.precedent-body {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #1E293B;
}
/* Official Clause Card View */
.official-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2E8F0;
}
.govt-seal-badge {
    font-size: 0.74rem;
    font-weight: 700;
    background: #EEF2FF;
    color: var(--color-navy);
    border: 1px solid #E0E7FF;
    padding: 5px 12px;
    border-radius: 999px;
}
.clause-viewer-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.clause-card {
    background: #FCFBF7;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 24px;
}
.clause-card.subclause-card {
    margin-left: 22px;
    border-left: 3px solid var(--color-navy);
    background: #FFFFFF;
}
.clause-badge {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--color-navy);
    background: #EEF2FF;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
}
.clause-text {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.06rem;
    line-height: 1.85;
    color: #1E293B;
}
/* Bottom Navigation */
.reader-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}
.art-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.art-nav-btn:hover {
    background: var(--bg-primary);
    border-color: #CBD5E1;
    color: var(--color-navy);
}
.art-ai-deep-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--color-navy);
    color: #FFFFFF;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.art-ai-deep-btn:hover {
    background: var(--color-navy-hover);
}
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: #0F172A;
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
/* ==========================================================================
   SCENARIOS HUB & CARDS REFINEMENT
   ========================================================================== */
.scenario-filter-ribbon {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 2px;
    scrollbar-width: thin;
    margin-bottom: 20px;
}
.scenario-filter-ribbon::-webkit-scrollbar {
    height: 4px;
}
.scenario-filter-ribbon::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
.ribbon-chip {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.ribbon-chip:hover {
    border-color: #94A3B8;
    color: var(--text-primary);
}
.ribbon-chip.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(6, 3, 141, 0.2);
}
.ribbon-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.ribbon-chip.active .ribbon-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}
/* ==========================================================================
   SCENARIOS / CITIZEN RIGHTS - SIDEBAR & PAGINATION LAYOUT
   ========================================================================== */
.situations-page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}
.situations-sidebar {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.situations-sidebar::-webkit-scrollbar {
    width: 4px;
}
.situations-sidebar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
.sidebar-box-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-search-box {
    position: relative;
    margin-bottom: 18px;
}
.sidebar-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.sidebar-search-input:focus {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(6, 3, 141, 0.08);
}
.sidebar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}
.sidebar-cat-list {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}
.sidebar-cat-link:hover {
    background: var(--bg-primary);
    color: var(--color-navy);
}
.sidebar-cat-link.active {
    background: var(--color-navy-light);
    color: var(--color-navy);
    font-weight: 700;
    border-color: rgba(6, 3, 141, 0.15);
}
.sidebar-cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sidebar-cat-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #F1F5F9;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sidebar-cat-link.active .sidebar-cat-badge {
    background: var(--color-navy);
    color: #FFFFFF;
}
.sidebar-section-divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}
.sidebar-verdict-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.sidebar-verdict-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #FFFFFF;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sidebar-verdict-pill:hover {
    border-color: #94A3B8;
    color: var(--text-primary);
}
.sidebar-verdict-pill.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #FFFFFF;
    font-weight: 700;
}
.sidebar-widget-box {
    background: linear-gradient(135deg, var(--color-navy-light) 0%, #FFFFFF 100%);
    border: 1px solid rgba(6, 3, 141, 0.12);
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}
.situations-main-content {
    min-width: 0;
}
.situations-top-bar {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.situations-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
/* Pagination */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}
.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}
.pagination-item:hover:not(.disabled) {
    background: var(--color-navy-light);
    border-color: var(--color-navy);
    color: var(--color-navy);
}
.pagination-item.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(6, 3, 141, 0.25);
}
.pagination-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 38px;
    color: var(--text-muted);
    font-weight: 700;
}
@media (max-width: 1024px) {
    .situations-page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .situations-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}
@media (max-width: 768px) {
    .situations-cards-grid {
        grid-template-columns: 1fr;
    }
}
/* Floating Share / Copy Toast Notification */
.share-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.share-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
@media (max-width: 600px) {
    .share-toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
        justify-content: center;
    }
}
/* WhatsApp Share Button */
.share-whatsapp-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid #86EFAC;
    background: #F0FDF4;
    color: #15803D;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.share-whatsapp-btn:hover {
    background: #DCFCE7;
    border-color: #22C55E;
    color: #166534;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}
/* Polite Verbal Speech Box */
.polite-speech-box {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FDE68A;
    border-left: 4px solid #F59E0B;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.polite-speech-header {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #B45309;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.polite-speech-quote {
    font-size: 0.88rem;
    font-weight: 600;
    color: #78350F;
    line-height: 1.5;
    font-style: italic;
}
/* Voice Recognition Animation Keyframes */
@keyframes voicePulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.voice-status-badge {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    padding: 4px 12px;
    border-radius: 999px;
    margin-top: 8px;
}
.voice-status-badge.active {
    display: inline-flex;
}
/* Pocket Shield Printable Styles */
@media print {
    .tricolor-ribbon,
    .navbar,
    .footer,
    .btn-icon-pill,
    .print-hide,
    .breadcrumb-nav {
        display: none !important;
    }
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        font-size: 12pt;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .pocket-shield-card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000000 !important;
    }
}
/* ==========================================================================
   Citizen Directory Page Component Styles
   ========================================================================== */
.directory-page-wrap {
    padding: 24px 0 80px;
    background: var(--bg-primary);
    min-height: 80vh;
}
.directory-hero-banner {
    text-align: center;
    margin-bottom: 32px;
}
.directory-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FEF3C7;
    color: #92400E;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid #FDE68A;
}
.directory-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.directory-hero-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 820px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
/* Quick Dial SOS Strip */
.directory-sos-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-width: 1060px;
    margin: 0 auto;
}
.sos-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-radius: 12px;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.sos-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.sos-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.sos-main {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.sos-icon {
    width: 18px;
    height: 18px;
}
.sos-num {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
}
.sos-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}
/* SOS Card Variants */
.sos-red { border-top: 3px solid #DC2626; }
.sos-red .sos-badge { background: #FEE2E2; color: #DC2626; }
.sos-red .sos-icon, .sos-red .sos-num { color: #DC2626; }
.sos-green { border-top: 3px solid #046A38; }
.sos-green .sos-badge { background: #DCFCE7; color: #046A38; }
.sos-green .sos-icon, .sos-green .sos-num { color: #046A38; }
.sos-blue { border-top: 3px solid #0284C7; }
.sos-blue .sos-badge { background: #E0F2FE; color: #0284C7; }
.sos-blue .sos-icon, .sos-blue .sos-num { color: #0284C7; }
.sos-orange { border-top: 3px solid #FF671F; }
.sos-orange .sos-badge { background: #FFEDD5; color: #EA580C; }
.sos-orange .sos-icon, .sos-orange .sos-num { color: #EA580C; }
.sos-purple { border-top: 3px solid #7C3AED; }
.sos-purple .sos-badge { background: #EDE9FE; color: #7C3AED; }
.sos-purple .sos-icon, .sos-purple .sos-num { color: #7C3AED; }
/* Directory Control Card */
.directory-control-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
.directory-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.directory-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.directory-search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #94A3B8;
}
.directory-search-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 44px;
    border: 2px solid var(--border-medium);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #F8FAFC;
    transition: all 0.2s ease;
}
.directory-search-input-wrap input:focus {
    outline: none;
    border-color: var(--color-saffron);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 103, 31, 0.12);
}
.search-clear-btn {
    position: absolute;
    right: 12px;
    background: #E2E8F0;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    transition: background 0.2s ease;
}
.search-clear-btn:hover {
    background: #CBD5E1;
    color: #0F172A;
}
.directory-action-buttons {
    display: flex;
    gap: 10px;
}
.btn-share-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25D366;
    color: #FFFFFF;
    border: none;
    padding: 0 16px;
    height: 48px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-share-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-1px);
}
.btn-print-directory {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #F1F5F9;
    color: var(--color-navy);
    border: 1px solid var(--border-medium);
    padding: 0 16px;
    height: 48px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-print-directory:hover {
    background: #E2E8F0;
}
/* Category Filter Tabs */
.directory-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.cat-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: #F8FAFC;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cat-tab-btn:hover {
    background: #F1F5F9;
    color: var(--color-navy);
    border-color: #CBD5E1;
}
.cat-tab-btn.active {
    background: var(--color-navy);
    color: #FFFFFF;
    border-color: var(--color-navy);
}
.cat-count-badge {
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 7px;
    border-radius: 10px;
}
.cat-tab-btn.active .cat-count-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}
/* Results counter bar */
.directory-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
    font-size: 0.88rem;
}
/* Directory Cards Grid */
.directory-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.directory-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.directory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 103, 31, 0.4);
}
.directory-badges-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.dir-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.dir-badge-red { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.dir-badge-green { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.dir-badge-orange { background: #FFEDD5; color: #C2410C; border: 1px solid #FED7AA; }
.dir-badge-blue { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.dir-badge-purple { background: #EDE9FE; color: #6D28D9; border: 1px solid #DDD6FE; }
.dir-cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    background: #F1F5F9;
    padding: 2px 7px;
    border-radius: 4px;
}
.directory-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 6px 0;
    line-height: 1.35;
}
.directory-card-dept {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-saffron-dark);
    margin-bottom: 12px;
}
.directory-card-desc {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 12px 0;
}
.directory-card-tip {
    background: #FFFBEB;
    border-left: 3px solid #F59E0B;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #78350F;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
    margin-bottom: 14px;
}
/* Card Actions */
.directory-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.action-phone-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-dial-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #046A38;
    color: #FFFFFF;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}
.btn-dial-phone:hover {
    background: #03522B;
    transform: translateY(-1px);
}
.btn-copy-mini {
    background: #F1F5F9;
    border: 1px solid var(--border-medium);
    color: #64748B;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-copy-mini:hover {
    background: #E2E8F0;
    color: #0F172A;
}
.btn-visit-portal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0284C7;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    transition: all 0.2s ease;
}
.btn-visit-portal:hover {
    background: #E0F2FE;
    color: #0369A1;
    transform: translateY(-1px);
}
/* No Results View */
.directory-no-results {
    text-align: center;
    padding: 50px 20px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px dashed var(--border-medium);
    margin-bottom: 40px;
}
.directory-no-results h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 14px 0 6px;
}
.directory-no-results p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 18px;
}
.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-navy);
    color: #FFFFFF;
    border: none;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}
/* Educational Notice at directory bottom */
.directory-footer-notice {
    background: #FFFFFF;
    border: 2px solid #C7D2FE;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}
/* Directory Responsive Media Queries */
@media (max-width: 1100px) {
    .directory-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .directory-sos-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .directory-hero-title {
        font-size: 1.7rem;
    }
    .directory-cards-grid {
        grid-template-columns: 1fr;
    }
    .directory-sos-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .directory-search-row {
        flex-direction: column;
    }
    .directory-action-buttons {
        width: 100%;
    }
    .btn-share-whatsapp, .btn-print-directory {
        flex: 1;
        justify-content: center;
    }
}
@media print {
    .directory-control-card,
    .directory-sos-strip,
    .btn-share-whatsapp,
    .btn-print-directory,
    .btn-copy-mini,
    .btn-visit-portal {
        display: none !important;
    }
    .directory-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .directory-card {
        box-shadow: none !important;
        border: 1px solid #CBD5E1 !important;
        page-break-inside: avoid;
    }
}
/* ==========================================================================
   Citizen Feedback, Grievance & Suggestion Portal Styles
   ========================================================================== */
.feedback-page-wrap {
    padding: 24px 0 80px;
    background: var(--bg-primary);
    min-height: 80vh;
}
.feedback-hero-banner {
    text-align: center;
    margin-bottom: 32px;
}
.feedback-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #DCFCE7;
    color: #15803D;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid #BBF7D0;
}
.feedback-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.feedback-hero-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
/* Mode Switcher Tabs */
.feedback-mode-tabs {
    display: inline-flex;
    background: #E2E8F0;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}
.f-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.f-tab-btn.active {
    background: #FFFFFF;
    color: var(--color-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
/* Success Card */
.feedback-success-card {
    background: #F0FDF4;
    border: 2px solid #86EFAC;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1);
}
.success-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ticket-display-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid #BBF7D0;
    padding: 8px 14px;
    border-radius: 10px;
    width: fit-content;
}
.ticket-id-text {
    font-family: monospace;
    font-size: 1.18rem;
    font-weight: 800;
    color: #15803D;
    letter-spacing: 1px;
}
.btn-copy-ticket, .btn-track-ticket-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-copy-ticket {
    background: #F1F5F9;
    border: 1px solid var(--border-medium);
    color: var(--color-navy);
}
.btn-copy-ticket:hover {
    background: #E2E8F0;
}
.btn-track-ticket-now {
    background: #0284C7;
    color: #FFFFFF;
    border: none;
}
.btn-track-ticket-now:hover {
    background: #0369A1;
}
/* Error Card */
.feedback-error-card {
    background: #FEF2F2;
    border: 2px solid #FECACA;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
/* Form Container Card */
.feedback-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}
.required-star {
    color: #DC2626;
    font-weight: 800;
}
.optional-pill {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748B;
    background: #F1F5F9;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94A3B8;
    pointer-events: none;
}
.input-with-icon .form-input {
    padding-left: 42px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--text-primary);
    background: #F8FAFC;
    transition: all 0.2s ease;
    font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-saffron);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 103, 31, 0.12);
}
.form-select {
    cursor: pointer;
}
.form-textarea {
    resize: vertical;
    line-height: 1.55;
}
/* Consent Checkbox */
.consent-checkbox-wrap {
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
}
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.5;
}
.checkbox-container input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-navy);
    cursor: pointer;
}
/* Submit Button Row */
.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.btn-submit-feedback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-navy);
    color: #FFFFFF;
    border: none;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-submit-feedback:hover {
    background: #081024;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.security-badge-micro {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
}
/* Track Box (Tab 2) */
.feedback-track-box {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}
.track-input-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.track-input-field {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    font-size: 1rem;
    font-family: monospace;
    font-weight: 700;
    text-transform: uppercase;
}
.track-input-field:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(11, 19, 41, 0.1);
}
.btn-track-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-navy);
    color: #FFFFFF;
    border: none;
    padding: 0 24px;
    height: 48px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-track-submit:hover {
    background: #081024;
}
.track-not-found-card {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #92400E;
}
/* Ticket Status Result Card */
.ticket-status-card {
    border: 2px solid var(--color-navy);
    border-radius: 14px;
    padding: 24px;
    background: #F8FAFC;
}
.status-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.status-ticket-code {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-saffron-dark);
    display: block;
    margin-bottom: 4px;
}
.status-subject {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.meta-item {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 12px;
}
.meta-title {
    font-size: 0.72rem;
    color: #64748B;
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}
.meta-val {
    font-size: 0.86rem;
    font-weight: 800;
    color: #1E293B;
}
.status-admin-reply {
    background: #EFF6FF;
    border-left: 4px solid #2563EB;
    border-radius: 8px;
    padding: 14px 16px;
}
.status-waiting-note {
    background: #F0F9FF;
    border: 1px dashed #BAE6FD;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #0369A1;
}
/* Security Ribbon */
.feedback-security-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sec-ribbon-col {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
}
.sec-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #EEF2FF;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sec-ribbon-col h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 4px 0;
}
.sec-ribbon-col p {
    font-size: 0.78rem;
    color: #64748B;
    line-height: 1.45;
    margin: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .feedback-hero-title {
        font-size: 1.6rem;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .status-meta-grid {
        grid-template-columns: 1fr;
    }
    .feedback-security-ribbon {
        grid-template-columns: 1fr;
    }
    .track-input-form {
        flex-direction: column;
    }
    .btn-track-submit {
        width: 100%;
        justify-content: center;
    }
    .f-tab-btn {
        width: 100%;
        justify-content: center;
    }
}
/* CAPTCHA Widget Styling */
.captcha-group {
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
}
.captcha-flex-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.captcha-img-holder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-medium);
    border-radius: 10px;
    padding: 3px 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.captcha-img-holder img {
    border-radius: 6px;
    display: block;
    height: 44px;
    width: 160px;
}
.btn-refresh-captcha {
    width: 36px;
    height: 36px;
    background: #F1F5F9;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--color-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.btn-refresh-captcha:hover {
    background: var(--color-navy);
    color: #FFFFFF;
    transform: rotate(90deg);
}
.captcha-input-holder {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}
.captcha-input {
    height: 48px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    border: 2px solid var(--border-medium);
}
.btn-submit-feedback:disabled,
.btn-submit-feedback.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}
.spinner-icon {
    animation: spin 0.9s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* ==========================================================================
   NYAYA SAARTHI AI 2.0 - Visual Showcase & Studio Architecture
   ========================================================================== */
/* Hero Section */
.nyaya-hero-wrap {
    position: relative;
    padding: 50px 0 35px;
    background: radial-gradient(circle at 15% 15%, rgba(255, 103, 31, 0.09) 0%, transparent 45%),
                radial-gradient(circle at 85% 20%, rgba(4, 106, 56, 0.09) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(6, 3, 141, 0.05) 0%, transparent 60%),
                var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}
.nyaya-hero-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-saffron) 0%, #FFFFFF 50%, var(--color-green) 100%);
    opacity: 0.8;
}
.nyaya-hero-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(6, 3, 141, 0.08) 0%, rgba(4, 106, 56, 0.08) 100%);
    border: 1px solid rgba(6, 3, 141, 0.18);
    color: var(--color-navy);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(6, 3, 141, 0.06);
}
.nyaya-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: nyayaPulse 1.8s infinite;
}
@keyframes nyayaPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.nyaya-hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.nyaya-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1D4ED8 40%, var(--color-saffron-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nyaya-hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 24px;
    line-height: 1.65;
}
/* Feature Metrics Ribbon */
.nyaya-metrics-ribbon {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.nyaya-metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}
.nyaya-metric-chip:hover {
    border-color: rgba(6, 3, 141, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 3, 141, 0.08);
}
/* Consultation Console Card */
.nyaya-console-card {
    background: #FFFFFF;
    border-radius: 22px;
    border: 1.5px solid rgba(6, 3, 141, 0.12);
    box-shadow: 0 16px 40px -10px rgba(6, 3, 141, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    margin-top: -24px;
    margin-bottom: 34px;
    transition: box-shadow 0.3s ease;
}
.nyaya-console-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-saffron) 0%, var(--color-navy) 50%, var(--color-green) 100%);
}
.nyaya-console-inner {
    padding: 30px;
}
/* Input Header & Controls */
.nyaya-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}
.nyaya-input-label {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.nyaya-clear-btn {
    background: #F1F5F9;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nyaya-clear-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
    border-color: #FECACA;
    transform: translateY(-1px);
}
.nyaya-input-wrapper {
    position: relative;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: #F8FAFC;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nyaya-input-wrapper:focus-within {
    border-color: var(--color-navy);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(6, 3, 141, 0.12), 0 8px 24px rgba(6, 3, 141, 0.06);
}
.nyaya-textarea {
    width: 100%;
    padding: 18px 70px 18px 20px;
    border: none;
    background: transparent;
    font-size: 1.04rem;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-primary);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    min-height: 110px;
}
.nyaya-textarea::placeholder {
    color: #94A3B8;
}
/* Voice Mic Action Dock (Securely Anchored to Bottom-Right of Textarea Box) */
.nyaya-mic-holder {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}
.voice-mic-btn {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}
.voice-mic-btn:hover {
    background: #F8FAFC;
    color: var(--color-navy);
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(6, 3, 141, 0.08);
}
.voice-mic-btn.listening {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #F87171;
    animation: voiceRadarPulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes voiceRadarPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
/* Redesigned Mature Inspiration Prompt Deck */
.nyaya-prompt-categories {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nyaya-prompts-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nyaya-prompt-tag-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    background: #F1F5F9;
    padding: 5px 10px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #E2E8F0;
    white-space: nowrap;
}
.nyaya-prompt-tag-label i {
    stroke-width: 2.2 !important;
}
.nyaya-prompt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px 5px 6px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.nyaya-prompt-chip:hover {
    background: #F8FAFC;
    color: var(--color-navy);
    border-color: rgba(6, 3, 141, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 3, 141, 0.08);
}
/* Mature Micro-Icon Badge Container */
.nyaya-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.nyaya-chip-icon i {
    width: 13px !important;
    height: 13px !important;
    stroke-width: 2.2 !important;
}
.nyaya-prompt-chip:hover .nyaya-chip-icon {
    transform: scale(1.08);
}
.nyaya-icon-amber { background: #FEF3C7; color: #B45309; }
.nyaya-icon-blue { background: #EFF6FF; color: #1D4ED8; }
.nyaya-icon-purple { background: #F5F3FF; color: #7C3AED; }
.nyaya-icon-navy { background: #EEF2FF; color: #3730A3; }
.nyaya-icon-teal { background: #F0FDFA; color: #0F766E; }
.nyaya-icon-gold { background: #FFFBEB; color: #92400E; }
.nyaya-icon-emerald { background: #ECFDF5; color: #047857; }
.nyaya-icon-rose { background: #FFE4E6; color: #E11D48; }
.nyaya-icon-indigo { background: #EEF2FF; color: #4338CA; }

/* 24x7 Emergency Helplines Bar */
.nyaya-helpline-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nyaya-helpline-lead {
    font-size: 0.82rem;
    font-weight: 800;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 2px;
}
.nyaya-helpline-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}
.nyaya-helpline-chip.chip-police { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.nyaya-helpline-chip.chip-police:hover { background: #FEE2E2; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15); }
.nyaya-helpline-chip.chip-women { background: #F5F3FF; color: #7C3AED; border-color: #DDD6FE; }
.nyaya-helpline-chip.chip-women:hover { background: #EDE9FE; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15); }
.nyaya-helpline-chip.chip-legal { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.nyaya-helpline-chip.chip-legal:hover { background: #D1FAE5; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(4, 120, 87, 0.15); }
.nyaya-helpline-chip.chip-cyber { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.nyaya-helpline-chip.chip-cyber:hover { background: #DBEAFE; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(29, 78, 216, 0.15); }
.nyaya-helpline-chip.chip-consumer { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.nyaya-helpline-chip.chip-consumer:hover { background: #FEF3C7; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(180, 83, 9, 0.15); }

/* Analyze Button */
.nyaya-submit-btn {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1E1B4B 100%);
    color: #FFFFFF;
    border: none;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(6, 3, 141, 0.22);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nyaya-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 3, 141, 0.32);
    background: linear-gradient(135deg, #0A04A8 0%, #2E1065 100%);
}
.nyaya-submit-btn:active {
    transform: translateY(0);
}
/* Scanning Animation Card (Mature Judicial Radar Pulse) */
.nyaya-scanner-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1.5px solid rgba(6, 3, 141, 0.15);
    padding: 38px 24px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(6, 3, 141, 0.08);
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease;
}
.scanner-radar-orb {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 3, 141, 0.08) 0%, rgba(6, 3, 141, 0.02) 70%);
    border: 2px solid rgba(6, 3, 141, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    position: relative;
    box-shadow: 0 8px 24px rgba(6, 3, 141, 0.08);
}
.scanner-radar-orb::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(6, 3, 141, 0.25);
    animation: scannerPulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.scanner-radar-orb::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(6, 3, 141, 0.12);
    animation: scannerPulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 0.6s;
}
@keyframes scannerPulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0; }
}
.scanner-radar-orb i {
    animation: scannerBreath 2s ease-in-out infinite;
    stroke-width: 2 !important;
}
@keyframes scannerBreath {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.08); opacity: 0.75; }
}
.scanner-step-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
}
.scanner-sub-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* Result Card */
.nyaya-result-card {
    background: #FFFFFF;
    border-radius: 22px;
    border: 2px solid rgba(6, 3, 141, 0.18);
    box-shadow: 0 20px 50px -10px rgba(6, 3, 141, 0.12);
    overflow: hidden;
    margin-bottom: 36px;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Verdict Header */
.nyaya-verdict-banner {
    padding: 24px 28px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border-bottom: 1.5px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.nyaya-verdict-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.nyaya-verdict-illegal {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #B91C1C !important;
}
.nyaya-verdict-legal {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #047857 !important;
}
.nyaya-verdict-conditional {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #B45309 !important;
}
/* Statute Panel */
.nyaya-statute-panel {
    background: #FDFBF7;
    border: 1px solid rgba(197, 155, 39, 0.3);
    border-left: 5px solid var(--color-gold);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(197, 155, 39, 0.06);
}
/* Speech Dialogue Studio (Clean Section, No Box-in-Box) */
.nyaya-speech-studio {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    padding: 24px 0 10px 0;
    margin-bottom: 24px;
    position: relative;
}
.nyaya-speech-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #064E3B;
    font-weight: 600;
    font-style: italic;
    white-space: pre-line;
    margin-bottom: 16px;
}
.nyaya-speech-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nyaya-speech-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s ease;
}
.nyaya-speech-listen {
    background: #FFFFFF;
    border-color: #059669;
    color: #059669;
}
.nyaya-speech-listen:hover {
    background: #059669;
    color: #FFFFFF;
}
.nyaya-speech-officer {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #FFFFFF;
}
.nyaya-speech-officer:hover {
    background: var(--color-navy-hover);
    transform: translateY(-1px);
}
/* Fullscreen Officer Mode Modal */
.officer-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
.officer-modal-backdrop.active {
    display: flex;
}
.officer-modal-content {
    background: #0B0F19;
    color: #FFFFFF;
    border: 3px solid #EAB308;
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    padding: 36px 30px;
    box-sizing: border-box;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(234, 179, 8, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.officer-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #1E293B;
    border: 1px solid #475569;
    color: #FFFFFF;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}
.officer-modal-close:hover {
    background: #DC2626;
    border-color: #DC2626;
}
/* Trust Grid Cards */
.nyaya-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 40px;
}
.nyaya-trust-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 22px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}
.nyaya-trust-card:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 3, 141, 0.2);
    box-shadow: 0 8px 24px rgba(6, 3, 141, 0.08);
}
/* ==========================================================================
   3-Step Action Guide - Modern Clean Stepper (Read-Friendly)
   ========================================================================== */
.phase-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
}
.phase-step-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phase-step-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
/* Phase 1: Blue (De-escalation & Verification) */
.phase-step-1 {
    background: #FAFCFF;
    border-color: #DBEAFE;
    border-left: 4px solid #2563EB;
}
/* Phase 2: Green (Specific Statutory Assertion & Spoken Dialogue) */
.phase-step-2 {
    background: #FAFEFC;
    border-color: #D1FAE5;
    border-left: 4px solid #059669;
}
/* Phase 3: Amber / Saffron (Procedural Recourse & Lawful Documentation) */
.phase-step-3 {
    background: #FFFCF7;
    border-color: #FEF3C7;
    border-left: 4px solid #D97706;
}
.phase-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.phase-number-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.74rem;
    font-weight: 800;
    color: #FFFFFF;
    flex-shrink: 0;
}
.phase-step-1 .phase-number-indicator { background: #2563EB; }
.phase-step-2 .phase-number-indicator { background: #059669; }
.phase-step-3 .phase-number-indicator { background: #D97706; }
.phase-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
}
.phase-step-1 .phase-header-badge {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}
.phase-step-2 .phase-header-badge {
    background: #D1FAE5;
    color: #047857;
    border: 1px solid #A7F3D0;
}
.phase-step-3 .phase-header-badge {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}
.phase-step-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}
.phase-step-1 .phase-step-title { color: #1E3A8A; }
.phase-step-2 .phase-step-title { color: #064E3B; }
.phase-step-3 .phase-step-title { color: #78350F; }
.phase-step-body {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-primary);
}
.phase-step-body strong {
    color: #0F172A;
}
/* Clean Bullet Items */
.phase-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.phase-bullet-item:last-child {
    margin-bottom: 0;
}
.phase-bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 9px;
    flex-shrink: 0;
}
.phase-step-1 .phase-bullet-dot { background: #3B82F6; }
.phase-step-2 .phase-bullet-dot { background: #10B981; }
.phase-step-3 .phase-bullet-dot { background: #F59E0B; }
.phase-bullet-text {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.65;
}
/* Highlighted Dialogue Quote Bubble in Step 2 */
.phase-speech-bubble {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-left: 4px solid #059669;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 10px 0 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #064E3B;
}
.phase-speech-bubble i {
    color: #059669;
}
.phase-speech-text {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.65;
    color: #064E3B;
    font-style: italic;
}
/* Connector Line Between Steps */
.phase-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 18px;
    margin: -1px 0;
}
.phase-connector::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
}
.phase-connector-dot {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border: 2px solid #94A3B8;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.phase-connector:hover .phase-connector-dot {
    border-color: var(--color-navy);
    transform: scale(1.2);
}
/* ==========================================================================
   Sambidhan Sathi Next-Gen Features Styling
   ========================================================================== */
/* 1-Tap Emergency WhatsApp Broadcast Button */
.emergency-broadcast-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-flex;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
    transition: all 0.2s ease;
}
.emergency-broadcast-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45);
    transform: translateY(-1px);
}
.emergency-broadcast-btn i {
    color: #FEF08A;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}
/* Follow-up Chips ("Citizens Also Asked") */
.follow-up-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    color: #1E293B;
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.follow-up-chip:hover {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}
/* Document / Challan Scanner Styles */
.scanner-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 8px;
}
.scanner-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.scanner-tab-btn.active {
    background: #EEF2FF;
    color: #4338CA;
}
.scanner-dropzone {
    border: 2px dashed #93C5FD;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.scanner-dropzone:hover, .scanner-dropzone.dragover {
    border-color: #2563EB;
    background: #EFF6FF;
}
.sample-challan-btn {
    font-size: 0.78rem;
    font-weight: 700;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sample-challan-btn:hover {
    border-color: #2563EB;
    color: #1D4ED8;
    background: #F0F7FF;
}
/* Then vs Now Amendment Diff Styles */
.diff-container {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 24px;
    margin-top: 20px;
}
.diff-milestone-card {
    border-left: 3px solid #3B82F6;
    padding-left: 16px;
    margin-bottom: 24px;
    position: relative;
}
.diff-milestone-card:last-child {
    margin-bottom: 0;
}
.diff-del {
    background: #FEE2E2;
    color: #991B1B;
    text-decoration: line-through;
    padding: 2px 6px;
    border-radius: 4px;
}
.diff-ins {
    background: #DCFCE7;
    color: #166534;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
/* CAD Debates Excerpt Styles */
.cad-debate-card {
    background: linear-gradient(135deg, #FFFDF8 0%, #FEF9EE 100%);
    border: 1.5px solid #FCD34D;
    border-radius: 16px;
    padding: 28px;
    margin-top: 28px;
    box-shadow: 0 4px 20px rgba(180, 83, 9, 0.08);
    position: relative;
    overflow: hidden;
}
.cad-debate-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D97706, #F59E0B, #B45309);
}
.cad-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #FDE68A;
    margin-bottom: 18px;
}
.cad-framer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cad-framer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92400E;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.15);
}
.cad-framer-name {
    font-weight: 800;
    color: #78350F;
    font-size: 1rem;
    line-height: 1.3;
}
.cad-framer-meta {
    font-size: 0.8rem;
    color: #92400E;
    font-weight: 600;
}
.cad-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cad-action-btn {
    background: #FFFFFF;
    border: 1px solid #FCD34D;
    color: #78350F;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.cad-action-btn:hover {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
    transform: translateY(-1px);
}
.cad-action-btn.whatsapp-share {
    background: #25D366;
    color: #FFFFFF;
    border-color: #1EBE5D;
}
.cad-action-btn.whatsapp-share:hover {
    background: #1EBE5D;
    color: #FFFFFF;
}
.cad-dilemma-box {
    background: #FFFFFF;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.cad-quote-container {
    background: #FFFBEB;
    border-left: 4px solid #D97706;
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 18px 0;
    position: relative;
}
.cad-quote-mark {
    font-size: 2.8rem;
    line-height: 1;
    color: #F59E0B;
    font-family: Georgia, serif;
    position: absolute;
    top: 6px;
    left: 10px;
    opacity: 0.4;
    user-select: none;
}
.cad-quote-text {
    font-size: 1.05rem;
    font-style: italic;
    font-family: Georgia, Cambria, serif;
    color: #451A03;
    line-height: 1.75;
    margin: 0;
    position: relative;
    z-index: 1;
}
.cad-resolution-card {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1.5px solid #A7F3D0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 18px;
}
/* Constitutional Structure Map & Radial Pillars */
.structure-pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.structure-pillar-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 22px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.structure-pillar-card:hover {
    border-color: #3B82F6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}
.pillar-badge {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 10px;
}
.pillar-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    background: #F8FAFC;
    color: #1E293B;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.15s ease;
}
.pillar-item-link:hover {
    background: #EEF2FF;
    color: #4338CA;
    transform: translateX(3px);
}

/* ==========================================================================
   CONSTITUTION EXPLORER NEXT-GEN VISUAL OVERHAUL
   ========================================================================== */

/* 1. Sovereign Constitutional Hero Banner */
.const-hero-banner {
    position: relative;
    background: radial-gradient(circle at 50% 20%, #1E3A8A 0%, #0F172A 70%, #020617 100%);
    border-radius: 20px;
    padding: 38px 32px 32px;
    color: #FFFFFF;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.const-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F97316 0%, #F97316 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #10B981 66.6%, #10B981 100%);
}
.const-hero-watermark {
    position: absolute;
    right: -25px;
    bottom: -30px;
    opacity: 0.05;
    font-size: 16rem;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}
.const-prestige-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 243, 199, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #FDE68A;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.const-hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.const-hero-desc {
    color: #CBD5E1;
    font-size: 0.98rem;
    max-width: 780px;
    line-height: 1.6;
    margin: 0 0 26px;
}

/* 2. Live Infographic Metrics Grid */
.const-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}
.const-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}
.const-stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.4);
}
.const-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.const-stat-num {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.1;
    color: #FFFFFF;
}
.const-stat-label {
    font-size: 0.74rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 700;
}

/* 3. Interactive Preamble Spotlight Card */
.const-preamble-card {
    background: #FFFDF7;
    border: 1.5px solid #FDE68A;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.07);
    position: relative;
    overflow: hidden;
}
.const-preamble-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #D97706 0%, #F59E0B 100%);
}
.preamble-keystones-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.keystone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.keystone-chip:hover {
    background: #F59E0B;
    color: #FFFFFF;
    border-color: #D97706;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
}

/* 4. Curated Landmark Articles Showcase (3 per row) */
.landmark-showcase-section {
    margin-bottom: 32px;
}
.landmark-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 14px;
}
@media (max-width: 960px) {
    .landmark-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 620px) {
    .landmark-showcase-grid {
        grid-template-columns: 1fr;
    }
}
.landmark-mini-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.22s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.landmark-mini-card:hover {
    border-color: #2563EB;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}
.landmark-mini-card.active-gold {
    border-top: 4px solid #D97706;
}
.landmark-mini-card.active-green {
    border-top: 4px solid #059669;
}
.landmark-mini-card.active-blue {
    border-top: 4px solid #2563EB;
}
.landmark-mini-card.active-purple {
    border-top: 4px solid #7C3AED;
}
.landmark-mini-card.active-rose {
    border-top: 4px solid #E11D48;
}

/* 5. Direct Article Jumper & Quick Search Chips */
.article-jumper-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.quick-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 12px;
}
.quick-filter-tag {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}
.quick-filter-tag:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #CBD5E1;
}

/* 6. Enhanced Article Cards */
.article-card.cat-rights {
    border-top: 4px solid #059669;
}
.article-card.cat-union {
    border-top: 4px solid #2563EB;
}
.article-card.cat-state {
    border-top: 4px solid #7C3AED;
}
.article-card.cat-finance {
    border-top: 4px solid #D97706;
}
.article-card.cat-emergency {
    border-top: 4px solid #E11D48;
}

/* 7. 12 Schedules Interactive Guide Deck */
.schedules-guide-section {
    margin-top: 46px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 32px 28px;
}
.schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.schedule-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}
.schedule-card:hover {
    border-color: #94A3B8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* ==========================================================================
   Constitutional Codex & Reading Studio Design System
   ========================================================================== */

/* 1. Sovereign Codex Hero Banner */
.const-codex-hero {
    background: linear-gradient(135deg, #071326 0%, #0A192F 60%, #112240 100%);
    border-radius: 20px;
    padding: 34px 40px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(7, 19, 38, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.const-codex-hero::after {
    content: '🏛️';
    position: absolute;
    right: 28px;
    bottom: -15px;
    font-size: 9rem;
    opacity: 0.06;
    pointer-events: none;
    line-height: 1;
}
.codex-prestige-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #E2E8F0;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.codex-hero-title {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}
.codex-hero-desc {
    font-size: 0.95rem;
    color: #94A3B8;
    max-width: 820px;
    line-height: 1.6;
    margin: 0 0 20px;
}
.codex-metrics-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}
.codex-metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.codex-metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #93C5FD;
}
.codex-metric-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
}
.codex-metric-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* 2. Collapsible Preamble Parchment Ribbon */
.codex-preamble-bar {
    background: #FFFDF7;
    border: 1.5px solid #FDE68A;
    border-left: 5px solid #D97706;
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(217, 119, 6, 0.06);
    transition: all 0.25s ease;
}
.codex-preamble-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.codex-preamble-excerpt {
    font-size: 0.92rem;
    color: #78350F;
    font-family: 'Merriweather', Georgia, serif;
    font-style: italic;
    line-height: 1.5;
    flex: 1;
    min-width: 260px;
}
.codex-preamble-toggle-btn {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.codex-preamble-toggle-btn:hover {
    background: #F59E0B;
    color: #FFFFFF;
    border-color: #D97706;
}
.codex-preamble-drawer {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #FCD34D;
    font-size: 0.95rem;
    color: #451A03;
    line-height: 1.85;
    font-family: 'Merriweather', Georgia, serif;
}

/* 3. Unified Command & Spotlight Search Bar */
.codex-search-hub {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    margin-bottom: 26px;
}
.codex-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.codex-search-field {
    flex: 2;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}
.codex-search-field input {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 46px;
    border-radius: 10px;
    border: 1.5px solid #CBD5E1;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    color: #0F172A;
    background: #FFFFFF;
    box-sizing: border-box;
}
.codex-search-field input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.codex-search-field i,
.codex-search-field svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}
.codex-select-field {
    flex: 1;
    min-width: 200px;
}
.codex-select-field select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid #CBD5E1;
    font-size: 0.92rem;
    background: #FFFFFF;
    color: #0F172A;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}
.codex-select-field select:focus {
    border-color: #2563EB;
}
.codex-submit-btn {
    height: 48px;
    background: #0A192F;
    color: #FFFFFF;
    padding: 0 24px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}
.codex-submit-btn:hover {
    background: #1E3A8A;
}
.codex-sub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}
.codex-jumper-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}
.codex-jumper-input {
    width: 72px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1.5px solid #CBD5E1;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    color: #0F172A;
}
.codex-jumper-btn {
    padding: 5px 12px;
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease;
}
.codex-jumper-btn:hover {
    background: #1D4ED8;
}
.codex-topic-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.codex-topic-chip {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.18s ease;
}
.codex-topic-chip:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #CBD5E1;
}
.codex-topic-chip.chip-gold {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}
.codex-topic-chip.chip-gold:hover {
    background: #FDE68A;
}

/* 4. 2-Column Workspace Layout */
.const-workspace-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* 5. Master Codex Left Sidebar */
.const-left-sidebar {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    padding-right: 4px;
}
.const-left-sidebar::-webkit-scrollbar {
    width: 4px;
}
.const-left-sidebar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}
.codex-sidebar-shell {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.codex-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 4px;
    gap: 4px;
}
.codex-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748B;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.codex-tab-btn.active {
    background: #FFFFFF;
    color: #0A192F;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.codex-ledger-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.codex-ledger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #FFFFFF;
    text-decoration: none !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.codex-ledger-item:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateX(2px);
}
.codex-ledger-item.active {
    background: #EFF6FF;
    border-color: #BFDBFE;
}
.codex-ledger-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.codex-art-num {
    font-size: 0.78rem;
    font-weight: 900;
    color: #0F172A;
    background: #F1F5F9;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.codex-ledger-meta {
    min-width: 0;
}
.codex-ledger-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.codex-ledger-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748B;
    line-height: 1.2;
}
.codex-ledger-arrow {
    color: #94A3B8;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.codex-ledger-item:hover .codex-ledger-arrow {
    color: #2563EB;
    transform: translateX(2px);
}

/* 6. Right Main Area & View Switcher */
.const-right-content {
    min-width: 0;
}
.codex-view-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.codex-view-pills {
    display: inline-flex;
    background: #E2E8F0;
    padding: 4px;
    border-radius: 999px;
}
.codex-view-pill-btn {
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #475569;
    transition: all 0.2s ease;
}
.codex-view-pill-btn.active {
    background: #FFFFFF;
    color: #0A192F;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 7. High-Legibility Editorial Article Card (Zero Nested Boxes) */
.codex-article-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    padding: 24px 26px;
    margin-bottom: 18px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.codex-article-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
.codex-art-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.codex-art-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.codex-art-pill-tag {
    font-size: 0.78rem;
    font-weight: 900;
    color: #FFFFFF;
    background: #0A192F;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}
.codex-art-right-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}
.codex-art-part-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
}
.codex-art-heading {
    font-size: 1.22rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}
.codex-art-heading a {
    color: #0F172A;
    text-decoration: none;
    transition: color 0.18s ease;
}
.codex-art-heading a:hover {
    color: #2563EB;
}
/* Plain Meaning as Crisp Reading Typography */
.codex-plain-meaning-prose {
    font-size: 0.94rem;
    line-height: 1.68;
    color: #334155;
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 3px solid #E2E8F0;
    font-family: system-ui, -apple-system, sans-serif;
}
.codex-art-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
    flex-wrap: wrap;
    gap: 10px;
}
.codex-read-more-link {
    font-size: 0.84rem;
    font-weight: 800;
    color: #2563EB;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.18s ease;
}
.codex-read-more-link:hover {
    gap: 8px;
    color: #1D4ED8;
}
.codex-util-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}
.codex-copy-citation-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}
.codex-copy-citation-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

/* 8. Responsive Adaptations (< 992px) */
@media (max-width: 991px) {
    .const-codex-hero {
        padding: 24px 20px;
    }
    .const-workspace-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .const-left-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        width: 100%;
        padding-right: 0;
    }
    .codex-ledger-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 10px 12px;
        -webkit-overflow-scrolling: touch;
    }
    .codex-ledger-item {
        flex: 0 0 240px;
        scroll-snap-align: start;
        border: 1px solid #E2E8F0;
    }
    .codex-article-card {
        padding: 18px 20px;
    }
}

