/**
 * archive.css — Styles for home/archive/search pages only.
 *
 * ALL rules are scoped under .ice-archive-page to prevent bleeding
 * onto single posts, pages, or the front page.
 *
 * CSS custom properties from variables.css are reused throughout.
 * No inline styles, no !important overrides on global selectors.
 *
 * @package ICE_GeneratePress_Child
 * @since   2.0.0
 */

/* ═══════════════════════════════════════════════════════════════════
   0. ARCHIVE PAGE WRAPPER — full-width reset
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive-page {
    background: #f5f5f3; /* off-white warm */
    min-height: 60vh;
}

/* GeneratePress content area: let hero break out to full-bleed */
.ice-archive-page #page,
.ice-archive-page .inside-page-header {
    padding: 0;
}

/* Remove GP default page-header spacing on archive pages */
.ice-archive-page .page-header {
    display: none;
}

/* Remove GP default inner-container padding so hero is flush */
.ice-archive-page #main {
    padding: 0;
    background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════
   1. HERO — full-bleed dark section
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive-hero {
    position: relative;
    background: #1a1f2e; /* charcoal, NOT navy */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 56px 0 52px;
    isolation: isolate;
}

/* Customizer background overlay layer */
.ice-archive-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* SVG pattern layer */
.ice-archive-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.ice-archive-hero__inner {
    position: relative;
    z-index: 3;
}

/* Breadcrumb */
.ice-archive-hero .ice-breadcrumb,
.ice-archive-hero .rank-math-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.ice-archive-hero .ice-breadcrumb__item,
.ice-archive-hero .rank-math-breadcrumb a,
.ice-archive-hero .rank-math-breadcrumb p > span {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--ice-t-fast);
}

.ice-archive-hero .ice-breadcrumb__item:hover,
.ice-archive-hero .rank-math-breadcrumb a:hover {
    color: var(--ice-accent);
}

.ice-archive-hero .ice-breadcrumb__item--current {
    color: rgba(255, 255, 255, 0.35);
}

.ice-archive-hero .ice-breadcrumb__sep,
.ice-archive-hero .rank-math-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 2px;
}

/* RankMath breadcrumb wrapper reset */
.ice-archive-hero .rank-math-breadcrumb p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
}

/* H1 */
.ice-archive-hero__title {
    font-family: var(--ice-font-heading);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: var(--ice-fw-extrabold);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 16px;
    max-width: 680px;
}

/* Gold italic accent word */
.ice-archive-hero__accent {
    font-style: italic;
    color: var(--ice-accent);
    font-weight: var(--ice-fw-extrabold);
}

/* Search result H1 prefix */
.ice-archive-hero__search-prefix {
    display: block;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: var(--ice-fw-normal);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

/* Description */
.ice-archive-hero__desc {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 0 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ice-archive-hero__search-count {
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Search form */
.ice-archive-search {
    display: flex;
    align-items: center;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 4px 4px 4px 20px;
    gap: 8px;
    transition: border-color var(--ice-t-fast), background var(--ice-t-fast);
}

.ice-archive-search:focus-within {
    border-color: var(--ice-accent);
    background: rgba(255, 255, 255, 0.12);
}

.ice-archive-search__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    font-family: var(--ice-font-body);
    padding: 10px 0;
    min-width: 0;
}

.ice-archive-search__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ice-archive-search__btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--ice-accent);
    color: var(--ice-primary);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--ice-t-fast), transform var(--ice-t-fast);
}

.ice-archive-search__btn:hover {
    background: var(--ice-accent-dark);
}

.ice-archive-search__btn:active {
    transform: scale(0.95);
}

.ice-archive-search__btn:focus-visible {
    outline: var(--ice-focus-width) solid var(--ice-focus-color);
    outline-offset: var(--ice-focus-offset);
}

/* ═══════════════════════════════════════════════════════════════════
   2. FILTER BAR
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive-filterbar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #ffffff;
    border-bottom: 1px solid var(--ice-border);
    z-index: var(--ice-z-sticky);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.ice-archive-filterbar--sticky {
    position: sticky;
    top: 0;
}

/* Offset for sticky header — if header is sticky, push filter bar down */
@supports (top: env(safe-area-inset-top)) {
    .ice-archive-filterbar--sticky {
        top: var(--ice-header-height-sticky, 64px);
    }
}

