.ranch-language {
  position: relative;
  justify-self: end;
  grid-column: 4;
  grid-row: 1;
  color: inherit;
}
.language-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 46px;
  min-height: 44px;
  padding: 0;
  color: inherit;
  font: 500 10px/1 var(--sans);
  letter-spacing: .08em;
}
.language-trigger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.language-trigger:focus-visible { outline: 1px solid currentColor; outline-offset: -3px; border-radius: 2px; }
.language-sheet {
  position: absolute;
  z-index: 2;
  top: calc(100% + 5px);
  right: 0;
  width: min(305px, calc(100vw - 52px));
  max-height: calc(100dvh - 110px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 19px 18px 12px;
  text-align: left;
  background: var(--bone);
  border: 1px solid rgba(61,40,34,.14);
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(30,25,17,.17);
  color: var(--cedar);
}
.language-sheet[hidden], .language-error[hidden] { display: none; }
#language-heading {
  margin: 0 0 5px;
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(61,40,34,.19);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
}
#language-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
#language-choices button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 4px 6px;
  border: 0;
  border-radius: 2px;
  color: var(--cedar);
  background: transparent;
  font: 400 20px/1.2 var(--serif);
  text-align: start;
  cursor: pointer;
}
#language-choices button[aria-checked="true"] { color: var(--moss); }
#language-choices button[aria-checked="true"]::after {
  content: "";
  width: 6px;
  height: 10px;
  margin-inline: 4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}
#language-choices button:hover, #language-choices button:focus-visible { background: rgba(94,106,82,.1); }
#language-choices button:focus-visible { outline: 1px solid var(--moss); outline-offset: -1px; }
.language-error { font: 12px/1.5 var(--sans); margin: 8px 0 0; }
@media (min-width: 801px) {
  #header.brand-header {
    grid-template-columns: minmax(0,1fr) clamp(130px,13vw,180px) minmax(0,1fr);
    width: calc(100% - 64px);
    max-width: 1320px;
    height: 46px;
    column-gap: clamp(12px,2vw,34px);
    padding-inline: clamp(18px,2.5vw,44px);
  }
  #header .center-brand { grid-area: 1 / 2; justify-self: center; flex-direction: row; gap: 9px; }
  #header .logo-art { height: 30px; width: 24px; mask-size: 43px 43px; }
  #header .logo-wordmark { font-size: 8px; }
  #header .desktop-nav {
    width: 100%;
    justify-content: space-between;
    gap: clamp(6px,1vw,20px);
  }
  #header .nav-left { grid-area: 1 / 1; }
  #header .nav-right { grid-area: 1 / 3; padding-right: 0; }
  #header .header-right-group {
    grid-area: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px,1vw,20px);
    min-width: 0;
  }
  #header .header-right-group .nav-right { display: contents; }
  #header .header-right-group .ranch-language { flex-shrink: 0; }
  #header .ranch-language { grid-area: 1 / 3; justify-self: end; }
  #header .desktop-nav a {
    font-size: clamp(8px,.72vw,11px);
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
}
@media (max-width: 800px) {
  #header .header-right-group { display: contents; }
  #header.brand-header { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  #header .ranch-language { grid-column: 3; grid-row: 1; }
  #header .menu-toggle { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 46px; }
}
@media (max-width: 380px) {
  #header.brand-header { padding-inline: 8px; gap: 2px; }
}
