/* ============================================
   PUBLICATIONS CATALOG + CLUSTER HUB PAGES
   Generated by scripts/generate-publications.js from
   templates/publication-catalog.html / publication-hub.html.
   Brand tokens: DESIGN_SYSTEM.md.
   ============================================ */

.pub-catalog-page {
    background: #faf9f6; /* warm near-white, matches the reader canvas */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pub-catalog {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 7rem 2rem 5rem;
}

/* --- Header --- */

.pub-catalog-header {
    max-width: 44rem;
}

.pub-catalog-kicker {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #B45309;
    margin-bottom: 1rem;
}

.pub-catalog-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    color: #0a2f52;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.pub-catalog-lede {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #4A4A4C;
    max-width: 44rem;
}

.pub-hub-breadcrumb {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #6B6B6E;
    margin-bottom: 1.6rem;
}

.pub-hub-breadcrumb a {
    color: #0a2f52;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 47, 82, 0.25);
}

.pub-hub-breadcrumb a:hover {
    border-bottom-color: #0a2f52;
}

.pub-hub-breadcrumb .byline-sep {
    margin: 0 0.55em;
    opacity: 0.5;
}

.pub-hub-personas {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: #6B6B6E;
    margin-top: 0.9rem;
}

/* --- Filters --- */

.pub-catalog-filters {
    margin: 2.6rem 0 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pub-filter-label {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6B6B6E;
    min-width: 4.5rem;
}

.pub-filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4A4A4C;
    background: #FFFFFF;
    border: 1px solid rgba(10, 47, 82, 0.14);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-filter-btn:hover {
    border-color: rgba(10, 47, 82, 0.35);
    color: #0a2f52;
}

.pub-filter-btn.is-active {
    background: #0a2f52;
    border-color: #0a2f52;
    color: #F4EBD0;
}

/* --- Cards --- */

.pub-catalog-grid {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
}

.pub-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid rgba(10, 47, 82, 0.10);
    border-radius: 12px;
    padding: 1.6rem 1.7rem 1.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-card[hidden] {
    display: none;
}

.pub-card:hover {
    border-color: rgba(10, 47, 82, 0.25);
    box-shadow: 0 2px 20px rgba(41, 53, 60, 0.15);
    transform: translateY(-2px);
}

.pub-card-cover {
    margin: -1.6rem -1.7rem 1.1rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.pub-card-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.pub-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.pub-badge {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    padding: 0.22rem 0.5rem;
    text-decoration: none;
}

.pub-badge-type {
    color: #B45309;
    background: rgba(180, 83, 9, 0.10);
}

.pub-badge-cluster {
    color: #0a2f52;
    background: rgba(20, 33, 102, 0.08);
}

a.pub-badge-cluster:hover {
    background: rgba(20, 33, 102, 0.16);
}

.pub-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.7rem;
}

.pub-card-title a {
    color: #0a2f52;
    text-decoration: none;
}

.pub-card-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.pub-card-summary {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #4A4A4C;
    margin: 0 0 1.1rem;
    flex: 1;
}

.pub-card-meta {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #6B6B6E;
}

.pub-card-meta .byline-sep {
    margin: 0 0.5em;
    opacity: 0.5;
}

/* --- Empty states --- */

.pub-catalog-empty {
    grid-column: 1 / -1;
    background: #FFFFFF;
    border: 1px dashed rgba(10, 47, 82, 0.18);
    border-radius: 12px;
    padding: 3.5rem 2rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #6B6B6E;
}

.pub-catalog-nomatch {
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #6B6B6E;
    text-align: center;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .pub-catalog {
        padding: 5.5rem 1.25rem 3.5rem;
    }

    .pub-catalog-grid {
        grid-template-columns: 1fr;
    }
}
