/* HEADER-V2 (2026-12-01): slimmer dark header + clean dropdowns. Loaded only when option ocs_header_v2 != '0'. */
body.ocs-hdr-v2 {
    --hdr-bg: #0b121f;
    --hdr-line: #1c2738;
    --hdr-ink: #e8eef7;
    --hdr-muted: #9aa9bd;
    --hdr-hover: #152133;
    --hdr-lime: #9fef00;
}

/* Row: 72 px desktop, 60 px mobile (Taifun 10:33: a bit taller), hairline under it instead of a heavy block. */
body.ocs-hdr-v2 .elementor-4977 .elementor-element.ocsalya-site-header-row {
    min-height: 72px !important;
    padding-block: 10px !important;
    border-bottom: 1px solid var(--hdr-line);
    align-items: center;
}
body.ocs-hdr-v2 .elementor-4977 .elementor-element.ocsalya-site-header-row.ocsalya-mobile-header {
    min-height: 60px !important;
    padding-block: 7px !important;
}
/* The logo file is 16:9 with transparent margins: keep its width, let the margins overlap the row padding. */
body.ocs-hdr-v2 .ocsalya-site-header-row :is(.ha-site-logo, .elementor-widget-theme-site-logo) img {
    width: 116px !important;
    height: auto !important;
    margin-block: -10px !important;
    display: block;
}
body.ocs-hdr-v2 .ocsalya-site-header-row.ocsalya-mobile-header :is(.ha-site-logo, .elementor-widget-theme-site-logo) img { width: 100px !important; }

/* Nav links */
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-menu-container { height: auto !important; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-navbar-nav { gap: 2px; align-items: center; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-navbar-nav > li > a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px !important;
    border-radius: 8px;
    background: transparent !important;
    color: var(--hdr-muted) !important;
    font: 500 14px/1 "Ubuntu Sans", system-ui, sans-serif !important;
    letter-spacing: 0;
}
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-navbar-nav > li:is(:hover, .is-open, :focus-within) > a,
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-navbar-nav > li > a:focus-visible {
    background: var(--hdr-hover) !important;
    color: var(--hdr-ink) !important;
}
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-navbar-nav > li:is(.current-menu-item, .current-menu-ancestor) > a { color: var(--hdr-ink) !important; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-navbar-nav > li.menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
    transition: transform .15s;
}
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-nav .ha-navbar-nav > li.is-open > a::after { transform: translateY(3px) rotate(225deg); }

/* Dropdown panel */
body.ocs-hdr-v2 .ocsalya-nav .ha-navbar-nav > li:has(.ocsalya-nav-panel)::after { height: 12px; }
body.ocs-hdr-v2 .ocsalya-nav-panel.ocs-hdr-panel {
    top: calc(100% + 8px);
    width: 320px;
    padding: 6px;
    border: 1px solid #233046;
    border-radius: 12px;
    background: #0f1726;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
body.ocs-hdr-v2 .ocsalya-nav li:is(:hover, :focus-within, .is-open) > .ocsalya-nav-panel.ocs-hdr-panel { gap: 1px; }
body.ocs-hdr-v2 .ocs-hdr-panel-label {
    padding: 8px 10px 6px;
    color: #6f8098;
    font: 600 11px/1 "Ubuntu Sans", system-ui, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.ocs-hdr-v2 .ocsalya-nav-panel .ocsalya-nav-card.ocs-hdr-row {
    gap: 12px;
    min-height: 0;
    padding: 8px 10px !important;
    border-radius: 8px;
}
body.ocs-hdr-v2 .ocsalya-nav-panel .ocsalya-nav-card.ocs-hdr-row:is(:hover, :focus-visible) {
    background: var(--hdr-hover) !important;
    outline: none;
}
body.ocs-hdr-v2 .ocs-hdr-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #2a3a24;
    border-radius: 8px;
    background: rgba(159, 239, 0, .06);
    color: #b6f03c;
}
body.ocs-hdr-v2 .ocs-hdr-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.ocs-hdr-v2 .ocs-hdr-copy strong {
    color: var(--hdr-ink);
    font: 600 14px/1.3 "Ubuntu Sans", system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}
body.ocs-hdr-v2 .ocs-hdr-copy small {
    overflow: hidden;
    color: var(--hdr-muted);
    font: 400 12.5px/1.35 "Ubuntu Sans", system-ui, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.ocs-hdr-v2 .ocs-hdr-row:hover .ocs-hdr-copy strong { color: #fff; }
body.ocs-hdr-v2 .ocs-hdr-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 10px 10px 8px;
    border-top: 1px solid #1d2939;
    color: #b6f03c !important;
    font: 600 13px/1 "Ubuntu Sans", system-ui, sans-serif;
    text-decoration: none !important;
}
body.ocs-hdr-v2 .ocs-hdr-footer:hover { color: #d4ff7a !important; }
body.ocs-hdr-v2 .ocs-hdr-footer:focus-visible,
body.ocs-hdr-v2 .ocs-hdr-row:focus-visible { outline: 2px solid var(--hdr-lime) !important; outline-offset: -2px; }

/* Guest desktop: Sign in + Create account */
body.ocs-hdr-v2 .ocs-hdr-guest { display: flex; align-items: center; gap: 6px; font-family: "Ubuntu Sans", system-ui, sans-serif; }
body.ocs-hdr-v2 .ocs-hdr-guest a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
body.ocs-hdr-v2 .ocs-hdr-guest .ocs-hdr-signin { color: var(--hdr-ink) !important; }
body.ocs-hdr-v2 .ocs-hdr-guest .ocs-hdr-signin:hover { background: var(--hdr-hover); }
body.ocs-hdr-v2 .ocs-hdr-guest .ocs-hdr-join { background: var(--hdr-lime); color: #0c1504 !important; }
body.ocs-hdr-v2 .ocs-hdr-guest .ocs-hdr-join:hover { background: #bdff42; }
body.ocs-hdr-v2 .ocs-hdr-guest a:focus-visible { outline: 2px solid var(--hdr-lime); outline-offset: 2px; }

/* Account trigger (members, and the mobile guest menu): 38 px instead of 46 px */
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-account-trigger { min-height: 38px; border-radius: 9px; border-color: #26354a; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-account-menu :is(.ocsalya-account-primary, .ocsalya-account-toggle) { min-height: 36px; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-account-menu .ocsalya-account-toggle { width: 36px; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-account-menu.is-member .ocsalya-account-primary { gap: 8px; padding: 3px 10px 3px 4px; font-weight: 600; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-account-avatar { flex-basis: 28px; width: 28px; height: 28px; font-size: 11px; }
body.ocs-hdr-v2 .ocsalya-site-header-row .ocsalya-account-menu.is-guest .ocsalya-account-primary { padding-inline: 14px; font-weight: 600; }
