/* Этот файл подключён только на десктопе, после общих стилей Library. */
.library-top-bar.top-bar {
    display: block !important;
    padding-block: 0 !important;
}

.library-top-bar > .container > .d-flex {
    min-height: 26px;
}

.library-top-bar .top-bar__right {
    gap: 20px;
}

.library-top-bar .top-bar__right > * {
    margin-inline: 0 !important;
}

.library-top-bar .top-bar__socials a,
.library-top-bar .top-bar__glasses {
    display: flex;
    align-items: center;
    min-height: 25px;
}

.library-header.header.main-header {
    padding-block: 0 !important;
    box-shadow: none;
}

.library-masthead {
    grid-template-columns: auto minmax(0, 1fr) clamp(215px, 21vw, 295px);
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    min-height: 85px;
    padding-block: 10px;
    font-family: "PT Sans", Arial, sans-serif;
}

.library-masthead__brand {
    display: flex;
    align-items: center;
    justify-self: start;
    max-width: 100%;
    gap: 12px;
    color: #234b6b;
    line-height: 1.13;
    text-decoration: none;
}

.library-masthead__brand img {
    display: block;
    flex: none;
    object-fit: contain;
    height: 58px;
    width: auto;
}

.library-masthead__brand:hover {
    color: #1c6092;
}

.library-masthead__brand:focus-visible,
.library-masthead__search button:focus-visible {
    outline: 2px solid #326695;
    outline-offset: 3px;
}

.library-masthead__name {
    color: #455f72;
    font-size: 16px;
}

.library-masthead__name strong {
    display: block;
    color: #234b6b;
    font-size: 23px;
    font-weight: 700;
}

.library-masthead__university {
    border-inline-start: 1px solid #d5e0e7;
    padding-inline-start: clamp(16px, 2vw, 28px);
    color: #365875;
    font-size: 17px;
    font-weight: 700;
}

.library-masthead__search {
    display: flex;
    align-items: stretch;
    margin: 0;
    min-width: 0;
    min-height: 36px;
    color: #234b6b;
    background: #fbfcfd;
    border: 1px solid #cbdbe5;
    border-radius: 9px;
}

.library-masthead__search:focus-within {
    border-color: #326695;
    box-shadow: 0 0 0 2px rgba(50, 102, 149, .15);
}

.library-masthead__search input {
    flex: 1;
    min-width: 0;
    padding: 5px 0 5px 12px;
    background: transparent;
    border: 0;
    border-radius: inherit;
    outline: none;
    color: inherit;
    font: 400 15px/1.3 "PT Sans", Arial, sans-serif;
}

.library-masthead__search input::placeholder {
    color: #617587;
    opacity: 1;
}

.library-masthead__search button {
    display: grid;
    place-items: center;
    width: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.library-masthead__search button:hover {
    background: #edf4f8;
}

.library-header + .library-nav.stgmu-menubar {
    margin-block-start: 0;
}
