@media (max-width: 900px) {
  .mobile-menu > summary {
    list-style: none;
  }
  .mobile-menu > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu-panel {
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
}

.services-nav-menu[hidden] {
  display: none;
}

.services-nav:has(.services-nav-menu[hidden]) > a i {
  transform: none;
}

.services-nav[data-scroll-services] .services-nav-menu {
  max-height: var(--services-menu-room);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* Retain the hover bridge when the popup's own overflow becomes scrollable. */
.services-nav[data-scroll-services]:is(:hover, :focus-within):not(:has([hidden]))::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 50%;
  width: 250px;
  height: 16px;
  transform: translateX(50%);
}
/* Skip the repeated header without moving its regular navigation. */
.site-skip-content {
  position: fixed;
  inset-block-start: .5rem;
  inset-inline-start: .75rem;
  transform: translateY(calc(-100% - 1rem));
  z-index: 1000;
  padding: .65rem 1rem;
  color: #091012;
  background: #e4e7eb;
  font-weight: 700;
}
.site-skip-content:focus { transform: none; outline: 2px solid #091012; outline-offset: -4px; }
#page-content { scroll-margin-block-start: 6rem; }
.site-section-chooser { display: none; }
@media (max-width: 720px) {
  main nav:is(.city-subnav, .professional-subnav):has(.site-section-chooser) > a { display: none; }
  .site-section-chooser { display: block; width: 100%; min-width: 0; }
  .site-section-chooser > summary {
    min-height: 44px; align-content: center; padding: .5rem .75rem;
    color: #e4e7eb; cursor: pointer; font-size: .9rem; font-weight: 700;
  }
  .site-section-chooser > div {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 .6rem; padding-inline: .65rem;
  }
  main nav:is(.city-subnav, .professional-subnav) .site-section-chooser a {
    display: flex; align-items: center; min-height: 44px; padding: .55rem .15rem;
    border-block-start: 1px solid #d5d7d740; white-space: normal;
    color: #e4e7eb; font-size: .85rem; line-height: 1.35;
  }
  .site-section-chooser :is(summary,a):focus-visible {
    outline: 2px solid #e4e7eb; outline-offset: -3px;
  }
}
@media (max-width: 720px) {
  .site-section-chooser[open] { background: #091012; }
}
/* On the silver call to action, the arrow uses the same ink as its label. */
main .city-readiness-actions .city-readiness-main a:is(.city-primary, .professional-primary) > span[aria-hidden="true"] {
  color: inherit !important;
}