.ice-archive-filterbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    min-height: 56px;
}

/* Category pills nav */
.ice-archive-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 2px; /* prevent clip on focus ring */
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    /* Fade edge on right */
    mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
}

.ice-archive-cats.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.ice-archive-cats.is-dragging a {
    pointer-events: none;
}

.ice-archive-cats::-webkit-scrollbar {
    display: none;
}

/* Category pill */
.ice-archive-cat-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: var(--ice-fw-medium);
    border: 1.5px solid var(--ice-border);
    color: var(--ice-title);
    background: transparent;
    text-decoration: none;
    transition: all var(--ice-t-fast);
    flex-shrink: 0;
}

.ice-archive-cat-pill:hover {
    border-color: var(--ice-accent);
    color: var(--ice-accent-dark);
}

.ice-archive-cat-pill--active {
    background: var(--ice-primary);
    border-color: var(--ice-primary);
    color: #ffffff;
    pointer-events: none;
}

.ice-archive-cat-pill:focus-visible {
    outline: var(--ice-focus-width) solid var(--ice-focus-color);
    outline-offset: var(--ice-focus-offset);
}

/* ── Sort Dropdown ── */
.ice-archive-sort {
    position: relative;
    flex-shrink: 0;
}

.ice-archive-sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1.5px solid var(--ice-border);
    background: transparent;
    color: var(--ice-title);
    font-size: 13px;
    font-weight: var(--ice-fw-medium);
    font-family: var(--ice-font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--ice-t-fast), color var(--ice-t-fast);
    min-width: 120px;
    justify-content: space-between;
}

.ice-archive-sort__btn:hover {
    border-color: var(--ice-accent);
    color: var(--ice-accent-dark);
}

.ice-archive-sort__btn[aria-expanded="true"] {
    border-color: var(--ice-primary);
}

.ice-archive-sort__btn:focus-visible {
    outline: var(--ice-focus-width) solid var(--ice-focus-color);
    outline-offset: var(--ice-focus-offset);
}

.ice-archive-sort__chevron {
    transition: transform 200ms ease;
    flex-shrink: 0;
}

.ice-archive-sort__btn[aria-expanded="true"] .ice-archive-sort__chevron {
    transform: rotate(180deg);
}

.ice-archive-sort__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #ffffff;
    border: 1px solid var(--ice-border);
    border-radius: 8px;
    box-shadow: var(--ice-shadow);
    list-style: none;
    margin: 0;
    padding: 4px;
    z-index: var(--ice-z-dropdown);
    min-width: 100%; /* Same width as button */
    max-width: 200px; /* Prevent overflow on mobile */
}

.ice-archive-sort__dropdown[hidden] {
    display: none;
}

.ice-archive-sort__option {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--ice-title);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--ice-t-fast), color var(--ice-t-fast);
}

.ice-archive-sort__option:hover {
    background: #f5f5f3;
}

.ice-archive-sort__option--active {
    color: var(--ice-accent-dark);
    font-weight: var(--ice-fw-semibold);
}

.ice-archive-sort__option:focus-visible {
    outline: var(--ice-focus-width) solid var(--ice-focus-color);
    outline-offset: -2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   3. MAIN CONTENT WRAPPER
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive__main {
    padding-top: 40px;
    padding-bottom: 72px;
}

/* Article count */
.ice-archive-count {
    font-size: 13px;
    color: var(--ice-body);
    margin: 0 0 24px;
}

.ice-archive-count strong {
    color: var(--ice-title);
    font-weight: var(--ice-fw-semibold);
}

/* ═══════════════════════════════════════════════════════════════════
   4. FEATURED CARD
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive__featured {
    margin-bottom: 36px;
}

/* Thin horizontal divider line between Featured Post and Grid */
.ice-archive__divider {
    border: 0;
    height: 1px;
    background-color: var(--ice-border, #e7e7e7);
    margin: 0 0 36px 0;
    width: 100%;
}

.ice-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ice-shadow);
    border: 1px solid var(--ice-border);
    transition: box-shadow var(--ice-t-base);
}

.ice-featured-card:hover {
    box-shadow: var(--ice-shadow-lg);
}

/* Image column */
.ice-featured-card__img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0ede8;
}

