.portal-hero {
    --portal-hero-radius: clamp(1.125rem, 2.2vw, 1.875rem);
    --portal-hero-pad: clamp(1rem, 2.4vw, 2rem);
    --portal-hero-control: 2.875rem;
    --portal-category-accent: var(--accent, #0f766e);
    --portal-hero-bg: color-mix(in srgb, var(--surface, #ffffff) 92%, transparent);
    --portal-hero-card: rgba(255, 255, 255, 0.9);
    --portal-hero-card-strong: rgba(255, 255, 255, 0.96);
    --portal-hero-text: var(--text, #0f172a);
    --portal-hero-muted: var(--muted, #475569);
    --portal-hero-border: color-mix(in srgb, var(--border, #cbd5e1) 82%, transparent);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: min(100%, 94rem);
    margin: clamp(1rem, 2vw, 2rem) auto clamp(1.5rem, 3vw, 3rem);
    padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

body.theme-dark .portal-hero,
html.theme-dark .portal-hero {
    --portal-hero-bg: rgba(15, 23, 42, 0.72);
    --portal-hero-card: rgba(15, 23, 42, 0.78);
    --portal-hero-card-strong: rgba(15, 23, 42, 0.92);
    --portal-hero-text: #f8fafc;
    --portal-hero-muted: #cbd5e1;
    --portal-hero-border: rgba(148, 163, 184, 0.22);
}

body.theme-light .portal-hero,
html.theme-light .portal-hero {
    --portal-hero-bg: rgba(248, 250, 252, 0.96);
    --portal-hero-card: rgba(255, 255, 255, 0.92);
    --portal-hero-card-strong: rgba(255, 255, 255, 0.98);
    --portal-hero-text: #0f172a;
    --portal-hero-muted: #475569;
    --portal-hero-border: rgba(15, 23, 42, 0.1);
}

.portal-hero__viewport {
    position: relative;
    min-width: 0;
    min-height: clamp(24rem, 34vw, 34rem);
    overflow: hidden;
    border: 0.0625rem solid var(--portal-hero-border);
    border-radius: var(--portal-hero-radius);
    background: var(--portal-hero-bg);
    box-shadow: 0 1.25rem 4rem rgba(15, 23, 42, 0.14);
    isolation: isolate;
    touch-action: pan-y;
}

.portal-hero__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: var(--portal-hero-pad);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(3%, 0, 0) scale(0.985);
    transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
    z-index: 1;
}

.portal-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 3;
}

.portal-hero__slide.is-leaving {
    opacity: 0;
    transform: translate3d(-2.5%, 0, 0) scale(0.99);
    z-index: 2;
}

.portal-hero__slide::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 0.5) 42%, rgba(2, 6, 23, 0.16) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.06) 0%, rgba(2, 6, 23, 0.34) 100%);
    pointer-events: none;
}

body.theme-light .portal-hero__slide::before,
html.theme-light .portal-hero__slide::before {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.38) 44%, rgba(15, 23, 42, 0.08) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.22) 100%);
}

.portal-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0f172a;
}

.portal-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.012);
}

.portal-hero__content {
    position: relative;
    z-index: 4;
    display: grid;
    width: min(40rem, 62%);
    max-height: calc(100% - 6.25rem);
    gap: clamp(0.7rem, 1.4vw, 1rem);
    padding: clamp(1rem, 2.2vw, 1.75rem);
    overflow: hidden;
    color: #ffffff;
    border: 0.0625rem solid rgba(255, 255, 255, 0.24);
    border-radius: calc(var(--portal-hero-radius) * 0.78);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.58));
    box-shadow: 0 1rem 3rem rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(1rem) saturate(130%);
}

body.theme-light .portal-hero__content,
html.theme-light .portal-hero__content {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48));
}

