
/* [Same CSS styles as before - keeping them unchanged for consistency] */
:root {
    --ews-news-blue: #0c2f57;
    --ews-news-blue-light: #13558f;
    --ews-news-red: #940c00;
    --ews-news-red-bright: #c8261a;
    --ews-news-ink: #17212b;
    --ews-news-muted: #677381;
    --ews-news-line: #dfe4e9;
    --ews-news-soft: #f4f6f8;
    --ews-news-white: #ffffff;
}

.news-page-hero {
    padding: 52px 0;
    background-color: var(--ews-news-blue);
}

.breaking-news-wrapper {
    background: var(--ews-news-red);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0;
}

.breaking-news-area {
    min-height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #111820;
    color: #fff;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.breaking-ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 auto;
}

.ticker-track {
    display: inline-flex;
    min-width: max-content;
    animation: ewsTicker 65s linear infinite;
    will-change: transform;
}

.ticker-item {
    color: #fff;
    font-size: 13px;
    padding: 0 30px;
}

.ticker-item strong {
    color: #ffe59e;
}

@keyframes ewsTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

.news-summary-section {
    background: #fff;
    border-bottom: 1px solid var(--ews-news-line);
}

.news-summary-bar {
    display: grid;
    grid-template-columns: 0.7fr 1fr 1.55fr auto;
    align-items: stretch;
}

.summary-stat,
.summary-status {
    padding: 18px 22px;
    border-right: 1px solid var(--ews-news-line);
}