.ice-featured-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ice-featured-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.ice-featured-card:hover .ice-featured-card__img {
    transform: scale(1.04);
}

/* Placeholder */
.ice-featured-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f4f2 0%, #e8dfc8 100%);
    color: var(--ice-accent);
    height: 100%;
}

/* Content column */
.ice-featured-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px 40px 40px;
}

.ice-featured-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ice-featured-card__date {
    font-size: 13px;
    color: var(--ice-body);
}

.ice-featured-card__title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: var(--ice-fw-bold);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ice-title);
    margin: 0 0 14px;
}

.ice-featured-card__title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--ice-t-fast);
}

.ice-featured-card__title-link:hover {
    color: var(--ice-accent-dark);
}

.ice-featured-card__excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ice-body);
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ice-featured-card__cta {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: var(--ice-fw-semibold);
    color: var(--ice-accent-dark);
    text-decoration: none;
    transition: gap var(--ice-t-fast), color var(--ice-t-fast);
    gap: 4px;
    align-self: flex-start;
}

.ice-featured-card__cta:hover {
    color: var(--ice-primary);
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   5. BADGES
   ═══════════════════════════════════════════════════════════════════ */

.ice-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: var(--ice-fw-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--ice-t-fast);
}

.ice-badge--gold {
    background: var(--ice-accent);
    color: var(--ice-primary);
}

.ice-badge--gold:hover {
    opacity: 0.85;
}

.ice-badge--small {
    background: rgba(214, 181, 110, 0.15);
    color: var(--ice-accent-dark);
    font-size: 10px;
    padding: 2px 8px;
}

/* Category Badge Overlaid on Grid Card Image */
.ice-badge--overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: #ffffff;
    color: var(--ice-title, #041b16);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════
   6. GRID
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════════════════════════
   7. GRID CARD
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ice-border);
    box-shadow: var(--ice-shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ice-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ice-shadow);
}

/* Full-card anchor */
.ice-archive-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.ice-archive-card__link:focus-visible {
    outline: var(--ice-focus-width) solid var(--ice-focus-color);
    outline-offset: var(--ice-focus-offset);
    border-radius: 14px;
}

/* Card image wrap — aspect ratio via CSS variable from PHP */
.ice-archive-card__img-wrap {
    position: relative;
    aspect-ratio: var(--card-ratio, 16 / 10);
    overflow: hidden;
    background: #f0ede8;
    flex-shrink: 0;
}

.ice-archive-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.ice-archive-card:hover .ice-archive-card__img {
    transform: scale(1.05);
}

/* Image placeholder */
.ice-archive-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f4f2 0%, #e8dfc8 100%);
    color: var(--ice-accent);
    width: 100%;
    height: 100%;
}

/* Card body — title moved up to top position */
.ice-archive-card__body {
    padding: 20px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta row */
.ice-archive-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ice-archive-card__date {
    font-size: 12px;
    color: var(--ice-gray-light);
}

/* Card title */
.ice-archive-card__title {
    font-size: 16px;
    font-weight: var(--ice-fw-bold);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ice-title);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
    transition: color var(--ice-t-fast);
}

.ice-archive-card:hover .ice-archive-card__title {
    color: var(--ice-accent-dark);
}

/* Card excerpt */
.ice-archive-card__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ice-body);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

/* Card footer */
.ice-archive-card__footer {
    padding: 10px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--ice-border);
    margin-top: auto;
    text-decoration: none !important;
}

.ice-archive-card__footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ice-gray-light);
    text-decoration: none !important;
}

.ice-archive-card__read-time,
.ice-archive-card__author {
    font-size: 12px;
    color: var(--ice-gray-light);
    text-decoration: none !important;
}

.ice-archive-card__footer-right {
    font-size: 12px;
    font-weight: var(--ice-fw-semibold);
    color: var(--ice-accent-dark);
    text-decoration: none !important;
    transition: color var(--ice-t-fast);
}

.ice-archive-card:hover .ice-archive-card__footer-right {
    color: var(--ice-primary);
}

