/* Page Structure Components */

/* Secondary Page Headers (transactional and informational pages)
   Creates bold, centered h1 with character-width underline effect.
   The flex display causes h1 to shrink to content width, making the
   border-bottom (inherited from base h1 styles) span only the text. */
.secondary-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-5);
}

.secondary-page-header h1,
.secondary-page-header .page-title {
    margin: 0;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    /* text-align: center and border-bottom inherited from base h1 */
}

.secondary-page-header .page-actions {
    display: flex;
    gap: var(--spacing-4);
    align-items: center;
}

/* Page Header Actions (button + banner layout) */
.page-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.page-header-button {
    flex-shrink: 0;
}

/* Responsive Layout Adjustments */
@media (max-width: 768px) {
    .secondary-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-3);
    }

    .secondary-page-header .page-actions {
        justify-content: center;
        margin-top: var(--spacing-2);
    }
}
