/*
 * header_v2.css — styles for the redesigned site header (test flag ?h=2).
 *
 * All rules are scoped under .header-v2 to avoid leaking into the legacy
 * header. The outer wrapper still carries .header-wrapper — this preserves
 * the site's sticky-scroll behavior (StickyHeader() in main.js toggles
 * `.header-wrapper.sticky`) and the news scroll indicator's positioning,
 * both of which live in the legacy stylesheet.
 *
 * The cached navigation HTML is reused verbatim; its <nav> markup is
 * restyled here via `.header-v2 nav` descendant selectors that override
 * the legacy `.header-wrapper header nav` rules (which don't match in v2
 * because there's no <header> tag inside the wrapper).
 *
 * Design tokens (mirror of auth_v2 / profile_v2):
 *   brand primary   #245494   brand hover  #1E4A84
 *   text primary    #111827   muted text   #6B7280
 *   border          #E5E7EB   hover bg     #F3F4F6
 *   card radius     12px      button radius 8px
 *   card shadow     0 4px 24px rgba(0,0,0,0.04)
 *   dropdown shadow 0 12px 32px rgba(0,0,0,0.12)
 */

.header-v2,
.header-v2 *,
.header-v2 *::before,
.header-v2 *::after {
    box-sizing: border-box;
}

.header-v2 {
    font-family: inherit;
    color: #111827;
}

/* ============================================================
 * Top bar
 * ========================================================== */
.header-v2-bar {
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    /* Transition only the sticky-state decorations (shadow + border color).
       Padding stays constant at 14px — see the .header-wrapper.sticky rule
       below for why we intentionally don't change dimensions on scroll. */
    transition: box-shadow 0.2s ease, border-bottom-color 0.2s ease;
    padding: 14px 0;
    /* Sit above the menu backdrop (z:499) and panel (z:500) so the bar —
       and the burger / close button — stays undimmed while the menu is
       open. position:relative is needed for z-index to take effect. */
    position: relative;
    z-index: 510;
}

/* Top ad wrapper — the legacy .adv-wrapper-horizontal (defined in style.css)
   paints a #F5F5F5 fill. That grey band stacked against the header-bar's
   border-bottom reads as a double hairline when the ad is slow to fill.
   Inside .header-v2 we repaint it solid white: it blends seamlessly into
   the bar below (no phantom grey stripe), while still being *opaque* so
   the sticky header doesn't leak scrolling content through its top strip.
   min-height:120px stays — the slot reserves space so loaded ads slot in
   without CLS. */
.header-v2 #adv-top,
.header-v2 .adv-wrapper-horizontal {
    background: #fff;
}

/* ============================================================
 * Banner scroll behavior — hide-on-scroll / hide-delayed modes
 *
 * Controlled by $config['header_banner_mode'] → emitted as
 * data-banner-mode on #header-v2. JS toggles .is-banner-hidden on
 * the same element based on scroll direction + threshold; CSS
 * animates the collapse via max-height (any value >= real banner
 * height works — 200px is safe for both 120px desktop and 100px
 * mobile slots). overflow:hidden is critical so content inside
 * the banner doesn't peek out during the transition.
 * ========================================================== */
.header-v2[data-banner-mode="hide-on-scroll"] #adv-top,
.header-v2[data-banner-mode="hide-delayed"] #adv-top {
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.3s ease;
}
.header-v2.is-banner-hidden #adv-top {
    max-height: 0;
}

/* Sticky-scroll state (toggled by StickyHeader() in main.js on .header-wrapper).
   Deliberately only repaints — no height/padding change. Browser scroll
   restoration timing is unpredictable (sometimes before first paint, sometimes
   after DOMContentLoaded), so any dimensional difference between sticky and
   non-sticky produces a visible "shrink" flash on page loads with non-zero
   scroll. Keeping dimensions identical and signalling the stuck state only
   via shadow + hidden bottom border sidesteps that entirely — there's nothing
   to animate or jump. */
.header-wrapper.sticky .header-v2-bar {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-bottom-color: transparent;
}

.header-v2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
}

/* ---- Logo ---- */
.header-v2-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.header-v2-logo:hover { opacity: 0.85; }

.header-v2-logo-img {
    display: block;
    height: 44px;
    width: auto;
}
/* Logo height intentionally constant across sticky/non-sticky — see the
   .header-wrapper.sticky .header-v2-bar rule above for rationale. */

