.page-news.beta-news-category-page {
    --category-ink: #09274b;
    --category-muted: #435d74;
    --category-line: #dce8ef;
    --category-soft: #edf6fc;
    --category-orange: #b74408;
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 8px 0 32px;
    color: var(--category-ink);
    overflow-wrap: anywhere;
}

.beta-news-category-page .news-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.beta-news-category-page .news-section {
    padding: 20px 0 0;
}

.beta-news-category-page .beta-news-category-intro {
    display: flow-root;
    padding: 20px 22px;
    border-inline-start: 4px solid #ff7625;
    border-radius: 8px;
    background: var(--category-soft);
}

.beta-news-category-page .beta-news-category-intro:has(h1[hidden]:only-child) {
    display: none;
}

.beta-news-category-page .beta-news-category-intro h1 {
    margin: 0;
    color: var(--category-ink);
    font-size: clamp(27px, 3.8vw, 43px);
    line-height: 1.14;
}

.beta-news-category-page .beta-news-category-summary {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--category-muted);
}

.beta-news-category-page .beta-news-category-summary:empty {
    display: none;
}

.beta-news-category-page .beta-news-category-intro-image {
    float: inline-start;
    width: min(28%, 160px);
    height: auto;
    margin: 10px 14px 6px 0;
    border-radius: 6px;
}

.beta-news-category-page .beta-news-category-subcat {
    display: inline-block;
    margin: 10px 6px 0 0;
}

.beta-news-category-page .beta-news-category-subcat a {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid var(--category-line);
    border-radius: 5px;
    background: #fff;
    color: var(--category-ink);
}

.beta-news-category-page .beta-news-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.beta-news-category-page .beta-news-category-card,
.beta-news-category-page .beta-news-category-more article {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--category-line);
    border-radius: 9px;
    background: #fff;
}

.beta-news-category-page .beta-news-category-card {
    display: flex;
    flex-direction: column;
}

.beta-news-category-page .beta-news-category-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--category-soft);
}

.beta-news-category-page .beta-news-category-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beta-news-category-page .beta-news-category-card .news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 15px 12px;
}

.beta-news-category-page .beta-news-category-card h2 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.32;
}

.beta-news-category-page .beta-news-category-link {
    color: var(--category-ink);
    text-decoration: none;
}

.beta-news-category-page .beta-news-category-link::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
}

.beta-news-category-page .beta-news-category-link:focus-visible::before {
    outline: 2px solid #0a4c99;
    outline-offset: -3px;
}

.beta-news-category-page .beta-news-category-card p {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--category-muted);
    font-size: 14px;
    line-height: 1.52;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.beta-news-category-page .beta-news-category-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: auto 0 0;
    padding: 9px 0 0;
    border-top: 1px solid var(--category-line);
    color: var(--category-muted);
    font-size: 13px;
}

.beta-news-category-page .beta-news-category-arrow {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #fff1e5;
    color: var(--category-orange);
}

.beta-news-category-page .beta-news-category-pagination {
    margin: 20px auto 0;
    text-align: center;
}

.beta-news-category-page .beta-news-category-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.beta-news-category-page .beta-news-category-pagination .pagination :is(a, span) {
    display: inline-grid;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    place-items: center;
    padding: 5px;
    border-radius: 6px;
}

.beta-news-category-page .news-section--soft {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    background: var(--category-soft);
}

.beta-news-category-page .news-heading {
    margin: 0 0 12px;
}

.beta-news-category-page .news-heading h2 {
    margin: 0;
    font-size: 23px;
}

.beta-news-category-page .beta-news-category-more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.beta-news-category-page .beta-news-category-more article > div {
    padding: 10px 12px;
}

.beta-news-category-page .beta-news-category-more h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.4;
}

.beta-news-category-page .beta-news-category-more p {
    margin: 0;
    color: var(--category-muted);
    font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .beta-news-category-page .beta-news-category-card {
        transition: box-shadow .2s, border-color .2s;
    }

    .beta-news-category-page .beta-news-category-card:hover,
    .beta-news-category-page .beta-news-category-more article:hover {
        border-color: #b9d0e2;
        box-shadow: 0 6px 20px rgb(8 45 81 / .09);
    }

    .beta-news-category-page .beta-news-category-card:hover .beta-news-category-link,
    .beta-news-category-page .beta-news-category-more article:hover .beta-news-category-link {
        color: var(--category-orange);
    }
}

@media (max-width: 1023px) {
    .beta-news-category-page .beta-news-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 599px) {
    .beta-news-category-page .beta-news-category-intro {
        padding: 14px;
    }

    .beta-news-category-page .news-section {
        padding-top: 14px;
    }

    .beta-news-category-page .beta-news-category-grid,
    .beta-news-category-page .beta-news-category-more {
        grid-template-columns: minmax(0, 1fr);
    }

    .beta-news-category-page .news-section--soft {
        padding: 12px;
    }

    .beta-news-category-page .beta-news-category-card h2 {
        font-size: 18px;
    }
}
