/* Dental: shared alignment for the working page and the layout previews. */
#contact.lo-compact .lo-identity {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#contact.lo-compact .lo-options {
  column-gap: clamp(8px, 2.5vw, 16px);
}

#contact.lo-compact .lo-options span {
  justify-content: center;
  padding-inline: 0;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #services > .wrap,
  #pricing .pricing-wrap,
  #serm > .wrap {
    width: calc(100% - 40px);
  }

  main :is(h2, h3),
  #contact #lead-submit {
    text-wrap: balance;
  }

  #contact #lead-submit {
    gap: 8px;
    padding-inline: 12px;
  }
}

@media (max-width: 340px) {
  #contact.lo-compact .lo-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Use the existing collapsible header at intermediate widths. */
@media (min-width: 761px) and (max-width: 950px) {
  .top-row .nav-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid #52625b;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
  }

  .top-row .nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
  }

  .top-row #global-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    z-index: 5;
    margin: 0;
    padding: 12px;
    max-height: calc(100dvh - 70px);
    overflow: auto;
    background: #0a2225;
    border: 1px solid #324b4d;
  }

  .top-row #global-nav.open {
    display: block;
  }

  .top-row .menu-panel {
    position: static;
    width: 100%;
    box-shadow: none;
  }
}
