/* A page's header: where it sits on the left, what to do with it on the right. As tall as the brand row beside it, and
   the same on every page, whatever the width of the content below. */
.page-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm) var(--spacing-md);
    min-height: var(--page-bar-height);
    padding: var(--spacing-sm) var(--layout-inset-mobile);
    background-color: var(--color-surface);
    border-bottom: var(--border-width) solid var(--color-border);
}

.page-bar__path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 0;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.page-bar__trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-bar__crumb {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.page-bar__link {
    color: var(--color-on-surface-muted);
    text-decoration: none;
}

.page-bar__link:hover {
    color: var(--color-on-surface);
}

.page-bar__separator {
    color: var(--color-on-surface-faint);
    font-weight: var(--font-weight-regular);
}

.page-bar__title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
}

/* The logo of what the page is about, beside its title. */
.page-bar__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    object-fit: contain;
}

.page-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

@media (min-width: 48rem) {
    .page-bar {
        position: sticky;
        top: 0;
        z-index: 10;
        padding-inline: var(--layout-inset);
    }
}
