/* article12 extras */

.wh-page {
    --wh-fs-h2: clamp(22px, 2vw + 0.7rem, 32px);
}

/* winn12-no-lines 會拿掉卡片外框，此處加回（與 news12 案例卡一致） */
.wh-page .wh-article-card,
.wh-page .wh-article-featured {
    border: 1px solid var(--wh-line);
}

a.wh-filter__btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.wh-article-card.img_none .wh-article-card__media,
.wh-article-featured.img_none .wh-article-featured__media {
    display: none;
}

.wh-page .wh-article-card__body h2 {
    margin: 0;
    font-size: var(--wh-fs-h3);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.wh-page .wh-article-card__title {
    color: inherit;
    text-decoration: none;
}

.wh-page .wh-article-card__title:hover {
    color: var(--wh-accent);
}

@media (max-width: 639px) {
    .wh-page .wh-page-hero {
        padding: clamp(96px, 22vw, 128px) 0 clamp(32px, 8vw, 48px);
    }

    .wh-page .wh-page-hero + .wh-section {
        padding-top: 32px;
    }

    .wh-article-card {
        grid-column: span 12;
    }

    .wh-filter {
        flex-wrap: nowrap;
        gap: 8px;
        margin-inline: calc(-1 * var(--wh-gutter));
        padding-inline: var(--wh-gutter);
        scroll-padding-inline: var(--wh-gutter);
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
    }

    .wh-filter__btn {
        white-space: nowrap;
        font-size: 0.875rem;
    }
}

.wh-article12-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
}

.wh-article12-pager .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wh-article12-pager a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--wh-muted);
    text-decoration: none;
}

.wh-article12-pager a.active,
.wh-article12-pager a:hover {
    color: var(--wh-text);
    font-weight: 600;
}

.wh-article12-pager .pagination.disabled {
    display: none;
}