/* Global hover underlines removal across entire archive page */
.ice-archive-page a,
.ice-archive-page a:hover,
.ice-archive-page a:focus,
.ice-archive-card,
.ice-archive-card:hover,
.ice-archive-card *,
.ice-archive-card:hover *,
.ice-archive-card__link,
.ice-archive-card__link:hover,
.ice-archive-card__link:hover *,
.ice-archive-card__title,
.ice-archive-card__title:hover,
.ice-archive-card__excerpt,
.ice-archive-card__footer,
.ice-archive-card__footer-right,
.ice-featured-card,
.ice-featured-card:hover,
.ice-featured-card *,
.ice-featured-card:hover *,
.ice-featured-card a,
.ice-featured-card a:hover,
.ice-featured-card__title-link,
.ice-featured-card__title-link:hover,
.ice-featured-card__cta,
.ice-featured-card__cta:hover {
    text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   8. PAGINATION
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive-pagination {
    margin-top: 16px;
}

.ice-archive-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ice-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1.5px solid var(--ice-border);
    background: #ffffff;
    font-size: 14px;
    font-weight: var(--ice-fw-medium);
    color: var(--ice-title);
    text-decoration: none;
    transition: all var(--ice-t-fast);
}

.ice-archive-pagination .page-numbers:hover {
    border-color: var(--ice-accent);
    color: var(--ice-accent-dark);
}

.ice-archive-pagination .page-numbers.current {
    background: var(--ice-primary);
    border-color: var(--ice-primary);
    color: #ffffff;
    pointer-events: none;
}

.ice-archive-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

.ice-archive-pagination .prev.page-numbers,
.ice-archive-pagination .next.page-numbers {
    padding: 0 16px;
    font-size: 13px;
}

.ice-archive-pagination .page-numbers:focus-visible {
    outline: var(--ice-focus-width) solid var(--ice-focus-color);
    outline-offset: var(--ice-focus-offset);
}

/* ═══════════════════════════════════════════════════════════════════
   9. NO RESULTS
   ═══════════════════════════════════════════════════════════════════ */

.ice-archive-no-results {
    text-align: center;
    padding: 64px 24px;
}

.ice-archive-no-results__text {
    font-size: 16px;
    color: var(--ice-body);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   10. RESPONSIVE — Tablet (max 1024px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

    .ice-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ice-featured-card {
        grid-template-columns: 1fr;
    }

    .ice-featured-card__img-wrap {
        aspect-ratio: 16 / 7;
    }

    .ice-featured-card__content {
        padding: 28px;
    }

    .ice-featured-card__title {
        font-size: clamp(18px, 2.5vw, 22px);
    }

    .ice-archive-hero {
        padding: 44px 0 40px;
    }

    .ice-archive-hero__title {
        font-size: clamp(28px, 4vw, 40px);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   11. RESPONSIVE — Mobile (max 768px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Hero */
    .ice-archive-hero {
        padding: 36px 0 32px;
    }

    .ice-archive-hero__title {
        font-size: clamp(26px, 7vw, 32px);
        margin-bottom: 12px;
    }

    .ice-archive-hero__desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .ice-archive-search {
        padding: 4px 4px 4px 16px;
    }

    .ice-archive-search__input {
        font-size: 14px;
    }

    /* Filter bar */
    .ice-archive-filterbar__inner {
        gap: 8px;
        padding: 10px 0;
    }

    .ice-archive-cats {
        /* Tighten fade on mobile */
        mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
    }

    .ice-archive-cat-pill {
        font-size: 12px;
        padding: 5px 12px;
    }

    .ice-archive-sort__btn {
        font-size: 12px;
        padding: 5px 10px;
        min-width: 90px;
    }

    /* Grid */
    .ice-archive-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Featured card — stacked on mobile */
    .ice-featured-card {
        grid-template-columns: 1fr;
    }

    .ice-featured-card__img-wrap {
        aspect-ratio: 16 / 9;
    }

    .ice-featured-card__content {
        padding: 20px;
    }

    .ice-featured-card__title {
        font-size: 18px;
    }

    .ice-featured-card__excerpt {
        font-size: 14px;
    }

    /* Pagination */
    .ice-archive-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* Sort dropdown — prevent overflow */
    .ice-archive-sort__dropdown {
        right: 0;
        left: auto;
        max-width: 90vw;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   12. PRINT
   ═══════════════════════════════════════════════════════════════════ */

@media print {
    .ice-archive-hero,
    .ice-archive-filterbar,
    .ice-archive-pagination {
        display: none;
    }

    .ice-archive-grid {
        grid-template-columns: 1fr;
    }
}

