#gopr-header {
  width: 100%;
  background: var(--gopr-header-bg, #fff);
  z-index: 9999;
}

#gopr-header.is-sticky {
  position: sticky;
  top: 0;
}

.admin-bar #gopr-header.is-sticky {
  top: 32px;
}

#gopr-header .gopr-header__inner {
  display: flex;
  width: 100%;
  height: var(--gopr-header-height-desktop, 6vw);
  background: var(--gopr-header-bg, #fff);
  overflow: visible;
}

#gopr-header .gopr-header__col {
  min-width: 0;
}

#gopr-header .gopr-header__col--left {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

#gopr-header .gopr-header__logo-link {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--gopr-logo-pad-top-desktop, 0);
  line-height: 0;
  text-decoration: none;
  overflow: visible;
}

#gopr-header .gopr-header__logo {
  display: block;
  height: var(--gopr-logo-height-desktop, 9vw);
  width: auto;
  max-width: 100%;
}

#gopr-header .gopr-header__col--middle {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

#gopr-header .gopr-header__mobile-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 2.2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

#gopr-header .gopr-header__mobile-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#gopr-header .gopr-header__mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

#gopr-header .gopr-header__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

#gopr-header .gopr-header__mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

#gopr-header .gopr-header__nav,
#gopr-header .gopr-header__nav > div {
  width: 100%;
  height: 100%;
}

#gopr-header .gopr-header__nav {
  display: flex;
  align-items: flex-end;
}

#gopr-header .gopr-header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: flex-end;
  gap: 2vw;
  height: auto;
}

#gopr-header .gopr-header__menu > li {
  position: relative;
  margin: 0;
}

#gopr-header .gopr-header__menu a {
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  color: #ffffff;
}

#gopr-header .gopr-header__menu a:hover,
#gopr-header .gopr-header__menu a:focus,
#gopr-header .gopr-header__menu a:visited {
  color: #ffffff;
}

#gopr-header .gopr-header__menu > li.menu-item-has-children,
#gopr-header .gopr-header__menu > li.gopr-header__has-submenu {
  display: flex;
  align-items: center;
  gap: 0.45vw;
}

#gopr-header .gopr-header__submenu-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  line-height: 1;
  cursor: pointer;
  font: inherit;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#gopr-header .gopr-header__submenu-toggle span {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 0.28em solid transparent;
  border-right: 0.28em solid transparent;
  border-top: 0.38em solid currentColor;
  transition: transform 0.2s ease;
}

#gopr-header .gopr-header__menu > li.is-open > .gopr-header__submenu-toggle span {
  transform: rotate(180deg);
}

#gopr-header .gopr-header__menu > li > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0.8em 0;
  background: var(--gopr-header-bg, #fff);
  z-index: 10000;
}

#gopr-header .gopr-header__menu > li.is-open > .sub-menu {
  display: block;
}

#gopr-header .gopr-header__menu > li > .sub-menu > li {
  margin: 0;
  white-space: nowrap;
}

#gopr-header .gopr-header__menu > li > .sub-menu > li > a {
  display: block;
  padding: 0.45em 1.2em;
}

#gopr-header .gopr-header__menu .sub-menu .sub-menu {
  display: none;
}

#gopr-header .gopr-header__col--right {
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

#gopr-header .gopr-header__right-image {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
}

#gopr-header .gopr-header__menu-fallback {
  text-align: center;
  font-size: 14px;
}

