/* Shared responsive navigation for the static marketing pages. */
.brand .tm {
  margin-left: .16em;
  color: #8db8ff;
  font-size: .23em;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: baseline;
}

footer .footer-legal {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 80%;
  line-height: 1.55;
}

footer .footer-legal .company {
  margin: 0;
}

footer .footer-trademark {
  display: block;
  margin-top: .2rem;
}

/* The service-area note (owner 2026-08-28) — the very bottom line of every footer. */
footer .footer-states {
  display: block;
  margin-top: .6rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0 0 1rem;
}

footer .footer-links a {
  margin: 0;
}

.mobile-nav-toggle,
.mobile-nav-panel {
  display: none;
}

@media (max-width: 1060px) {
  .nav {
    position: relative;
    z-index: 20;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, .16);
  }

  .mobile-nav-toggle:focus-visible {
    outline: 3px solid #8db8ff;
    outline-offset: 3px;
  }

  .mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
  }

  .mobile-nav-toggle .mobile-nav-close-icon,
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-open-icon {
    display: none;
  }

  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-close-icon {
    display: block;
  }

  .mobile-nav-panel:not([hidden]) {
    position: absolute;
    top: calc(100% - .35rem);
    right: 2rem;
    display: flex;
    width: min(22rem, calc(100% - 4rem));
    flex-direction: column;
    gap: .25rem;
    padding: .65rem;
    border: 1px solid rgba(141, 184, 255, .35);
    border-radius: 12px;
    background: #0d2743;
    box-shadow: 0 12px 34px rgba(4, 12, 24, .38);
  }

  .mobile-nav-panel a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: .7rem .85rem;
    border-left: 3px solid transparent;
    border-radius: 8px;
    color: #e6edf7;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
  }

  .mobile-nav-panel a:hover,
  .mobile-nav-panel a:focus-visible {
    background: rgba(255, 255, 255, .10);
    color: #fff;
  }

  .mobile-nav-panel a:focus-visible {
    outline: 2px solid #8db8ff;
    outline-offset: -2px;
  }

  .mobile-nav-panel a[aria-current="page"] {
    border-left-color: #8db8ff;
    background: rgba(141, 184, 255, .16);
    color: #fff;
  }

  .mobile-nav-divider,
  .mobile-nav-actions {
    display: none;
  }
}

@media (max-width: 980px) {
  .mobile-nav-panel:not([hidden]) {
    right: 1.4rem;
    width: min(22rem, calc(100% - 2.8rem));
  }
}

/* At compact widths, move both action links into the menu so the brand and toggle never crowd. */
@media (max-width: 640px) {
  .nav .login,
  .nav > a.btn.solid {
    display: none;
  }

  .mobile-nav-divider {
    display: block;
    margin: .35rem .25rem;
    border-top: 1px solid rgba(141, 184, 255, .28);
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }

  .mobile-nav-panel .mobile-nav-action {
    justify-content: center;
    border-left: 0;
    text-align: center;
  }

  .mobile-nav-panel .mobile-nav-login {
    border: 1px solid rgba(255, 255, 255, .55);
  }

  .mobile-nav-panel .mobile-nav-start {
    background: #2563eb;
    color: #fff;
  }

  .mobile-nav-panel .mobile-nav-start:hover,
  .mobile-nav-panel .mobile-nav-start:focus-visible {
    background: #1d4ed8;
  }
}

@media (max-width: 560px) {
  .mobile-nav-panel:not([hidden]) {
    right: 1.1rem;
    width: calc(100% - 2.2rem);
  }
}

@media (max-width: 380px) {
  .mobile-nav-actions {
    grid-template-columns: 1fr;
  }
}
