:root {
    --background: #07090d;
    --background-soft: #0d1118;
    --panel: #111722;
    --panel-light: #161e2b;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f5f7fb;
    --muted: #929baa;
    --red: #ff304f;
    --red-dark: #9d0f27;
    --orange: #ff8a25;
    --green: #25d984;
    --blue: #3e8cff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
            radial-gradient(
                    circle at 10% 5%,
                    rgba(255, 48, 79, 0.08),
                    transparent 30%
            ),
            var(--background);
    color: var(--text);
    font-family:
            Inter,
            Arial,
            Helvetica,
            sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-container,
.header-container,
.footer-container,
.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 13, 0.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background:
            linear-gradient(
                    145deg,
                    var(--red),
                    var(--red-dark)
            );
    box-shadow: 0 12px 30px rgba(255, 48, 79, 0.24);
    font-weight: 900;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 15px;
    letter-spacing: 0.3px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-button,
.alert-button {
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
}

.search-button {
    background: transparent;
    color: var(--text);
}

.alert-button {
    background: linear-gradient(
            145deg,
            var(--red),
            var(--red-dark)
    );
    border-color: transparent;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 25px;
}

.breaking-bar {
    border-bottom: 1px solid rgba(255, 48, 79, 0.2);
    background: rgba(255, 48, 79, 0.07);
}

.breaking-bar .page-container {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--red);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.breaking-message {
    flex: 1;
    color: #d9dce3;
    font-size: 13px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.live-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(37, 217, 132, 0.11);
}

.hero-section {
    padding: 85px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 70px;
    align-items: center;
}

.eyebrow,
.panel-label {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.hero-content h1 {
    max-width: 750px;
    margin-top: 17px;
    font-size: clamp(46px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -4px;
}

.hero-content h1 span {
    display: block;
    background:
            linear-gradient(
                    100deg,
                    #ffffff,
                    var(--red)
            );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 650px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 21px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.primary-button {
    background:
            linear-gradient(
                    145deg,
                    var(--red),
                    var(--red-dark)
            );
    box-shadow: 0 16px 35px rgba(255, 48, 79, 0.2);
}

.secondary-button {
    background: var(--panel);
    border: 1px solid var(--border);
}

.hero-statistics {
    display: flex;
    gap: 38px;
    margin-top: 45px;
}

.hero-statistics div {
    display: flex;
    flex-direction: column;
}

.hero-statistics strong {
    font-size: 22px;
}

.hero-statistics span {
    color: var(--muted);
    font-size: 12px;
}

.alert-panel {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
            linear-gradient(
                    145deg,
                    rgba(22, 30, 43, 0.92),
                    rgba(10, 14, 20, 0.95)
            );
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
    margin-top: 5px;
    font-size: 20px;
}

.status-badge {
    height: fit-content;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(37, 217, 132, 0.1);
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.alert-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.alert-summary-grid article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.summary-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 900;
}

.summary-icon.critical {
    color: var(--red);
    background: rgba(255, 48, 79, 0.11);
}

.summary-icon.high {
    color: var(--orange);
    background: rgba(255, 138, 37, 0.11);
}

.summary-icon.verified {
    color: var(--green);
    background: rgba(37, 217, 132, 0.11);
}

.summary-icon.developing {
    color: var(--blue);
    background: rgba(62, 140, 255, 0.11);
}

.alert-summary-grid strong,
.alert-summary-grid span {
    display: block;
}

.alert-summary-grid strong {
    font-size: 19px;
}

.alert-summary-grid div span {
    color: var(--muted);
    font-size: 11px;
}

.system-message {
    display: flex;
    gap: 11px;
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 48, 79, 0.06);
}

.system-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--red);
}

.system-message p {
    color: #bdc3ce;
    font-size: 12px;
}

.content-section {
    padding: 70px 0;
    background: var(--background-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-top: 5px;
    font-size: 31px;
}

.section-heading > a {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.story-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
            linear-gradient(
                    145deg,
                    var(--panel),
                    rgba(13, 17, 24, 0.9)
            );
    transition:
            transform 0.2s ease,
            border-color 0.2s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 48, 79, 0.35);
}

.story-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.story-category,
.story-severity {
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.story-category {
    color: var(--red);
    background: rgba(255, 48, 79, 0.08);
}

.story-severity {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.story-card h3 {
    margin-top: 25px;
    font-size: 21px;
    line-height: 1.35;
}

.story-meta {
    display: flex;
    gap: 14px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 12px;
}

.story-link {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.coverage-section {
    padding: 70px 0;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.coverage-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.coverage-grid h3 {
    margin-top: 12px;
    font-size: 22px;
}

.coverage-grid p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #05070a;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding: 55px 0;
}

.footer-container h3,
.footer-container h4 {
    margin-bottom: 12px;
}

.footer-container p {
    max-width: 430px;
    color: var(--muted);
    font-size: 13px;
}

.footer-container div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-container a {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom {
    min-height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 70px 20px;
}

.error-content {
    max-width: 550px;
    text-align: center;
}

.error-content > span {
    color: var(--red);
    font-size: 90px;
    font-weight: 900;
    line-height: 1;
}

.error-content h1 {
    margin-top: 15px;
    font-size: 40px;
}

.error-content p {
    margin: 15px 0 25px;
    color: var(--muted);
}

@media (max-width: 1000px) {
    .main-navigation,
    .header-actions {
        display: none;
    }

    .main-navigation.open {
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 15px;
        background: var(--panel);
        box-shadow: var(--shadow);
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        max-width: 850px;
    }

    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .page-container,
    .header-container,
    .footer-container,
    .footer-bottom {
        width: min(100% - 26px, 1180px);
    }

    .brand-copy small {
        display: none;
    }

    .breaking-message {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .live-indicator {
        display: none;
    }

    .hero-section {
        padding: 58px 0;
    }

    .hero-content h1 {
        font-size: 50px;
        letter-spacing: -2.5px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-statistics {
        gap: 25px;
    }

    .alert-summary-grid,
    .story-grid,
    .coverage-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .coverage-grid {
        gap: 30px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }
}

.dashboard-page {
    min-height: 75vh;
    padding: 65px 0 85px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 35px;
}

.dashboard-heading h1 {
    margin-top: 8px;
    font-size: clamp(35px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.dashboard-heading p {
    max-width: 660px;
    margin-top: 13px;
    color: var(--muted);
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
            linear-gradient(
                    145deg,
                    var(--panel),
                    rgba(13, 17, 24, 0.92)
            );
}

.dashboard-card > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dashboard-card strong {
    display: block;
    margin-top: 10px;
    font-size: 37px;
}

.dashboard-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.admin-stat-grid {
    grid-template-columns: repeat(4, 1fr);
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--panel);
}

.admin-user-badge > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background:
            linear-gradient(
                    145deg,
                    var(--red),
                    var(--red-dark)
            );
    font-weight: 900;
}

.admin-user-badge div {
    display: flex;
    flex-direction: column;
}

.admin-user-badge strong {
    font-size: 12px;
}

.admin-user-badge small {
    color: var(--muted);
    font-size: 10px;
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.admin-module-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    transition:
            transform 0.2s ease,
            border-color 0.2s ease;
}

.admin-module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 48, 79, 0.35);
}

.admin-module-card > span {
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
}

.admin-module-card h3 {
    margin-top: 10px;
    font-size: 21px;
}

.admin-module-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.admin-logout-form {
    margin-top: 30px;
}

@media (max-width: 1000px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .dashboard-heading {
        flex-direction: column;
    }

    .dashboard-card-grid,
    .admin-stat-grid,
    .admin-module-grid {
        grid-template-columns: 1fr;
    }
}

.story-card-summary {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.empty-public-stories {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    background: var(--panel);
}

.empty-public-stories p {
    margin-top: 8px;
    color: var(--muted);
}

.public-story {
    padding: 70px 0 90px;
}

.public-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 50px;
    align-items: start;
}

.public-story-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verification-badge,
.breaking-story-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.verification-badge {
    background: rgba(37, 217, 132, 0.09);
    color: var(--green);
}

.breaking-story-badge {
    background: rgba(255, 48, 79, 0.12);
    color: #ff7187;
}

.public-story-main > h1 {
    margin-top: 18px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -3px;
}

.public-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

.public-story-image {
    width: 100%;
    max-height: 580px;
    margin-top: 32px;
    object-fit: cover;
    border-radius: 20px;
}

.public-story-summary {
    margin-top: 30px;
    color: #e6e9ef;
    font-size: 22px;
    line-height: 1.65;
}

.public-story-content {
    margin-top: 28px;
    color: #c3cad5;
    font-size: 16px;
    line-height: 1.9;
}

.source-attribution-card {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    margin-top: 45px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.source-attribution-card span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.source-attribution-card strong {
    display: block;
    margin-top: 3px;
}

.source-attribution-card p {
    max-width: 550px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.public-story-sidebar {
    position: sticky;
    top: 105px;
}

.story-information-card,
.related-story-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.story-information-card h2,
.related-story-card h2 {
    margin-bottom: 15px;
    font-size: 17px;
}

.story-information-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.story-information-card dt {
    color: var(--muted);
    font-size: 11px;
}

.story-information-card dd {
    font-size: 11px;
}

.related-story-card {
    margin-top: 18px;
}

.related-story-card a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.related-story-card a:last-child {
    border-bottom: 0;
}

.related-story-card span {
    color: var(--red);
    font-size: 9px;
    text-transform: uppercase;
}

.related-story-card strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 950px) {
    .public-story-layout {
        grid-template-columns: 1fr;
    }

    .public-story-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .public-story-main > h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .public-story-summary {
        font-size: 18px;
    }

    .source-attribution-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.incident-directory-hero {
    padding: 75px 0 55px;
    border-bottom: 1px solid var(--border);
}

.incident-directory-hero h1 {
    margin-top: 12px;
    font-size: clamp(45px, 7vw, 75px);
    letter-spacing: -3px;
}

.incident-directory-hero p {
    max-width: 690px;
    margin: 16px 0 25px;
    color: var(--muted);
}

.incident-directory-section {
    padding: 55px 0 85px;
}

.public-incident-filters {
    display: grid;
    grid-template-columns:
        190px
        190px
        210px
        auto;
    gap: 12px;
    margin-bottom: 28px;
}

.public-incident-filters select,
.public-incident-filters input {
    height: 48px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
}

.public-incident-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.public-incident-card {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
            linear-gradient(
                    145deg,
                    var(--panel),
                    rgba(13, 17, 24, 0.92)
            );
}

.public-incident-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.incident-status-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-incident-card h2 {
    margin-top: 20px;
    font-size: 22px;
    line-height: 1.35;
}

.public-incident-card > p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.public-incident-location {
    margin-top: 15px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.incident-card-statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.incident-card-statistics span {
    padding: 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 9px;
}

.incident-card-statistics strong {
    display: block;
    color: var(--text);
    font-size: 18px;
}

.public-incident-card .story-link {
    margin-top: auto;
}

.public-incident-page {
    padding: 65px 0 90px;
}

.public-incident-header {
    max-width: 1000px;
}

.public-incident-header h1 {
    margin-top: 20px;
    font-size: clamp(43px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -3px;
}

.public-incident-header > p {
    max-width: 900px;
    margin-top: 22px;
    color: #d6dbe4;
    font-size: 19px;
    line-height: 1.7;
}

.public-incident-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 38px;
}

.public-incident-stat-grid article {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--panel);
}

.public-incident-stat-grid span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.public-incident-stat-grid strong {
    display: block;
    margin-top: 7px;
    font-size: 25px;
}

.public-incident-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 45px;
    margin-top: 50px;
}

.public-incident-timeline {
    position: relative;
    padding-left: 23px;
}

.public-incident-timeline::before {
    content: "";
    position: absolute;
    top: 85px;
    bottom: 0;
    left: 7px;
    width: 1px;
    background: var(--border);
}

.public-incident-timeline > article {
    position: relative;
    margin-bottom: 22px;
    padding-left: 20px;
}

.public-timeline-marker {
    position: absolute;
    top: 21px;
    left: -20px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow:
            0 0 0 5px rgba(255, 48, 79, 0.09);
}

.public-timeline-content {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--panel);
}

.public-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.public-timeline-content h3 {
    margin-top: 11px;
    font-size: 19px;
}

.public-timeline-content p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.public-timeline-content a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.public-incident-sidebar {
    position: sticky;
    top: 100px;
}

.incident-location-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.incident-location-card h2 {
    margin-bottom: 14px;
    font-size: 17px;
}

#incidentMiniMap {
    height: 280px;
    border-radius: 12px;
}

.incident-location-card > a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.live-map-page {
    position: relative;
    min-height: calc(100vh - 78px);
}

.live-map-toolbar {
    min-height: 95px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 30px;
    border-bottom: 1px solid var(--border);
    background: var(--background-soft);
}

.live-map-toolbar h1 {
    margin-top: 4px;
    font-size: 30px;
}

.live-map-filters {
    display: flex;
    gap: 10px;
}

.live-map-filters select,
.live-map-filters button {
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
}

#globalIncidentMap {
    height: calc(100vh - 173px);
    min-height: 580px;
}

.live-map-status {
    position: absolute;
    z-index: 500;
    left: 25px;
    bottom: 25px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(7, 9, 13, 0.9);
    color: var(--muted);
    font-size: 11px;
}

.incident-map-popup {
    min-width: 220px;
}

.incident-map-popup > span {
    color: #ff304f;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.incident-map-popup h3 {
    margin: 7px 0;
    font-size: 15px;
}

.incident-map-popup p,
.incident-map-popup div {
    margin-top: 6px;
    color: #555;
    font-size: 11px;
}

.incident-map-popup a {
    display: inline-flex;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .public-incident-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-incident-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .public-incident-layout {
        grid-template-columns: 1fr;
    }

    .public-incident-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .public-incident-filters,
    .public-incident-grid,
    .public-incident-stat-grid {
        grid-template-columns: 1fr;
    }

    .live-map-toolbar {
        align-items: flex-start;
        flex-direction: column;
        padding-inline: 16px;
    }

    .live-map-filters {
        width: 100%;
        flex-direction: column;
    }

    #globalIncidentMap {
        height: 650px;
    }
}

.notification-header-link {
    position: relative;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.notification-header-link > span {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--red);
    color: white;
    font-size: 9px;
}

.user-alert-page {
    min-height: 72vh;
    padding: 65px 0 90px;
}

.user-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

.user-page-heading h1 {
    margin-top: 7px;
    font-size: clamp(38px, 6vw, 60px);
    letter-spacing: -2.5px;
}

.user-page-heading p {
    max-width: 690px;
    margin-top: 12px;
    color: var(--muted);
}

.alert-subscription-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.alert-subscription-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--panel);
}

