/* v4.0.8: keep original artwork and contain the phone/tablet header controls. */
.min2-responsive-logo { display: block; width: 100%; }
.min2-menu-close-icon { display: none; }
.site-header .min2-full-logo-link,
body.login .min2-login-identity { background: transparent; border-radius: 0; }
.site-header .min2-full-logo,
body.login .min2-full-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 8 / 1;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 1181px) {
  .site-header .site-nav > ul { flex-wrap: wrap !important; row-gap: 0; }
  .site-header .header-row { min-height: 84px; }
  .site-header .header-actions { flex-shrink: 0; }
}
@media (max-width: 1180px) {
  /* The live Customizer CSS uses !important, fixed heights and generated account
     icons. Scope overrides here so those old rules cannot make controls overflow. */
  #min2-site-header {
    position: relative !important;
    top: 0 !important;
    width: 100%;
    background: var(--min2-white);
  }
  #min2-site-header .header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 20px !important;
    box-sizing: border-box;
    background: var(--min2-white);
  }
  #min2-site-header .site-identity-full {
    grid-column: 1;
    grid-row: 1;
    order: 0 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
  }
  #min2-site-header .min2-full-logo-link {
    display: block;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 !important;
    padding: 0;
    line-height: 0;
  }
  #min2-site-header .min2-full-logo {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    /* 5:1 hides only transparent padding in the supplied tablet PNG.
       The entire emblem and both text lines stay inside the visible frame. */
    aspect-ratio: 5 / 1;
    object-fit: cover !important;
    object-position: center;
  }
  #min2-site-header .header-actions {
    grid-column: 2;
    grid-row: 1;
    order: 1 !important;
    display: flex;
    flex-wrap: nowrap;
    justify-self: end;
    align-items: center;
    gap: 6px !important;
    position: static;
    width: auto;
    height: 44px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
  }
  #min2-site-header .search-toggle,
  #min2-site-header .menu-toggle {
    display: grid !important;
    place-items: center;
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 0;
    border-radius: 6px;
    line-height: 1;
  }
  #min2-site-header .search-toggle svg,
  #min2-site-header .menu-toggle svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
  }
  #min2-site-header .menu-toggle .min2-menu-close-icon,
  #min2-site-header .menu-toggle[aria-expanded="true"] .min2-menu-open-icon {
    display: none !important;
  }
  #min2-site-header .menu-toggle[aria-expanded="true"] .min2-menu-close-icon {
    display: block !important;
  }
  #min2-site-header .account-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: static !important;
    width: auto !important;
    min-width: 68px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--min2-red);
    border-radius: 6px !important;
    background: var(--min2-white) !important;
    color: var(--min2-red);
    font: 600 14px/1.2 Arial, sans-serif !important;
    text-decoration: none;
    white-space: nowrap;
  }
  #min2-site-header .account-link:hover {
    background: var(--min2-red) !important;
    color: var(--min2-white);
  }
  #min2-site-header .account-link::before,
  #min2-site-header .account-link::after,
  #min2-site-header .menu-toggle::before,
  #min2-site-header .menu-toggle::after {
    display: none !important;
    content: none !important;
  }
  #min2-site-header .account-link svg { display: none !important; }
  #min2-site-header .account-link span {
    display: inline !important;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    font: inherit;
  }
  #min2-site-header .search-toggle:focus-visible,
  #min2-site-header .menu-toggle:focus-visible,
  #min2-site-header .account-link:focus-visible {
    outline: 2px solid var(--min2-red);
    outline-offset: 3px;
  }
  #min2-site-header .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 2 !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 12px 0 !important;
    max-height: 65dvh !important;
    overflow: auto !important;
    overscroll-behavior: contain;
  }
  #min2-site-header .header-search {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    order: 2 !important;
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 16px;
    box-sizing: border-box;
  }
  #min2-site-header .header-search[hidden] { display: none !important; }
  #min2-site-header .header-search > div { gap: 8px; }
  #min2-site-header .header-search input { width: 0; min-width: 0; }
  #min2-site-header .header-search button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    gap: 8px;
  }
  html:not(.min2-js) #min2-site-header .menu-toggle,
  html:not(.min2-js) #min2-site-header .search-toggle { display: none !important; }
}
@media (max-width: 700px) {
  #min2-site-header .header-row { padding: 8px 12px !important; gap: 0 12px !important; }
  #min2-site-header .site-identity-full { width: 64px; max-width: 64px; }
  #min2-site-header .min2-full-logo {
    width: 64px !important;
    height: 64px !important;
    aspect-ratio: 1;
    object-fit: contain !important;
  }
  #min2-site-header .header-search { padding: 12px; }
  body.login .min2-full-logo { aspect-ratio: 1.3 / 1; }
  .site-footer .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsr-home h1 { font-size: clamp(34px, 10vw, 46px); }
}
