/**
 * VERIFPANNE.COM — Master French Design System & Stylesheet
 * Refined French GovTech/Observatoire Aesthetic, Dark/Light Themes,
 * CLS-Safe Ad Slotting, Fluid Responsive Grid, and Micro-Interactions.
 */

/* ==========================================================================
   1. CSS Variables & Design Tokens (Dark Default + Light Switchable)
   ========================================================================== */
:root {
    /* Brand Colors - Bleu Républicain & Énergie */
    --brand-primary: #3b82f6;
    --brand-primary-hover: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-gold: #f59e0b;
    --brand-gold-glow: rgba(245, 158, 11, 0.25);
    
    /* Category Colors */
    --cat-energy: #f59e0b;
    --cat-energy-bg: rgba(245, 158, 11, 0.12);
    --cat-telecom: #3b82f6;
    --cat-telecom-bg: rgba(59, 130, 246, 0.12);
    --cat-transport: #8b5cf6;
    --cat-transport-bg: rgba(139, 92, 246, 0.12);
    --cat-gas: #ef4444;
    --cat-gas-bg: rgba(239, 68, 68, 0.12);
    --cat-water: #06b6d4;
    --cat-water-bg: rgba(6, 182, 212, 0.12);
    --cat-digital: #10b981;
    --cat-digital-bg: rgba(16, 185, 129, 0.12);

    /* Operational Status */
    --status-success: #10b981;
    --status-success-bg: rgba(16, 185, 129, 0.12);
    --status-warning: #f59e0b;
    --status-warning-bg: rgba(245, 158, 11, 0.12);
    --status-danger: #ef4444;
    --status-danger-bg: rgba(239, 68, 68, 0.15);

    /* Dark Theme Surfaces (Default) */
    --bg-body: #0b0f19;
    --bg-card: #111827;
    --bg-card-hover: #1e293b;
    --bg-elevated: #1f293d;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    /* Shadows & Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #f1f5f9;
    --border-subtle: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-color: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Light Mode Clean White Surfaces & Inputs (Zero dull gray boxes) */
[data-theme="light"] .form-control,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="search"],
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .form-control:focus,
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    background: #ffffff !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .stat-card,
[data-theme="light"] .feed-item,
[data-theme="light"] .sector-hub-card,
[data-theme="light"] .dept-region-card,
[data-theme="light"] .home-calc-widget,
[data-theme="light"] .modal-content,
[data-theme="light"] .report-card,
[data-theme="light"] .guide-card,
[data-theme="light"] .box {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .calc-result-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #93c5fd !important;
    color: #1e3a8a !important;
}
[data-theme="light"] .calc-result-amount {
    color: #b45309 !important;
}
[data-theme="light"] .calc-result-sub {
    color: #475569 !important;
}
[data-theme="light"] .feed-item:hover,
[data-theme="light"] .sector-hub-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .radio-chip {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
[data-theme="light"] .radio-chip:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .hero-quick-pill,
[data-theme="light"] .dept-pill,
[data-theme="light"] .sector-hub-op-tag {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}
[data-theme="light"] .btn-secondary {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0;
}
[data-theme="light"] .contact-hero-banner {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(240, 249, 255, 0.8) 100%) !important;
    border: 1px solid #bfdbfe !important;
    color: #1e3a8a !important;
}
[data-theme="light"] .contact-hero-banner h2,
[data-theme="light"] .contact-hero-banner strong {
    color: #1e3a8a !important;
}
[data-theme="light"] .contact-badge-box {
    background: #ffffff !important;
    border-color: #dbeafe !important;
    color: #334155 !important;
}

/* ==========================================================================
   2. Reset & Global Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-hover);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-gold { color: var(--brand-gold); }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ==========================================================================
   3. Urgent Broadcast Bar
   ========================================================================== */
.urgent-broadcast-bar {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.92rem;
    font-weight: 600;
}
.broadcast-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.broadcast-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}

/* ==========================================================================
   4. Site Header & Master Navigation
   ========================================================================== */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}