.alert-subscription-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
}

.alert-subscription-card h2 {
    margin-top: 18px;
    font-size: 21px;
}

.alert-subscription-card dl {
    margin-top: 18px;
}

.alert-subscription-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.alert-subscription-card dt {
    color: var(--muted);
    font-size: 10px;
}

.alert-subscription-card dd {
    text-align: right;
    font-size: 10px;
}

.alert-channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.alert-channel-list span {
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(62, 140, 255, 0.09);
    color: #76adff;
    font-size: 9px;
    font-weight: 800;
}

.alert-subscription-actions {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.alert-subscription-actions form {
    display: inline-flex;
}

.alert-subscription-actions a,
.alert-subscription-actions button {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
}

.public-alert-form {
    max-width: 950px;
}

.public-alert-panel {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--panel);
}

.public-alert-panel h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.public-alert-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.public-alert-panel select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--background-soft);
    color: var(--text);
}

.public-alert-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}

.public-alert-checkbox input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: var(--red);
}

.public-alert-checkbox span {
    display: flex;
    flex-direction: column;
}

.public-alert-checkbox strong {
    font-size: 12px;
}

.public-alert-checkbox small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.alert-channel-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.alert-channel-options label {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
}

.notification-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 17px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--panel);
}

.notification-card.unread {
    border-color: rgba(255, 48, 79, 0.35);
    box-shadow:
            inset 3px 0 0 var(--red);
}