@media (max-width: 980px) {
  #gopr-header .gopr-header__inner {
    height: var(--gopr-header-height-mobile, 14vw);
  }

  #gopr-header .gopr-header__col--left {
    width: 20%;
  }

  #gopr-header .gopr-header__col--middle {
    width: 30%;
    align-items: center;
    justify-content: center;
  }

  #gopr-header .gopr-header__col--right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #gopr-header .gopr-header__logo-link {
    padding-top: var(--gopr-logo-pad-top-mobile, 0);
  }

  #gopr-header .gopr-header__logo {
    height: var(--gopr-logo-height-mobile, 20vw);
  }

  #gopr-header .gopr-header__mobile-toggle {
    display: inline-flex;
  }

  #gopr-header .gopr-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 60vw;
    max-width: 60vw;
    height: auto;
    background: var(--gopr-header-bg, #fff);
    align-items: stretch;
    box-shadow: 0 14px 24px rgba(0,0,0,0.12);
    z-index: 10001;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #gopr-header .gopr-header__nav.is-open {
    display: block;
  }

  #gopr-header .gopr-header__nav > div {
    height: auto;
  }

  #gopr-header .gopr-header__menu {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0 0 var(--gopr-menu-pad-bottom-mobile, 0);
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #gopr-header .gopr-header__menu a {
    font-size: 0.75em;
  }

  #gopr-header .gopr-header__menu > li {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.18);
    box-sizing: border-box;
  }

  #gopr-header .gopr-header__menu > li:first-child {
    border-top: 0;
  }

  #gopr-header .gopr-header__menu > li.menu-item-has-children,
  #gopr-header .gopr-header__menu > li.gopr-header__has-submenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.75rem;
    align-items: center;
    column-gap: 0.35rem;
  }

  #gopr-header .gopr-header__menu > li > a {
    display: flex;
    align-items: center;
    min-height: 2em;
    height: 2em;
    line-height: 1;
    width: 100%;
    margin: 0;
    padding: 0 1.2rem;
    box-sizing: border-box;
  }

  #gopr-header .gopr-header__menu > li.menu-item-has-children > a,
  #gopr-header .gopr-header__menu > li.gopr-header__has-submenu > a {
    grid-column: 1;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding-right: 0;
    overflow-wrap: anywhere;
  }

  #gopr-header .gopr-header__submenu-toggle {
    grid-column: 2;
    width: 1.75rem;
    min-width: 1.75rem;
    height: 2em;
    min-height: 2em;
    margin: 0;
    padding: 0;
    position: static;
    transform: none;
    box-sizing: border-box;
  }

  #gopr-header .gopr-header__submenu-toggle span {
    display: block;
    border-left-width: 0.28rem;
    border-right-width: 0.28rem;
    border-top-width: 0.38rem;
  }

  #gopr-header .gopr-header__menu > li > .sub-menu {
    grid-column: 1 / -1;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: rgba(255,255,255,0.08);
    box-shadow: none;
    box-sizing: border-box;
  }

  #gopr-header .gopr-header__menu > li.is-open > .sub-menu {
    display: block;
  }

  #gopr-header .gopr-header__menu > li > .sub-menu > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
    white-space: normal;
  }

  #gopr-header .gopr-header__menu > li > .sub-menu > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2em;
    height: 2em;
    line-height: 1;
    margin: 0;
    padding: 0 1.2rem 0 1.8rem;
    box-sizing: border-box;
  }

  #gopr-header .gopr-header__right-image {
    max-width: 100%;
  }
}

@media (max-width: 782px) {
  .admin-bar #gopr-header.is-sticky {
    top: 46px;
  }
}



/* 1.0.25 mobile equal-height row fix */
@media (max-width: 980px) {
  /*
   * Set an explicit height on every top-level li — both plain items and the
   * parent-with-children item — so the box is hard-constrained and cannot grow
   * due to button intrinsic size or flex child disagreements.
   * box-sizing: content-box means the border-top (1px separator) sits outside
   * the 2em content height, so it doesn't inflate any row.
   */
  /* Plain items: fixed 2em height, centered text */
  #gopr-header .gopr-header__menu > li {
    display: block !important;
    height: 2em !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: content-box !important;
  }

  #gopr-header .gopr-header__menu > li > a {
    display: flex !important;
    align-items: center !important;
    height: 2em !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 1.2rem !important;
    box-sizing: border-box !important;
  }

  /* Parent item: flex-wrap so sub-menu can occupy a second row when open.
     The header row (anchor + toggle) is pinned to 2em; the li grows only
     because the sub-menu child wraps below it. */
  #gopr-header .gopr-header__menu > li.menu-item-has-children,
  #gopr-header .gopr-header__menu > li.gopr-header__has-submenu {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    height: auto !important;
    min-height: 2em !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: content-box !important;
  }

  /* Parent anchor: flex, centered, exactly 2em tall, leaves room for toggle */
  #gopr-header .gopr-header__menu > li.menu-item-has-children > a,
  #gopr-header .gopr-header__menu > li.gopr-header__has-submenu > a {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    height: 2em !important;
    line-height: 1 !important;
    max-width: calc(100% - 1.75rem) !important;
    margin: 0 !important;
    padding: 0 0 0 1.2rem !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }

  /* Toggle button: fixed width, same 2em height as anchor */
  #gopr-header .gopr-header__menu > li.menu-item-has-children > .gopr-header__submenu-toggle,
  #gopr-header .gopr-header__menu > li.gopr-header__has-submenu > .gopr-header__submenu-toggle {
    flex: 0 0 1.75rem !important;
    width: 1.75rem !important;
    height: 2em !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Sub-menu: wraps onto its own full-width row, grows naturally */
  #gopr-header .gopr-header__menu > li.menu-item-has-children > .sub-menu,
  #gopr-header .gopr-header__menu > li.gopr-header__has-submenu > .sub-menu {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
}
