/* Latest site header — scoped so it does not affect the older dotted side-nav */

header.site-header.lsl-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 14px 0;
    background: #fff !important;
    background-image: none !important;
    border-bottom: 1px solid #eef2f6;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.lsl-header .lsl-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

.lsl-header .lsl-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.lsl-header .lsl-header__logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 220px;
}

.lsl-header nav,
.lsl-header header nav,
.lsl-header .lsl-header__nav {
    float: none;
    cursor: default;
}

.lsl-header__toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.lsl-header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lsl-header.is-open .lsl-header__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lsl-header.is-open .lsl-header__toggle span:nth-child(2) {
    opacity: 0;
}

.lsl-header.is-open .lsl-header__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lsl-header__panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.lsl-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    flex: 1;
}

.lsl-header__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lsl-header__link:hover,
.lsl-header__link:focus {
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.lsl-header__link.is-active,
.lsl-header__item.is-active > .lsl-header__link {
    color: #0aa8bc;
    background: #d5faff;
}

.lsl-header__menu-link.is-active {
    color: #0f766e;
    background: #ecfeff;
    font-weight: 700;
}

.lsl-header__link--toggle {
    appearance: none;
}

.lsl-header__caret {
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lsl-header__item {
    position: relative;
}

.lsl-header__item.is-open > .lsl-header__link--toggle,
.lsl-header__item.is-open > .lsl-header__btn--login {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.lsl-header__item.is-open .lsl-header__caret {
    transform: rotate(180deg);
}

.lsl-header__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 1200;
}

.lsl-header__menu--end {
    left: auto;
    right: 0;
}

.lsl-header__item.is-open > .lsl-header__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lsl-header__menu-link {
    display: block;
    padding: 10px 16px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: nowrap;
}

.lsl-header__menu-link:hover,
.lsl-header__menu-link:focus {
    background: #e8f7fb;
    color: #0b89b3;
    outline: none;
}

.lsl-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lsl-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

a.lsl-header__btn {
    box-sizing: border-box;
}

.lsl-header__btn--login {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.lsl-header__btn--login:hover,
.lsl-header__btn--login:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    outline: none;
}

.lsl-header__btn--register {
    background: #10bfd5;
    color: #fff;
    border: 1px solid #10bfd5;
    box-shadow: 0 6px 16px rgba(16, 191, 213, 0.28);
}

.lsl-header__btn--register:hover,
.lsl-header__btn--register:focus {
    background: #0aa8bc;
    border-color: #0aa8bc;
    color: #fff;
    outline: none;
}

.lsl-header__item.is-open > .lsl-header__btn--register {
    box-shadow: 0 8px 20px rgba(16, 191, 213, 0.35);
}

body.lsl-header-menu-open {
    overflow: hidden;
}

@media (max-width: 1279.98px) {
    header.site-header.lsl-header {
        overflow: visible;
    }

    .lsl-header__toggle {
        display: inline-flex;
        margin-left: auto;
        z-index: 1210;
    }

    .lsl-header__panel {
        display: none;
        position: fixed;
        top: 60px;
        left: 12px;
        right: 12px;
        bottom: 16px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        min-height: 0;
        padding: 8px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #e8edf3;
        border-radius: 16px;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
        z-index: 1200;
    }

    .lsl-header.is-open .lsl-header__panel {
        display: flex;
    }

    .lsl-header__nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        flex: 1 1 auto;
        min-height: 0;
        gap: 2px;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: #10bfd5 #eef6f8;
    }

    .lsl-header__nav::-webkit-scrollbar {
        width: 6px;
    }

    .lsl-header__nav::-webkit-scrollbar-track {
        background: #eef6f8;
        border-radius: 8px;
    }

    .lsl-header__nav::-webkit-scrollbar-thumb {
        background: #10bfd5;
        border-radius: 8px;
    }

    .lsl-header__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: 0 0 auto;
        gap: 8px;
        width: 100%;
        padding: 10px 4px 4px;
        margin-top: 6px;
        border-top: 1px solid #eef2f6;
        background: #fff;
    }

    .lsl-header__item {
        width: 100%;
    }

    .lsl-header__link,
    .lsl-header__btn {
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
        white-space: normal;
        padding: 12px 14px;
        font-size: 15px;
        min-height: 44px;
    }

    .lsl-header__item.is-open {
        background: #f3fbfd;
        border: 1px solid #cfeaf1;
        border-radius: 14px;
        padding: 4px;
        margin: 4px 0;
    }

    .lsl-header__item.is-open > .lsl-header__link--toggle,
    .lsl-header__item.is-open > .lsl-header__btn--login,
    .lsl-header__item.is-open > .lsl-header__btn--register {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        color: #0b89b3;
        min-height: 42px;
        padding: 10px 12px;
    }

    .lsl-header__menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        min-width: 0;
        margin: 0;
        padding: 0 4px 6px;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: hidden;
    }

    .lsl-header__item.is-open > .lsl-header__menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .lsl-header__menu-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 12px;
        font-size: 14px;
        font-weight: 600;
        color: #334155;
        background: #fff;
        border: 1px solid #e4f1f5;
        border-radius: 10px;
        white-space: normal;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .lsl-header__menu-link::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #10bfd5;
        flex-shrink: 0;
    }

    .lsl-header__menu-link:hover,
    .lsl-header__menu-link:focus {
        background: #e8f7fb;
        border-color: #10bfd5;
        color: #0b89b3;
    }
}

@media (max-width: 480px) {
    header.site-header.lsl-header {
        padding: 10px 0;
    }

    .lsl-header .lsl-header__logo img {
        height: 34px;
        max-width: 160px;
    }

    .lsl-header__panel {
        top: 54px;
        left: 10px;
        right: 10px;
        bottom: 12px;
    }
}