.brand-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}
.brand-img.logo-dark {
    display: block;
}
.brand-img.logo-light {
    display: none;
}
[data-theme="light"] .brand-img.logo-dark {
    display: none !important;
}
[data-theme="light"] .brand-img.logo-light {
    display: block !important;
}
.logo-mark {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--brand-gold));
}
.logo-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo-title strong {
    color: var(--brand-primary);
}
.logo-country-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-elevated);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
    color: var(--text-secondary);
}

/* Pulse Beacon */
.live-pulse-beacon {
    width: 9px;
    height: 9px;
    background-color: var(--status-success);
    border-radius: 50%;
    position: relative;
}
.live-pulse-beacon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--status-success);
    animation: beaconPulse 2s infinite ease-out;
}
@keyframes beaconPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Header Autocomplete Search Bar */
.header-search-wrapper {
    flex: 1;
    max-width: 520px;
    position: relative;
}
.search-form {
    position: relative;
    width: 100%;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    pointer-events: none;
    opacity: 0.6;
}
.search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 38px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
}
.search-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: var(--bg-card);
}
.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 380px;
    overflow-y: auto;
    z-index: 200;
}
.search-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}
.search-dropdown-item:last-child {
    border-bottom: none;
}
.search-dropdown-item:hover, .search-dropdown-item.active {
    background: var(--bg-card-hover);
}
.search-item-info {
    display: flex;
    flex-direction: column;
}
.search-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.search-item-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.search-item-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* Header Controls & Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Country Switcher Dropdown */
.country-dropdown-wrapper {
    position: relative;
}
.btn-country-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--transition-fast);
}
.btn-country-toggle:hover {
    background: var(--bg-card-hover);
}
.country-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 210px;
    z-index: 200;
}
.country-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-subtle);
}
.country-menu li:last-child a {
    border-bottom: none;
}
.country-menu li a:hover, .country-menu li a.active {
    background: var(--bg-card-hover);
    color: var(--brand-primary);
}

/* Theme Switcher Button */
.btn-theme-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--transition-fast);
}
.btn-theme-toggle:hover {
    background: var(--bg-card-hover);
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}
.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
    background: var(--brand-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Category Navigation Sub-Bar */
.category-nav {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.category-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 960px) {
    .category-nav {
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }
    .category-nav::-webkit-scrollbar { display: none; }
    .category-nav-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-left: 16px;
        padding-right: 16px;
    }
}
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}
.cat-pill .pill-ico {
    font-size: 0.84em;
    display: inline-block;
    vertical-align: -1px;
    opacity: 0.9;
    line-height: 1;
}
.cat-pill:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.pill-energy .pill-dot { background-color: var(--cat-energy); }
.pill-telecom .pill-dot { background-color: var(--cat-telecom); }
.pill-transport .pill-dot { background-color: var(--cat-transport); }
.pill-gas .pill-dot { background-color: var(--cat-gas); }
.pill-calc {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.pill-material-guide,
.pill-material-calc {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.81rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}
.pill-material-guide:hover,
.pill-material-calc:hover {
    background: var(--bg-elevated);
    border-color: var(--border-focus);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: var(--brand-primary);
}
.pill-material-guide:active,
.pill-material-calc:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   5. Hero Section & Metric Counters
   ========================================================================== */
.hero-section {
    padding: 48px 0 32px 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%);
    text-align: center;
}
.hero-beacon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--brand-primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 32px auto;
}

/* Hero Stats Row */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 32px auto 0 auto;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   6. Interactive Map Section (Leaflet Container)
   ========================================================================== */
.map-section {
    padding: 32px 0;
}
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.map-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.map-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.map-tab-btn:hover, .map-tab-btn.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.map-card-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
}
#franceOutageMap {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-elevated);
    z-index: 1;
}
.map-dark-theme .leaflet-tile {
    filter: brightness(0.65) invert(1) contrast(2.2) hue-rotate(190deg) saturate(0.4);
}

/* Leaflet Dark Custom Overrides */
.leaflet-container {
    font-family: inherit;
}
.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-tip {
    background: var(--bg-card) !important;
}

