/* Header presentation overrides, loaded after the global palette. */
.site-header__top,
.site-header__bottom {
  border-bottom: 0;
}

.site-header__top {
  background: #0F1429;
}

.site-header__inner {
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.site-header__top .site-header__inner {
  min-height: 3.75rem;
}

.site-header__bottom .site-header__inner {
  min-height: 3.75rem;
}

.site-header__top-left,
.site-header__top-right {
  gap: 0.9rem;
}

.site-header__top-left,
.primary-navigation,
.site-search {
  min-width: 0;
}

.site-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  border: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
  color: var(--wp--preset--color--yellow);
}

.primary-navigation ul,
.primary-menu {
  display: flex;
  gap: 0.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.6rem;
  color: var(--wp--preset--color--white);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.primary-navigation a::after {
  position: absolute;
  right: 0.6rem;
  bottom: 0.26rem;
  left: 0.6rem;
  height: 2px;
  content: "";
  background: var(--wp--preset--color--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  color: var(--wp--preset--color--white);
}

.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after,
.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  transform: scaleX(1);
}

.social-navigation ul {
  gap: 0.35rem;
}

.social-navigation a {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: var(--wp--preset--color--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.social-navigation a:hover,
.social-navigation a:focus-visible {
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--yellow);
  border-color: var(--wp--preset--color--yellow);
}

.account-navigation {
  gap: 0;
}

.account-navigation a {
  padding: 0.35rem 0.7rem;
  color: var(--wp--preset--color--white);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.account-navigation a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.account-navigation a:hover,
.account-navigation a:focus-visible {
  color: var(--wp--preset--color--yellow);
}

.site-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  color: var(--wp--preset--color--white);
  line-height: 1;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.site-logo:hover,
.site-logo:focus-visible {
  color: var(--wp--preset--color--white);
  opacity: 0.82;
}

.site-logo__graphic {
  display: block;
  width: clamp(9.5rem, 13vw, 11.5rem);
  height: auto;
}

.site-logo__tagline {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-search {
  display: flex;
  flex: 1 1 20rem;
  align-items: stretch;
  max-width: 32rem;
  overflow: hidden;
  background: rgba(8, 32, 71, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-search:focus-within {
  border-color: var(--wp--preset--color--yellow);
  box-shadow: 0 0 0 3px rgba(252, 208, 0, 0.22);
}

.site-header .site-header__bottom .site-search input {
  flex: 1;
  min-width: 0;
  height: 2.4rem;
  padding: 0 0.95rem;
  color: var(--wp--preset--color--white);
  background: transparent;
  border: 0;
  border-radius: 999px 0 0 999px;
  font-size: 0.8rem;
  line-height: 1;
  outline: 0;
}

.site-header .site-header__bottom .site-search input::placeholder {
  color: rgba(255, 255, 255, 0.66);
  opacity: 1;
}

.site-header .site-header__bottom .site-search button {
  flex: 0 0 auto;
  min-width: 5.1rem;
  padding: 0 1rem;
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--yellow);
  border: 0;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-header .site-header__bottom .site-search button:hover,
.site-header .site-header__bottom .site-search button:focus-visible {
  color: var(--wp--preset--color--blue);
  background: var(--wp--preset--color--white);
}

.complex-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  color: var(--wp--preset--color--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.complex-link:hover,
.complex-link:focus-visible {
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
}

@media (max-width: 760px) {
  .site-header__inner {
    gap: 0.7rem;
    width: min(100% - 1.25rem, 75rem);
  }

  .site-header__top .site-header__inner {
    min-height: 3.75rem;
  }

  .site-header__bottom .site-header__inner {
    min-height: 3.5rem;
  }

  .site-header__top-right {
    gap: 0.25rem;
  }

  .social-navigation {
    display: none;
  }

  .primary-navigation {
    overflow-x: auto;
  }

  .primary-navigation a {
    min-height: 2.1rem;
    padding-right: 0.42rem;
    padding-left: 0.42rem;
    font-size: 0.7rem;
  }

  .primary-navigation a::after {
    right: 0.42rem;
    left: 0.42rem;
  }

  .account-navigation a {
    padding-right: 0.48rem;
    padding-left: 0.48rem;
    font-size: 0.64rem;
  }

  .site-logo {
    font-size: 1.2rem;
  }

  .site-search {
    flex-basis: 12rem;
  }

  .site-header .site-header__bottom .site-search input {
    height: 2.2rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.75rem;
  }

  .site-header .site-header__bottom .site-search button {
    min-width: 4.35rem;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
    font-size: 0.62rem;
  }

  .complex-link {
    min-height: 2.2rem;
    padding-right: 0.62rem;
    padding-left: 0.62rem;
    font-size: 0.62rem;
  }
}

@media (max-width: 560px) {
  .account-navigation {
    display: none;
  }

  .site-search {
    flex-basis: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-header *::before,
  .site-header *::after {
    transition-duration: 0.01ms !important;
  }
}

.site-search-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  color: var(--wp--preset--color--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-search-toggle__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.site-search-toggle:hover,
.site-search-toggle:focus-visible,
.site-search-toggle[aria-expanded="true"] {
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--yellow);
  border-color: var(--wp--preset--color--yellow);
}

.site-search-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-y: auto;
  place-items: start center;
  padding: clamp(1rem, 5vw, 3rem);
  visibility: visible;
  transition: none;
}

.site-search-dialog[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.site-search-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 71, 0.72);
  opacity: 1;
  transition: opacity 180ms ease;
}

.site-search-dialog[aria-hidden="true"] .site-search-dialog__backdrop {
  opacity: 0;
}

.site-search-dialog__panel {
  box-sizing: border-box;
  min-width: 0;
  position: relative;
  width: min(100%, 39rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: min(13vh, 8rem);
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--white);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 0.9rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-search-dialog[aria-hidden="true"] .site-search-dialog__panel {
  opacity: 0;
  transform: translateY(-0.75rem);
}

.site-search-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.site-search-dialog__title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.site-search-dialog__close {
  display: grid;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  cursor: pointer;
  place-items: center;
  color: var(--wp--preset--color--navy);
  background: transparent;
  border: 1px solid var(--wp--preset--color--light-blue);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-search-dialog__close:hover,
.site-search-dialog__close:focus-visible {
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--blue);
  border-color: var(--wp--preset--color--blue);
}

.site-search-dialog .site-search {
  display: flex;
  align-items: stretch;
  max-width: none;
  overflow: hidden;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--light-blue);
  border-radius: 0.6rem;
  box-shadow: none;
}

.site-search-dialog .site-search:focus-within {
  border-color: var(--wp--preset--color--blue);
  box-shadow: 0 0 0 3px rgba(16, 46, 92, 0.14);
}

.site-search-dialog .site-search input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 3.1rem;
  padding: 0 1rem;
  color: var(--wp--preset--color--navy);
  background: transparent;
  border: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1;
  outline: 0;
}

.site-search-dialog .site-search input::placeholder {
  color: var(--wp--preset--color--gray);
  opacity: 1;
}

.site-search-dialog .site-search button {
  flex: 0 0 auto;
  min-width: 6.15rem;
  padding: 0 1rem;
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--yellow);
  border: 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-search-dialog .site-search button:hover,
.site-search-dialog .site-search button:focus-visible {
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--blue);
}

.site-search-dialog__hint {
  margin: 0.85rem 0 0;
  color: var(--wp--preset--color--gray);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .site-search-toggle {
    min-height: 2.2rem;
    padding-right: 0.72rem;
    padding-left: 0.72rem;
    font-size: 0.64rem;
  }

  .site-search-dialog__panel {
    margin-top: 4rem;
  }
}

@media (max-width: 440px) {
  .site-search-toggle {
    gap: 0.45rem;
    padding-right: 0.62rem;
    padding-left: 0.62rem;
  }

  .site-search-dialog {
    padding: 0.75rem;
  }

  .site-search-dialog__panel {
    margin-top: 3.5rem;
  }

  .site-search-dialog .site-search button {
    min-width: 5.35rem;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }
}

.site-header__bottom {
  position: relative;
  box-shadow: 0 0.65rem 1.35rem rgba(8, 32, 71, 0.12);
}

.site-search-toggle {
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  min-height: 0;
  padding: 0;
  gap: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-search-toggle:hover,
.site-search-toggle:focus-visible,
.site-search-toggle[aria-expanded="true"] {
  color: var(--wp--preset--color--yellow);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.site-search-dialog__panel {
  border-top: 3px solid var(--wp--preset--color--yellow);
  box-shadow: 0 1.75rem 4.5rem rgba(0, 0, 0, 0.34);
}

.site-search-dialog__header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(63, 98, 151, 0.28);
}

.site-search-dialog__hint {
  max-width: 38rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-search-toggle,
  .site-search-dialog,
  .site-search-dialog__backdrop,
  .site-search-dialog__panel,
  .site-search-dialog__close,
  .site-search-dialog .site-search button {
    transition-duration: 0.01ms !important;
  }
}

/* Keep all header actions in one compact row. */
.site-header {
  border-bottom: 0;
}

.site-header__top-right {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 0;
}

.site-header__top .social-navigation {
  flex: 0 0 auto;
  margin-right: 0.7rem;
}

.site-header__top .account-navigation {
  flex: 0 0 auto;
}

.site-header__top .primary-navigation {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
}

.site-header__top .primary-navigation ul,
.site-header__top .primary-menu {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: max-content;
}

.site-header__top .primary-navigation li,
.site-header__top .account-navigation a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-header__top .primary-navigation a {
  min-height: 0;
  padding: 0.35rem 0.7rem;
  color: var(--wp--preset--color--white);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__top .primary-navigation a::after {
  content: none;
}

.site-header__top .primary-navigation li + li > a {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.site-header__top .primary-navigation a:hover,
.site-header__top .primary-navigation a:focus-visible {
  color: var(--wp--preset--color--yellow);
}

.site-header__top .site-search-toggle {
  position: relative;
  flex: 0 0 auto;
  margin-left: 0;
}

.site-header__top .account-navigation + .site-search-toggle::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1.35rem;
  content: "";
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
}

.site-main {
  padding-top: 3.75rem;
}

body.admin-bar .site-main {
  padding-top: 3.75rem;
}

@media (max-width: 782px) {
  body.admin-bar .site-main {
    padding-top: 3.75rem;
  }
}

@media (max-width: 760px) {
  .site-main {
    padding-top: 3.75rem;
  }

  body.admin-bar .site-main {
    padding-top: 3.75rem;
  }

  .site-header__top .primary-navigation a {
    padding-right: 0.48rem;
    padding-left: 0.48rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .site-header__top .site-search-toggle {
    margin-left: 0.2rem;
  }

  .site-header__top .account-navigation + .site-search-toggle::before {
    content: none;
  }
}

/* Tablet and mobile navigation. The desktop row remains unchanged above 960px. */
.site-header__controls {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-top: 5px;
}

@media (min-width: 961px) {
  .site-header__top-right + .site-header__controls {
    margin-left: calc(-1 * clamp(0.75rem, 2vw, 1.75rem));
  }
}

.site-header__controls::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1.35rem;
  content: "";
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
}

.site-header__menu-toggle {
  display: none;
}

@media (max-width: 960px) {
  .site-header__top .site-header__inner {
    position: relative;
    min-height: 3.75rem;
  }

  .site-logo__graphic {
    width: clamp(8.5rem, 26vw, 10.5rem);
  }

  .site-header__controls {
    order: 3;
    gap: 0.4rem;
    margin-top: 0;
    margin-left: auto;
  }

  .site-header__controls::before {
    content: none;
  }

  .site-header__menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0.35rem 0.6rem;
    color: var(--wp--preset--color--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.35rem;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }

  .site-header__menu-toggle:hover,
  .site-header__menu-toggle:focus-visible,
  .site-header__menu-toggle[aria-expanded="true"] {
    color: var(--wp--preset--color--navy);
    background: var(--wp--preset--color--yellow);
    border-color: var(--wp--preset--color--yellow);
  }

  .site-header__menu-toggle-icon {
    font-size: 0.95rem;
  }

  .site-header__top-right {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - 3.75rem);
    overflow-y: auto;
    margin-top: 0;
    padding: 0.65rem;
    background: #0F1429;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 0.85rem 1.5rem rgba(2, 7, 22, 0.3);
  }

  .site-header__top-right[hidden] {
    display: none !important;
  }

  .site-header__top .social-navigation {
    display: none;
  }

  .site-header__top .primary-navigation {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    overflow: visible;
  }

  .site-header__top .primary-navigation ul,
  .site-header__top .primary-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 0.35rem;
  }

  .site-header__top .primary-navigation li {
    display: block;
    min-width: 0;
  }

  .site-header__top .primary-navigation a {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    color: var(--wp--preset--color--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.35rem;
    font-size: 0.78rem;
    line-height: 1;
  }

  .site-header__top .primary-navigation a:hover,
  .site-header__top .primary-navigation a:focus-visible,
  .site-header__top .primary-navigation .current-menu-item > a,
  .site-header__top .primary-navigation .current_page_item > a {
    color: var(--wp--preset--color--navy);
    background: var(--wp--preset--color--yellow);
    border-color: var(--wp--preset--color--yellow);
  }

  .site-header__top .account-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.35rem;
    padding-top: 0.65rem;
    margin-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .site-header__top .account-navigation a {
    box-sizing: border-box;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    color: var(--wp--preset--color--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.35rem;
    font-size: 0.72rem;
  }

  .site-header__top .account-navigation a:hover,
  .site-header__top .account-navigation a:focus-visible {
    color: var(--wp--preset--color--navy);
    background: var(--wp--preset--color--yellow);
    border-color: var(--wp--preset--color--yellow);
  }

  .site-header__top .site-search-toggle {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .site-logo__graphic {
    width: clamp(7.75rem, 36vw, 8.75rem);
  }

  .site-header__menu-toggle {
    width: 2.4rem;
    padding-right: 0;
    padding-left: 0;
  }

  .site-header__menu-toggle-label {
    display: none;
  }

  .site-header__top-right {
    padding: 0.55rem;
  }

  .site-header__top .primary-navigation ul,
  .site-header__top .primary-menu,
  .site-header__top .account-navigation {
    grid-template-columns: 1fr;
  }
}

/* Top banner under the main menu: 728×90 on wide screens, not shown on phones. */
.site-top-ad { padding: 18px 16px 6px; text-align: center; }
.site-top-ad__label { display: block; margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a95a8; }
.site-top-ad .mentorio-ad { position: relative; width: var(--ad-w); max-width: 100%; height: var(--ad-h); margin: 0 auto; }
.site-top-ad .mentorio-ad__placeholder { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 1rem; border: 1px dashed #d8dee8; border-radius: 10px; background: #edf0f5; color: #8a95a8; padding: .5rem 1rem; text-align: center; }
.site-top-ad .mentorio-ad__placeholder > span { display: none; }
.site-top-ad .mentorio-ad__placeholder small { font-size: .65rem; line-height: 1.5; max-width: 22rem; }
.site-top-ad .mentorio-ad__consent { font: inherit; font-size: .75rem; font-weight: 600; color: #1f3a68; background: #fff; border: 1px solid #c9d2e0; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.site-top-ad .mentorio-ad__frame { position: relative; display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.site-top-ad .mentorio-ad__frame:not([src]) { display: none; }
@media (max-width: 760px) { .site-top-ad { display: none; } }

/* Mobile menu: closed until the toggle opens it, so it never flashes open while the page loads. */
@media (max-width: 960px) {
  body:not(.has-mobile-menu-open) .site-header__top-right { display: none !important; }
  body.admin-bar .site-header__top-right { max-height: calc(100vh - 3.75rem - 32px); }
}
@media (max-width: 782px) {
  body.admin-bar .site-header__top-right { max-height: calc(100vh - 3.75rem - 46px); }
}
/* Logged-in admins on phones: WordPress lets the admin bar scroll away while the header stays fixed
   46px down, leaving a gap. Keep the bar fixed too, so header and bar stay together. */
@media (max-width: 600px) {
  body.admin-bar #wpadminbar { position: fixed; }
}

/* Pull-to-refresh / overscroll on phones (and in-app browsers such as Instagram's): the area revealed
   above the page is the same navy as the header, never transparent; the page itself stays white. */
html { background: #0F1429; }
body { background: #fff; }
/* Home: the strip under the fixed header takes the hero's colour, so there is no white band above it. */
body.home .site-main { background: #F2F5FA; }
/* Home: the hero (with its soft gradient) starts right under the fixed header's space, so there is no separate flat band. */
body.home .site-main { padding-top: 0; }
body.home .home-intro { padding-top: 3.75rem; }

/* Ad spaces: without marketing consent the placeholder (with the cookie-settings button) is shown;
   once ads are allowed the frame loads and the placeholder disappears, so only the ad itself shows. */
.mentorio-ad:has(.mentorio-ad__frame[src]) .mentorio-ad__placeholder { display: none !important; }

/* Allowed but not loaded yet: a soft frame with a small spinner, until the ad appears. An empty slot is hidden. */
.mentorio-ad:has(.mentorio-ad__frame[src]):not(.is-filled) { border-radius: 10px; background: #f3f5f9; box-shadow: inset 0 0 0 1px #e1e6ee; }
.mentorio-ad:has(.mentorio-ad__frame[src]):not(.is-filled)::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid #d4dbe6; border-top-color: #8a95a8; border-radius: 50%; animation: mentorio-ad-spin .8s linear infinite; pointer-events: none; }
@keyframes mentorio-ad-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mentorio-ad:has(.mentorio-ad__frame[src]):not(.is-filled)::after { animation-duration: 2.4s; } }
:is(.site-top-ad, .home-ad, .article-top-ad, .article-sidebar__ad, .aggregator__ad, .mentorio-game-ad, .zb-side-ad):has(.mentorio-ad.is-empty) { display: none !important; }
