/*
 * Header template registry
 * Template 1 preserves the current desktop header and mobile menu.
 * Dropdown structure is selected per top-level desktop button.
 */

.desktop-header-template-1,
.mobile-menu-template-1,
.header-dropdown-template-1 {
    --header-template-version: 1;
}

.mobile-menu-template-2 {
    --header-template-version: 2;
}

.header-button-style-1 > .nav-link {
    color: #fff;
    background: var(--color-primary, #ff5e14);
    border: 1px solid var(--color-primary, #ff5e14);
    border-radius: .55rem;
    padding-inline: .9rem;
}

.header-button-style-2 > .nav-link {
    color: var(--color-primary, #ff5e14);
    background: transparent;
    border: 1px solid currentColor;
    border-radius: .55rem;
    padding-inline: .9rem;
}

.header-button-style-3 > .nav-link {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
}

.header-button-style-3 > .nav-link .header-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-button-style-4 > .nav-link {
    border-radius: 999px;
    padding-inline: 1rem;
    background: color-mix(in srgb, var(--color-primary, #ff5e14) 12%, transparent);
}

.header-dropdown-template-1 > .dropdown-menu {
    animation: header-template-1-enter .16s ease-out;
}

/* Separators are emitted as standalone list items by _HeaderDynamic. */
.desktop-header-template-1 .nav-separator {
    width: 1px;
    height: 26px;
    margin-inline: 5px;
    align-self: center;
    flex: 0 0 1px;
    background: rgba(255, 255, 255, 0.59);
}

@keyframes header-template-1-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .header-dropdown-template-1 > .dropdown-menu { animation: none; }
}

/* Desktop template 2: Journal-inspired classic header */
header.desktop-header-template-2 {
    --journal-header-bg: var(--header-colored-backcolor, #404d9b);
    --journal-header-border: color-mix(in srgb, var(--header-colored-text, #fff) 18%, transparent);
    --journal-header-text: var(--header-colored-text, #fff);
    --journal-header-hover-bg: var(--header-item-hover-bg, rgba(255, 255, 255, .1));
    --journal-header-hover-text: var(--header-colored-hover, var(--journal-header-text));
    width: 100%;
    min-height: 130px;
    position: sticky;
    top: 0;
    z-index: 1040;
    direction: rtl;
    color: var(--journal-header-text);
    background: var(--journal-header-bg);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .12);
    transition: min-height .3s cubic-bezier(.22, 1, .36, 1),
                box-shadow .3s ease;
}

header.desktop-header-template-2.is-stuck {
    min-height: 90px;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .22);
}

header.desktop-header-template-2 .journal-header__container {
    width: min(calc(100% - 48px), 1520px);
    max-width: 1520px !important;
    height: 100%;
    margin-inline: auto;
    padding-inline: 0 !important;
    position: relative;
}

header.desktop-header-template-2 .journal-header__topbar {
    width: 100%;
    height: 40px;
    min-height: 40px;
    background: var(--journal-header-bg);
    border-bottom: 1px solid var(--journal-header-border);
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: height .3s cubic-bezier(.22, 1, .36, 1),
                min-height .3s cubic-bezier(.22, 1, .36, 1),
                opacity .2s ease,
                visibility .2s ease;
}

header.desktop-header-template-2.is-stuck .journal-header__topbar {
    height: 0;
    min-height: 0;
    border-bottom-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

header.desktop-header-template-2 .journal-header__topbar-inner {
    height: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
    direction: ltr;
}

header.desktop-header-template-2 .journal-header__top-slot {
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    direction: rtl;
    overflow: hidden;
}

header.desktop-header-template-2 .journal-header__social {
    grid-column: 1;
    justify-content: flex-start;
    direction: ltr;
}

header.desktop-header-template-2 .journal-header__middle-links {
    grid-column: 2;
    justify-content: center;
}

header.desktop-header-template-2 .journal-header__utility {
    grid-column: 3;
    justify-content: flex-start;
}

header.desktop-header-template-2 .journal-header__top-slot a {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--journal-header-text);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, opacity .15s ease;
}

header.desktop-header-template-2 .journal-header__top-slot a:hover,
header.desktop-header-template-2 .journal-header__top-slot a:focus-visible {
    color: var(--journal-header-hover-text);
    opacity: 1;
}

header.desktop-header-template-2 .journal-header__top-slot i {
    font-size: 13px;
    line-height: 1;
}

header.desktop-header-template-2 .journal-header__mainbar {
    width: 100%;
    height: 90px;
    min-height: 90px;
    background: var(--journal-header-bg);
}

header.desktop-header-template-2 .journal-header__mainbar-inner {
    position: relative;
    height: 90px;
    display: grid;
    grid-template-columns: minmax(135px, 155px) minmax(300px, 1fr) minmax(320px, 360px) auto;
    align-items: center;
    column-gap: 22px;
    direction: rtl;
}

header.desktop-header-template-2 .journal-header__logo {
    width: 135px;
    height: 90px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
}

header.desktop-header-template-2 .journal-header__logo img {
    display: none;
    width: auto;
    height: auto;
    max-width: 125px;
    max-height: 40px;
    object-fit: contain;
    opacity: 0;
}

header.desktop-header-template-2 .journal-header__logo::after {
    content: "";
    width: 125px;
    height: 40px;
    display: block;
    background: var(--journal-header-text);
    -webkit-mask: url("/Media/Logo/logodark.png") center / contain no-repeat;
    mask: url("/Media/Logo/logodark.png") center / contain no-repeat;
}

header.desktop-header-template-2 .journal-header__nav {
    min-width: 0;
    height: 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    direction: ltr;
}

header.desktop-header-template-2 .journal-header__nav-group {
    min-width: 0;
    height: 90px;
    grid-row: 1;
    display: flex;
    align-items: stretch;
    direction: ltr;
}

header.desktop-header-template-2 .journal-header__nav-group--left {
    grid-column: 1;
    justify-content: flex-start;
}

header.desktop-header-template-2 .journal-header__nav-group--center {
    grid-column: 2;
    justify-content: center;
}

header.desktop-header-template-2 .journal-header__nav-group--right {
    grid-column: 3;
    justify-content: flex-end;
}

header.desktop-header-template-2 .journal-header__nav-group--right > .navbar-nav {
    justify-content: flex-start;
}

header.desktop-header-template-2 .journal-header__nav-group--center > .navbar-nav {
    justify-content: center;
}

header.desktop-header-template-2 .journal-header__nav-group--left > .navbar-nav {
    justify-content: flex-end;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav {
    width: 100%;
    min-width: 0;
    height: 90px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1px;
    direction: rtl;
    list-style: none;
}

header.desktop-header-template-2 .journal-header__nav-group--right > .navbar-nav {
    justify-content: flex-start;
}

header.desktop-header-template-2 .journal-header__nav-group--center > .navbar-nav {
    justify-content: center;
}

header.desktop-header-template-2 .journal-header__nav-group--left > .navbar-nav {
    justify-content: flex-end;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item {
    height: 90px;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    position: relative;
    border-color: transparent !important;
    background: transparent !important;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item > .nav-link {
    min-height: 90px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    color: var(--journal-header-text) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color .18s ease, background-color .18s ease;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    z-index: 0;
    height: 3px;
    pointer-events: none;
    border-radius: 3px 3px 0 0;
    background: var(--journal-header-hover-text);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item > .nav-link:hover,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item > .nav-link:focus-visible,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item:hover > .nav-link {
    color: var(--journal-header-hover-text) !important;
    background: var(--journal-header-hover-bg);
}
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item:hover,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item:focus-within {
    border-color: transparent !important;
    background: transparent !important;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item > .nav-link:hover::after,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item > .nav-link:focus-visible::after,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item:hover > .nav-link::after,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item:focus-within > .nav-link::after {
    transform: scaleX(1);
}

header.desktop-header-template-2 .journal-header__nav .nav-separator {
    width: 1px;
    height: 26px;
    margin-inline: 5px;
    align-self: center;
    flex: 0 0 1px;
    background: var(--journal-header-border);
}

header.desktop-header-template-2 .journal-header__nav .dropdown-menu {
    margin-top: 0;
    color: var(--nav-dd-text, #202535);
    direction: rtl;
    text-align: right;
    border: 1px solid var(--nav-dd-border, transparent);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: var(--nav-dd-bg, #fff);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .2);
}

header.desktop-header-template-2 .journal-header__nav .dropdown-menu .card,
header.desktop-header-template-2 .journal-header__nav .dropdown-menu .card-lg,
header.desktop-header-template-2 .journal-header__nav .dropdown-menu .card-body {
    color: var(--nav-dd-text, #202535);
    background: var(--nav-dd-bg, #fff);
}

header.desktop-header-template-2 .journal-header__nav .dropdown-menu .list-styled-link.layer2,
header.desktop-header-template-2 .journal-header__nav .dropdown-menu .list-styled-link.layer3,
header.desktop-header-template-2 .journal-header__nav .dropdown-menu .list-styled-link.layer4,
header.desktop-header-template-2 .journal-header__nav .dropdown-menu .nav-tabs .nav-link.layer1 {
    color: var(--nav-dd-text, #444);
}

header.desktop-header-template-2 .journal-header__nav .dropdown-menu .list-styled-link:hover,
header.desktop-header-template-2 .journal-header__nav .dropdown-menu .nav-tabs .nav-link.layer1.active,
header.desktop-header-template-2 .journal-header__nav .dropdown-menu .nav-tabs .nav-link.layer1:hover {
    color: var(--nav-dd-hover-text, var(--color-primary));
}

header.desktop-header-template-2 .journal-header__nav .dropdown-menu hr {
    border-color: var(--nav-dd-border, #dee2e6);
}

@media (hover: hover) and (min-width: 992px) {
    header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu,
    header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item.dropdown.show > .dropdown-menu,
    header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item.dropdown > .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
    }
}
/* DropdownDisplayType 1, 2 and 5 are anchored to their own trigger. */
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-1,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-2,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-5 {
    position: relative !important;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-1 > .dropdown-menu,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-2 > .dropdown-menu,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-5 > .dropdown-menu {
    top: calc(100% - 1px) !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
}

header.desktop-header-template-2 .header-dropdown-display-1 > .dropdown-menu {
    width: min(720px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
}

header.desktop-header-template-2 .header-dropdown-display-2 > .dropdown-menu {
    width: min(430px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
}

header.desktop-header-template-2 .header-dropdown-display-5 > .dropdown-menu {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* DropdownDisplayType 3 and 4 use the entire header container. */
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-3,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-4 {
    position: static !important;
}

header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-3 > .dropdown-menu,
header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .header-dropdown-display-4 > .dropdown-menu {
    position: absolute !important;
    z-index: 1060;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

header.desktop-header-template-2 .journal-header__nav .dropdown-menu > .card > .card-body {
    padding: 24px 28px 30px !important;
}

header.desktop-header-template-2 .header-dropdown-display-2 > .dropdown-menu .main-links {
    width: 100%;
    max-width: none !important;
}
header.desktop-header-template-2 .journal-header__search {
    min-width: 0;
    width: 100%;
    direction: rtl;
}

header.desktop-header-template-2 .journal-header__search::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(15, 23, 42, .46);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

header.desktop-header-template-2 .journal-header__search .search-big-div {
    width: 100%;
    min-width: 0;
    margin: 0;
    position: relative;
}

header.desktop-header-template-2 .journal-header__search .amz-search-bar {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    direction: rtl;
    background: #fff;
    box-shadow: none;
}

header.desktop-header-template-2 .journal-header__search .amz-search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}

header.desktop-header-template-2 .journal-header__search .amz-search-input {
    min-width: 0;
    padding-inline: 18px 8px;
    font-size: 12px;
    text-align: right;
    background: #fff;
}

header.desktop-header-template-2 .journal-header__search .amz-search-btn {
    width: 44px;
    min-width: 44px;
    color: var(--journal-header-bg);
    background: #fff;
    border-radius: 999px 0 0 999px !important;
}

header.desktop-header-template-2 .journal-header__search #main-search-resault {
    width: 100%;
    inset-inline: 0;
    top: calc(100% + 10px);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    overflow: hidden;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search .search-big-div {
    position: fixed;
    top: clamp(48px, 7vh, 76px);
    right: 50%;
    z-index: 1091;
    width: min(680px, calc(100vw - 48px));
    padding: 10px;
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    transform: translateX(50%);
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search .amz-search-bar {
    height: 54px;
    border-radius: 16px;
    background: #f5f6f8;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search .amz-search-input,
header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search .amz-search-btn {
    background: transparent;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search .amz-search-input {
    padding-inline: 20px 10px;
    font-size: 14px;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search .amz-search-btn {
    width: 52px;
    min-width: 52px;
    font-size: 18px;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault {
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - clamp(48px, 7vh, 76px) - 92px);
    padding: 8px 0 12px;
    border-radius: 0 0 24px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 34px 70px rgba(15, 23, 42, .28);
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .dsr-cat-list li a {
    min-height: 48px;
    padding-inline: 22px;
    font-size: .95rem;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .dsh-panel {
    padding: 18px 22px 14px;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .search-product {
    min-height: 112px;
    padding: 8px 16px 14px;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .search-product .swiper-wrapper {
    align-items: stretch;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .search-product-slider {
    height: auto;
    min-height: 84px;
    padding: 0;
    align-items: stretch;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .search-product-slider > a {
    width: 100%;
    padding: 10px;
    color: #1f2937;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .search-product-slider .row {
    height: 100%;
    margin: 0;
    align-items: center;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .search-product-slider img {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

header.desktop-header-template-2:has(#main-search-resault.active) .journal-header__search #main-search-resault .search-product-slider .product-name {
    padding-inline: 8px 0;
    font-size: .86rem;
    line-height: 1.7;
}

header.desktop-header-template-2 .journal-header__actions {
    min-width: 88px;
    direction: rtl;
    justify-self: end;
}

header.desktop-header-template-2 .journal-header__action-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    direction: rtl;
    list-style: none;
}

header.desktop-header-template-2 .journal-header__account-slot {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    list-style: none;
}

header.desktop-header-template-2 .journal-header__action-list > * {
    display: flex;
    align-items: center;
}

header.desktop-header-template-2 .journal-header__action-list .nav-item {
    display: contents;
}

header.desktop-header-template-2 .header-account-btn,
header.desktop-header-template-2 .header-cart-btn {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    box-shadow: none;
    overflow: visible;
}

header.desktop-header-template-2 .header-account-btn {
    color: #333333 !important;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

header.desktop-header-template-2 .header-account-btn:hover {
    color: #111111 !important;
    background: #f5f5f5;
    border-color: #bbbbbb;
    opacity: 1;
}

header.desktop-header-template-2 .header-cart-btn {
    color: var(--header-cart-text, #ffffff) !important;
    background: var(--header-cart-bg, #000000);
    border: 1px solid var(--header-cart-border, #000000);
}

header.desktop-header-template-2 .header-cart-btn:hover {
    color: var(--header-cart-hover-text, #000000) !important;
    background: var(--header-cart-hover-bg, #ffffff);
    border-color: var(--header-cart-hover-border, #000000);
    opacity: 1;
}

header.desktop-header-template-2 .header-account-btn::after,
header.desktop-header-template-2 .header-cart-btn::after {
    display: none;
}

header.desktop-header-template-2 .header-account-btn i,
header.desktop-header-template-2 .header-cart-btn i {
    font-size: 21px;
}

header.desktop-header-template-2 .header-account-label,
header.desktop-header-template-2 .header-cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header.desktop-header-template-2 .header-cart-count {
    position: absolute;
    top: 2px;
    left: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--journal-header-bg);
    background: var(--journal-header-text);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    header.desktop-header-template-2 .journal-header__container {
        width: min(calc(100% - 40px), 1320px);
    }

    header.desktop-header-template-2 .journal-header__mainbar-inner {
        grid-template-columns: 132px minmax(285px, 1fr) minmax(290px, 330px) auto;
        column-gap: 16px;
    }

    header.desktop-header-template-2 .journal-header__logo {
        width: 125px;
    }

    header.desktop-header-template-2 .journal-header__logo img {
        max-width: 116px;
    }

    header.desktop-header-template-2 .journal-header__logo::after {
        width: 116px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    header.desktop-header-template-2 .journal-header__container {
        width: calc(100% - 32px);
    }

    header.desktop-header-template-2 .journal-header__topbar-inner {
        column-gap: 14px;
    }

    header.desktop-header-template-2 .journal-header__top-slot {
        gap: 10px;
    }

    header.desktop-header-template-2 .journal-header__mainbar-inner {
        grid-template-columns: 112px minmax(250px, 1fr) 250px auto;
        column-gap: 10px;
    }

    header.desktop-header-template-2 .journal-header__logo {
        width: 108px;
    }

    header.desktop-header-template-2 .journal-header__logo img {
        max-width: 102px;
    }

    header.desktop-header-template-2 .journal-header__logo::after {
        width: 102px;
    }

    header.desktop-header-template-2 .journal-header__nav-group > .navbar-nav > .nav-item > .nav-link {
        padding-inline: 8px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    header.desktop-header-template-2,
    header.desktop-header-template-2 * {
        scroll-behavior: auto;
        transition-duration: 0s !important;
    }
}

/* Mobile menu template 2: image-led, multi-expand accordion.
   The bottom-sheet geometry and open/close behavior live in the shared shell. */
#smb-drawer.mobile-menu-template-2 {
    --smb2-text: #1c2021;
    --smb2-subtext: #5a5e60;
    --smb2-tertiary: #6e7275;
    --smb2-surface: #fff;
    --smb2-control: #ebecef;
    --smb2-control-open: #e3e4e8;
    --smb2-image-bg: #f7f7f8;
    --smb2-border: rgba(28, 32, 33, .12);
    --smb2-accent: var(--color-primary, #0d52d6);
    color: var(--smb2-text);
    background: var(--smb2-surface);
}

#smb-drawer.mobile-menu-template-2 .smb-drag-handle {
    padding-block: 8px 2px;
    background: var(--smb2-control);
}

#smb-drawer.mobile-menu-template-2 .smb-drag-handle span {
    background: var(--smb2-tertiary);
    opacity: .35;
}

#smb-drawer.mobile-menu-template-2 .smb2-topbar {
    min-height: 48px;
    padding: 4px 12px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--smb2-text);
    background: var(--smb2-control);
    border-bottom: 1px solid var(--smb2-border);
}

#smb-drawer.mobile-menu-template-2 .smb2-topbar-context {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-self: start;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

#smb-drawer.mobile-menu-template-2 .smb2-topbar-context i {
    color: var(--smb2-tertiary);
    font-size: 14px;
}

#smb-drawer.mobile-menu-template-2 .smb2-topbar-logo {
    width: 96px;
    height: 40px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

#smb-drawer.mobile-menu-template-2 .smb2-topbar-logo img {
    display: block;
    max-width: 100%;
    max-height: 34px;
    object-fit: contain;
}

#smb-drawer.mobile-menu-template-2 .smb2-close {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    color: var(--smb2-tertiary);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

#smb-drawer.mobile-menu-template-2 .smb2-close:hover,
#smb-drawer.mobile-menu-template-2 .smb2-close:focus-visible {
    color: var(--smb2-text);
    background: rgba(28, 32, 33, .07);
}

#smb-drawer.mobile-menu-template-2 .smb2-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 114, 117, .28) transparent;
    background: var(--smb2-surface);
}

#smb-drawer.mobile-menu-template-2 .smb2-scroll::-webkit-scrollbar {
    width: 3px;
}

#smb-drawer.mobile-menu-template-2 .smb2-scroll::-webkit-scrollbar-thumb {
    background: rgba(110, 114, 117, .28);
    border-radius: 999px;
}

#smb-drawer.mobile-menu-template-2 .smb2-category-nav {
    padding: 18px 14px 12px;
    background: var(--smb2-surface);
}

#smb-drawer.mobile-menu-template-2 .smb2-tree,
#smb-drawer.mobile-menu-template-2 .smb2-children,
#smb-drawer.mobile-menu-template-2 .smb2-utility-list,
#smb-drawer.mobile-menu-template-2 .smb2-more-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#smb-drawer.mobile-menu-template-2 .smb2-node {
    margin: 0;
}

#smb-drawer.mobile-menu-template-2 .smb2-node-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#smb-drawer.mobile-menu-template-2 .smb2-children .smb2-node-row {
    min-height: 38px;
    gap: 8px;
}

#smb-drawer.mobile-menu-template-2 .smb2-node-media {
    width: 42px;
    height: 42px;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    overflow: hidden;
    color: var(--smb2-tertiary);
    background: var(--smb2-image-bg);
    border: 1px solid var(--smb2-border);
    border-radius: 50%;
}

#smb-drawer.mobile-menu-template-2 .smb2-node-media img {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    background: var(--smb2-image-bg);
}

#smb-drawer.mobile-menu-template-2 .smb2-node-media i {
    font-size: 18px;
}

#smb-drawer.mobile-menu-template-2 .smb2-node-link {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    color: var(--smb2-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

#smb-drawer.mobile-menu-template-2 .smb2-children .smb2-node-row > .smb2-node-link {
    color: var(--smb2-subtext);
    font-weight: 400;
    letter-spacing: -.1px;
}

#smb-drawer.mobile-menu-template-2 .smb2-node-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

#smb-drawer.mobile-menu-template-2 .smb2-count {
    min-width: 20px;
    height: 20px;
    padding-inline: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--smb2-tertiary);
    background: var(--smb2-surface);
    border: 1px solid rgba(110, 114, 117, .6);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}

#smb-drawer.mobile-menu-template-2 .smb2-toggle,
#smb-drawer.mobile-menu-template-2 .smb2-leaf-arrow {
    width: 44px;
    height: 44px;
    margin-inline-start: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    color: var(--smb2-tertiary);
    background: transparent;
    border: 0;
}

#smb-drawer.mobile-menu-template-2 button.smb2-toggle {
    cursor: pointer;
}

#smb-drawer.mobile-menu-template-2 .smb2-toggle-disc {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--smb2-text);
    background: var(--smb2-control);
    border: 1px solid var(--smb2-border);
    border-radius: 50%;
    font-size: 10px;
    transition: color .2s ease, background-color .2s ease, transform .25s ease;
}

#smb-drawer.mobile-menu-template-2 .smb2-node.is-open > .smb2-node-row > .smb2-node-link {
    color: var(--smb2-accent);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

#smb-drawer.mobile-menu-template-2 .smb2-node.is-open > .smb2-node-row > .smb2-toggle .smb2-toggle-disc,
#smb-drawer.mobile-menu-template-2 .smb2-node.is-open > .smb2-utility-more-row > .smb2-toggle .smb2-toggle-disc {
    color: var(--smb2-accent);
    background: var(--smb2-control-open);
}

#smb-drawer.mobile-menu-template-2 .smb2-node.is-open > .smb2-node-row > .smb2-toggle .smb2-toggle-disc {
    transform: rotate(180deg);
}

#smb-drawer.mobile-menu-template-2 .smb2-children {
    display: none;
    margin-inline-start: 20px;
    padding-inline-start: 18px;
    border-inline-start: 1px solid var(--smb2-border);
}

#smb-drawer.mobile-menu-template-2 .smb2-node.is-open > .smb2-children {
    display: block;
    animation: smb2-children-enter .28s ease both;
}

@keyframes smb2-children-enter {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#smb-drawer.mobile-menu-template-2 .smb2-empty-state {
    min-height: 160px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--smb2-tertiary);
    text-align: center;
    font-size: 13px;
}

#smb-drawer.mobile-menu-template-2 .smb2-empty-state i {
    font-size: 28px;
    opacity: .65;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-panel {
    margin: 10px 14px 18px;
    padding: 20px 24px 16px;
    color: var(--smb2-text);
    background: var(--smb2-control);
    border-radius: 4px;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-list > li > a,
#smb-drawer.mobile-menu-template-2 .smb2-utility-more-label,
#smb-drawer.mobile-menu-template-2 .smb2-more-list > li > a {
    min-height: 40px;
    width: 100%;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--smb2-text);
    background: transparent;
    border: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    text-align: start;
    text-decoration: none;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-list-secondary > li > a > i,
#smb-drawer.mobile-menu-template-2 .smb2-utility-more-label > i,
#smb-drawer.mobile-menu-template-2 .smb2-more-list > li > a > i {
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    color: var(--smb2-tertiary);
    font-size: 17px;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-list-primary > li > a {
    padding-inline-start: 0;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-list-primary > li > a > i {
    width: 20px;
    color: var(--smb2-tertiary);
    text-align: center;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-divider {
    height: 1px;
    margin-block: 10px;
    background: var(--smb2-border);
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-more-row {
    min-height: 40px;
    display: flex;
    align-items: center;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-more-label {
    min-width: 0;
    flex: 1 1 auto;
    cursor: pointer;
}

#smb-drawer.mobile-menu-template-2 .smb2-utility-more-row .smb2-toggle {
    margin-inline-end: -10px;
}

#smb-drawer.mobile-menu-template-2 .smb2-more-list {
    display: none;
    padding-inline-start: 32px;
}

#smb-drawer.mobile-menu-template-2 .smb2-more-node.is-open > .smb2-more-list {
    display: block;
    animation: smb2-children-enter .28s ease both;
}

#smb-drawer.mobile-menu-template-2 .smb2-more-list > li > a {
    min-height: 36px;
    color: var(--smb2-subtext);
    font-size: 14px;
}

#smb-drawer.mobile-menu-template-2 .smb2-socials {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

#smb-drawer.mobile-menu-template-2 .smb2-socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--smb2-tertiary);
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

#smb-drawer.mobile-menu-template-2 .smb2-socials a:hover,
#smb-drawer.mobile-menu-template-2 .smb2-socials a:focus-visible {
    color: var(--smb2-accent);
    background: rgba(255, 255, 255, .7);
}

@media (max-width: 420px) {
    #smb-drawer.mobile-menu-template-2 .smb2-category-nav {
        padding-inline: 10px;
    }

    #smb-drawer.mobile-menu-template-2 .smb2-node-row {
        gap: 9px;
    }

    #smb-drawer.mobile-menu-template-2 .smb2-utility-panel {
        margin-inline: 10px;
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #smb-drawer.mobile-menu-template-2 *,
    #smb-drawer.mobile-menu-template-2 *::before,
    #smb-drawer.mobile-menu-template-2 *::after {
        scroll-behavior: auto;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