/* ==========================================================================
   7. Official Providers Grid (113 Tracked Networks)
   ========================================================================== */
.providers-section {
    padding: 32px 0;
}
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
}
.provider-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
}
.provider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.provider-name-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.provider-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.provider-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.provider-cat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.provider-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
}
.status-success {
    background: var(--status-success-bg);
    color: var(--status-success);
}
.status-warning {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}
.status-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}
.provider-footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   8. Live Incident Feed & Timeline
   ========================================================================== */
.feed-section {
    padding: 32px 0;
}
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feed-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.feed-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}
.feed-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.feed-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.feed-title {
    font-size: 1rem;
    font-weight: 700;
}
.feed-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-top: 3px;
}
.feed-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.feed-affected-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-gold);
}

/* ==========================================================================
   9. Dual Postcode + City pSEO Grid (Grandes Métropoles)
   ========================================================================== */
.pseo-grid-section {
    padding: 36px 0;
}
.pseo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.pseo-city-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}
.pseo-city-card:hover {
    border-color: var(--brand-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.pseo-city-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.pseo-cp-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--bg-elevated);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--brand-primary);
}

/* ==========================================================================
   10. Compensation Calculator Banner CTA
   ========================================================================== */
.calc-cta-banner {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: 36px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow-lg);
}
.calc-cta-content {
    max-width: 680px;
}
.calc-cta-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}
.calc-cta-desc {
    color: #93c5fd;
    font-size: 0.98rem;
}

/* ==========================================================================
   11. Interactive Report Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close-btn:hover {
    color: var(--text-primary);
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.modal-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-gold-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
}
.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.report-form .form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
textarea.form-control {
    height: auto;
    padding: 10px 14px;
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.issue-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.radio-chip:hover {
    background: var(--bg-card-hover);
}
.form-feedback {
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.form-feedback.success {
    background: var(--status-success-bg);
    color: var(--status-success);
    border: 1px solid var(--status-success);
}
.form-feedback.error {
    background: var(--status-danger-bg);
    color: var(--status-danger);
    border: 1px solid var(--status-danger);
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ==========================================================================
   12. CLS-Safe Ad Slotting
   ========================================================================== */
.ad-slot-wrapper {
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    margin: 24px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ad-placeholder-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: absolute;
    top: 6px;
    right: 10px;
}
.top-ad-container, .bottom-ad-container {
    padding: 12px 0;
}

/* ==========================================================================
   13. Master Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    padding-top: 48px;
}
.footer-matrix {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.brand-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}
.live-status-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-success);
}
.indexnow-badge {
    font-size: 0.76rem;
    color: var(--brand-primary);
    font-weight: 600;
}
.footer-heading {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.86rem;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 2px;
}
.footer-bottom {
    background: var(--bg-body);
    border-top: 1px solid var(--border-subtle);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-badges {
    display: flex;
    gap: 16px;
}

/* Scroll To Top */
.btn-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 90;
    transition: all var(--transition-fast);
}
.btn-scroll-top:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   14. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .footer-matrix {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .calc-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
    }
    .header-search-wrapper {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 8px;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .footer-matrix {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .form-row-grid {
        grid-template-columns: 1fr;
    }
    .feed-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .feed-item-right {
        align-items: flex-start;
    }
}

/* ==========================================================================
   15. Advanced Multi-Sector Authority Homepage Additions
   ========================================================================== */

/* Hero Quick Tags */
.hero-quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.hero-quick-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.hero-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.hero-quick-pill:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
    color: var(--brand-accent);
}

