@media screen {
  .site-header[data-phase4b-nav] > .desktop-nav {
    display: none;
  }
  .site-header[data-phase4b-nav][data-nav-layout="inline"] > .desktop-nav {
    display: flex;
    flex-wrap: nowrap;
  }
  .site-header[data-phase4b-nav] > .desktop-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: none;
  }
  .site-header[data-phase4b-nav] > .desktop-nav.phase4b-measuring {
    display: flex;
    flex-wrap: nowrap;
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    inline-size: max-content;
    inset-inline-end: 0;
    inset-block-start: 0;
  }
  body.r05-site.ad-site .site-header[data-phase4b-nav] > .menu-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    gap: 7px;
    margin: 0;
    padding: 0 9px;
    overflow: visible;
    border: 1px solid rgba(109, 0, 0, .32);
    font: 600 .8125rem/1.2 var(--body);
    letter-spacing: .05em;
  }
  body.r05-site.ad-site .site-header[data-phase4b-nav][data-nav-layout="inline"] > .menu-toggle {
    display: none;
  }
  .site-header[data-phase4b-nav] > .language-switch {
    margin-inline-start: auto;
  }
  .site-header[data-phase4b-nav][data-nav-layout="inline"] > .language-switch {
    margin-inline-start: 0;
  }
  .site-header[data-phase4b-nav] .menu-toggle .menu-lines {
    display: block;
    width: 16px;
    height: 11px;
    margin: 0;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  }
  .site-header[data-phase4b-nav] .language-switch ul {
    inset-inline-end: 0;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow: auto;
  }
  .menu-dialog[data-phase4b-menu] {
    box-sizing: border-box;
    height: 100vh;
    max-height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: max(76px, calc(env(safe-area-inset-top) + 65px));
    padding-bottom: max(30px, env(safe-area-inset-bottom));
    scroll-padding-block: 64px 16px;
  }
  .menu-dialog[data-phase4b-menu] .close-menu {
    position: fixed;
    inset-block-start: max(14px, env(safe-area-inset-top));
    inset-inline-end: max(18px, env(safe-area-inset-right));
    z-index: 2;
    min-height: 44px;
    background: var(--azuki);
  }
  .menu-dialog[data-phase4b-menu] > nav a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .menu-dialog[data-phase4b-menu] .menu-language-slot {
    max-width: 750px;
    margin: 24px auto 0;
  }
  .menu-dialog[data-phase4b-menu] .language-switch ul {
    position: static;
    width: max-content;
    max-width: 100%;
  }
  .menu-dialog[data-phase4b-menu] .language-switch summary:focus-visible {
    outline-color: var(--paper);
  }
}

@media screen and (max-width: 760px) {
  .site-header[data-phase4b-nav] {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 8px;
    padding-inline: clamp(12px, 3.5vw, 20px);
  }
  .site-header[data-phase4b-nav] .brand.v04-lockup {
    min-width: 0;
    width: 100%;
  }
  .site-header[data-phase4b-nav] .brand img.v04-wordmark {
    min-width: 0;
    flex-shrink: 1;
    object-fit: contain;
    object-position: left;
  }
  .site-header[data-phase4b-nav] .language-switch {
    font-size: .875rem;
  }
  .site-header[data-phase4b-nav] .language-switch summary {
    padding-inline: 3px;
  }
  .site-header[data-phase4b-nav] .language-switch summary::after {
    margin-inline-start: 5px;
  }
  .text-200 .site-header[data-phase4b-nav] {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .text-200 .site-header[data-phase4b-nav] > .language-switch {
    display: none; /* All six languages remain in the open menu. */
  }
  .ad-site .menu-dialog[data-phase4b-menu] > nav a {
    font-size: 1.2rem;
    padding-block: 8px;
  }
}

.phase4b-contact-consent {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 15px;
  margin-block: 18px;
}
.phase4b-contact-consent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phase4b-contact-consent input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  min-height: unset;
  padding: 0;
  margin: 0;
  accent-color: #6D0000;
}

.phase4b-inquiry {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  margin: auto;
  inline-size: min(36rem, calc(100% - 28px));
  max-inline-size: 100%;
  max-block-size: calc(100vh - 28px);
  max-block-size: calc(100dvh - 28px);
  padding: clamp(18px, 4.4vw, 40px);
  border: 1px solid #a8947e;
  border-block-start: 4px solid #6D0000;
  color: #29231e;
  background: #F3F0E6;
  box-shadow: 0 18px 72px #160c09a0;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.phase4b-inquiry::backdrop {
  background: rgba(26, 17, 15, .65);
}
.phase4b-inquiry [hidden] {
  display: none !important;
}
.phase4b-inquiry .phase4b-inquiry-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 auto;
  padding: 0;
  border: 1px solid #6D000059;
  background: transparent;
  color: #6D0000;
  font: 400 1.55rem/1 var(--body);
  cursor: pointer;
}
.phase4b-inquiry .eyebrow {
  margin: 0 0 8px;
  color: #6D0000;
}
.phase4b-inquiry h2 {
  margin: 0 0 10px;
  color: #6D0000;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.35;
  letter-spacing: .01em;
}
.phase4b-inquiry h2:focus {
  outline: none; /* The heading is only focused when a state appears. */
}
.phase4b-inquiry p {
  margin: 0 0 12px;
  font-size: .98rem;
  line-height: 1.65;
}
.phase4b-inquiry .phase4b-inquiry-to {
  margin-top: 12px;
  font-size: .9rem;
  color: #55443d;
}
.phase4b-inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.phase4b-inquiry-actions > * {
  display: inline-flex;
  flex: 1 1 13rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #6D0000;
  background: transparent;
  color: #6D0000;
  font: 600 .95rem/1.45 var(--body);
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  cursor: pointer;
}
.phase4b-inquiry-actions > a {
  background: #6D0000;
  color: #F3F0E6;
}
.phase4b-inquiry :is(button, a, textarea):focus-visible {
  outline: 2px solid #6D0000;
  outline-offset: 3px;
}
.phase4b-inquiry-copy-status:empty {
  display: none;
}
.phase4b-inquiry-copy-status {
  margin-top: 10px !important;
}
.phase4b-inquiry textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #a8947e;
  background: #fbfaf6;
  color: #29231e;
  font-size: 1rem;
}
.phase4b-inquiry-progress {
  width: 100%;
  height: 4px;
  margin-top: 16px;
  accent-color: #6D0000;
}

@media (max-height: 410px) {
  .phase4b-inquiry { padding-block: 14px; }
  .phase4b-inquiry .phase4b-inquiry-close { margin-bottom: -6px; }
  .phase4b-inquiry :is(.eyebrow, h2, p) { margin-bottom: 6px; }
}

.phase4b-menu-nojs {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 9px;
  border: 1px solid #6D000059;
  color: #6D0000;
  font: 600 .8125rem/1.2 var(--body);
}
