/* Shared shell for the institutional site, catalog and administration. */
.abba-header {
    --header-background: #f5e9d9;
    --header-foreground: #65080f;
    --header-border: #65080f20;
    box-sizing: border-box;
    position: relative;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    height: 78.4px;
    padding: 0 4%;
    border-bottom: 1px solid var(--header-border);
    background: var(--header-background);
    color: var(--header-foreground);
    font-family: Nicky, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.abba-header--light { --header-background: #fff; }
.abba-header--dark { --header-background: #65080f; --header-foreground: #f5e9d9; --header-border: #f5e9d933; }
.abba-header .abba-header-brand-group,
.abba-header .abba-header-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.abba-header .abba-header-actions { justify-content: flex-end; }
.abba-header .abba-header-brand { display: block; flex-shrink: 0; }
.abba-header .abba-header-logo { display: block; width: 205px; height: auto; max-width: 100%; }
.abba-header .abba-header-navigation { min-width: 0; }
.abba-header .abba-header-navigation nav { display: flex; align-items: center; justify-content: center; gap: 24px; }
.abba-header a { color: inherit; text-decoration: none; }
.abba-header a:hover { text-decoration: underline; text-underline-offset: 6px; }
.abba-header a[aria-current] { font-weight: 600; }
.abba-header a:focus-visible,
.abba-header button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.abba-header .abba-header-link { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 600; }
.abba-header .header-actions { gap: 16px; }
.abba-header .header-visit { font-size: 14px; gap: 12px; }
.abba-header .desktop-nav { font-size: 14px; }
/* Filament controls retain their native Alpine and Livewire behavior. */
.fi-body-has-topbar { --topbar-height: 78.4px; }
.abba-header--admin { padding-inline: 24px; }
.abba-header--admin .fi-topbar-end { margin: 0; gap: 16px; }
.abba-header--admin .fi-topbar-collapse-sidebar-btn-ctn { margin: 0; }
.abba-header--admin .admin-area-tabs {
    position: static; transform: none; max-width: none; height: 78.4px; gap: 24px;
}
.abba-header--admin .admin-area-tab { font-size: 15px; }
.abba-header--admin .admin-area-tab:hover { text-decoration: none; }
@media (max-width: 1180px) {
    .abba-header { gap: 16px; }
    .abba-header .abba-header-logo { width: 175px; }
    .abba-header .abba-header-navigation nav { gap: 16px; }
    .abba-header .header-visit { font-size: 13px; }
}
@media (max-width: 1100px) {
    .abba-header.header { grid-template-columns: minmax(0, 1fr) auto; }
    .abba-header.header .abba-header-navigation { display: none; }
}
@media (max-width: 1023px) {
    .abba-header--admin .fi-topbar-collapse-sidebar-btn-ctn { display: none; }
    .abba-header--admin { height: 113.2px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 67.2px 46px; gap: 0 16px; }
    .abba-header--admin .abba-header-navigation { grid-column: 1 / -1; grid-row: 2; }
    .abba-header--admin .abba-header-actions { grid-column: 2; grid-row: 1; }
    .abba-header--admin .admin-area-tabs { height: 46px; }
    .fi-body-has-topbar { --topbar-height: 113.2px; }
}
@media (max-width: 960px) {
    .abba-header:not(.abba-header--admin) { height: 67.2px; }
    .abba-header:not(.header):not(.abba-header--admin) { grid-template-columns: minmax(0, 1fr) auto; }
    .abba-header:not(.header):not(.abba-header--admin) .abba-header-navigation { display: none; }
}
@media (max-width: 560px) {
    .abba-header { padding-inline: 20px; gap: 12px; }
    .abba-header:not(.abba-header--admin) { height: 60.8px; }
    .abba-header .abba-header-logo { width: 151px; }
    .abba-header .header-actions { gap: 8px; }
    .abba-header .header-visit { font-size: 11px; gap: 6px; }
    .abba-header .abba-header-link { font-size: 13px; gap: 8px; }
    .abba-header--admin { height: 106.8px; grid-template-rows: 60.8px 46px; gap: 0 8px; padding-inline: 16px; }
    .abba-header--admin .abba-header-brand-group { gap: 8px; }
    .abba-header--admin .fi-topbar-end { gap: 8px; }
    .abba-header--admin .admin-area-tab { flex-direction: row; gap: 6px; font-size: 14px; }
    .fi-body-has-topbar { --topbar-height: 106.8px; }
}
@media (max-width: 360px) {
    .abba-header--admin .abba-header-logo { width: 125px; }
    .abba-header .header-visit { display: none; }
}

/* Keep the public menu attached to the shared header at every breakpoint. */
.abba-header + .full-menu { top: 78.4px; }
@media (max-width: 960px) {
    .abba-header + .full-menu { top: 67.2px; }
}
@media (max-width: 560px) {
    .abba-header + .full-menu { top: 60.8px; }
}

/* One navigation treatment, with or without icons, in every header. */
.abba-header .abba-header-navigation nav {
    gap: 8px;
}
.abba-header .abba-header-navigation nav > a {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--header-foreground);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}
.abba-header .abba-header-navigation nav > a:hover {
    background: color-mix(in srgb, var(--header-foreground) 5%, transparent);
    text-decoration: none;
}
.abba-header .abba-header-navigation nav > a[aria-current] {
    border-bottom-color: currentColor;
    font-weight: 500;
}
.abba-header .abba-header-navigation nav > a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}
.abba-header .abba-header-navigation nav > a svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.abba-header .abba-header-navigation .admin-area-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(100px, 1fr);
}
@media (max-width: 560px) {
    .abba-header .abba-header-navigation nav { gap: 4px; }
    .abba-header .abba-header-navigation nav > a { padding: 10px; font-size: 14px; }
    .abba-header .abba-header-navigation .admin-area-tabs { grid-auto-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .abba-header .abba-header-navigation nav > a { transition: none; }
}

@media (max-width: 560px) {
    .abba-header .abba-header-navigation .admin-area-tabs > a {
        flex-direction: column;
        gap: 2px;
        padding: 4px 2px;
        font-size: 12px;
        line-height: 16px;
    }
    .abba-header .abba-header-navigation .admin-area-tabs > a svg {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }
}