.notification-card h2 {
    font-size: 17px;
}

.notification-card p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.notification-card small {
    display: block;
    margin-top: 9px;
    color: #697587;
    font-size: 9px;
}

.notification-open-button {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 950px) {
    .alert-subscription-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-alert-form-grid,
    .alert-channel-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .user-page-heading {
        flex-direction: column;
    }

    .alert-subscription-grid {
        grid-template-columns: 1fr;
    }

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

.homepage-category-strip {
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: #0a0e14;
    scrollbar-width: thin;
}

.homepage-category-strip .page-container {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.homepage-category-strip a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #c8cfda;
    font-size: 11px;
    font-weight: 800;
    transition: 0.2s ease;
}

.homepage-category-strip a:hover {
    border-color: rgba(255, 48, 79, 0.4);
    background: rgba(255, 48, 79, 0.08);
    color: var(--text);
}

.homepage-category-strip a span {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 8px;
}

.homepage-news-hero {
    padding: 42px 0 54px;
}

.homepage-news-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 22px;
    align-items: stretch;
}

.homepage-lead-story,
.homepage-situation-room {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--panel), #0a0e15);
}

.homepage-lead-story {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    min-height: 520px;
}

.homepage-lead-media,
.homepage-card-media,
.homepage-category-lead-media,
.category-story-media {
    position: relative;
    overflow: hidden;
    background:
            radial-gradient(circle at 20% 20%, rgba(255, 48, 79, 0.22), transparent 34%),
            #111722;
}

