/* ==========================================================================
   Chief Magazine — Latest Stories Archive Stylesheet (/latest/)
   Desktop (1280px), Tablet (820px), Mobile (390px)
   ========================================================================== */

.chief-latest-archive-page {
    background-color: #ffffff;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.chief-latest-archive-container {
    max-width: var(--chief-header-content-max-width, 1280px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 20px 80px;
    box-sizing: border-box;
}

/* --- Breadcrumbs --- */
.chief-archive-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.chief-archive-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.chief-archive-breadcrumbs a:hover {
    color: #dc2626;
}

.chief-breadcrumb-sep {
    color: #cbd5e1;
    font-size: 12px;
}

.chief-breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
}

/* --- Archive Header --- */
.chief-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 24px;
    margin-bottom: 36px;
    border-bottom: 2px solid #0f172a;
    flex-wrap: wrap;
    gap: 20px;
}

.chief-archive-header-content {
    flex: 1 1 540px;
}

.chief-archive-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #dc2626;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.chief-archive-title {
    font-family: var(--chief-font-serif, "Playfair Display", Georgia, serif);
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.chief-archive-description {
    font-size: 16px;
    color: #475569;
    margin: 0;
    line-height: 1.55;
    max-width: 680px;
}

.chief-archive-meta-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chief-count-pill {
    background: #f1f5f9;
    color: #0f172a;
    padding: 7px 14px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.chief-page-indicator {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
}

/* --- 3-Column Articles Grid --- */
.chief-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* --- Article Card --- */
.chief-latest-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chief-latest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.chief-latest-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.chief-latest-card-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.chief-latest-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.chief-latest-card:hover .chief-latest-card-img {
    transform: scale(1.04);
}

.chief-latest-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chief-latest-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px;
}

.chief-latest-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.chief-card-cat-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dc2626;
    background: #fee2e2;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.chief-card-cat-badge:hover {
    background: #fecaca;
}

.chief-card-read-time {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.chief-latest-card-title {
    font-family: var(--chief-font-serif, "Playfair Display", Georgia, serif);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.chief-latest-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.chief-latest-card-title a:hover {
    color: #dc2626;
}

.chief-latest-card-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.chief-latest-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    margin-top: auto;
}

.chief-card-date {
    color: #94a3b8;
    font-weight: 500;
}

.chief-card-read-link {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.chief-card-read-link:hover {
    text-decoration: underline;
}

/* --- Pagination --- */
.chief-latest-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px 0;
    flex-wrap: wrap;
}

.chief-latest-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.chief-latest-pagination .page-numbers:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.chief-latest-pagination .page-numbers.current {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.chief-latest-pagination .dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0 4px;
}

/* --- Empty State --- */
.chief-no-stories {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.chief-btn-home {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.chief-btn-home:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */

/* Tablet (820px) */
@media (max-width: 991px) {
    .chief-latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    .chief-archive-title {
        font-size: 30px;
    }
    .chief-latest-card-content {
        padding: 18px;
    }
}

/* Mobile (390px) */
@media (max-width: 640px) {
    .chief-latest-archive-container {
        padding: 20px 16px 50px;
    }
    .chief-latest-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .chief-archive-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 18px;
        margin-bottom: 24px;
    }
    .chief-archive-title {
        font-size: 25px;
    }
    .chief-archive-description {
        font-size: 14px;
    }
    .chief-latest-card-title {
        font-size: 18px;
    }
    .chief-latest-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}