.portal-hero__category,
.portal-hero__premium,
.portal-hero-top__cat {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border-radius: 999rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.portal-hero__category {
    min-height: 2rem;
    padding: 0.36rem 0.78rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--portal-category-accent), color-mix(in srgb, var(--portal-category-accent) 68%, #020617));
    box-shadow: 0 0.65rem 1.6rem color-mix(in srgb, var(--portal-category-accent) 28%, transparent);
    font-size: clamp(0.72rem, 0.95vw, 0.8rem);
}

.portal-hero__category:hover,
.portal-hero__category:focus-visible {
    color: #ffffff;
    transform: translate3d(0, -0.0625rem, 0);
}

.portal-hero__title {
    max-width: 14em;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display, "Instrument Serif", Georgia, serif);
    font-size: clamp(2rem, 4.55vw, 4.35rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.portal-hero__title a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.portal-hero__title a:hover,
.portal-hero__title a:focus-visible {
    color: #e0fffb;
}

.portal-hero__excerpt {
    display: -webkit-box;
    max-width: 38rem;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.12vw, 1.08rem);
    font-weight: 600;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.portal-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    font-weight: 800;
    line-height: 1.35;
}

.portal-hero__premium {
    min-height: 1.75rem;
    padding: 0.32rem 0.65rem;
    color: #3b2200;
    background: linear-gradient(135deg, #ffe7a3, #f6b73c);
    box-shadow: 0 0.5rem 1.4rem rgba(246, 183, 60, 0.28);
    font-size: 0.75rem;
}

.portal-hero__nav {
    position: absolute;
    right: var(--portal-hero-pad);
    bottom: var(--portal-hero-pad);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    max-width: calc(100% - (var(--portal-hero-pad) * 2));
    padding: 0.45rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.24);
    border-radius: 999rem;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 0.85rem 2.2rem rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(0.9rem) saturate(130%);
}

.portal-hero__arrow,
.portal-hero__dot {
    appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease, width 180ms ease;
}

.portal-hero__arrow {
    display: inline-grid;
    min-width: var(--portal-hero-control);
    min-height: var(--portal-hero-control);
    place-items: center;
    color: #ffffff;
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.16);
}

.portal-hero__arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

.portal-hero__arrow:hover,
.portal-hero__arrow:focus-visible {
    color: #0f172a;
    background: #ffffff;
    transform: translate3d(0, -0.0625rem, 0);
}

.portal-hero__dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: var(--portal-hero-control);
    overflow: hidden;
}

.portal-hero__dot {
    flex: 0 0 auto;
    width: 0.72rem;
    height: 0.72rem;
    padding: 0;
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.38);
}

.portal-hero__dot:hover,
.portal-hero__dot:focus-visible,
.portal-hero__dot.is-active {
    width: 1.9rem;
    background: #ffffff;
}

.portal-hero-top {
    display: flex;
    min-width: 0;
    min-height: clamp(24rem, 34vw, 34rem);
    flex-direction: column;
    gap: 0.9rem;
    padding: clamp(1rem, 1.6vw, 1.25rem);
    border: 0.0625rem solid var(--portal-hero-border);
    border-radius: var(--portal-hero-radius);
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent, #0f766e) 12%, transparent), transparent 42%),
        var(--portal-hero-card-strong);
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.1);
    color: var(--portal-hero-text);
    overflow: hidden;
}

.portal-hero-top__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.4rem;
}

.portal-hero-top__title {
    color: var(--portal-hero-text);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.portal-hero-top__time {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.32rem 0.62rem;
    color: var(--portal-hero-muted);
    border: 0.0625rem solid var(--portal-hero-border);
    border-radius: 999rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.portal-hero-top__list {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    min-height: 0;
    flex: 1 1 auto;
}

.portal-hero-top__card {
    position: relative;
    display: grid;
    grid-template-columns: 2.25rem 5.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.65rem;
    overflow: hidden;
    color: var(--portal-hero-text);
    border: 0.0625rem solid color-mix(in srgb, var(--portal-category-accent) 24%, var(--portal-hero-border));
    border-radius: 1.15rem;
    background: color-mix(in srgb, var(--portal-hero-card) 86%, var(--portal-category-accent) 8%);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.portal-hero-top__card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.25rem;
    content: "";
    background: var(--portal-category-accent);
}

.portal-hero-top__card:hover,
.portal-hero-top__card:focus-visible {
    color: var(--portal-hero-text);
    border-color: color-mix(in srgb, var(--portal-category-accent) 62%, var(--portal-hero-border));
    box-shadow: 0 0.85rem 2rem color-mix(in srgb, var(--portal-category-accent) 18%, transparent);
    transform: translate3d(0, -0.125rem, 0);
}

.portal-hero-top__rank {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: #ffffff;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--portal-category-accent), color-mix(in srgb, var(--portal-category-accent) 62%, #020617));
    font-size: 0.78rem;
    font-weight: 900;
}

.portal-hero-top__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--portal-category-accent) 18%, #0f172a);
}