.homepage-lead-media img,
.homepage-card-media img,
.homepage-category-lead-media img,
.category-story-media img,
.homepage-category-list img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.homepage-lead-story:hover .homepage-lead-media img,
.homepage-news-card:hover .homepage-card-media img,
.homepage-category-lead:hover .homepage-category-lead-media img,
.category-story-card:hover .category-story-media img {
    transform: scale(1.035);
}

.homepage-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: grid;
    place-items: center;
    background:
            radial-gradient(circle at 30% 20%, rgba(255, 48, 79, 0.22), transparent 34%),
            linear-gradient(145deg, #151d2a, #090d13);
    color: rgba(255, 255, 255, 0.18);
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 900;
    letter-spacing: -4px;
}

.homepage-lead-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 52px);
}

.homepage-lead-content h1 {
    margin-top: 16px;
    font-size: clamp(34px, 4.8vw, 60px);
    line-height: 1.04;
    letter-spacing: -2.5px;
}

.homepage-lead-content h1 a:hover,
.homepage-card-content h3 a:hover,
.homepage-category-lead h3 a:hover,
.homepage-category-list h3 a:hover,
.category-story-content h2 a:hover {
    color: #ff7187;
}

.homepage-lead-content > p {
    margin-top: 18px;
    color: #b8c0cc;
    font-size: 14px;
    line-height: 1.75;
}

