/* Utility controls above the existing desktop navigation. */
.wild-header-utilities,
.wild-header-account {
  display: contents;
}
.wild-header-language,
.wild-header-search {
  display: none;
}
@media (min-width: 992px) {
  #header.header-default .header-main {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  #header.header-default .header-main .header-main-inner,
  #header.header-default .header-main .header-main-inner .header-inner,
  #header.header-default .main-menu,
  #header.header-default .main-menu-inner,
  #header.header-default .main-menu-inner > nav,
  #header.header-default .gva-navigation {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: static !important;
    transform: none !important;
  }
  #header.header-default .header-main .content-inner {
    padding: 0 !important;
  }
  #header.header-default .wild-header-utilities {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 90px;
    padding: 8px 28px;
    gap: 24px;
    direction: ltr;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }
  #header.header-default .header-main .header-main-inner .branding {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    grid-column: 2;
    grid-row: 1;
  }
  #header.header-default .wild-header-utilities .branding img {
    max-height: 74px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
  }
  #header.header-default .wild-header-account {
    display: flex;
    align-items: center;
    gap: 18px;
    grid-column: 1;
    grid-row: 1;
  }
  #header.header-default .wild-header-account .gva-user-region {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    float: none !important;
    order: -1;
  }
  #header.header-default .wild-header-account .header-button {
    display: none !important;
  }
  #header.header-default .wild-header-language,
  #header.header-default .wild-header-search {
    display: block;
    position: relative;
    color: white;
    font-size: 15px;
  }
  #header.header-default .wild-header-search {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  #header.header-default .wild-header-utilities summary {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    min-height: 44px;
    list-style: none;
    color: white;
  }
  #header.header-default .wild-header-utilities summary::-webkit-details-marker {
    display: none;
  }
  #header.header-default .wild-header-utilities summary:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
  }
  #header.header-default .wild-header-popover {
    position: absolute;
    top: 100%;
    z-index: 1100;
    min-width: 180px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #24352b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  }
  #header.header-default .wild-header-search .wild-header-popover {
    right: 0;
    width: 310px;
  }
  #header.header-default .wild-header-language .wild-header-popover {
    left: 0;
  }
  #header.header-default .wild-header-popover ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  #header.header-default .wild-header-popover a {
    display: block;
    padding: 8px;
    color: #24352b;
  }
  #header.header-default .wild-header-popover .block-title {
    display: none;
  }
  #header.header-default .wild-header-popover .block,
  #header.header-default .wild-header-popover form {
    margin: 0;
  }
  #header.header-default nav ul.gva_menu.gva_menu_main {
    height: auto !important;
    min-height: 52px !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: center !important;
    padding: 4px 16px !important;
  }
  #header.header-default nav ul.gva_menu.gva_menu_main > li,
  #header.header-default nav ul.gva_menu.gva_menu_main > li > a {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 1.4 !important;
  }
}
@media (min-width: 992px) {
  #header.header-default .header-main .header-main-inner > .row {
    margin-inline: 0 !important;
  }
  #header.header-default .wild-header-utilities .branding .site-branding-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #header.header-default .gva-offcanvas-mobile,
  #header.header-default .area-main-menu,
  #header.header-default .area-inner,
  #header.header-default .main-menu-inner .block,
  #header.header-default .main-menu-inner .block-content,
  #header.header-default .main-menu-inner .navigation {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media (min-width: 992px) {
  #header.header-default nav ul.gva_menu.gva_menu_main {
    flex-wrap: wrap !important;
    max-width: none !important;
    gap: 0 !important;
  }
  #header.header-default nav ul.gva_menu.gva_menu_main > li {
    flex: 0 1 auto !important;
  }
  #header.header-default nav ul.gva_menu.gva_menu_main > li > a {
    font-size: clamp(16.5px, 1.425vw, 21px) !important;
    padding-inline: clamp(6px, .75vw, 12px) !important;
  }
}

/* Fill the account circle without the inline-image baseline gap. */
#header.header-default .gva-user-region > .icon:has(> img) {
  padding: 0;
  background: transparent;
}
#header.header-default .gva-user-region > .icon > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Preserve the logo dimensions and align its base with the desktop link text. */
@media (min-width: 992px) {
  #header.header-default .header-main .content-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    column-gap: 24px;
    padding: 8px 28px 0 !important;
  }
  #header.header-default .wild-header-utilities {
    display: contents;
  }
  #header.header-default .wild-header-account {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    direction: ltr;
  }
  #header.header-default .wild-header-search {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  #header.header-default .header-main .header-main-inner .branding {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-bottom: calc(26px - clamp(8.25px, .7125vw, 10.5px)) !important;
  }
  #header.header-default .header-main .header-main-inner .header-inner {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
  #header.header-default nav ul.gva_menu.gva_menu_main {
    justify-content: flex-start !important;
    padding-inline: 0 !important;
  }
}

/* Match the homepage: centered branding above a full-width navigation row. */
@media (min-width: 992px) {
  body:not(.frontpage) #header.header-default .header-main .content-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    row-gap: 6px;
    padding-block: 12px !important;
  }
  body:not(.frontpage) #header.header-default .header-main .header-main-inner .branding {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0 !important;
  }
  body:not(.frontpage) #header.header-default .wild-header-account {
    grid-column: 3;
    grid-row: 1;
  }
  body:not(.frontpage) #header.header-default .wild-header-search {
    grid-column: 1;
    grid-row: 1;
  }
  body:not(.frontpage) #header.header-default .header-main .header-main-inner .header-inner {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