.portal-hero-top__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-hero-top__body {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.portal-hero-top__cat {
    min-height: 1.45rem;
    padding: 0.26rem 0.48rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--portal-category-accent), color-mix(in srgb, var(--portal-category-accent) 62%, #020617));
    font-size: 0.62rem;
}

.portal-hero-top__card-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--portal-hero-text);
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    font-weight: 850;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (min-width: 100rem) {
    .portal-hero {
        width: min(100%, 106rem);
        grid-template-columns: minmax(0, 1fr) minmax(21rem, 27rem);
    }

    .portal-hero__viewport,
    .portal-hero-top {
        min-height: clamp(30rem, 34vw, 42rem);
    }
}

@media (max-width: 74.9375rem) {
    .portal-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-hero__viewport {
        min-height: clamp(24rem, 52vw, 32rem);
    }

    .portal-hero__slide {
        align-items: end;
    }

    .portal-hero__slide::before,
    body.theme-light .portal-hero__slide::before,
    html.theme-light .portal-hero__slide::before {
        background:
            linear-gradient(180deg, rgba(2, 6, 23, 0.06) 0%, rgba(2, 6, 23, 0.76) 100%),
            linear-gradient(90deg, rgba(2, 6, 23, 0.14) 0%, rgba(2, 6, 23, 0.08) 100%);
    }

    .portal-hero__content {
        width: min(100%, 48rem);
        max-height: calc(100% - 6.5rem);
    }

    .portal-hero-top {
        min-height: auto;
    }

    .portal-hero-top__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
}

