.news-page {
    overflow: clip;
}

.news-hero {
    padding-block: clamp(4rem, 8vw, 6rem);
    color: #fff;
    background-color: var(--color-navy);
    background-image: linear-gradient(105deg, rgb(12 35 54 / 68%), rgb(12 35 54 / 48%)), url("../images/company.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.news-page .eyebrow,
.news-article .eyebrow {
    color: #82c8e8;
    font-size: .76rem;
    letter-spacing: .15em;
}

.news-hero h1 {
    margin: .5rem 0;
    font: 500 clamp(2.6rem, 5vw, 4.3rem)/1.2 var(--font-display);
}

.news-hero p:last-child {
    max-width: 680px;
    color: rgb(255 255 255 / 76%);
}

.news-content {
    padding-block: var(--space-section);
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2rem;
}

.news-categories a {
    padding: .55rem 1rem;
    border: 1px solid var(--color-line);
}

.news-categories button {
    padding: .55rem 1rem;
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.news-categories button.is-active {
    color: white;
    background: var(--color-navy);
    border-color: var(--color-navy);
}

.news-categories a.is-active {
    color: white;
    background: var(--color-navy);
    border-color: var(--color-navy);
}

.news-categories button:hover,
.news-categories button:focus-visible {
    border-color: var(--color-blue);
}

.news-feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-line);
}

.news-feature__image,
.news-card__image {
    display: grid;
    place-items: center;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-alt);
    color: var(--color-muted);
}

.news-feature img,
.news-card img,
.news-article__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature h2 {
    font: 500 clamp(1.7rem, 3vw, 2.5rem)/1.3 var(--font-display);
}

.news-feature p,
.news-card p {
    color: var(--color-muted);
}

.news-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-feature time,
.news-card time,
.news-meta {
    color: var(--color-muted);
    font-size: .88rem;
}

.news-list__heading {
    margin-bottom: 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-card {
    border: 1px solid var(--color-line);
}

.news-card>div {
    padding: 1.2rem;
}

.news-card__cats {
    font-size: .8rem;
    color: var(--color-blue);
}

.news-card__cats a {
    text-decoration: none;
}

.news-empty {
    padding: 4rem 1.5rem;
    text-align: center;
    background: var(--color-alt);
}

.news-empty h2 {
    font: 500 2rem var(--font-display);
}

.news-empty p {
    color: var(--color-muted);
}

.news-load-status {
    min-height: 1.5rem;
    margin-top: .75rem;
    color: var(--color-muted);
    text-align: center;
    font-size: .9rem;
}

.news-load-retry {
    display: block;
    margin: .75rem auto;
    padding: .65rem 1rem;
    border: 1px solid var(--color-blue);
    color: var(--color-blue);
    background: #fff;
    cursor: pointer;
}

.news-load-retry[hidden] {
    display: none;
}

.news-load-sentinel {
    width: 100%;
    height: 1px;
}

.news-article {
    padding-block: 4rem;
}

.news-article__wrap {
    max-width: 900px;
}

.news-article h1 {
    font: 500 clamp(2rem, 5vw, 3.6rem)/1.3 var(--font-display);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-article__cover {
    margin: 0 0 2.5rem;
    aspect-ratio: 16/9;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.news-article__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
}

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

@media(max-width:600px) {

    .news-feature,
    .news-grid {
        grid-template-columns: 1fr
    }

    .news-feature {
        gap: 1rem
    }

    .news-article__nav {
        align-items: flex-start;
        flex-direction: column
    }

    .news-categories {
        gap: .4rem
    }

    .news-categories a,
    .news-categories button {
        padding: .5rem .7rem
    }

    .news-article {
        padding-block: 2rem
    }
}