.homepage-lead-content .primary-button {
    width: fit-content;
    margin-top: 24px;
}

.homepage-story-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.homepage-story-kicker span {
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 48, 79, 0.1);
    color: #ff7187;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.homepage-story-kicker strong {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.homepage-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 10px;
}

.homepage-situation-room {
    padding: 23px;
}

.homepage-situation-room .alert-summary-grid article {
    min-height: 80px;
}

.homepage-hero-headlines {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.homepage-hero-headlines h3 {
    margin-bottom: 5px;
    font-size: 13px;
}

.homepage-hero-headlines a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.homepage-hero-headlines a:last-child {
    border-bottom: 0;
}

.homepage-hero-headlines a > span {
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
}

.homepage-hero-headlines strong {
    font-size: 11px;
    line-height: 1.5;
}

.homepage-feed-section,
.homepage-category-feed,
.category-directory-content {
    padding: 62px 0;
    border-top: 1px solid var(--border);
}

.homepage-feed-section {
    background: var(--background-soft);
}

.homepage-category-feed {
    background: var(--background);
}

.homepage-category-feed.is-alternate {
    background: var(--background-soft);
}

.homepage-latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.homepage-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.homepage-news-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.homepage-news-card:hover,
.category-story-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 48, 79, 0.34);
}