.summary-label {
    display: block;
    color: var(--ews-news-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.summary-stat strong {
    color: var(--ews-news-ink);
    font-size: 15px;
}

.summary-status {
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 0;
    color: var(--ews-news-ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6c757d;
}

.status-live .status-dot { background: #18864b; box-shadow: 0 0 0 4px rgba(24, 134, 75, 0.12); }
.status-cached .status-dot { background: #d59400; box-shadow: 0 0 0 4px rgba(213, 148, 0, 0.12); }
.status-error .status-dot { background: var(--ews-news-red); box-shadow: 0 0 0 4px rgba(148, 12, 0, 0.12); }

.news-filter-section {
    padding: 42px 0 28px;
    background: var(--ews-news-soft);
    border-bottom: 1px solid var(--ews-news-line);
}

.filter-heading-row,
.news-results-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.section-kicker {
    display: block;
    color: var(--ews-news-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.filter-heading-row h2,
.news-results-heading h2,
.publisher-directory-heading h2 {
    color: var(--ews-news-ink);
    font-size: 27px;
    line-height: 1.25;
    margin: 0;
}

.filter-reset {
    background: transparent;
    border: 1px solid #b8c0c8;
    color: var(--ews-news-blue);
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.filter-reset:hover,
.filter-reset:focus-visible {
    border-color: var(--ews-news-red);
    color: var(--ews-news-red);
}

.publisher-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publisher-filter {
    border: 1px solid #ccd2d8;
    background: #fff;
    color: #364554;
    min-height: 42px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.publisher-filter span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    margin-left: 6px;
    padding: 0 5px;
    background: #eef1f4;
    color: #596674;
    font-size: 11px;
}

.publisher-filter:hover:not(:disabled),
.publisher-filter:focus-visible:not(:disabled) {
    border-color: var(--ews-news-blue-light);
    color: var(--ews-news-blue-light);
}

.publisher-filter.active {
    background: var(--ews-news-blue);
    border-color: var(--ews-news-blue);
    color: #fff;
}

.publisher-filter.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.publisher-filter:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.topic-filter-row {
    display: grid;
    grid-template-columns: auto minmax(220px, 320px) 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #d8dde2;
}

.topic-filter-row label {
    color: var(--ews-news-ink);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.topic-filter {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c8d0d7;
    background: #fff;
    color: var(--ews-news-ink);
    padding: 8px 36px 8px 12px;
    font-size: 13px;
}

.topic-filter-row p {
    margin: 0;
    color: var(--ews-news-muted);
    font-size: 12px;
}

.featured-news-section {
    padding: 42px 0;
    background: #fff;
}

.featured-news-card {
    --source-accent: var(--ews-news-blue);
    display: grid;
    grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
    border: 1px solid var(--ews-news-line);
    border-top: 5px solid var(--source-accent);
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 43, 57, 0.07);
}

.featured-visual {
    min-height: 310px;
    background: var(--ews-news-blue);
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.publisher-monogram {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.publisher-monogram i {
    font-size: 44px;
    opacity: 0.95;
}

.publisher-monogram span {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1;
    max-width: 300px;
}

.visual-topic {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.38);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-news-content {
    padding: clamp(28px, 4vw, 48px);
    align-self: center;
}

.news-meta-top,
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    color: var(--ews-news-muted);
    font-size: 12px;
}

.latest-label {
    display: inline-block;
    margin-top: 24px;
    color: var(--ews-news-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-title {
    color: var(--ews-news-ink);
    font-size: clamp(25px, 3vw, 37px);
    line-height: 1.22;
    margin: 8px 0 15px;
}

.featured-text {
    color: var(--ews-news-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--ews-news-red);
    color: #fff;
    padding: 11px 19px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
    background: var(--ews-news-blue);
    color: #fff;
}

.news-grid-section {
    padding: 50px 0 62px;
    background: var(--ews-news-soft);
}

.news-results-heading {
    margin-bottom: 24px;
}

.news-results-heading p {
    margin: 0;
    color: var(--ews-news-muted);
    font-size: 13px;
    font-weight: 700;
}

.news-item {
    content-visibility: auto;
    contain-intrinsic-size: 460px;
}

.news-item[hidden] {
    display: none !important;
}

.news-card {
    --source-accent: var(--ews-news-blue);
    height: 100%;
    background: #fff;
    border: 1px solid var(--ews-news-line);
    border-top: 4px solid var(--source-accent);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(27, 42, 56, 0.1);
}

.news-card-visual {
    min-height: 120px;
    padding: 19px;
    background: var(--ews-news-blue);
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 5px 12px;
    align-content: center;
}

.news-card-visual i {
    grid-row: 1 / 3;
    align-self: center;
    font-size: 29px;
    opacity: 0.9;
}

.news-card-visual span {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
}

.news-card-visual small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.8;
    text-transform: uppercase;
}

.news-card-content {
    flex: 1 1 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-meta {
    justify-content: space-between;
    border-bottom: 1px solid #edf0f2;
    padding-bottom: 11px;
    margin-bottom: 14px;
}

.news-meta span {
    color: var(--source-accent);
    font-weight: 800;
}

.news-title {
    font-size: 18px;
    line-height: 1.42;
    margin: 0 0 12px;
}

.news-title a {
    color: var(--ews-news-ink);
    text-decoration: none;
}

.news-title a:hover,
.news-title a:focus-visible {
    color: var(--ews-news-red);
}

.news-excerpt {
    color: var(--ews-news-muted);
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 18px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf0f2;
}

.topic-tag {
    color: #53606c;
    background: #f0f3f5;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.read-more {
    color: var(--ews-news-red);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.read-more:hover,
.read-more:focus-visible {
    color: var(--ews-news-blue);
}

.load-more-container {
    text-align: center;
    margin-top: 34px;
}

.load-more-btn {
    min-width: 230px;
    background: var(--ews-news-blue);
    border: 1px solid var(--ews-news-blue);
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.load-more-btn:hover,
.load-more-btn:focus-visible {
    background: var(--ews-news-red);
    border-color: var(--ews-news-red);
}

.no-filter-results,
.news-empty-state {
    text-align: center;
    background: #fff;
    border: 1px solid var(--ews-news-line);
    padding: 45px 25px;
}

.no-filter-results i,
.news-empty-state i {
    color: var(--ews-news-red);
    font-size: 35px;
    margin-bottom: 13px;
}

.no-filter-results h3,
.news-empty-state h2 {
    color: var(--ews-news-ink);
    margin-bottom: 8px;
}

.no-filter-results p,
.news-empty-state p {
    color: var(--ews-news-muted);
    margin: 0 auto;
    max-width: 720px;
}

.publisher-directory-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid var(--ews-news-line);
}

.publisher-directory-heading {
    max-width: 820px;
    margin-bottom: 25px;
}

.publisher-directory-heading p {
    color: var(--ews-news-muted);
    margin: 10px 0 0;
    font-size: 13px;
}

.publisher-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.publisher-directory-card {
    --source-accent: var(--ews-news-blue);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--ews-news-line);
    border-left: 4px solid var(--source-accent);
    padding: 16px;
    color: var(--ews-news-ink);
    text-decoration: none;
}

.publisher-directory-card:hover,
.publisher-directory-card:focus-visible {
    border-color: var(--source-accent);
    color: var(--ews-news-ink);
}

.publisher-directory-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--source-accent);
    color: #fff;
}

.publisher-directory-copy {
    min-width: 0;
}

.publisher-directory-copy strong,
.publisher-directory-copy small {
    display: block;
}

.publisher-directory-copy strong {
    font-size: 14px;
}

.publisher-directory-copy small {
    color: var(--ews-news-muted);
    font-size: 11px;
    margin-top: 2px;
}

.publisher-health {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.publisher-health.available { color: #18864b; }
.publisher-health.unavailable { color: #a87000; }

.client-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    text-align: left;
}
.client-news-card {
    background: #fff;
    border: 1px solid var(--ews-news-line);
    padding: 18px;
    min-height: 190px;
    box-shadow: 0 8px 24px rgba(20, 38, 56, 0.07);
}
.client-news-card small { color: var(--ews-news-muted); font-weight: 700; }
.client-news-card h3 { font-size: 16px; line-height: 1.45; margin: 10px 0; }
.client-news-card h3 a { color: var(--ews-news-ink); }
.client-news-card p { font-size: 13px; line-height: 1.55; margin: 0; }
.client-news-direct { margin-top: 20px; }
.client-news-direct a { display: inline-block; margin: 5px; padding: 8px 12px; border: 1px solid var(--ews-news-line); background: #fff; }
@media (max-width: 991px) { .client-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .client-news-grid { grid-template-columns: 1fr; } }

.news-debug-section {
    padding: 18px 0;
    background: #fff4d8;
    border-top: 1px solid #e8c86a;
    font-size: 12px;
}

.news-debug-section summary {
    cursor: pointer;
    font-weight: 800;
}

.news-debug-section ul {
    margin: 10px 0 0;
}


.source-metro { --source-accent: #5d2e8c; }
.source-metro .featured-visual,
.source-metro .news-card-visual { background: #4d2775; }

.source-daily-mail { --source-accent: #163c74; }
.source-daily-mail .featured-visual,
.source-daily-mail .news-card-visual { background: #122f5b; }

.source-independent { --source-accent: #c71717; }
.source-independent .featured-visual,
.source-independent .news-card-visual { background: #a91414; }

.source-telegraph { --source-accent: #111111; }
.source-telegraph .featured-visual,
.source-telegraph .news-card-visual { background: #171717; }

.source-sky-news { --source-accent: #d71920; }
.source-sky-news .featured-visual,
.source-sky-news .news-card-visual { background: #b51319; }

.source-bbc { --source-accent: #b80000; }
.source-bbc .featured-visual,
.source-bbc .news-card-visual { background: #8f0000; }

.source-al-jazeera { --source-accent: #c99628; }
.source-al-jazeera .featured-visual,
.source-al-jazeera .news-card-visual { background: #8b671b; }

.source-cnn { --source-accent: #cc0000; }
.source-cnn .featured-visual,
.source-cnn .news-card-visual { background: #a40000; }


@media (max-width: 991px) {
    .news-summary-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-stat,
    .summary-status {
        border-bottom: 1px solid var(--ews-news-line);
    }

    .featured-news-card {
        grid-template-columns: 1fr;
    }

    .featured-visual {
        min-height: 220px;
    }

    .publisher-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .news-page-hero { padding: 38px 0; }

    .breaking-label { padding: 0 12px; }
    .ticker-item { padding: 0 18px; }

    .news-summary-bar {
        grid-template-columns: 1fr;
    }

    .summary-stat,
    .summary-status {
        border-right: 0;
    }

    .filter-heading-row,
    .news-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .topic-filter-row {
        grid-template-columns: 1fr;
    }

    .featured-news-content {
        padding: 24px 20px;
    }

    .publisher-directory-grid {
        grid-template-columns: 1fr;
    }

    .publisher-directory-card {
        grid-template-columns: auto 1fr;
    }

    .publisher-health {
        grid-column: 2;
    }
}

/* Lightweight map: retained visually, deferred by the browser when off-screen. */
.threat-map-section {
    padding: 64px 0;
    background: #0a2a35;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}
.threat-map-section .section-header { margin-bottom: 34px; }
.threat-map-section .section-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffc107;
    font-weight: 800;
}
.threat-map-section .section-title { color: #fff; font-size: 31px; margin: 7px 0 10px; }
.threat-map-section .section-desc { color: #bdd2dc; margin: 0 auto; max-width: 720px; }
.map-wrapper { background: #081d27; padding: 20px; position: relative; border: 1px solid rgba(255,255,255,0.1); }
.map-controls { position: absolute; top: 34px; right: 34px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.map-control { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.24); background: rgba(5,20,27,0.88); color: #fff; cursor: pointer; }
.map-control:hover, .map-control:focus-visible { background: var(--ews-news-red); border-color: var(--ews-news-red); }
.map-container-scrollable { overflow: hidden; background: #0a1e28; cursor: grab; touch-action: none; min-height: 340px; }
.map-container-scrollable.is-dragging { cursor: grabbing; }
.world-map-interactive { width: 100%; transform-origin: center center; will-change: transform; }
.world-map-svg { width: 100%; height: auto; min-height: 340px; display: block; }
.marker-group { cursor: pointer; outline: none; }
.marker-group text { fill: #fff; font-size: 10px; font-weight: 800; paint-order: stroke; stroke: rgba(0,0,0,0.55); stroke-width: 2px; }
.marker-group .marker-core { stroke: #fff; stroke-width: 2; }
.marker-conflict .marker-core { fill: #dc3545; }
.marker-conflict .marker-halo { fill: rgba(220,53,69,0.28); }
.marker-tension .marker-core { fill: #ffc107; }
.marker-tension .marker-halo { fill: rgba(255,193,7,0.26); }
.marker-nuclear .marker-core { fill: #0d6efd; }
.marker-nuclear .marker-halo { fill: rgba(13,110,253,0.27); }
.marker-group:hover .marker-core, .marker-group:focus .marker-core { stroke-width: 4; }
.map-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 20px; padding: 14px 20px; background: rgba(255,255,255,0.08); }
.legend-item { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 700; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.legend-dot.war { background: #dc3545; box-shadow: 0 0 8px #dc3545; }
.legend-dot.tension { background: #ffc107; box-shadow: 0 0 8px #ffc107; }
.legend-dot.nuclear { background: #0d6efd; box-shadow: 0 0 8px #0d6efd; }
.region-status-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.status-card { display: flex; gap: 14px; padding: 19px; background: rgba(255,255,255,0.075); border: 1px solid rgba(255,255,255,0.08); }
.status-icon { width: 42px; flex: 0 0 42px; font-size: 27px; text-align: center; }
.status-card.critical .status-icon { color: #ff6472; }
.status-card.high .status-icon { color: #ffd45b; }
.status-card.nuclear .status-icon { color: #6da7ff; }
.status-info h4 { color: #fff; font-size: 14px; margin: 0 0 7px; }
.status-info p { color: #c5d7df; font-size: 13px; line-height: 1.55; margin: 0; }
.map-disclaimer { color: #9eb8c3; font-size: 12px; margin: 16px 0 0; text-align: center; }
.map-disclaimer i { color: #ffc107; margin-right: 6px; }
@media (max-width: 991px) {
    .region-status-cards { grid-template-columns: 1fr; }
    .map-controls { top: 28px; right: 28px; }
}
@media (max-width: 767px) {
    .threat-map-section { padding: 48px 0; }
    .threat-map-section .section-title { font-size: 25px; }
    .map-wrapper { padding: 10px; }
    .map-controls { top: 18px; right: 18px; }
    .map-control { width: 34px; height: 34px; }
    .map-container-scrollable, .world-map-svg { min-height: 270px; }
}



/* =========================================================
   Production dashboard additions - v13
   ========================================================= */
[hidden] { display: none !important; }

#ewsNewsApp {
    --ews-news-blue: #0c2f57;
    --ews-news-blue-light: #13558f;
    --ews-news-red: #940c00;
    --ews-news-red-bright: #c8261a;
    --ews-news-gold: #d6a431;
    --ews-news-ink: #17212b;
    --ews-news-muted: #677381;
    --ews-news-line: #dfe4e9;
    --ews-news-soft: #f4f6f8;
    --ews-news-white: #fff;
}

.news-page-hero {
    position: relative;
    min-height: 255px;
    display: flex;
    align-items: center;
    background-color: #0c2f57;
    background-position: center;
    background-size: cover;
}
.news-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 22, 38, .94), rgba(12, 47, 87, .74), rgba(4, 22, 38, .56));
}
.news-page-hero .container { position: relative; z-index: 1; }
.news-hero-kicker {
    display: block;
    color: #ffd36d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .17em;
    margin-bottom: 7px;
}

.news-summary-bar {
    grid-template-columns: repeat(3, minmax(105px, .6fr)) minmax(220px, 1.4fr) auto;
}
.summary-status { min-width: 155px; }

.news-control-section {
    padding: 44px 0 20px;
    background: #fff;
}
.control-panel {
    padding: 28px;
    border: 1px solid var(--ews-news-line);
    box-shadow: 0 12px 35px rgba(22, 38, 54, .07);
    background: #fff;
}
.filter-heading-row p {
    max-width: 850px;
    margin: 8px 0 0;
    color: var(--ews-news-muted);
    font-size: 13px;
    line-height: 1.6;
}
.filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.view-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 25px 0 20px;
}
.mode-filter {
    min-height: 75px;
    border: 1px solid #ccd4da;
    background: #f8fafb;
    color: var(--ews-news-ink);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.mode-filter > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5ebef;
    color: var(--ews-news-blue);
    font-size: 18px;
}
.mode-filter strong,
.mode-filter small { display: block; }
.mode-filter strong { font-size: 14px; }
.mode-filter small { color: var(--ews-news-muted); font-size: 11px; margin-top: 2px; }
.mode-filter.active {
    border-color: var(--ews-news-red);
    background: #fff8f7;
    box-shadow: inset 4px 0 0 var(--ews-news-red);
}
.mode-filter.active > i { background: var(--ews-news-red); color: #fff; }

.secondary-filters {
    display: grid;
    grid-template-columns: minmax(180px, .55fr) minmax(180px, .55fr) minmax(260px, 1fr);
    gap: 14px;
    align-items: end;
    margin-top: 19px;
    padding-top: 19px;
    border-top: 1px solid #edf0f2;
}
.select-filter span {
    display: block;
    margin-bottom: 6px;
    color: var(--ews-news-ink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.select-filter select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8d0d7;
    background: #fff;
    color: var(--ews-news-ink);
    padding: 8px 36px 8px 12px;
    font-size: 13px;
}
.active-filter-summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    background: #eef3f6;
    color: #52616e;
    font-size: 12px;
    font-weight: 700;
}
.active-filter-summary i { color: var(--ews-news-red); }

.featured-news-section { padding-top: 28px; }
.featured-news-card { overflow: hidden; }
.featured-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.featured-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(0,0,0,.24));
}
.featured-visual.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4,16,25,.08), rgba(4,16,25,.88));
}
.featured-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.publisher-emblem {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.publisher-emblem i { font-size: 44px; opacity: .94; }
.publisher-emblem span {
    max-width: 310px;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1;
}
.featured-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.threat-relevance {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7b1b13;
    background: #fff0ee;
    border: 1px solid #f2c7c2;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.news-results-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
}
.news-results-toolbar h2 { margin: 2px 0 0; font-size: 25px; }
.ajax-status {
    min-height: 20px;
    color: var(--ews-news-muted);
    font-size: 12px;
    font-weight: 700;
}
.ajax-status.is-loading { color: var(--ews-news-blue); }
.ajax-status.is-error { color: var(--ews-news-red); }

.news-card-visual {
    position: relative;
    isolation: isolate;
    min-height: 132px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    padding: 18px;
    overflow: hidden;
}
.news-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
}
.news-card-visual.has-image::after {
    background: linear-gradient(180deg, rgba(6,18,28,.08), rgba(6,18,28,.88));
}
.news-card-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.news-source-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 16px !important;
    font-weight: 900;
}
.news-source-mark i { font-size: 22px !important; }
.news-topic-badge {
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(0,0,0,.14);
    font-size: 9px !important;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.coverage-count {
    padding: 5px 8px;
    background: #eef2f5;
    color: #556470;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.coverage-details {
    margin-top: 18px;
    border-top: 1px solid #edf0f2;
    padding-top: 14px;
}
.coverage-details summary {
    color: var(--ews-news-blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
}
.coverage-details summary::-webkit-details-marker { display: none; }
.coverage-details summary i { margin-right: 6px; }
.coverage-links {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}
.coverage-links a {
    display: grid;
    grid-template-columns: minmax(85px, auto) 1fr;
    gap: 9px;
    align-items: center;
    padding: 8px 10px;
    background: #f5f7f8;
    color: var(--ews-news-ink);
    text-decoration: none;
}
.coverage-links a:hover { background: #eef2f4; color: var(--ews-news-red); }
.coverage-links span { font-size: 10px; font-weight: 900; text-transform: uppercase; color: var(--ews-news-red); }
.coverage-links small { font-size: 11px; line-height: 1.4; }
.coverage-details.is-compact { margin-top: 12px; padding-top: 10px; }
.coverage-details.is-compact summary { font-size: 11px; }

.news-grid.is-updating,
#featuredNewsContainer.is-updating { opacity: .46; pointer-events: none; }
.news-grid,
#featuredNewsContainer { transition: opacity .18s ease; }
.load-more-btn[disabled] { opacity: .65; cursor: wait; }

.map-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(285px, .72fr);
    gap: 20px;
    align-items: stretch;
}
.map-wrapper { min-width: 0; }
.map-grid path { fill: none; stroke: rgba(255,255,255,.055); stroke-width: 1; }
.continents { pointer-events: none; }
.marker-group .marker-label {
    font-size: 9px;
    letter-spacing: .03em;
}
.marker-group .marker-count {
    fill: #fff;
    stroke: none;
    font-size: 9px;
    font-weight: 900;
}
.marker-group .marker-halo { transition: r .2s ease, opacity .2s ease; }
.marker-group .marker-core { transition: r .2s ease, stroke-width .2s ease; }
.marker-critical .marker-core { fill: #e33d4f; }
.marker-critical .marker-halo { fill: rgba(227,61,79,.28); }
.marker-high .marker-core { fill: #f0b62f; }
.marker-high .marker-halo { fill: rgba(240,182,47,.27); }
.marker-watch .marker-core { fill: #55a8e4; }
.marker-watch .marker-halo { fill: rgba(85,168,228,.25); }
.marker-group:hover .marker-halo,
.marker-group:focus .marker-halo,
.marker-group.active .marker-halo { opacity: .95; r: 22px; }
.marker-group.active .marker-core { stroke-width: 4; r: 10px; }
.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.legend-dot { display: inline-block; }
.legend-dot.critical { background: #e33d4f; box-shadow: 0 0 8px #e33d4f; }
.legend-dot.high { background: #f0b62f; box-shadow: 0 0 8px #f0b62f; }
.legend-dot.watch { background: #55a8e4; box-shadow: 0 0 8px #55a8e4; }

.region-insight-panel {
    background: #081d27;
    border: 1px solid rgba(255,255,255,.1);
    padding: 20px;
    min-width: 0;
}
.region-panel-header { margin-bottom: 14px; }
.region-panel-header h3 { color: #fff; margin: 4px 0 5px; font-size: 21px; }
.region-panel-header p { color: #9eb8c3; margin: 0; font-size: 12px; }
.region-status-list { display: grid; gap: 8px; }
.region-status-card {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.055);
    color: #fff;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}
.region-status-card:hover,
.region-status-card.active { border-color: #f0b62f; background: rgba(240,182,47,.11); }
.region-card-count {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.11);
    color: #ffd36d;
    font-size: 15px;
    font-weight: 900;
}
.region-card-copy { min-width: 0; }
.region-card-copy strong,
.region-card-copy small { display: block; }
.region-card-copy strong { font-size: 12px; }
.region-card-copy small {
    color: #aac1cb;
    font-size: 10px;
    line-height: 1.35;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.region-status-card > i { color: #91a9b3; }

.publisher-health.state-fresh { color: #18864b; }
.publisher-health.state-stale { color: #a87000; }
.publisher-health.state-failed,
.publisher-health.state-missing { color: #a52b22; }

@media (max-width: 1199px) {
    .news-summary-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .summary-updated, .summary-status { grid-column: auto; }
    .map-dashboard { grid-template-columns: 1fr; }
    .region-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .secondary-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .active-filter-summary { grid-column: 1 / -1; }
    .news-summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .region-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .control-panel { padding: 20px 15px; }
    .view-mode-switch { grid-template-columns: 1fr; }
    .secondary-filters { grid-template-columns: 1fr; }
    .active-filter-summary { grid-column: auto; }
    .news-results-toolbar { align-items: flex-start; flex-direction: column; }
    .featured-visual { min-height: 230px; }
    .featured-actions { align-items: stretch; flex-direction: column; }
    .featured-actions > * { justify-content: center; text-align: center; }
    .coverage-links a { grid-template-columns: 1fr; }
    .region-status-list { grid-template-columns: 1fr; }
    .map-dashboard { gap: 12px; }
    .region-insight-panel { padding: 14px; }
    .map-container-scrollable { overflow-x: auto; }
    .world-map-interactive { min-width: 690px; }
    .news-summary-bar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none !important; }
    .news-card, .news-grid, #featuredNewsContainer, .marker-group * { transition: none !important; }
}
