/* =========================================================
   Peribahasa — Page-specific styles
   Hero variations, browse, detail, about, contribute
   ============================================================ */

/* ============================================================
   Home
   ============================================================ */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-top: var(--space-5);
    color: var(--text-muted);
    font-size: 0.875rem;
}
.hero-stats strong {
    color: var(--text);
    font-family: var(--font-serif);
    font-weight: 700;
}

.search-band {
    margin-top: var(--space-7);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.search-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    font-size: 0.8125rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
}
.search-hint .example {
    padding: 2px 8px;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ----- Letter index section ----- */
.letters-section { padding: var(--space-8) 0; }

.recent-strip {
    padding: var(--space-8) 0;
    background: var(--bg-soft);
}
.recent-strip .section-head { margin-bottom: var(--space-6); }

/* ============================================================
   Browse
   ============================================================ */
.browse-header {
    padding: var(--space-7) 0 var(--space-5);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.browse-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-3);
}
.browse-header p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 60ch;
    margin: 0;
}
.browse-search {
    margin-top: var(--space-5);
    max-width: 600px;
}

.browse-main {
    padding: var(--space-6) 0;
}

@media (max-width: 880px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }
    .filters {
        position: static;
        max-height: none;
    }
    .filters.collapsed { display: none; }
    .filters-mobile-toggle { display: inline-flex; }
}

/* ============================================================
   Proverb detail
   ============================================================ */
.detail-header {
    background: var(--bg-soft);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border);
}

.related-section {
    padding: var(--space-8) 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

/* ============================================================
   About / Contribute
   ============================================================ */
.page-header {
    background: var(--bg-soft);
    padding: var(--space-8) 0 var(--space-7);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-serif);
    margin-bottom: var(--space-3);
}
.page-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto;
}

.page-content {
    padding: var(--space-8) 0;
}

.contribute-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-7);
    align-items: start;
}
@media (max-width: 880px) {
    .contribute-grid { grid-template-columns: 1fr; }
}
