/* One compact shared header. The menu switches layout before controls become crowded. */
.ca-compact-header,
.ca-compact-header.is-sticky,
.ca-compact-header.is-sticky-up {
    position: sticky;
    top: 0;
    z-index: 70;
    transform: none;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
    box-shadow: 0 3px 12px rgb(8 35 52 / 10%);
}
.ca-compact-header .c-site-header-grid {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 10px 0;
}
.ca-compact-header .c-site-header-logo { flex: 0 0 auto; align-self: center; padding: 0; }
.ca-compact-header .c-logo { width: auto; }
.ca-compact-header .ca-brand img { width: 48px !important; height: 48px !important; }
.ca-compact-header .ca-brand > span { display: none; }
.ca-compact-header .c-site-header-nav { flex: 1; margin: 0; width: auto; position: static; }
.ca-compact-header .c-site-header-nav-main { display: flex; align-items: center; gap: 14px; width: 100%; height: auto; overflow: visible; }
.ca-compact-header .c-megamenu { display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; position: static; }
.ca-compact-header .c-megamenu-button { font-size: 14px; padding: 15px 6px; min-height: 44px; gap: 4px; border-radius: 4px; }
.ca-compact-header .c-megamenu-parent { position: static; }
.ca-compact-header .c-megamenu-subwrap {
    top: 100%;
    inset-inline-end: 0;
    width: min(100%, 1143px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) minmax(160px, 1fr);
}
.ca-compact-header .c-megamenu-metabox { min-height: 0; width: auto; padding: 24px; }
.ca-compact-header .c-megamenu-list { width: auto; padding-block: 16px; }
.ca-compact-header .c-site-header-nav-footer { display: none; }
.ca-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.ca-compact-header .ca-language select { width: 104px; max-width: 100%; min-height: 44px; padding: 8px; font-size: 12px; }
.ca-header-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 5px; color: #fff; }
.ca-header-search:hover,.ca-header-search:focus-visible { background: var(--ca-navy); color: #fff; }
.ca-header-search svg { flex: 0 0 20px; }
.ca-search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ca-header-activate,.ca-mobile-activation { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 5px; background: var(--ca-navy); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ca-header-activate:hover,.ca-mobile-activation:hover { background: var(--ca-deep); color: #fff; }
.ca-mobile-activation { display: none; }
.ca-compact-header .c-site-header-menu-button { display: none; }
html { scroll-padding-top: calc(var(--ca-header-height, 76px) + 12px); }
.ca-site [id] { scroll-margin-top: calc(var(--ca-header-height, 76px) + 12px); }

@media (min-width:1200px) and (max-width:1439px) {
    .ca-compact-header .c-site-header-grid { gap: 12px; }
    .ca-compact-header .c-site-header-nav-main { gap: 8px; }
    .ca-compact-header .c-megamenu-button { font-size: 13px; padding-inline: 5px; }
    .ca-compact-header .ca-language select { width: 92px; }
    .ca-header-activate { padding-inline: 12px; }
}
@media (max-width:1199px) {
    .ca-compact-header .c-site-header-grid { min-height: 68px; gap: 10px; padding-block: 10px; }
    .ca-compact-header .c-site-header-logo { flex: 1; min-width: 0; }
    .ca-compact-header .ca-brand > span { display: block; font-size: 23px; }
    .ca-compact-header .c-site-header-menu-button { display: flex; }
    .ca-compact-header .c-button-menu-text { min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 4px; }
    .ca-mobile-activation { display: inline-flex; }
    .ca-compact-header .c-site-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        width: 100%;
        max-height: calc(100dvh - var(--ca-header-height, 68px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--ca-green);
        border-top: 1px solid rgb(255 255 255 / 20%);
        box-shadow: 0 12px 18px rgb(8 35 52 / 18%);
    }
    .ca-compact-header .c-site-header-nav.is-open { display: block; }
    .ca-compact-header .c-site-header-nav-main { display: block; overflow: visible; max-height: none; }
    .ca-compact-header .c-megamenu { display: block; }
    .ca-compact-header .c-megamenu-button { font-size: 16px; min-height: 48px; padding: 12px 24px; border-radius: 0; }
    .ca-compact-header .c-megamenu-subwrap { position: static; width: 100%; max-height: none; }
    .ca-compact-header .c-megamenu-subwrap[aria-hidden="true"] { display: none; }
    .ca-compact-header .c-megamenu-subwrap[aria-hidden="false"] { display: block; }
    .ca-compact-header .c-megamenu-metabox,.ca-compact-header .c-megamenu-subwrap::after { display: none; }
    .ca-compact-header .c-megamenu-list { padding: 0; }
    .ca-compact-header .c-megamenu-link { min-height: 44px; padding: 12px 32px; }
    .ca-compact-header .ca-header-actions { padding: 16px 24px; border-top: 1px solid rgb(255 255 255 / 20%); gap: 16px; }
    .ca-compact-header .ca-language { flex: 1; max-width: 240px; }
    .ca-compact-header .ca-language select { width: 100%; font-size: 16px; }
    .ca-compact-header .ca-header-search { width: auto; gap: 8px; padding-inline: 14px; }
    .ca-compact-header .ca-search-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
    .ca-compact-header .ca-header-activate { display: none; }
    .ca-compact-header .c-site-header-nav-footer { display: block; padding: 0 24px 20px; font-size: 12px; white-space: normal; }
    html.has-open-menu { overflow: hidden; }
    .has-open-mega::after { display: none; }
}
@media (max-width:599px) {
    .ca-compact-header .ca-brand > span { display: none; }
    .ca-compact-header .ca-brand img { width: 44px !important; height: 44px !important; }
    .ca-compact-header .c-site-header-grid { min-height: 64px; gap: 8px; }
    .ca-mobile-activation { font-size: 13px; padding-inline: 12px; }
}
