/* ==========================================================================
   ATR Client Updates CPT – Frontend Archive
   Mobile-first | BEM | Namespace: atr-cucpt-
   ========================================================================== */

.atr-cucpt-archive {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

.atr-cucpt-archive__header {
    margin-bottom: 1.5rem;
}

.atr-cucpt-archive__title {
    font-size: 1.5rem;
    margin: 0;
}

/* ---------- Row list – one post per row ---------- */

.atr-cucpt-archive__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.atr-cucpt-row {
    display: flex;
    flex-direction: column-reverse;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.atr-cucpt-row__image {
    flex-shrink: 0;
}

.atr-cucpt-row__image img {
    display: block;
    width: 100%;
    height: auto;
}

.atr-cucpt-row__body {
    padding: 1rem;
}

.atr-cucpt-row__title {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
}

.atr-cucpt-row__title a {
    text-decoration: none;
    color: inherit;
}

.atr-cucpt-row__date {
    display: block;
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.atr-cucpt-row__excerpt {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0.75rem;
}

.atr-cucpt-row__more {
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Pagination ---------- */

.atr-cucpt-archive__pagination {
    margin-top: 2rem;
    text-align: center;
}

/* ---------- Empty state ---------- */

.atr-cucpt-archive__empty {
    text-align: center;
    color: #666;
    padding: 3rem 1rem;
}

/* ---------- Single post CTA ---------- */

.atr-cucpt-cta {
    margin-top: 2.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.atr-cucpt-cta h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.atr-cucpt-cta .wp-block-buttons {
    justify-content: center;
}

.atr-cucpt-cta .wp-block-button__link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
}

/* ==========================================================================
   Tablet (min-width: 600px)
   ========================================================================== */

@media (min-width: 600px) {
    .atr-cucpt-row {
        flex-direction: row;
    }

    .atr-cucpt-row__image {
        width: 200px;
        order: 1;
    }

    .atr-cucpt-row__image img {
        width: 200px;
        height: 100%;
        object-fit: cover;
    }

    .atr-cucpt-row__body {
        flex: 1;
        order: 2;
    }

    .atr-cucpt-archive__title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Desktop (min-width: 960px)
   ========================================================================== */

@media (min-width: 960px) {
    .atr-cucpt-row__image {
        width: 250px;
    }

    .atr-cucpt-row__image img {
        width: 250px;
    }

    .atr-cucpt-archive {
        padding: 2rem 1rem;
    }
}
