/* ── Page header (revamp G7, G1) ────────────────────────────────────────────
   One component for every tab: the title (24px), one line on what the page
   is or how many it holds, and right-aligned actions or meta, on one row
   where it fits; it wraps under the title on narrow screens. No rule under
   it: spacing separates it from the content (G4). */

.page-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
    margin: 0 0 var(--sp-4);
    padding: 0;
    border: 0;
}
.page-head[hidden] { display: none; }
.page-head-text {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px var(--sp-3);
    min-width: 0;
    flex: 1 1 360px;
}
.page-title {
    margin: 0;
    font-family: var(--sans);
    font-size: var(--fs-page);
    line-height: 30px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
}
.page-subtitle {
    margin: 0;
    min-width: 0;
    flex: 1 1 280px;
    max-width: 90ch;
    font-size: var(--fs-13);
    line-height: 20px;
    color: var(--text-3);
}
.page-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-left: auto;
    flex-wrap: wrap;
    font-size: var(--fs-13);
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.page-actions:empty { display: none; }
.page-actions .page-meta-num { color: var(--text); font-weight: 600; }

/* Section titles inside a page (cards, drawer sections): 14px, not a label. */
.section-title { margin: 0 0 var(--sp-3); font-size: var(--fs-14); font-weight: 600; color: var(--text); }

@media (max-width: 640px) {
    .page-title { font-size: var(--fs-20); line-height: 26px; }
    .page-head-text { flex-basis: 100%; }
    .page-actions { margin-left: 0; }
}
