/* Shared responsive navigation and grouped submenus */
.site-desktop-nav {
  display: none;
}

.site-mobile-nav {
  display: block;
}

@media (min-width: 900px) {
  .site-desktop-nav {
    display: flex;
  }

  .site-mobile-nav {
    display: none;
  }
}

/* Keep the full navigation on laptops and landscape tablets without crowding. */
@media (min-width: 900px) and (max-width: 1199px) {
  .site-desktop-nav {
    column-gap: 0.35rem;
  }

  .site-desktop-nav > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  .site-desktop-nav > a {
    padding-right: 0.125rem;
    padding-left: 0.125rem;
    font-size: 0.8rem;
    letter-spacing: 0.0125em;
  }

  .site-desktop-nav > a svg {
    margin-left: 0.2rem !important;
  }
}

/* Shared compact footer at the same breakpoint as the hamburger navigation */
.site-compact-footer {
  display: none;
}

@media (max-width: 899px) {
  .site-responsive-footer {
    padding: 0 !important;
  }

  .site-responsive-footer > :not(.site-compact-footer) {
    display: none !important;
  }

  .site-compact-footer {
    display: block;
    background: hsl(210, 50%, 28%);
    color: white;
  }

  .site-compact-footer-inner {
    max-width: 24.375rem;
    margin: 0 auto;
    padding: 0.95rem 1.125rem 0.75rem;
    text-align: center;
  }

  .site-compact-footer-name {
    margin: 0;
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.25;
  }

  .site-compact-footer-location {
    margin: 0.25rem 0 0.3rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
  }

  .site-compact-footer-contact {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.74);
    text-underline-offset: 3px;
  }

  .site-compact-footer-rule {
    height: 1px;
    margin: 0.375rem 0 0.3rem;
    background: rgba(255, 255, 255, 0.2);
  }

  .site-compact-footer-credentials {
    min-height: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.875rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
  }

  .site-compact-footer-credential,
  .site-compact-footer-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
  }

  .site-compact-footer-check {
    width: 0.8125rem;
    height: 0.8125rem;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.5625rem;
    line-height: 1;
  }

  .site-compact-footer-verified {
    min-height: 1.75rem;
    margin-top: 0.0625rem;
    padding: 0 0.3rem;
    color: white;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.7);
    text-underline-offset: 3px;
  }

  .site-compact-footer-bottom {
    min-height: 1.5625rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.625rem;
    margin-top: 0.0625rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.35;
  }

  .site-compact-footer-bottom a {
    min-height: 1.5625rem;
    display: inline-flex;
    align-items: center;
    color: white;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.72);
    text-underline-offset: 3px;
  }
}

@media (max-width: 340px) {
  .site-compact-footer-inner {
    padding-right: 0.8125rem;
    padding-left: 0.8125rem;
  }

  .site-compact-footer-credentials {
    column-gap: 0.625rem;
  }
}

.services-dropdown,
.getting-started-dropdown,
.portal-dropdown {
  position: fixed;
  z-index: 9999;
}

.services-dropdown[hidden],
.getting-started-dropdown[hidden],
.portal-dropdown[hidden] {
  display: none;
}

.services-dropdown .nav-drop-panel,
.getting-started-dropdown .nav-drop-panel,
.portal-dropdown .nav-drop-panel {
  animation: servicesDropIn 0.18s ease-out;
  background: hsl(210, 50%, 28%);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 14px 28px -12px hsla(210, 50%, 10%, 0.4);
  min-width: 19rem;
  padding: 0.4rem 0 0.6rem;
  width: 19rem;
}

.getting-started-dropdown .nav-drop-panel {
  min-width: 22rem;
  width: 22rem;
}

.services-dropdown .nav-drop-panel a,
.getting-started-dropdown .nav-drop-panel a,
.portal-dropdown .nav-drop-panel a {
  color: white;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.services-dropdown .nav-drop-panel a:hover,
.services-dropdown .nav-drop-panel a:focus-visible,
.getting-started-dropdown .nav-drop-panel a:hover,
.getting-started-dropdown .nav-drop-panel a:focus-visible,
.portal-dropdown .nav-drop-panel a:hover,
.portal-dropdown .nav-drop-panel a:focus-visible {
  background: hsla(0, 0%, 100%, 0.1);
  color: white;
  outline: none;
}

.services-mobile-links,
.getting-started-mobile-links,
.portal-mobile-links {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  margin: 0.2rem 1rem 0.6rem 1.5rem;
  padding-left: 0.5rem;
}

.services-mobile-links a,
.getting-started-mobile-links a,
.portal-mobile-links a {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.services-mobile-links a:hover,
.services-mobile-links a:focus-visible,
.getting-started-mobile-links a:hover,
.getting-started-mobile-links a:focus-visible,
.portal-mobile-links a:hover,
.portal-mobile-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  outline: none;
}

@keyframes servicesDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .services-dropdown .nav-drop-panel,
  .getting-started-dropdown .nav-drop-panel,
  .portal-dropdown .nav-drop-panel {
    animation: none;
  }

}
