/*
 * pages-archive.css — Archive, search, and 404 layouts.
 *
 * Carved out of pages.css on 2026-04-30 (Plan B B2) to stop the universal
 * 227 KB bundle from blocking render on every page that isn't the front page.
 * Loaded only on is_archive() || is_search() || is_404() — see functions.php.
 *
 * Note: shared sections (Post Cards, Premium Page Hero, responsive media
 * queries, dark-mode overrides) remain in pages.css. Archive routes still
 * enqueue pages.css for those — pages-archive.css is additive on top.
 */

/* ==========================================================================
   Article Library Hero + Featured (index.php)
   ========================================================================== */

.hk-article-library__hero {
    padding: 5rem 0 3rem;
    text-align: center;
    background: var(--hk-parchment);
}

.hk-article-library__hero-overline {
    color: var(--hk-gold);
    letter-spacing: 0.3em;
}

.hk-article-library__hero-title {
    font-family: var(--hk-font-heading);
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--hk-heading);
    margin-bottom: 1rem;
}

.hk-article-library__hero-lead {
    color: var(--hk-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.hk-article-library__featured {
    padding: 3rem 0 4rem;
}

.hk-article-library__featured-overline {
    color: var(--hk-gold);
}

.hk-article-library__featured-title {
    font-family: var(--hk-font-heading);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--hk-heading);
    margin: 0.75rem 0 1rem;
}

.hk-article-library__featured-excerpt {
    color: var(--hk-body);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.hk-article-library__featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hk-article-library__featured-meta-item {
    color: var(--hk-body);
    opacity: 0.6;
}

.hk-article-library__featured-cta {
    margin-top: 1.5rem;
    display: inline-flex;
}

.hk-article-library__more-heading {
    margin-bottom: 2rem;
}

.hk-article-library__more-overline {
    color: var(--hk-gold);
}

.hk-article-library__outlook {
    padding: 5rem 0;
    background: var(--hk-hero-gradient);
    position: relative;
    overflow: hidden;
}

.hk-article-library__outlook-inner {
    text-align: center;
}

.hk-article-library__outlook-overline {
    color: var(--hk-gold);
}

.hk-article-library__outlook-title {
    color: var(--hk-white);
    font-family: var(--hk-font-heading);
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.hk-article-library__outlook-lead {
    color: rgba(247, 244, 238, 0.7);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hk-article-library__featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 400ms var(--hk-ease), box-shadow 400ms var(--hk-ease);
}

.hk-article-library__featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(27, 42, 74, 0.12);
}

.hk-article-library__featured-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hk-article-library__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 600ms var(--hk-ease);
}

.hk-article-library__featured-card:hover .hk-article-library__featured-image img {
    transform: scale(1.04);
}

.hk-article-library__featured-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .hk-article-library__featured-card {
        grid-template-columns: 1fr;
    }
    .hk-article-library__featured-image {
        aspect-ratio: 16 / 9;
    }
    .hk-article-library__featured-body {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Category Filter (glass pills)
   ========================================================================== */

.hk-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.hk-category-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hk-heading);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--hk-glass-border);  /* Spec B1 — Family 3 full border shorthand */
    transition: background var(--hk-transition), color var(--hk-transition), box-shadow var(--hk-transition), border-color var(--hk-transition);
}

.hk-category-filter a:hover {
    color: var(--hk-heading);
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.12);
}

.hk-category-filter a.is-active {
    background: var(--hk-gold);
    color: var(--hk-white);
    border-color: var(--hk-gold);
    box-shadow: 0 4px 16px rgba(200, 169, 110, 0.3);
}

/* ==========================================================================
   Blog Listing Section
   ========================================================================== */

.hk-blog-listing {
    padding-top: 40px;
    padding-bottom: var(--hk-section-padding);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hk-heading);
    text-decoration: none;
    background: transparent;
    transition: background var(--hk-transition), color var(--hk-transition);
    font-family: var(--hk-font-body);
}

.pagination .page-numbers.current {
    background: var(--hk-navy);
    color: var(--hk-white);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--hk-parchment-dark);
}

/* ==========================================================================
   404 Page — Premium
   ========================================================================== */

.hk-404-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--hk-hero-gradient);
    overflow: hidden;
}

.hk-404-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(200, 169, 110, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hk-404-hero__content {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

.hk-404-hero__number {
    display: block;
    font-family: var(--hk-font-heading);
    font-size: clamp(10rem, 25vw, 18rem);
    font-weight: 300;
    color: rgba(200, 169, 110, 0.08);
    line-height: 0.85;
    margin-bottom: -1rem;
    user-select: none;
    letter-spacing: -0.05em;
}

.hk-404-hero__title {
    font-family: var(--hk-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--hk-white);
    margin: 0 0 1.5rem;
}

.hk-404-hero__divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hk-gold), transparent);
    margin: 0 auto;
}

.hk-404 {
    padding: 4rem 0 var(--hk-section-padding);
    background: var(--hk-parchment);
}

.hk-404__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
    border-top: 3px solid var(--hk-gold);
}

.hk-404__inner p {
    color: var(--hk-body);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hk-404 .hk-search-form {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hk-404 .hk-btn {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.hk-search-form {
    display: flex;
    max-width: 600px;
}

.hk-search-form__input {
    flex: 1;
    border-radius: 12px 0 0 12px;
    min-height: 44px;
}

.hk-search-form__btn {
    border-radius: 0 12px 12px 0;
    padding: 12px 24px;
    white-space: nowrap;
    min-height: 44px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.hk-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--hk-body);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.hk-empty-state p {
    margin-bottom: 1.5rem;
}

.hk-empty-state .hk-search-form {
    margin: 0 auto;
}

