.at-news {
    --at-news-blue: #124d81;
    box-sizing: border-box;
    max-width: 78rem;
    margin-inline: auto;
    padding: calc(var(--at-news-header-offset, 0px) + clamp(1.5rem, 4vw, 3.5rem)) clamp(1.25rem, 5vw, 4.5rem) 0;
    container-type: inline-size;
}

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

.at-news--topic {
    padding-block: clamp(1.5rem, 5vw, 4rem);
}

.at-news__topic-title {
    margin: 0 0 1.25rem;
}

.at-news__empty {
    padding: clamp(1.5rem, 5vw, 3.5rem) 1rem;
    text-align: center;
}

.at-news__end {
    display: grid;
    justify-items: center;
    gap: .5rem;
    padding-block: clamp(3.5rem, 9vw, 8rem);
    text-align: center;
}

.at-news__end p {
    margin: 0;
}

.at-news__end a {
    color: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.at-news__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .8rem;
    margin-block-end: 1.5rem;
}

.at-news__filter-label {
    font-weight: 650;
}

.at-news__category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-width: 0;
}

.at-news__filters button {
    min-height: 44px;
    padding: .45rem 1rem;
    border: 1px solid #c5d9ea;
    border-radius: .45rem;
    background: #f3f7fa;
    box-shadow: none;
    color: var(--at-news-blue);
    font: inherit;
    line-height: 1.25;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.at-news__filters button[aria-pressed="true"] {
    border-color: var(--at-news-blue);
    background: var(--at-news-blue);
    color: #fff;
}

.at-news__filters button[aria-pressed="false"]:hover {
    background: #e7eff6;
}

.at-news__filters button:focus-visible,
.at-news__read:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.at-news__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.at-news__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    align-content: start;
    gap: clamp(.875rem, 2vw, 1.5rem);
}

@container (min-width: 34rem) {
    .at-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 54rem) {
    .at-news__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px), (hover: none) and (pointer: coarse) and (max-height: 520px) {
    .at-news__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.at-news__card {
    min-width: 0;
}

.at-news__card[data-leaving] {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.at-news__surface {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    align-items: end;
    min-height: max(100%, 24rem);
    padding: 8rem clamp(.75rem, 2vw, 1.15rem) clamp(.75rem, 2vw, 1.15rem);
    overflow: hidden;
    border: 1px solid #daeaf8;
    border-radius: 1.25rem;
    background: radial-gradient(ellipse at top left, #538eb0, #193c63 78%);
    box-shadow: 0 10px 26px #13335322, inset 0 1px #fff6;
    color: #fff;
}

.at-news__surface::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, transparent 5%, #112a4d33 33%, #101e36 100%);
    content: "";
}

.at-news__image {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.at-news__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-news__image::after {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(13px);
    mask-image: linear-gradient(to bottom, transparent 18%, #0004 43%, #000 78%);
    content: "";
}

.at-news__card[data-blur="full"] .at-news__image img {
    filter: blur(15px);
    transform: scale(1.08);
}

.at-news__card[data-blur="full"] .at-news__image::after {
    display: none;
}

.at-news__body {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    gap: .55rem;
    padding: clamp(.9rem, 2vw, 1.3rem);
    border: 1px solid #cbe5ff4d;
    border-radius: .95rem;
    background: linear-gradient(145deg, #1d3855ec, #0b182de8);
    box-shadow: inset 0 1px #cde8ff20;
    overflow-wrap: anywhere;
}

.at-news__body :is(h2, h3),
.at-news__body p {
    margin: 0;
    color: inherit;
}

.at-news__body :is(h2, h3) {
    font-size: clamp(1.24rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.at-news__body .at-news__macro {
    color: #bce6ff;
    font-size: .77em;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.at-news__body .at-news__category,
.at-news__body .at-news__excerpt {
    color: #e2edf8;
    font-size: .9em;
}

.at-news__read {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    justify-self: start;
    min-height: 44px;
    box-sizing: border-box;
    padding: .45rem .85rem;
    border: 1px solid #c5ebff;
    border-radius: .65rem;
    margin-block-start: .3rem;
    background: linear-gradient(145deg, #d4f3ff, #9ad9ff);
    color: #123a60;
    font-size: .88em;
    font-weight: 700;
    text-decoration: none;
}

.at-news__read:hover {
    background: #e7f7ff;
    color: #123a60;
}

.at-news__read:focus-visible {
    outline-color: #fff;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .at-news__surface,
    .at-news__read,
    .at-news__filters button {
        transition: box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
    }

    .at-news__card:hover .at-news__surface {
        box-shadow: 0 14px 33px #13335339, inset 0 1px #fff6;
    }

    .at-news__read:hover {
        transform: translateY(-2px);
    }
}
