html {
    scroll-padding-top: calc(var(--vhor-banner-height, 45px) + 8px);
}

.vhor-banner {
    position: sticky;
    top: 0;
    z-index: 10;
    color: #eef6ff;
    background: radial-gradient(ellipse at 50% 100%, #143050, transparent 76%), #0a1422;
    border-bottom: 1px solid #355879;
}

.vhor-banner__inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 7fr) 1fr;
    align-items: center;
    gap: 8px 16px;
    max-width: 1200px;
    min-height: 44px;
    margin-inline: auto;
    padding: 4px clamp(12px, 2vw, 24px);
}

.vhor-banner__logo {
    display: block;
    filter: drop-shadow(0 0 5px #62b6fa55);
}

.vhor-banner__messages {
    display: grid;
    text-align: center;
}

.vhor-banner__message {
    grid-area: 1 / 1;
    align-self: center;
    visibility: hidden;
    opacity: 0;
    margin: 0;
    color: #e4eefb;
    font-size: .8125rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vhor-banner__message[data-active] {
    visibility: visible;
    opacity: 1;
    transition: opacity 220ms ease-out;
}

.vhor-banner__message strong {
    color: #9bd3ff;
    margin-inline-end: .45em;
}

.vhor-banner__actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.vhor-banner__control,
.vhor-banner__link {
    display: inline-grid;
    grid-auto-flow: column;
    place-items: center;
    gap: .35em;
    min-height: 34px;
    border: 1px solid #54799f;
    border-radius: 7px;
    color: #f0f7ff;
}

.vhor-banner__control {
    min-width: 34px;
    padding: 0;
    background: #111e30;
    font-size: .875rem;
}

.vhor-banner__control[hidden] {
    display: none;
}

.vhor-banner__link {
    padding: 2px 11px;
    background: #193d62;
    font-size: .8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.vhor-banner__link:hover,
.vhor-banner__control:hover {
    background: #28557e;
}

.vhor-banner__link:focus-visible,
.vhor-banner__control:focus-visible {
    outline: 2px solid #bde5ff;
    outline-offset: 2px;
}

@media (max-width: 780px) {
    .vhor-banner__inner {
        grid-template-columns: 1fr auto;
        padding-block: 6px 9px;
        row-gap: 4px;
    }

    .vhor-banner__messages {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .vhor-banner__control,
    .vhor-banner__link {
        min-height: 44px;
    }

    .vhor-banner__control {
        min-width: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vhor-banner__message[data-active] {
        transition: none;
    }
}
