.site-desktop-navigation {
  padding: 0.15rem 1rem 0.95rem;
  color: var(--global-palette1, #302e22);
}

.transparent-header .site-desktop-navigation {
  color: var(--global-palette8, #e6e4db);
}

.site-desktop-navigation ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 3vw, 2.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-desktop-navigation a {
  display: inline-block;
  padding: 0.3rem 0;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

.site-desktop-navigation a:hover,
.site-desktop-navigation a:focus-visible,
.site-desktop-navigation a[aria-current="page"] {
  color: inherit;
  text-decoration: underline;
}

#masthead .site-language-mobile {
  position: static;
  box-sizing: border-box;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-inline-start: 0.5rem;
}

@media (max-width: 1024px) {
  #masthead .site-language-desktop { display: none; }
  #mobile-header .site-branding img {
    max-width: min(100%, calc(100vw - 9rem));
  }
}

@media (min-width: 1025px) {
  #masthead .site-language-mobile { display: none; }
}

/* Kadence uses a slightly wider mobile header breakpoint inside wp-site-blocks. */
@media (min-width: 1025px) and (max-width: 1068px) {
  .wp-site-blocks #masthead .site-language-desktop { display: none; }
  .wp-site-blocks #masthead .site-language-mobile { display: grid; }
}
