.portal-feed__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


.portal-feed-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--portal-color-surface);
    border: 1px solid var(--portal-color-border);
    border-radius: var(--portal-radius-medium);
    box-shadow: 0 8px 24px rgba(11, 11, 11, 0.05);
}


.portal-feed-card--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    grid-column: 1 / -1;
}


.portal-feed--home .portal-feed-card--lead {
    display: flex;
}


.portal-feed--home .portal-feed-card--lead .portal-feed-card__image {
    min-height: 0;
    aspect-ratio: 16 / 8;
}


.portal-feed--home .portal-feed-card--lead .portal-feed-card__content {
    padding: 22px;
}


.portal-feed-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--portal-color-surface-alt);
}


.portal-feed-card--lead .portal-feed-card__image {
    min-height: 430px;
    aspect-ratio: auto;
}


.portal-feed-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--portal-transition-medium);
}


.portal-feed-card:hover .portal-feed-card__image img,
.portal-feed-card:focus-within .portal-feed-card__image img {
    transform: scale(1.025);
}


.portal-feed-card__content {
    display: flex;
    min-width: 0;
    padding: 18px;
    flex: 1;
    align-items: flex-start;
    flex-direction: column;
}


.portal-feed-card--lead .portal-feed-card__content {
    padding: clamp(26px, 4vw, 44px);
    justify-content: center;
}


.portal-feed-card__category {
    display: inline-flex;
    margin-bottom: 11px;
    padding: 5px 9px;
    border-radius: var(--portal-radius-small);
    color: var(--portal-color-text-inverse);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}


.portal-feed-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    color: var(--portal-color-text-muted);
    font-size: 11px;
}


.portal-feed-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--portal-color-title);
    font-family: var(--portal-font-display);
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


.portal-feed-card--lead .portal-feed-card__title {
    font-size: clamp(24px, 2.25vw, 32px);
    -webkit-line-clamp: 4;
}


.portal-feed-card__title a {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}


.portal-feed-card__title a:hover,
.portal-feed-card__title a:focus-visible {
    color: var(--portal-category-default);
    text-decoration: underline;
    text-decoration-color: var(--portal-color-brand);
}


.portal-feed-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--portal-color-subtitle);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


.portal-pagination {
    margin-top: 40px;
}


.portal-feed-anchor {
    scroll-margin-top: 84px;
}


.portal-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    list-style: none;
}


.portal-pagination li {
    margin: 0;
}


.portal-pagination .page-numbers:not(ul) {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    background: var(--portal-color-surface);
    border: 1px solid var(--portal-color-border);
    border-radius: 999px;
    color: var(--portal-color-title);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


.portal-pagination a.page-numbers:hover,
.portal-pagination a.page-numbers:focus-visible,
.portal-pagination .current {
    background: var(--portal-color-ink);
    border-color: var(--portal-color-ink);
    color: var(--portal-color-brand);
}


.portal-pagination .prev,
.portal-pagination .next {
    width: 42px;
    padding: 0;
    border-color: var(--portal-color-ink);
    font-size: 20px;
    line-height: 1;
}


.portal-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}


.portal-feed__empty {
    padding: 48px 24px;
    background: var(--portal-color-surface);
    border: 1px solid var(--portal-color-border);
    border-radius: var(--portal-radius-medium);
    text-align: center;
}


.portal-feed__empty h2,
.portal-feed__empty p {
    margin: 0;
}


.portal-feed__empty p {
    margin-top: 8px;
    color: var(--portal-color-text-muted);
}


.portal-category-page {
    background: var(--portal-color-page);
}


.portal-category-hero {
    padding: 62px 24px;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.04), transparent 48%),
        var(--portal-color-ink);
    border-top: 4px solid var(--portal-current-category);
    color: var(--portal-color-text-inverse);
}


.portal-category-hero__inner,
.portal-category-feed {
    width: min(var(--portal-content-width), 100%);
    margin: 0 auto;
}


.portal-category-hero__eyebrow {
    color: var(--portal-current-category);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.portal-category-hero h1 {
    margin: 8px 0 0;
    color: inherit;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
}


.portal-category-hero__description {
    max-width: 720px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
}


.portal-category-hero__description > *:last-child {
    margin-bottom: 0;
}


.portal-category-feed {
    padding: 44px 24px 64px;
}


.portal-feed-heading {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--portal-color-brand);
}


.portal-feed-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
}


@media (max-width: 900px) {
    .portal-feed-card--lead {
        display: flex;
    }


    .portal-feed-card--lead .portal-feed-card__image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}


@media (max-width: 680px) {
    .portal-feed__grid {
        grid-template-columns: 1fr;
    }


    .portal-category-hero {
        padding: 44px 16px;
    }


    .portal-category-feed {
        padding: 34px 16px 48px;
    }


    .portal-pagination a,
    .portal-pagination span {
        min-width: 38px;
        min-height: 38px;
        padding: 7px 10px;
    }
}