/* 6 Major Sector Command Hubs Grid */
.sector-hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.sector-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.sector-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--brand-accent));
}
.sector-hub-card:hover {
    border-color: var(--card-accent, var(--brand-accent));
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.sector-hub-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sector-hub-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sector-hub-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}
.sector-hub-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.sector-hub-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sector-hub-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}
.sector-hub-operators {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.sector-hub-op-tag {
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
}
.sector-hub-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.sector-hub-metric {
    font-weight: 700;
    color: var(--text-primary);
}
.sector-hub-action {
    color: var(--brand-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Floating Map Counter Badge */
.map-counter-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 500;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Interactive Citizen Compensation Calculator Widget */
.home-calc-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin: 40px 0;
}
.calc-nav-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}
.calc-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}
.calc-tab-btn.active {
    color: var(--brand-accent);
    border-bottom-color: var(--brand-accent);
}
.calc-pane {
    display: none;
}
.calc-pane.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 860px) {
    .calc-pane.active {
        grid-template-columns: 1fr;
    }
}
.calc-result-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}
.calc-result-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--brand-gold);
    line-height: 1;
    margin: 12px 0 6px 0;
}
.calc-result-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* 101 Departments Directory Matrix */
.dept-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.dept-region-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}
.dept-region-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--brand-accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}
.dept-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dept-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.dept-pill:hover {
    border-color: var(--brand-accent);
    background: var(--bg-card);
    color: var(--brand-accent);
}
.dept-pill-code {
    font-weight: 800;
    color: var(--brand-gold);
}

/* Featured Citizen Guides Cards */
.guides-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.guide-home-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}
.guide-home-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.guide-home-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-accent);
    margin-bottom: 10px;
}
.guide-home-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.guide-home-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}
.guide-home-action {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* FAQ Accordion */
.home-faq-accordion {
    max-width: 900px;
    margin: 24px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-accordion-trigger {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-accordion-trigger:hover {
    color: var(--brand-accent);
}
.faq-accordion-body {
    padding: 0 20px 18px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-accordion-chevron {
    transition: transform var(--transition-fast);
}
.faq-accordion-item.active .faq-accordion-chevron {
    transform: rotate(180deg);
}

/* ==========================================================================
   14. Incident Dossier & OutageUSA Caliber Detail Components
   ========================================================================== */
.incident-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.incident-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.incident-kpi-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast);
}
[data-theme="light"] .incident-kpi-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.incident-kpi-card:hover {
    transform: translateY(-2px);
}
.incident-kpi-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.incident-kpi-val {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}
.incident-kpi-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Incident Progress Timeline */
.incident-timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.timeline-stages-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
    position: relative;
}
@media (max-width: 768px) {
    .timeline-stages-bar {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.timeline-stage-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
    transition: all var(--transition-fast);
}
[data-theme="light"] .timeline-stage-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.timeline-stage-item.completed {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}
.timeline-stage-item.current {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}
.timeline-stage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--border-subtle);
    color: var(--text-muted);
}
.timeline-stage-item.completed .timeline-stage-num {
    background: #10b981;
    color: #ffffff;
}
.timeline-stage-item.current .timeline-stage-num {
    background: #f59e0b;
    color: #ffffff;
}
.timeline-stage-title {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.timeline-stage-status {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Leaflet Mini Map Container */
.incident-minimap-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
#panneMiniMap {
    height: 380px;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Nearby Communes Matrix Table */
.nearby-communes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    margin-top: 14px;
}
.nearby-communes-table th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
[data-theme="light"] .nearby-communes-table th {
    background: #f1f5f9;
}
.nearby-communes-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.nearby-communes-table tr:hover td {
    background: var(--bg-card-hover);
}
[data-theme="light"] .nearby-communes-table tr:hover td {
    background: #f8fafc;
}

/* Editorial pSEO Dossier */
.pseo-dossier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
    line-height: 1.75;
}
[data-theme="light"] .pseo-dossier-card {
    background: #ffffff !important;
}
.pseo-dossier-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 32px 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.pseo-dossier-card h2:first-of-type {
    margin-top: 0;
}
.pseo-dossier-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-accent);
    margin: 22px 0 10px 0;
}
.pseo-dossier-card p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.pseo-callout-box {
    background: var(--bg-elevated);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 20px 0;
}
[data-theme="light"] .pseo-callout-box {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1e3a8a !important;
}
.pseo-callout-box p {
    margin: 0;
}
[data-theme="light"] .pseo-callout-box p,
[data-theme="light"] .pseo-callout-box strong {
    color: #1e3a8a !important;
}

