/* Site-wide compact library header (OPAC, SCO, SCI) */
#header-region .navbar {
    min-height: 0;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

#header-region #logo,
#header-region h1#logo {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

#header-region .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0.5rem;
}

#header-region #logo img {
    height: 28px !important;
    width: auto !important;
    max-width: min(68vw, 220px) !important;
}

#header-region .nav-link {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: 0.875rem;
}

#header-region #cart-list-nav,
#header-region #members {
    gap: 0.25rem;
}

#header-region .navbar-nav .btn {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}

#header-region .masthead-user-menu {
    min-width: 12rem;
}

#header-region .masthead-user-menu .btn {
    text-align: center;
}

/* Powered by Koha footer (removed site-wide) */
#koha_url,
.koha_url_text {
    display: none !important;
}

#header-region .navbar-nav .fa,
#header-region .navbar-nav .fa-solid {
    font-size: 0.95em;
}

#header-region .divider-vertical {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
}

/* Advanced search / authority / tag cloud / contact links (removed from masthead) */
#moresearches {
    display: none !important;
}

/* Masthead catalog search (removed site-wide) */
#opac-main-search,
.mastheadsearch {
    display: none !important;
}

/* Cart (removed from masthead) */
#cartmenulink,
#cartDetails {
    display: none !important;
}

/* Call for help — top-right (navbar on kiosks; fixed fallback on OPAC) */
.call-for-help-fixed {
    position: fixed !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2000;
    text-align: right;
    max-width: min(42vw, 14rem);
    margin: 0;
}

.call-for-help-nav-item {
    margin-left: auto;
}

.call-for-help-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.25rem 0 0.25rem 0.5rem;
}

#header-region .navbar {
    width: 100%;
}

#header-region .navbar > .navbar-nav.ms-auto,
#header-region .navbar > ul.navbar-nav.ml-auto {
    margin-left: auto !important;
}

.call-for-help-fixed .js-call-help,
.call-for-help-nav-wrap .js-call-help {
    white-space: normal;
    line-height: 1.2;
}

.call-for-help-fixed .js-call-help {
    width: 100%;
}

.call-for-help-fixed .js-call-help-status,
.call-for-help-nav-wrap .js-call-help-status {
    margin-top: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0a0a0a;
    text-align: right;
}
