/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 */
:root{--fresh-blog-archive-tone-1:#fff;--fresh-blog-archive-tone-2:rgba(0, 0, 0, 0.08);--fresh-blog-archive-tone-3:rgba(0, 0, 0, 0.04);--fresh-blog-archive-tone-4:rgba(0, 0, 0, 0.15);--fresh-blog-archive-tone-5:#f0f2f5;--fresh-blog-archive-tone-6:#e8edf2;--fresh-blog-archive-tone-7:#d1d9e6;--fresh-blog-archive-tone-8:rgba(0, 26, 51, 0.25);--fresh-blog-archive-tone-9:rgba(255, 255, 255, 0.8);--fresh-blog-archive-tone-10:#666;--fresh-blog-archive-tone-11:#eee;--fresh-blog-archive-tone-12:rgba(0, 0, 0, 0.06);--fresh-blog-archive-tone-13:#f0f0f0;--fresh-blog-archive-tone-14:#333;--fresh-blog-archive-tone-15:#ddd;}
/*
 * Fresh Blog Archive Redesign
 * Clean card grid for custom archive template
 * Target: .fresh-blog-grid, .fresh-blog-card
 */

/* ==========================================================================
   ARCHIVE HEADER
   ========================================================================== */

.archive .page-title,
.category .page-title,
.blog .page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--freshair-navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 10px;
}

.archive .page-title span,
.category .page-title span {
    color: var(--freshair-teal);
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */

.fresh-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.fresh-blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--fresh-blog-archive-tone-1);
    box-shadow: 0 4px 20px var(--fresh-blog-archive-tone-2);
    border: 1px solid var(--fresh-blog-archive-tone-3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fresh-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--fresh-blog-archive-tone-4);
}

/* Entire card is a link */
.fresh-blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none ;
    color: inherit ;
}

/* ==========================================================================
   CARD IMAGE
   ========================================================================== */

.fresh-blog-card__image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--fresh-blog-archive-tone-5);
}

.fresh-blog-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fresh-blog-card:hover .fresh-blog-card__image img {
    transform: scale(1.05);
}

/* Placeholder when no featured image */
.fresh-blog-card__image--placeholder {
    background: linear-gradient(135deg, var(--fresh-blog-archive-tone-6) 0%, var(--fresh-blog-archive-tone-7) 100%);
}

/* ==========================================================================
   DATE BADGE
   ========================================================================== */

.fresh-blog-card__date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--freshair-navy);
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    min-width: 38px;
    box-shadow: 0 2px 6px var(--fresh-blog-archive-tone-8);
    z-index: 2;
}

.fresh-blog-card__day {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--fresh-blog-archive-tone-1);
    line-height: 1.1;
}

.fresh-blog-card__month {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--fresh-blog-archive-tone-9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CARD BODY
   ========================================================================== */

.fresh-blog-card__body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fresh-blog-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--freshair-navy);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.fresh-blog-card:hover .fresh-blog-card__title {
    color: var(--freshair-teal);
}

.fresh-blog-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fresh-blog-archive-tone-10);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.fresh-blog-card__readmore {
    font-size: 13px;
    font-weight: 700;
    color: var(--freshair-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 14px;
    border-top: 1px solid var(--fresh-blog-archive-tone-11);
    margin-top: auto;
    transition: color 0.2s ease;
}

.fresh-blog-card:hover .fresh-blog-card__readmore {
    color: var(--freshair-teal);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.archive .nav-pagination,
.category .nav-pagination,
.blog .nav-pagination {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.archive .post-sidebar .widget,
.category .post-sidebar .widget {
    background: var(--fresh-blog-archive-tone-1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px var(--fresh-blog-archive-tone-12);
    margin-bottom: 20px;
}

.archive .post-sidebar .wp-block-heading,
.category .post-sidebar .wp-block-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--freshair-navy);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--freshair-teal);
    margin-bottom: 15px;
}

.archive .post-sidebar .wp-block-latest-posts__list li,
.category .post-sidebar .wp-block-latest-posts__list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--fresh-blog-archive-tone-13);
}

.archive .post-sidebar .wp-block-latest-posts__list li:last-child,
.category .post-sidebar .wp-block-latest-posts__list li:last-child {
    border-bottom: none;
}

.archive .post-sidebar .wp-block-latest-posts__post-title,
.category .post-sidebar .wp-block-latest-posts__post-title {
    font-size: 14px;
    color: var(--fresh-blog-archive-tone-14);
    line-height: 1.5;
    transition: color 0.2s ease;
}

.archive .post-sidebar .wp-block-latest-posts__post-title:hover,
.category .post-sidebar .wp-block-latest-posts__post-title:hover {
    color: var(--freshair-teal);
}

.archive .post-sidebar .wp-block-search__input,
.category .post-sidebar .wp-block-search__input {
    border-radius: 8px;
    border: 1px solid var(--fresh-blog-archive-tone-15);
    padding: 10px 14px;
}

.archive .post-sidebar .wp-block-search__button,
.category .post-sidebar .wp-block-search__button {
    background: var(--freshair-navy);
    color: var(--fresh-blog-archive-tone-1);
    border-radius: 8px;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 849px) {
    .fresh-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 549px) {
    .fresh-blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .fresh-blog-card__body {
        padding: 16px;
    }

    .fresh-blog-card__title {
        font-size: 15px;
    }

    .archive .page-title,
    .category .page-title {
        font-size: 22px;
        letter-spacing: 1px;
    }
}