/* ==========================================================================
   Page Header
   Extracted from main.css for modularity (v0.8.0)
   ========================================================================== */

.page-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.page-header-content {
    flex: 1;
}

.page-header h1 {
    margin: 0 0 0.25rem;
}

.page-header .subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
    }

    .page-header .btn {
        align-self: flex-start;
    }
}

/* `.page-title` and `.page-subtitle` moved to components/type.css on
   2026-09-05: they are rungs of the type ladder, not header layout. */

/* The actions wrap on a phone instead of a non-wrapping row of pills
   pushing the first item 400px down an 844px viewport. */
.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Page Navigation
   -------------------------------------------------------------------------- */
/* ⭐ ONE QUIET WAY BACK (2026-09-02). Replaces `.page-nav`'s pill and the
   breadcrumb beside it on the entry and thread pages — the same door twice,
   and the date once more. Text-sized and muted; the page's title is the
   loud thing. Hidden in the native shells, which draw their own chevron. */
.page-back {
    margin: 0 0 var(--space-md);
}

.page-back__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    min-height: 32px;
    padding: var(--space-2xs) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
}

.page-back__link:hover,
.page-back__link:focus-visible {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
