/* Option one's editorial menu. The persistent brand header sits above this flex column. */
nav.editorial-mobile-nav {
  --menu-gold: #d9c5a0;
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 48rem;
  min-height: 0;
  padding: 0 max(clamp(20px, 6.15vw, 36px), env(safe-area-inset-right)) max(clamp(20px, 3.8dvh, 32px), env(safe-area-inset-bottom)) max(clamp(20px, 6.15vw, 36px), env(safe-area-inset-left));
  text-align: left;
  color: #fff;
}

.editorial-mobile-nav .mobile-nav-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #83919a transparent;
}

nav.editorial-mobile-nav :is(.mobile-nav-row, .mobile-nav-link, .mobile-nav-consultation) {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  color: #fff;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
}

nav.editorial-mobile-nav :is(.mobile-nav-row, .mobile-nav-link) {
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

nav.editorial-mobile-nav .mobile-nav-row {
  min-height: clamp(48px, 6.6dvh, 64px);
  padding: 7px 2px;
  border-bottom: 1px solid var(--menu-gold);
  font: 400 clamp(24px, 6.35vw, 32px)/1.25 'Playfair Display', Georgia, serif;
}

nav.editorial-mobile-nav a.mobile-nav-row[aria-current="page"] {
  justify-content: flex-start;
  gap: 14px;
}

.editorial-mobile-nav a.mobile-nav-row[aria-current="page"]::after {
  content: '';
  width: 3.1rem;
  height: 2px;
  background: var(--menu-gold);
}

.editorial-mobile-nav button svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: 12px;
}

.editorial-mobile-nav button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.editorial-mobile-nav .mobile-nav-children {
  margin: 8px 0 12px 4px;
  padding-left: 16px;
  border-left: 1px solid #9c8f7c;
}

.editorial-mobile-nav .mobile-nav-children[hidden] { display: none; }

nav.editorial-mobile-nav .mobile-nav-link {
  min-height: 44px;
  padding: 6px 2px;
  font: 400 16px/1.45 'DM Sans', Arial, sans-serif;
}

.editorial-mobile-nav .mobile-nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.editorial-mobile-nav .mobile-nav-specialty-group p {
  margin: 0;
  padding: 12px 2px 2px;
  color: var(--menu-gold);
  font: 600 14px/1.4 'DM Sans', Arial, sans-serif;
}

nav.editorial-mobile-nav .mobile-nav-consultation {
  flex: none;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  margin-top: 16px;
  padding: 10px clamp(14px, 4.8vw, 20px);
  background: #4a7591;
  border: 0;
  border-radius: 10px;
  font: 600 clamp(16px, 4.25vw, 19px)/1.35 'DM Sans', Arial, sans-serif;
}

.editorial-mobile-nav .mobile-nav-consultation svg {
  flex: none;
  width: 24px;
  height: 24px;
}

nav.editorial-mobile-nav :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

@media (hover: hover) {
  nav.editorial-mobile-nav :is(.mobile-nav-row, .mobile-nav-link):hover { color: var(--menu-gold); }
  nav.editorial-mobile-nav .mobile-nav-consultation:hover { background: #33576f; }
}

/* Full-screen menu used by pages with the standard site header. */
body > dialog#mobileMenu.site-mobile-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(21, 32, 46, .96);
  color: #fff;
}
#mobileMenu.site-mobile-dialog:not([open]) { display: none; }
#mobileMenu.site-mobile-dialog[open] { display: flex; flex-direction: column; }
#mobileMenu.site-mobile-dialog::backdrop {
  background: transparent;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
#mobileMenu.site-mobile-dialog > nav { flex: 1; min-height: 0; }
.site-mobile-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: calc(clamp(88px, 13.5dvh, 114px) + 6px + env(safe-area-inset-top));
  padding: calc(30px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
}
.site-mobile-masthead img {
  width: min(190px, 68%);
  height: auto;
}
dialog#mobileMenu .site-mobile-masthead #menuClose {
  position: static;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 -9px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.site-mobile-masthead #menuClose svg { width: 24px; height: 24px; }
.site-mobile-masthead #menuClose:focus-visible { outline: 2px solid #e0c59a; outline-offset: 1px; }
html:has(.site-mobile-dialog[open]),
body:has(.site-mobile-dialog[open]) { overflow: hidden; }
@media (min-width: 768px) and (max-width: 1279.98px) {
  /* Standard pages scale the body to 85% on tablets. The guide scales only its header wrapper. */
  body:not(:has(> .site-chrome)) > #mobileMenu.site-mobile-dialog { zoom: 1.1764705882; }
}
