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

.news-page :focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
    scroll-margin-top: 110px;
}

.news-skip {
    position: fixed;
    z-index: 60;
    top: 8px;
    left: 8px;
    width: auto;
}

.news-skip:not(:focus) {
    clip-path: inset(50%);
}

.news-page .nav-links [aria-current] {
    color: var(--lime);
}

.news-main {
    padding: clamp(112px, 13vw, 160px) 0 clamp(56px, 8vw, 100px);
    min-height: 65vh;
    background:
        radial-gradient(ellipse at 12% 6%, #0b2b40, transparent 55%),
        radial-gradient(ellipse at 95% 2%, #172907, transparent 42%),
        #05070a;
}

.news-intro h1 {
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    overflow-wrap: anywhere;
}

.news-article h1 {
    font-size: clamp(2.125rem, 6vw, 4.75rem);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.news-intro .lead,
.news-article .lead {
    margin-top: 16px;
}

.news-back,
.news-body a {
    color: #7fdefe;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.news-back {
    display: inline-block;
    margin-bottom: 26px;
    padding-block: 6px;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.news-page button {
    font-family: inherit;
}

.news-filters .btn,
.news-article .btn {
    width: auto;
    min-height: 44px;
}

.news-filters [aria-pressed="true"] {
    color: #061015;
    background: var(--lime);
}

.news-status {
    margin-block: 18px 10px;
}

.news-status:empty {
    margin-block: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    align-items: start;
    gap: 24px;
    list-style: none;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(16px, 3vw, 24px);
    overflow-wrap: anywhere;
}

.news-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.news-card h2 a {
    text-decoration: underline;
    text-decoration-color: #7fdefe;
    text-underline-offset: 0.18em;
    transition: color 160ms ease;
}

.news-card h2 a:hover {
    color: var(--lime);
}

.news-card img,
.news-article > figure img,
.news-body figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.news-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-badge {
    padding: 2px 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--lime);
    font-weight: 750;
}

.news-badge--event {
    color: #7fdefe;
}

.news-article {
    max-width: 840px;
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.news-article > .news-meta {
    margin-bottom: 18px;
}

.news-article > figure,
.news-article > .btn,
.news-body {
    margin-top: 28px;
}

.news-body {
    text-align: left;
}

.news-body > .news-align-center {
    text-align: center;
}

.news-body > .news-align-right {
    text-align: right;
}

.news-body > .news-align-justify {
    text-align: justify;
}

.news-body > * + * {
    margin-top: 1rem;
}

.news-body :is(h2, h3, h4, h5, h6) {
    margin-bottom: 0;
    font-size: clamp(1.3rem, 3vw, 2rem);
}

.news-body :is(p, li, h2, h3, h4, h5, h6, blockquote) {
    white-space: pre-line;
}

.news-body :is(ul, ol) {
    padding-inline-start: 1.5em;
}

.news-body li + li {
    margin-top: 0.35em;
}

.news-body blockquote {
    padding-inline-start: 1em;
    border-inline-start: 3px solid var(--lime);
}

.news-article figcaption {
    margin-top: 8px;
    color: var(--text-muted);
}

.news-inline-image {
    display: inline-block;
    width: auto;
    max-height: 8em;
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
    html:has(.news-page) {
        scroll-behavior: auto;
    }

    .news-page .btn,
    .news-page .nav-links a,
    .news-card h2 a {
        transition: none;
    }

    .news-page .btn:hover {
        transform: none;
    }
}