@media (max-width: 47.9375rem) {
    .portal-hero {
        --portal-hero-pad: clamp(0.75rem, 4vw, 1.125rem);
        padding-inline: clamp(0.65rem, 3vw, 1rem);
    }

    .portal-hero__viewport {
        min-height: clamp(24rem, 106vw, 31rem);
        border-radius: clamp(1rem, 5vw, 1.5rem);
    }

    .portal-hero__slide {
        padding: var(--portal-hero-pad);
    }

    .portal-hero__content {
        width: 100%;
        max-height: calc(100% - 5.6rem);
        gap: 0.68rem;
        padding: clamp(1rem, 5vw, 1.25rem);
        border-radius: clamp(0.9rem, 4vw, 1.2rem);
    }

    .portal-hero__title {
        max-width: 12em;
        font-size: clamp(1.72rem, 8.6vw, 2.5rem);
        line-height: 1;
    }

    .portal-hero__excerpt {
        font-size: 0.9rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .portal-hero__meta {
        font-size: 0.76rem;
    }

    .portal-hero__nav {
        right: 50%;
        bottom: var(--portal-hero-pad);
        transform: translate3d(50%, 0, 0);
    }

    .portal-hero__dots {
        max-width: 40vw;
    }

    .portal-hero-top__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-hero-top__card {
        grid-template-columns: 2.25rem 4.75rem minmax(0, 1fr);
    }
}

@media (max-width: 23.75rem) {
    .portal-hero__viewport {
        min-height: 23.5rem;
    }

    .portal-hero__excerpt {
        display: none;
    }

    .portal-hero__meta span:first-child,
    .portal-hero__meta span[aria-hidden="true"] {
        display: none;
    }

    .portal-hero__dot {
        width: 0.55rem;
        height: 0.55rem;
    }

    .portal-hero__dot.is-active {
        width: 1.35rem;
    }

    .portal-hero-top__card {
        grid-template-columns: 2rem 4rem minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.55rem;
    }

    .portal-hero-top__rank {
        width: 2rem;
        height: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-hero__slide,
    .portal-hero__arrow,
    .portal-hero__dot,
    .portal-hero__category,
    .portal-hero-top__card {
        transition: none;
    }
}

.portal-hero .portal-hero__title,
.portal-hero .portal-hero__title a,
body.theme-light .portal-hero .portal-hero__title,
body.theme-light .portal-hero .portal-hero__title a,
body.theme-dark .portal-hero .portal-hero__title,
body.theme-dark .portal-hero .portal-hero__title a,
html.theme-light .portal-hero .portal-hero__title,
html.theme-light .portal-hero .portal-hero__title a,
html.theme-dark .portal-hero .portal-hero__title,
html.theme-dark .portal-hero .portal-hero__title a {
    color: #ffffff !important;
}

@media (max-width: 48rem) {
    .portal-hero__viewport {
        display: flex;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }

    .portal-hero__slide {
        position: relative;
        inset: auto;
        display: none;
        min-height: clamp(23rem, 92vw, 31rem);
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: flex-end;
        padding: clamp(0.75rem, 4vw, 1rem);
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, 0, 0);
    }

    .portal-hero__slide.is-active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .portal-hero__slide.is-leaving {
        display: none;
    }

    .portal-hero__content {
        width: 100%;
        height: auto;
        max-height: none;
        gap: clamp(0.55rem, 2.6vw, 0.8rem);
        padding: clamp(0.85rem, 4vw, 1.1rem);
        overflow: visible;
    }

    .portal-hero__title {
        max-width: none;
        font-size: clamp(1.55rem, 7.8vw, 2.28rem);
        line-height: 1.04;
        letter-spacing: -0.035em;
    }

    .portal-hero__title a,
    .portal-hero__excerpt {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }

    .portal-hero__excerpt {
        max-width: none;
        font-size: clamp(0.84rem, 3.7vw, 0.95rem);
        line-height: 1.45;
    }

    .portal-hero__meta {
        font-size: clamp(0.72rem, 3.2vw, 0.8rem);
        gap: 0.35rem 0.55rem;
    }

    .portal-hero__category {
        min-height: 1.75rem;
        padding: 0.32rem 0.65rem;
        font-size: clamp(0.64rem, 2.8vw, 0.72rem);
    }

    .portal-hero__nav {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 20;
        justify-content: center;
        align-self: center;
        width: calc(100% - 1.5rem);
        max-width: 24rem;
        margin: 0.75rem auto 0.875rem;
        transform: none;
        pointer-events: auto;
    }

    .portal-hero__arrow {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .portal-hero__dots {
        max-width: min(46vw, 11rem);
    }
}

@media (max-width: 23.75rem) {
    .portal-hero__slide {
        min-height: clamp(22rem, 96vw, 29rem);
    }

    .portal-hero__content {
        padding: 0.78rem;
    }

    .portal-hero__title {
        font-size: clamp(1.42rem, 7.6vw, 1.9rem);
    }

    .portal-hero__excerpt {
        display: block;
        font-size: 0.82rem;
    }

    .portal-hero__meta span:first-child,
    .portal-hero__meta span[aria-hidden="true"] {
        display: inline;
    }
}

/* Final no-overlap pass: long localized titles, tablet flow, and readable controls. */
.portal-hero__content {
    width: min(36rem, 56%);
    max-height: calc(100% - 7rem);
}

.portal-hero__title {
    max-width: 11.5em;
    font-size: clamp(1.85rem, 3.65vw, 3.35rem);
    line-height: 1.04;
}

.portal-hero__excerpt {
    max-width: 34rem;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.48;
}

@media (max-width: 74.9375rem) {
    .portal-hero__viewport {
        display: flex;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }

    .portal-hero__slide {
        position: relative;
        inset: auto;
        display: none;
        min-height: clamp(24rem, 54vw, 34rem);
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: flex-end;
        padding: clamp(0.9rem, 3vw, 1.4rem);
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, 0, 0);
    }

    .portal-hero__slide.is-active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .portal-hero__slide.is-leaving {
        display: none;
    }

    .portal-hero__content {
        width: min(100%, 42rem);
        height: auto;
        max-height: none;
        gap: clamp(0.58rem, 1.7vw, 0.9rem);
        padding: clamp(0.95rem, 2.6vw, 1.35rem);
        overflow: visible;
    }

    .portal-hero__title {
        max-width: none;
        font-size: clamp(1.75rem, 5.6vw, 3rem);
        line-height: 1.04;
    }

    .portal-hero__title a,
    .portal-hero__excerpt {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }

    .portal-hero__excerpt {
        max-width: none;
        font-size: clamp(0.86rem, 2vw, 1rem);
        line-height: 1.45;
    }

    .portal-hero__nav {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 20;
        justify-content: center;
        align-self: center;
        width: calc(100% - 1.5rem);
        max-width: 24rem;
        margin: 0.75rem auto 0.9rem;
        transform: none;
        pointer-events: auto;
    }

    .portal-hero__arrow {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

@media (max-width: 48rem) {
    .portal-hero__slide {
        min-height: clamp(23rem, 92vw, 31rem);
        padding: clamp(0.75rem, 4vw, 1rem);
    }

    .portal-hero__content {
        width: 100%;
        gap: clamp(0.55rem, 2.6vw, 0.8rem);
        padding: clamp(0.85rem, 4vw, 1.1rem);
    }

    .portal-hero__title {
        font-size: clamp(1.5rem, 7.4vw, 2.18rem);
    }

    .portal-hero__excerpt {
        font-size: clamp(0.82rem, 3.45vw, 0.92rem);
    }

    .portal-hero__meta {
        font-size: clamp(0.7rem, 3.1vw, 0.78rem);
    }
}

@media (max-width: 23.75rem) {
    .portal-hero__slide {
        min-height: clamp(21.5rem, 96vw, 28rem);
    }

    .portal-hero__title {
        font-size: clamp(1.34rem, 7.2vw, 1.78rem);
    }

    .portal-hero__excerpt {
        display: block;
        font-size: 0.8rem;
        line-height: 1.38;
    }
}

/* Adaptive text panels: fluid sizing, safe wrapping, and readable rhythm. */
.portal-hero__content {
    box-sizing: border-box;
    inline-size: min(100%, clamp(18rem, 40vw, 35rem));
    min-inline-size: 0;
    block-size: auto;
    max-block-size: none;
    gap: clamp(0.6rem, 1.15vw, 0.95rem);
    padding: clamp(0.95rem, 1.9vw, 1.55rem);
    overflow: visible;
}

.portal-hero__title {
    max-inline-size: 100%;
    font-size: clamp(1.72rem, 3.15vw, 3.05rem);
    line-height: 1.03;
    letter-spacing: clamp(-0.04em, -0.55vw, -0.025em);
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
}

.portal-hero__title a {
    display: block;
    max-inline-size: 100%;
    color: #ffffff !important;
    overflow: visible;
    overflow-wrap: inherit;
    hyphens: inherit;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

.portal-hero__excerpt {
    max-inline-size: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.86rem, 0.96vw, 0.98rem);
    line-height: 1.5;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.portal-hero__category,
.portal-hero__premium {
    max-inline-size: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-hero__meta {
    min-inline-size: 0;
    overflow-wrap: break-word;
}

@media (min-width: 75rem) {
    .portal-hero__content {
        margin-inline-start: clamp(0.35rem, 1.2vw, 1rem);
    }
}

@media (max-width: 74.9375rem) {
    .portal-hero__content {
        inline-size: min(100%, 42rem);
        padding: clamp(0.95rem, 2.35vw, 1.35rem);
    }

    .portal-hero__title {
        font-size: clamp(1.65rem, 5.1vw, 2.72rem);
        line-height: 1.05;
        letter-spacing: -0.032em;
    }

    .portal-hero__excerpt {
        font-size: clamp(0.84rem, 1.8vw, 0.96rem);
        line-height: 1.46;
    }
}

@media (max-width: 48rem) {
    .portal-hero__content {
        inline-size: 100%;
        gap: clamp(0.5rem, 2.4vw, 0.75rem);
        padding: clamp(0.82rem, 3.8vw, 1.05rem);
        border-radius: clamp(0.85rem, 4vw, 1.15rem);
    }

    .portal-hero__title {
        font-size: clamp(1.34rem, 6.8vw, 2rem);
        line-height: 1.08;
        letter-spacing: -0.026em;
    }

    .portal-hero__excerpt {
        font-size: clamp(0.78rem, 3.35vw, 0.9rem);
        line-height: 1.42;
    }

    .portal-hero__category {
        min-height: 1.65rem;
        padding: 0.28rem 0.58rem;
        font-size: clamp(0.6rem, 2.65vw, 0.68rem);
    }
}

@media (max-width: 23.75rem) {
    .portal-hero__content {
        gap: 0.45rem;
        padding: 0.72rem;
    }

    .portal-hero__title {
        font-size: clamp(1.2rem, 6.5vw, 1.58rem);
        line-height: 1.1;
    }

    .portal-hero__excerpt {
        font-size: 0.76rem;
        line-height: 1.36;
    }
}

/* Tablet text panel correction: keep the card wide enough for long titles. */
@media (min-width: 48.0625rem) and (max-width: 74.9375rem) {
    .portal-hero__slide {
        min-height: clamp(25rem, 48vw, 32rem);
        padding: clamp(1rem, 2.4vw, 1.5rem);
    }

    .portal-hero__content {
        inline-size: min(76%, 46rem);
        margin-inline: auto;
        padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.65rem);
    }

    .portal-hero__title {
        font-size: clamp(2rem, 4.05vw, 3.1rem);
        line-height: 1.02;
        letter-spacing: -0.035em;
    }

    .portal-hero__excerpt {
        font-size: clamp(0.88rem, 1.5vw, 0.98rem);
        line-height: 1.44;
    }

    .portal-hero__nav {
        margin-top: 0.85rem;
    }
}

/* Desktop text panel correction: enough width for long Ukrainian/Russian titles. */
@media (min-width: 75rem) {
    .portal-hero__content {
        inline-size: min(78%, 40rem);
        margin-inline-start: clamp(0.35rem, 1vw, 0.85rem);
        padding: clamp(1rem, 1.65vw, 1.45rem) clamp(1.15rem, 2vw, 1.65rem);
    }

    .portal-hero__title {
        max-inline-size: 100%;
        font-size: clamp(1.85rem, 2.85vw, 3rem);
        line-height: 1.04;
        letter-spacing: -0.035em;
    }

    .portal-hero__excerpt {
        font-size: clamp(0.86rem, 0.88vw, 0.96rem);
        line-height: 1.46;
    }
}

@media (min-width: 90rem) {
    .portal-hero__content {
        inline-size: min(70%, 42rem);
    }

    .portal-hero__title {
        font-size: clamp(2rem, 2.55vw, 3.18rem);
    }
}

/* Full-width hero and restored compact top-news cards. */
.portal-hero {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

@media (min-width: 75rem) {
    .portal-hero {
        width: 100%;
        max-width: none;
        padding-inline: 0;
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
    }
}

@media (min-width: 90rem) {
    .portal-hero {
        width: 100%;
        max-width: none;
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
    }
}

.portal-hero-top {
    overflow: visible;
}

.portal-hero-top__list {
    grid-template-rows: none;
    align-content: start;
    gap: clamp(0.62rem, 0.9vw, 0.8rem);
}

.portal-hero-top__card {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    grid-template-areas: "media body";
    align-items: center;
    min-height: auto;
    padding: 0.58rem 0.72rem;
    gap: 0.72rem;
    overflow: visible;
}

.portal-hero-top__rank {
    position: absolute;
    left: 0.86rem;
    top: 50%;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    transform: translate3d(0, -50%, 0);
    font-size: 0.72rem;
}

.portal-hero-top__image {
    grid-area: media;
    width: 5.4rem;
    aspect-ratio: 1.45 / 1;
    margin-inline-start: 1.35rem;
    border-radius: 0.75rem;
}

.portal-hero-top__body {
    grid-area: body;
    align-content: center;
    gap: 0.32rem;
}

.portal-hero-top__cat {
    min-height: 1.32rem;
    padding: 0.22rem 0.46rem;
    font-size: 0.56rem;
    font-weight: 800;
}

.portal-hero-top__card-title {
    display: block;
    overflow: visible;
    color: var(--portal-hero-text);
    font-size: clamp(0.76rem, 0.72vw, 0.86rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

@media (max-width: 74.9375rem) {
    .portal-hero {
        padding-inline: 0;
    }

    .portal-hero-top__card {
        grid-template-columns: 5.15rem minmax(0, 1fr);
    }

    .portal-hero-top__image {
        width: 5.15rem;
    }

    .portal-hero-top__card-title {
        font-size: 0.84rem;
    }
}

@media (max-width: 48rem) {
    .portal-hero {
        padding-inline: 0;
    }

    .portal-hero-top__card {
        grid-template-columns: 4.85rem minmax(0, 1fr);
        padding: 0.55rem 0.65rem;
    }

    .portal-hero-top__rank {
        left: 0.78rem;
        width: 1.9rem;
        height: 1.9rem;
    }

    .portal-hero-top__image {
        width: 4.85rem;
        margin-inline-start: 1.25rem;
    }

    .portal-hero-top__card-title {
        font-size: 0.82rem;
        line-height: 1.28;
    }
}

/* Reference top-news cards: vertical accent, square media block, calm title weight. */
.portal-hero-top__card {
    grid-template-columns: 4.85rem minmax(0, 1fr);
    grid-template-areas: "media body";
    gap: 0.85rem;
    align-items: center;
    padding: 0.72rem 0.85rem 0.72rem 0.95rem;
    border-color: color-mix(in srgb, var(--portal-category-accent) 22%, var(--portal-hero-border));
    border-radius: 1rem;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--portal-category-accent) 9%, transparent), transparent 42%),
        color-mix(in srgb, var(--portal-hero-card) 94%, #020617 6%);
}

.portal-hero-top__card::before {
    inset: 0 auto 0 0;
    width: 0.22rem;
    border-radius: 1rem 0 0 1rem;
    background: var(--portal-category-accent);
}

.portal-hero-top__rank {
    position: absolute;
    left: 1.22rem;
    top: 1.02rem;
    z-index: 3;
    width: auto;
    height: auto;
    min-width: 1.55rem;
    min-height: 1.25rem;
    padding: 0.18rem 0.34rem;
    color: #ffffff;
    border-radius: 0.35rem;
    background: rgba(2, 6, 23, 0.72);
    box-shadow: 0 0.45rem 1.1rem rgba(2, 6, 23, 0.24);
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 1;
    transform: none;
}

.portal-hero-top__rank::before {
    content: "#";
}

.portal-hero-top__image {
    grid-area: media;
    width: 4.85rem;
    aspect-ratio: 1 / 1;
    margin-inline-start: 0;
    border-radius: 0.7rem;
    background:
        radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--portal-category-accent) 34%, transparent), transparent 48%),
        linear-gradient(135deg, color-mix(in srgb, var(--portal-category-accent) 72%, #020617), #06121f);
}

.portal-hero-top__image img {
    opacity: 0.72;
    filter: saturate(0.95) contrast(0.96);
}

.portal-hero-top__body {
    grid-area: body;
    gap: 0.38rem;
}

.portal-hero-top__cat {
    min-height: auto;
    padding: 0;
    color: var(--portal-category-accent);
    background: transparent;
    box-shadow: none;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.portal-hero-top__card-title {
    display: block;
    overflow: visible;
    color: var(--portal-hero-text);
    font-size: clamp(0.82rem, 0.78vw, 0.94rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.012em;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

@media (max-width: 74.9375rem) {
    .portal-hero-top__card {
        grid-template-columns: 4.6rem minmax(0, 1fr);
        gap: 0.78rem;
    }

    .portal-hero-top__image {
        width: 4.6rem;
    }

    .portal-hero-top__rank {
        left: 1.15rem;
        top: 0.95rem;
    }
}

@media (max-width: 48rem) {
    .portal-hero-top__card {
        grid-template-columns: 4.25rem minmax(0, 1fr);
        gap: 0.68rem;
        padding: 0.65rem 0.72rem 0.65rem 0.82rem;
    }

    .portal-hero-top__image {
        width: 4.25rem;
    }

    .portal-hero-top__rank {
        left: 1rem;
        top: 0.88rem;
        font-size: 0.58rem;
    }

    .portal-hero-top__card-title {
        font-size: 0.82rem;
        line-height: 1.3;
    }
}

/* Top-news final polish: balanced cards and slider height matched to the card stack. */
.portal-hero {
    --portal-top-card-min: clamp(5.35rem, 6.1vw, 6.35rem);
    --portal-top-gap: clamp(0.62rem, 0.85vw, 0.82rem);
    --portal-top-pad: clamp(1rem, 1.4vw, 1.25rem);
    --portal-top-head: 2.45rem;
}

@media (min-width: 75rem) {
    .portal-hero__viewport,
    .portal-hero-top {
        min-height: calc((var(--portal-top-card-min) * 4) + (var(--portal-top-gap) * 3) + var(--portal-top-head) + (var(--portal-top-pad) * 2));
        max-height: calc((var(--portal-top-card-min) * 4) + (var(--portal-top-gap) * 3) + var(--portal-top-head) + (var(--portal-top-pad) * 2));
    }
}

.portal-hero-top {
    display: grid;
    grid-template-rows: var(--portal-top-head) minmax(0, 1fr);
    gap: var(--portal-top-gap);
    padding: var(--portal-top-pad);
    overflow: hidden;
}

.portal-hero-top__head {
    min-height: 0;
}

.portal-hero-top__title {
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.1;
}

.portal-hero-top__list {
    display: grid;
    grid-template-rows: repeat(4, minmax(var(--portal-top-card-min), 1fr));
    gap: var(--portal-top-gap);
    min-height: 0;
    align-content: stretch;
}

.portal-hero-top__card {
    position: relative;
    grid-template-columns: clamp(4.6rem, 5.2vw, 5.25rem) minmax(0, 1fr);
    min-height: var(--portal-top-card-min);
    padding: clamp(0.58rem, 0.78vw, 0.75rem);
    gap: clamp(0.72rem, 0.9vw, 0.9rem);
    overflow: hidden;
    border-width: 0.0625rem;
    border-color: color-mix(in srgb, var(--portal-category-accent) 30%, var(--portal-hero-border));
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--portal-category-accent) 12%, transparent), transparent 36%),
        linear-gradient(135deg, color-mix(in srgb, var(--portal-hero-card) 88%, var(--portal-category-accent) 5%), color-mix(in srgb, var(--portal-hero-card) 94%, #020617 6%));
    box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.05);
}

.portal-hero-top__card::before {
    width: 0.24rem;
    border-radius: 1.05rem 0 0 1.05rem;
    box-shadow: 0 0 1.2rem color-mix(in srgb, var(--portal-category-accent) 42%, transparent);
}

.portal-hero-top__card:hover,
.portal-hero-top__card:focus-visible {
    box-shadow:
        inset 0 0.0625rem 0 rgba(255, 255, 255, 0.07),
        0 0.9rem 2rem color-mix(in srgb, var(--portal-category-accent) 16%, transparent);
}

.portal-hero-top__image {
    position: relative;
    width: clamp(4.45rem, 5.05vw, 5.1rem);
    align-self: stretch;
    min-height: 4.45rem;
    margin: 0;
    border-radius: 0.78rem;
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.08);
}

.portal-hero-top__image img {
    opacity: 0.82;
}

.portal-hero-top__rank {
    left: clamp(0.82rem, 0.95vw, 1rem);
    top: clamp(0.78rem, 0.9vw, 0.95rem);
    min-width: 1.55rem;
    min-height: 1.32rem;
    background: rgba(2, 6, 23, 0.76);
    border: 0.0625rem solid rgba(255, 255, 255, 0.16);
}

.portal-hero-top__body {
    align-self: center;
    gap: clamp(0.28rem, 0.42vw, 0.42rem);
    min-width: 0;
}

.portal-hero-top__cat {
    width: auto;
    max-width: 100%;
    color: color-mix(in srgb, var(--portal-category-accent) 88%, #ffffff 12%);
    font-size: clamp(0.54rem, 0.55vw, 0.62rem);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-hero-top__card-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--portal-hero-text);
    font-size: clamp(0.78rem, 0.78vw, 0.9rem);
    font-weight: 600;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 74.9375rem) {
    .portal-hero {
        --portal-top-card-min: clamp(5.1rem, 12vw, 6rem);
    }

    .portal-hero-top {
        min-height: auto;
        max-height: none;
    }

    .portal-hero-top__list {
        grid-template-rows: none;
    }

    .portal-hero-top__card {
        min-height: var(--portal-top-card-min);
    }
}

@media (max-width: 48rem) {
    .portal-hero {
        --portal-top-card-min: 5rem;
    }

    .portal-hero-top__card {
        grid-template-columns: 4.15rem minmax(0, 1fr);
    }

    .portal-hero-top__image {
        width: 4.15rem;
        min-height: 4.15rem;
    }

    .portal-hero-top__card-title {
        font-size: 0.8rem;
        line-height: 1.25;
    }
}

/* Top-news badge/tag refinement. */
.portal-hero-top__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    min-height: 1.55rem;
    padding: 0.18rem 0.42rem;
    color: #ffffff;
    border: 0.0625rem solid color-mix(in srgb, var(--portal-category-accent) 54%, rgba(255,255,255,0.22));
    border-radius: 0.55rem;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.28), transparent 36%),
        linear-gradient(135deg, color-mix(in srgb, var(--portal-category-accent) 72%, #0f172a), color-mix(in srgb, var(--portal-category-accent) 38%, #020617));
    box-shadow:
        0 0.5rem 1.25rem color-mix(in srgb, var(--portal-category-accent) 24%, transparent),
        inset 0 0.0625rem 0 rgba(255,255,255,0.24);
    font-family: var(--font-mono, "Geist Mono", monospace);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.portal-hero-top__cat {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 1.35rem;
    padding: 0.24rem 0.52rem;
    color: #ffffff;
    border: 0.0625rem solid color-mix(in srgb, var(--portal-category-accent) 54%, rgba(255,255,255,0.18));
    border-radius: 999rem;
    background:
        radial-gradient(circle at 18% 15%, rgba(255,255,255,0.22), transparent 34%),
        linear-gradient(135deg, var(--portal-category-accent), color-mix(in srgb, var(--portal-category-accent) 58%, #020617));
    box-shadow: 0 0.45rem 1rem color-mix(in srgb, var(--portal-category-accent) 16%, transparent);
    font-family: var(--font-mono, "Geist Mono", monospace);
    font-size: clamp(0.54rem, 0.52vw, 0.6rem);
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide top-news numbers completely by request. */
.portal-hero-top__rank {
    display: none !important;
}