.header-v2-logo-icon {
    display: block;
    height: 24px;
    width: auto;
}

/* ---- Right cluster ---- */
.header-v2-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ============================================================
 * Atoms
 * ========================================================== */

/* Icon-only round button (search) */
.header-v2-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.header-v2-icon-btn:hover { background: #f3f4f6; color: #111827; }
.header-v2-icon-btn:focus-visible {
    outline: 2px solid rgba(36, 84, 148, 0.35);
    outline-offset: 2px;
}
.header-v2-icon-btn svg { width: 20px; height: 20px; }

/* Chevron shared between lang + user toggles */
.header-v2-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.18s ease;
    opacity: 0.7;
}
.header-v2-dropdown.is-open > [data-dd-toggle] .header-v2-chevron {
    transform: rotate(180deg);
}

/* Avatar — initial circle */
.header-v2-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E5EA6, #245494);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.header-v2-avatar--lg { width: 40px; height: 40px; font-size: 16px; }

/* ============================================================
 * Language dropdown (compact)
 * ========================================================== */
.header-v2-dropdown { position: relative; }

.header-v2-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.header-v2-lang-toggle:hover { background: #f3f4f6; color: #111827; }
.header-v2-lang-toggle:focus-visible {
    outline: 2px solid rgba(36, 84, 148, 0.35);
    outline-offset: 2px;
}

/* ============================================================
 * Generic dropdown card (lang + user)
 * ========================================================== */
.header-v2-dd-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 510;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.header-v2-dropdown.is-open > .header-v2-dd-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-v2-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.1s, color 0.1s;
}
.header-v2-dd-item:hover,
.header-v2-dd-item:focus-visible {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    outline: none;
}
.header-v2-dd-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}
.header-v2-dd-item--muted { color: #6b7280; }
.header-v2-dd-item--muted:hover { color: #AE0A12; background: #fef2f2; }
.header-v2-dd-item--muted svg { opacity: 0.6; }

.header-v2-dd-sep {
    height: 1px;
    background: #f0f1f3;
    margin: 6px -6px;
}

/* Language-specific dropdown layout */
.header-v2-lang-dd .header-v2-dd-menu { min-width: 160px; }
.header-v2-lang-code {
    display: inline-block;
    width: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #245494;
    text-transform: uppercase;
    font-size: 12px;
}
.header-v2-lang-title { color: #374151; }

/* ============================================================
 * User dropdown (with head block)
 * ========================================================== */
.header-v2-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 4px;
    background: transparent;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.12s, border-color 0.12s;
}
.header-v2-user-toggle:hover { background: #f3f4f6; }
.header-v2-user-toggle:focus-visible {
    outline: 2px solid rgba(36, 84, 148, 0.35);
    outline-offset: 2px;
}

.header-v2-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-v2-user-menu { min-width: 260px; padding: 0; }

.header-v2-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #f0f1f3;
}
.header-v2-user-info { min-width: 0; flex: 1; }
.header-v2-user-fullname {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-v2-user-email {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-v2-user-menu .header-v2-dd-item { margin: 0 6px; padding: 9px 10px; }
.header-v2-user-menu .header-v2-dd-item:first-of-type { margin-top: 6px; }
.header-v2-user-menu .header-v2-dd-item:last-child { margin-bottom: 6px; }
.header-v2-user-menu .header-v2-dd-sep { margin: 6px 0; }

/* ============================================================
 * Sign in (when logged out)
 *
 * Same ghost treatment as the other utility buttons (search, lang,
 * burger) — deliberate choice so the only visual accent in the right
 * cluster is the Subscribe CTA. Authentication is an important but
 * secondary affordance; shouldn't compete with the primary action.
 * ========================================================== */
.header-v2-signin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.header-v2-signin:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}
.header-v2-signin:focus-visible {
    outline: 2px solid rgba(36, 84, 148, 0.35);
    outline-offset: 2px;
}
.header-v2-signin-icon { width: 18px; height: 18px; }

/* ============================================================
 * Subscribe CTA
 * ========================================================== */
.header-v2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    /* Extra breathing room from the ghost utility buttons on the left —
       makes the solid CTA read clearly as the distinct primary action. */
    margin-left: 4px;
    background: #245494;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.header-v2-cta:hover {
    background: #1E4A84;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(36, 84, 148, 0.28);
}
.header-v2-cta:active { transform: translateY(1px); }
.header-v2-cta-arrow { width: 16px; height: 16px; transition: transform 0.15s; }
.header-v2-cta:hover .header-v2-cta-arrow { transform: translateX(2px); }

.header-v2-cta--full { width: 100%; height: 48px; }

/* ============================================================
 * Burger button
 * ========================================================== */
.header-v2-burger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.header-v2-burger:hover { background: #f3f4f6; color: #111827; }
.header-v2-burger:focus-visible {
    outline: 2px solid rgba(36, 84, 148, 0.35);
    outline-offset: 2px;
}

.header-v2-burger-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 14px;
}
.header-v2-burger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.15s ease, top 0.25s ease;
}
.header-v2-burger-icon span:nth-child(1) { top: 0; }
.header-v2-burger-icon span:nth-child(2) { top: 6px; }
.header-v2-burger-icon span:nth-child(3) { top: 12px; }

.header-v2-burger.is-open .header-v2-burger-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}
.header-v2-burger.is-open .header-v2-burger-icon span:nth-child(2) { opacity: 0; }
.header-v2-burger.is-open .header-v2-burger-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* ============================================================
 * Menu panel
 * ========================================================== */