/* ==========================================================================
   15. Vector SVG & Sector / Guide Authentic Media Styling
   ========================================================================== */
.vp-svg {
    display: inline-block;
    vertical-align: -3px;
    flex-shrink: 0;
}
.pill-svg {
    vertical-align: -2px;
    margin-right: 4px;
}

/* Sector Hub Cards Visual Polish */
.sector-hub-card {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}
.sector-hub-thumb-wrap {
    height: 145px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}
/* Protective dark gradient overlay across the entire photo */
.sector-hub-thumb-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(15, 23, 42, 0.2) 45%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
/* Localized dark scrim behind the top-right badge */
.sector-hub-thumb-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 65%;
    background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 45%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}
.sector-hub-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}
.sector-hub-card:hover .sector-hub-thumb-img {
    transform: scale(1.05);
}
.sector-hub-card:hover .sector-hub-thumb-wrap::before {
    opacity: 0.9;
}
.sector-hub-card > div:nth-child(2) {
    padding: 20px 22px 0 22px;
    flex: 1;
}
.sector-hub-card .sector-hub-footer {
    padding: 14px 22px 18px 22px;
    margin-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

/* Crystal-clear high-contrast badge with solid vibrant background & glassmorphism */
.sector-hub-thumb-wrap .sector-hub-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.sector-hub-badge.badge-warning,
.badge-warning {
    background: #dc2626 !important;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.sector-hub-badge.badge-success,
.badge-success {
    background: #059669 !important;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Guide Home Cards Visual Polish */
.guide-home-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.guide-home-thumb-wrap {
    height: 160px;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}
.guide-home-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}
.guide-home-card:hover .guide-home-thumb-img {
    transform: scale(1.04);
}
.guide-home-body {
    padding: 20px 22px 0 22px;
    flex: 1;
}
.guide-home-action {
    padding: 14px 22px 18px 22px;
}

/* ==========================================================================
   16. Comprehensive Mobile Responsiveness & Touch Optimization
   ========================================================================== */
@media (max-width: 991px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 6px 0 0 0;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 10px 0 !important;
    }
    .brand-img {
        height: 32px !important;
    }
    .btn-report-trigger .btn-text {
        display: none;
    }
    .btn-report-trigger {
        padding: 8px 12px !important;
    }
    .hero-title {
        font-size: 1.65rem !important;
    }
    .incident-hero-card {
        padding: 20px 16px !important;
    }
    .incident-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding-top: 16px !important;
        margin-top: 16px !important;
    }
    .incident-kpi-card {
        padding: 12px 14px !important;
    }
    .incident-kpi-val {
        font-size: 1.05rem !important;
    }
    .incident-kpi-label {
        font-size: 0.72rem !important;
    }
    .sector-hubs-grid {
        grid-template-columns: 1fr !important;
    }
    .guides-home-grid {
        grid-template-columns: 1fr !important;
    }
    .timeline-stages-bar {
        grid-template-columns: 1fr !important;
    }
    #panneMiniMap {
        height: 280px !important;
    }
    .pseo-dossier-card {
        padding: 22px 16px !important;
    }
    .feed-item {
        padding: 12px 14px !important;
    }
    .feed-cat-icon {
        width: 36px !important;
        height: 36px !important;
    }
    .stat-card {
        padding: 12px 14px !important;
    }
    .stat-value {
        font-size: 1.45rem !important;
    }
    .sector-hub-thumb-wrap {
        height: 125px !important;
    }
    .sector-hub-thumb-wrap .sector-hub-badge {
        top: 10px !important;
        right: 10px !important;
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
    }
    .sector-hub-card > div:nth-child(2) {
        padding: 16px 18px 0 18px !important;
    }
    .sector-hub-card .sector-hub-footer {
        padding: 12px 18px 16px 18px !important;
    }
}

@media (max-width: 480px) {
    .incident-kpi-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .category-nav-container {
        gap: 6px;
    }
    .cat-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


