.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;
    }
}

/* Compact top-stories redesign */
.homepage-top-stories-section {
    padding: 32px 0 48px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(255, 48, 79, 0.08),
            transparent 28%
        ),
        var(--background);
}

.homepage-top-heading {
    align-items: center;
    margin-bottom: 18px;
}

.homepage-top-heading h2 {
    font-size: clamp(27px, 4vw, 38px);
}

.homepage-top-heading p {
    max-width: 650px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.homepage-top-stories-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.homepage-top-stories-controls button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--panel);
    color: var(--text);
    font-size: 19px;
    font-weight: 900;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.homepage-top-stories-controls button:hover:not(:disabled),
.homepage-top-stories-controls button:focus-visible {
    border-color: rgba(255, 48, 79, 0.6);
    outline: none;
    background: rgba(255, 48, 79, 0.12);
    color: #fff;
}

.homepage-top-stories-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.homepage-top-stories-grid {
    display: grid;
    grid-auto-columns: clamp(245px, 23vw, 285px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 15px;
    scroll-behavior: smooth;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(255, 48, 79, 0.75) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.homepage-top-stories-grid::-webkit-scrollbar {
    height: 8px;
}

.homepage-top-stories-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.homepage-top-stories-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), #b51632);
}

.homepage-top-stories-grid:focus-visible {
    outline: 2px solid rgba(255, 48, 79, 0.72);
    outline-offset: 5px;
}

.homepage-top-story-card {
    min-width: 245px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--panel), #0b1017);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.homepage-top-story-media {
    position: relative;
    height: 145px;
    display: block;
    overflow: hidden;
    background: #101722;
}

.homepage-top-story-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.homepage-top-story-card:hover .homepage-top-story-media img {
    transform: scale(1.035);
}

.homepage-top-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(255, 48, 79, 0.18),
            transparent 35%
        ),
        linear-gradient(145deg, #151d2a, #090d13);
    color: rgba(255, 255, 255, 0.16);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
}

.homepage-top-rank {
    position: absolute;
    left: 10px;
    bottom: 10px;
    min-width: 31px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    background: rgba(5, 7, 10, 0.82);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.homepage-top-story-content {
    padding: 14px;
}

.homepage-top-story-content .homepage-story-kicker {
    flex-wrap: nowrap;
    overflow: hidden;
}

.homepage-top-story-content .homepage-story-kicker strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homepage-top-story-content h2 {
    display: -webkit-box;
    min-height: 64px;
    margin-top: 11px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.34;
    letter-spacing: -0.25px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.homepage-top-story-content h2 a:hover {
    color: #ff7187;
}

.homepage-top-story-content .homepage-story-meta {
    margin-top: 12px;
    gap: 8px;
    font-size: 8px;
}

.homepage-situation-strip {
    display: grid;
    grid-template-columns: minmax(170px, 1.15fr) repeat(4, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(17, 23, 34, 0.72);
}

.homepage-situation-title,
.homepage-situation-strip article {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.homepage-situation-title {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.homepage-situation-title strong {
    font-size: 14px;
}

.homepage-situation-title small {
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.homepage-situation-strip article > div strong,
.homepage-situation-strip article > div span {
    display: block;
}

.homepage-situation-strip article > div strong {
    font-size: 17px;
}

.homepage-situation-strip article > div span {
    color: var(--muted);
    font-size: 9px;
}

.homepage-incident-first {
    padding-top: 44px;
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(255, 48, 79, 0.1),
            transparent 27%
        ),
        var(--background-soft);
}

.homepage-incident-first .section-heading {
    align-items: end;
}

.homepage-incident-first .section-heading h1 {
    margin-top: 5px;
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.15;
}

.homepage-incident-first .section-heading p {
    max-width: 650px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.homepage-incident-first .public-incident-card {
    border-color: rgba(255, 48, 79, 0.16);
}

.homepage-incident-first .public-incident-card:hover {
    border-color: rgba(255, 48, 79, 0.42);
}

.homepage-incident-freshness {
    margin-top: 14px !important;
    color: #ff8a9c !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .homepage-situation-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .homepage-top-stories-grid {
        grid-auto-columns: minmax(245px, 72vw);
    }

    .homepage-situation-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .homepage-top-stories-section {
        padding-top: 22px;
    }

    .homepage-situation-strip {
        grid-template-columns: 1fr;
    }

    .homepage-top-heading {
        align-items: flex-start;
    }

    .homepage-top-stories-controls {
        align-self: stretch;
        justify-content: flex-end;
    }

    .homepage-top-stories-grid {
        grid-auto-columns: calc(100vw - 42px);
    }

    .homepage-top-story-media {
        height: 175px;
    }

    .homepage-top-story-content h2 {
        min-height: auto;
        -webkit-line-clamp: 2;
    }
}
