@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
html,
body {
  margin: 0px;
  height: 100%;
}
/* a blue color as a generic focus style */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}
a {
  text-decoration: none;
}

/* =============================================
   Tooltip (CSS-only) — used for the BSL abbreviation
   ============================================= */
.bsl-tooltip {
  position: relative;
  display: inline;
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bsl-tooltip .bsl-tooltip-text {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  padding: 10px 14px;
  background-color: #1a1a2e;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  white-space: normal;
  z-index: 1000;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.bsl-tooltip .bsl-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a2e;
}

.bsl-tooltip:hover .bsl-tooltip-text,
.bsl-tooltip:focus .bsl-tooltip-text,
.bsl-tooltip:focus-within .bsl-tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* =============================================
   Mobile hamburger nav (CSS-only, no JS)
   ============================================= */
.nav-toggle-checkbox {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-style-text-primary, #1a1a1a);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: dropdown wrapper is invisible — children flow normally */
.nav-dropdown {
  display: contents;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-style-border-minimal, #e5e5e5);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .nav-toggle-checkbox:checked ~ .nav-dropdown {
    display: flex;
  }

  /* Stack nav links vertically in dropdown */
  .nav-dropdown [role="menubar"],
  .nav-dropdown [role="list"] {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  /* Make CTA buttons full-width in dropdown */
  .nav-dropdown .button-wrapper,
  .nav-dropdown .nav-cta-wrapper {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-style-border-minimal, #e5e5e5);
  }

  /* Reset desktop negative margins (used to fit a 32px-tall horizontal
     wrapper) and stretch CTAs full-width when stacked in the dropdown */
  .nav-dropdown .button-wrapper > a,
  .nav-dropdown .nav-cta-wrapper > a {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}
