/* Loaded after style.css so responsive readability fixes remain authoritative. */
html,
body,
button,
input,
select,
textarea {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

@media (min-width: 901px) {
    .category-landing .category-featured {
        height: auto;
        min-height: 370px;
        align-items: stretch;
    }
    .category-landing .category-featured__image {
        height: auto;
        min-height: 370px;
    }
    .category-landing .category-featured__body {
        min-width: 0;
        justify-content: center;
        padding: clamp(30px,3vw,48px);
        overflow: visible;
    }
    .category-landing .category-featured__body h2 {
        overflow-wrap: anywhere;
        font-size: clamp(34px,2.35vw,41px) !important;
        line-height: 1.08;
    }
    .category-landing .category-featured__body > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .category-landing .category-button {
        align-self: flex-start;
        flex: 0 0 auto;
    }
    .category-landing .category-quick-guides a {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 900px) {
    .category-landing .category-featured {
        display: flex;
        height: auto;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }
    .category-landing .category-featured__image {
        width: 100%;
        height: clamp(205px,54vw,280px);
        min-height: 205px;
        flex: 0 0 auto;
    }
    .category-landing .category-featured__body {
        min-width: 0;
        padding: 20px 18px 23px;
        overflow: visible;
    }
    .category-landing .category-featured__body h2 {
        margin-bottom: 10px;
        overflow-wrap: anywhere;
        font-size: clamp(24px,6.7vw,29px) !important;
        line-height: 1.12;
    }
    .category-landing .category-featured__body > p {
        margin-bottom: 11px;
        font-size: 14px !important;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }
    .category-landing .category-featured__body .category-date {
        margin-bottom: 12px;
    }
    .category-landing .category-button {
        display: inline-flex;
        align-self: flex-start;
        min-height: 42px;
        align-items: center;
        justify-content: center;
    }
    .category-landing .category-topic-scroll > a {
        flex-basis: 145px;
        min-height: 72px;
        padding: 10px;
    }
    .category-landing .category-quick-guides > div {
        padding-bottom: 5px;
        scroll-snap-type: x proximity;
    }
    .category-landing .category-quick-guides a {
        flex-basis: 168px;
        min-height: 72px;
        padding: 11px 12px;
        overflow-wrap: anywhere;
        scroll-snap-align: start;
    }
    .category-landing .category-card {
        min-height: 172px;
    }
    .category-landing .category-card__image {
        min-height: 172px;
    }
    .category-landing .category-card__body h3 {
        font-size: 18px !important;
        line-height: 1.2;
    }
    .category-landing .category-card__body > p {
        font-size: 13px !important;
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .category-landing .category-card {
        grid-template-columns: 36% 64%;
        min-height: 184px;
    }
    .category-landing .category-card__image {
        min-height: 184px;
    }
    .category-landing .category-card__body {
        padding: 11px 10px;
    }
}