.homepage-card-media {
    height: 190px;
    display: block;
}

.homepage-card-content {
    padding: 18px;
}

.homepage-card-content h3 {
    margin-top: 13px;
    font-size: 18px;
    line-height: 1.35;
}

.homepage-card-content > p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.homepage-most-read {
    position: sticky;
    top: 98px;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.homepage-aside-heading h2 {
    margin-top: 4px;
    font-size: 23px;
}

.homepage-most-read ol {
    margin-top: 14px;
    list-style: none;
    counter-reset: most-read;
}

.homepage-most-read li {
    counter-increment: most-read;
    position: relative;
    padding: 14px 0 14px 42px;
    border-bottom: 1px solid var(--border);
}

.homepage-most-read li:last-child {
    border-bottom: 0;
}

.homepage-most-read li::before {
    content: counter(most-read, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.homepage-most-read strong {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.homepage-most-read span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.homepage-category-heading p {
    max-width: 670px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.homepage-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: 22px;
}

.homepage-category-lead {
    display: grid;
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.homepage-category-lead > div:last-child {
    padding: 25px;
}

.homepage-category-lead h3 {
    margin-top: 15px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.homepage-category-lead p {
    margin-top: 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.homepage-category-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.homepage-category-list article {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.homepage-category-list article > a {
    height: 82px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--panel);
}

.homepage-list-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #1a2330, #0c1017);
    color: rgba(255, 255, 255, 0.16);
    font-size: 30px;
    font-weight: 900;
}

.homepage-category-list article > div > span,
.homepage-category-list small {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}

.homepage-category-list h3 {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.45;
}

.category-directory-hero {
    padding: 75px 0 55px;
    border-bottom: 1px solid var(--border);
    background:
            radial-gradient(circle at 12% 20%, rgba(255, 48, 79, 0.12), transparent 35%),
            var(--background);
}

.category-back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.category-directory-hero h1 {
    margin-top: 9px;
    font-size: clamp(45px, 7vw, 78px);
    line-height: 1;
    letter-spacing: -3px;
}

.category-directory-hero p {
    max-width: 750px;
    margin-top: 16px;
    color: var(--muted);
}

.category-directory-hero > .page-container > strong {
    display: inline-flex;
    margin-top: 18px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 48, 79, 0.08);
    color: #ff7187;
    font-size: 10px;
}

.category-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-story-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--panel);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-story-media {
    height: 220px;
    display: block;
}

.category-story-content {
    padding: 20px;
}

.category-story-content h2 {
    margin-top: 13px;
    font-size: 20px;
    line-height: 1.35;
}

.category-story-content > p {
    margin-top: 11px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .homepage-news-hero-grid,
    .homepage-category-layout {
        grid-template-columns: 1fr;
    }

    .homepage-situation-room {
        display: grid;
        grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
        gap: 20px;
    }

    .homepage-situation-room .panel-heading {
        grid-column: 1 / -1;
    }

    .homepage-hero-headlines {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

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

@media (max-width: 850px) {
    .homepage-lead-story,
    .homepage-category-lead {
        grid-template-columns: 1fr;
    }

    .homepage-lead-media,
    .homepage-category-lead-media {
        min-height: 340px;
    }

    .homepage-latest-layout {
        grid-template-columns: 1fr;
    }

    .homepage-most-read {
        position: static;
    }
}

@media (max-width: 700px) {
    .homepage-news-hero {
        padding-top: 24px;
    }

    .homepage-latest-grid,
    .category-story-grid,
    .homepage-situation-room {
        grid-template-columns: 1fr;
    }

    .homepage-lead-content {
        padding: 25px;
    }

    .homepage-lead-content h1 {
        font-size: 37px;
        letter-spacing: -1.5px;
    }

    .homepage-category-list article {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .homepage-category-list article > a {
        height: 72px;
    }

    .category-story-media {
        height: 200px;
    }
}