.header-v2-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 499;
}
.header-v2-menu-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.header-v2-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid #f0f1f3;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18);
    /* Use dvh where supported — avoids the iOS Safari address-bar bug where
       100vh briefly exceeds the real viewport when the bar is visible. */
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 500;
}
.header-v2-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-v2-menu > .container { padding-top: 18px; padding-bottom: 18px; }

/* ---- Restyled cached <nav> ----
 * The cached HTML produces three sibling <ul>s in order:
 *   ul.bold       — top-row nav links (Feed / Chronicle / Trend TV)
 *   ul.categories — main rubric tree: each <li> has a title <a> + inner <ul>
 *   ul.bold       — bottom-row partner sites (day.az, milli.az, …)
 *
 * Brand mirror of the legacy menu:
 *   ul.bold        — #980B12 (trend red), uppercase
 *   ul.categories  — #245494 (trend blue) for rubric titles, muted for subs
 */
.header-v2-menu nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.header-v2-menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top + bottom red rows */
.header-v2-menu nav > ul.bold {
    display: flex;
    flex-wrap: wrap;
    column-gap: 26px;
    row-gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f2f4;
}
.header-v2-menu nav > ul.bold:last-child {
    padding: 12px 0 0;
    border-bottom: 0;
    border-top: 1px solid #f1f2f4;
    margin-top: 2px;
}
.header-v2-menu nav > ul.bold a {
    display: inline-block;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: #980B12;
    text-decoration: none;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.header-v2-menu nav > ul.bold a:hover {
    color: #980B12;
    text-decoration: none;
    border-bottom-color: #980B12;
}

/* Categories — flex row that wraps. Each <li> is a rubric column with a
   sub-list underneath. Dense layout mirrors the legacy menu so rubrics
   are scannable at a glance without stretching the panel vertically. */
.header-v2-menu nav > ul.categories {
    display: flex;
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: 20px;
    align-items: flex-start;
}
.header-v2-menu nav > ul.categories > li {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.header-v2-menu nav > ul.categories > li > a {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.header-v2-menu nav > ul.categories > li > a:hover {
    color: #245494;
    text-decoration: none;
    border-bottom-color: #245494;
}
.header-v2-menu nav > ul.categories ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.header-v2-menu nav > ul.categories ul a {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    color: #245494;
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.header-v2-menu nav > ul.categories ul a:hover {
    color: #245494;
    text-decoration: none;
    border-bottom-color: #245494;
}

.header-v2-menu-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f2f4;
    display: none; /* visible only on mobile (see media query below) */
}

/* Category accordion toggle — injected by header_v2.js.
   Hidden on desktop (saved for the mobile breakpoint below); the <li> always
   shows its sub-list there, so no user-visible affordance is needed. */
.header-v2-cat-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.12s, color 0.12s;
}
.header-v2-cat-toggle:hover { background: #f3f4f6; color: #111827; }
.header-v2-cat-toggle:focus-visible {
    outline: 2px solid rgba(36, 84, 148, 0.35);
    outline-offset: 2px;
}
.header-v2-cat-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

/* ============================================================
 * Responsive
 * ========================================================== */
@media (max-width: 900px) {
    .header-v2-row { gap: 8px; }
    .header-v2-user-name { display: none; }
    .header-v2-user-toggle { padding: 0 6px; }
    .header-v2-lang-dd,
    .header-v2-cta { display: none; } /* moved into the menu panel */
    .header-v2-menu-foot { display: block; }
    .header-v2-signin span { display: none; }
    .header-v2-signin {
        width: 40px;
        padding: 0;
        justify-content: center;
    }
    .header-v2-signin-icon { width: 20px; height: 20px; }
    .header-v2-burger-label { display: none; }
    .header-v2-burger { padding: 0 10px; }
}

@media (max-width: 600px) {
    .header-v2-logo-img { height: 36px; }
    /* Mobile logo height intentionally constant — matches desktop decision
       to keep sticky-toggle dimension-free (avoids load-time flash). */
    .header-v2-logo { gap: 8px; }
    .header-v2-logo-icon { height: 20px; }
    .header-v2-bar { padding: 10px 0; }

    /* On narrow viewports the dropdown menus anchor to the right edge of the
       viewport instead of the button — prevents clipping when the button is
       near the right edge. */
    .header-v2-dd-menu { right: 8px; }

    /* Menu panel on phones: stack everything into tappable rows.
       Subcategory lists are hidden on this breakpoint — the cached nav can
       easily produce 100+ sub-items and a scrollable wall of links is a poor
       mobile experience. Users still reach rubric landing pages via the
       top-level category links (which are the same as the rubric pages). */
    .header-v2-menu > .container { padding-top: 14px; padding-bottom: 14px; }
    .header-v2-menu nav { gap: 10px; }

    /* Bold rows stack vertically for comfortable tap targets */
    .header-v2-menu nav > ul.bold {
        flex-direction: column;
        column-gap: 0;
        row-gap: 0;
        padding-bottom: 6px;
    }
    .header-v2-menu nav > ul.bold:last-child {
        padding-top: 6px;
    }
    .header-v2-menu nav > ul.bold a {
        display: block;
        padding: 11px 2px;
        font-size: 14px;
        border-bottom: 0;
    }

    /* Categories: one rubric per row with a chevron toggle; sub-lists are
       hidden until the user expands the row. Desktop shows all at once,
       but on phones 100+ links make the menu feel like a scroll swamp.

       Each <li> becomes a flex-wrap row: [ title (flex:1) | chevron ]
       with the sub-list wrapping onto the next line via flex-basis:100%.
       That way the title stretches edge-to-edge and the arrow sits flush
       with the right border of the row — no absolute positioning magic. */
    .header-v2-menu nav > ul.categories {
        flex-direction: column;
        column-gap: 0;
        row-gap: 0;
        /* Override desktop's align-items:flex-start — in a column flex
           parent that setting shrinks children to their content width,
           which prevents the <li> header row from spanning full width. */
        align-items: stretch;
    }
    .header-v2-menu nav > ul.categories > li {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        min-width: 0;
        gap: 0;
        border-bottom: 1px solid #f0f1f3;
    }
    .header-v2-menu nav > ul.categories > li:last-child {
        border-bottom: 0;
    }
    .header-v2-menu nav > ul.categories > li > a {
        flex: 1 1 auto;
        min-width: 0;
        display: block;
        padding: 13px 8px 13px 2px;
        font-size: 14px;
        letter-spacing: 0.3px;
        border-bottom: 0;
    }

    /* Accordion chevron: inline flex item, flush with the row's right edge */
    .header-v2-cat-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }
    .header-v2-menu nav > ul.categories > li.is-expanded > .header-v2-cat-toggle svg {
        transform: rotate(180deg);
    }
    .header-v2-menu nav > ul.categories > li.is-expanded > a {
        color: #245494;
    }

    /* Sub-list wraps to its own line (flex-basis:100%) under the header row */
    .header-v2-menu nav > ul.categories > li > ul {
        flex-basis: 100%;
        display: none;
        padding: 2px 2px 12px;
        gap: 2px;
    }
    .header-v2-menu nav > ul.categories > li.is-expanded > ul {
        display: flex;
    }
    .header-v2-menu nav > ul.categories > li > ul a {
        display: block;
        padding: 8px 2px;
        font-size: 14px;
    }

    .header-v2-menu-foot {
        margin-top: 14px;
        padding-top: 14px;
    }
}
