/* =========================================================
   App-style header + footer chrome for light content pages.
   Matches the bt-app design system in app-redesign.css so the
   whole site shares one navigation and footer.
   Self-contained: safe to load alongside older page CSS.
   ========================================================= */

.bt-site-header,
.bt-site-header *,
.bt-footer,
.bt-footer * {
  box-sizing: border-box;
}

.bt-site-header,
.bt-footer {
  font-family: Aptos, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bt-site-header .bt-shell,
.bt-footer .bt-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.bt-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(7, 15, 32, .94);
  backdrop-filter: blur(18px);
}

.bt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.bt-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f8fafc;
  text-decoration: none;
}

.bt-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(74, 144, 247, .26);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(74, 144, 247, .18), rgba(52, 211, 153, .08));
  color: #4a90f7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.bt-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.bt-brand strong,
.bt-brand span span,
.bt-footer-links a {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.bt-brand span span {
  display: block;
  margin-top: 2px;
  color: #6b7f99;
  font-size: 12px;
  font-weight: 650;
}

.bt-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.bt-nav-links a,
.bt-mobile-menu a {
  border-radius: 999px;
  color: #a0b3cc;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  /* Older page CSS (global-fixes.css) sets overflow-wrap:anywhere on all
     links, which breaks nav labels letter-by-letter. Force whole labels. */
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.bt-nav-links a {
  flex: 0 0 auto;
  padding: 9px 10px;
}

.bt-nav-links a:hover,
.bt-nav-links a[aria-current="page"],
.bt-mobile-menu a:hover,
.bt-mobile-menu a[aria-current="page"] {
  color: #f8fafc;
  background: rgba(255, 255, 255, .055);
}

.bt-nav-links .bt-nav-cta,
.bt-mobile-menu .bt-nav-cta {
  color: #fff;
  background: linear-gradient(135deg, #4a90f7, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.bt-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #1f3356;
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: #f8fafc;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.bt-mobile-menu {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 16px;
}

.bt-mobile-menu[data-open="true"] {
  display: grid;
}

.bt-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .035);
}

.bt-site-header a:focus-visible,
.bt-footer a:focus-visible,
.bt-menu-toggle:focus-visible {
  outline: 3px solid rgba(74, 144, 247, .72);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */

.bt-footer {
  margin-top: clamp(42px, 7vw, 86px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0a1424;
  color: #a0b3cc;
}

.bt-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 52px) 0;
}

.bt-footer p {
  margin: 12px 0 0;
  color: #a0b3cc;
  font-size: 14px;
}

.bt-footer p a {
  color: #a0b3cc;
}

.bt-footer p a:hover {
  color: #f8fafc;
}

.bt-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bt-footer-links a {
  color: #a0b3cc;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.bt-footer-links a:hover {
  color: #f8fafc;
}

.bt-bottom {
  padding: 16px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #6b7f99;
  font-size: 12px;
}

/* ---------- Mobile ---------- */

/* Collapse to the mobile menu before the full nav row runs out of
   room, so labels never shrink or break mid-word on smaller desktops. */
@media (max-width: 1240px) {
  .bt-nav-links {
    display: none;
  }

  .bt-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 980px) {
  .bt-footer-inner {
    grid-template-columns: 1fr;
  }

  .bt-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
