/* Shared site nav (asn-*). Used by static landings so they stay 1:1
   with the app / homev5 bar. Tokens are scoped to .asn-header. */

.asn-header {
  --asn-brand: #2563eb;
  --asn-brand-hover: #1d4ed8;
  --asn-surface: #ffffff;
  --asn-foreground: oklch(0.19 0.015 265);
  --asn-secondary: oklch(0.968 0.006 258);
  --asn-border: oklch(0.915 0.008 258);
  --asn-shadow-card: 0 1px 2px oklch(0.19 0.015 265 / 6%), 0 12px 32px -12px oklch(0.19 0.015 265 / 14%);

  position: sticky;
  top: 0;
  z-index: 40;
  /* Kill the global `header { padding: 30-40px 0 }` from landings.css (which
     uses !important at <=992px) — the bar's height comes only from .asn-nav. */
  padding: 0 !important;
  background: color-mix(in oklch, #ffffff 85%, transparent);
  border-bottom: 1px solid #e6e6e6;
  backdrop-filter: blur(8px);
}

.asn-nav {
  display: flex;
  height: 4.5rem;
  align-items: center;
  gap: 1.25rem;
}

/* The nav carries Bootstrap's `.container` in markup so it shares the exact
   same max-width + gutters as the page content below it. Don't override it. */

.asn-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.asn-logo img {
  height: 1.75rem;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}
.asn-logo:hover img { transform: scale(1.03); }
.asn-logo img.asn-logo-white { display: none; }

.asn-links {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.asn-links > a,
.asn-more > button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: color-mix(in oklch, var(--asn-foreground) 88%, transparent);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.asn-links > a:hover,
.asn-more > button:hover {
  background: var(--asn-secondary);
  color: var(--asn-foreground);
}

.asn-badge-new {
  background: cornflowerblue;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 3px;
}

.asn-more { position: relative; }
.asn-more > button svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
}
.asn-more-menu {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.25rem;
  display: none;
}
.asn-more:hover .asn-more-menu { display: block; }
.asn-more-menu > div {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--asn-border);
  background: var(--asn-surface);
  padding: 0.25rem;
  box-shadow: var(--asn-shadow-card);
  min-width: 150px;
}
.asn-more-menu a {
  display: block;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 15px;
  font-weight: 500;
  color: color-mix(in oklch, var(--asn-foreground) 68%, transparent);
  cursor: pointer;
  text-decoration: none;
}
.asn-more-menu a:hover {
  background: var(--asn-secondary);
  color: var(--asn-foreground);
}

.asn-cta {
  display: none;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.asn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  height: 2.4rem;
  padding: 0 1.25rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.asn-btn-brand {
  background: var(--asn-brand);
  color: #fff;
  border: 1px solid var(--asn-brand);
  box-shadow: var(--asn-shadow-card);
}
.asn-btn-brand:hover { background: var(--asn-brand-hover); color: #fff; }
.asn-btn-quiet {
  border: 1px solid var(--asn-border);
  background: #fff;
  color: var(--asn-foreground);
}
.asn-btn-quiet:hover {
  border-color: color-mix(in oklch, var(--asn-brand) 40%, transparent);
  color: var(--asn-brand);
}

.asn-account { position: relative; }
.asn-account > button {
  font-size: 15px;
  font-weight: 500;
  height: 2.4rem;
  padding: 0 1.25rem;
  border-radius: 6px;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  color: var(--asn-foreground);
}
.asn-account > button::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}
.asn-account > button[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}
.asn-account-menu {
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 0.25rem;
  display: none;
  z-index: 50;
}
.asn-account-menu.show { display: block; }
.asn-account-menu > div {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--asn-border);
  background: var(--asn-surface);
  padding: 0.25rem;
  box-shadow: var(--asn-shadow-card);
  min-width: 180px;
}
.asn-account-menu a {
  display: block;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in oklch, var(--asn-foreground) 80%, transparent);
  cursor: pointer;
  text-decoration: none;
}
.asn-account-menu a:hover {
  background: var(--asn-secondary);
  color: var(--asn-foreground);
}

.asn-burger {
  margin-left: auto;
  border-radius: 6px;
  padding: 0.5rem;
  background: none;
  border: 0;
  display: inline-flex;
  cursor: pointer;
  color: var(--asn-foreground);
}
.asn-burger:hover { background: var(--asn-secondary); }
.asn-burger svg { width: 1.25rem; height: 1.25rem; }

.asn-mobile {
  display: none;
  border-top: 1px solid var(--asn-border);
  padding: 0.75rem 1.25rem;
  background: var(--asn-surface);
}
.asn-mobile.open { display: block; }
.asn-mobile a:not(.asn-btn) {
  display: block;
  border-radius: 6px;
  padding: 0.625rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--asn-foreground);
  text-decoration: none;
  cursor: pointer;
}
.asn-mobile a:not(.asn-btn):hover { background: var(--asn-secondary); }
.asn-mobile-row {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}
.asn-mobile-row .asn-btn { flex: 1; }
.asn-mobile-account {
  margin-top: 0.5rem;
  border-top: 1px solid var(--asn-border);
  padding-top: 0.5rem;
}

@media (min-width: 1200px) {
  .asn-links,
  .asn-cta { display: flex; }
  .asn-burger { display: none; }
  .asn-mobile { display: none !important; }
}

.asn-header.asn-dark {
  --asn-dark-bg: #14172a;
  background: var(--asn-dark-bg);
  border-bottom-color: var(--asn-dark-bg);
  backdrop-filter: none;
}
.asn-header.asn-dark.asn-dark-calc {
  --asn-dark-bg: #0f172a;
  /* Same hairline the old landing nav used (slate-700). */
  border-bottom: 1px solid #334155;
}

.asn-header.asn-dark .asn-logo img.asn-logo-color { display: none; }
.asn-header.asn-dark .asn-logo img.asn-logo-white { display: block; }

.asn-header.asn-dark .asn-links > a,
.asn-header.asn-dark .asn-more > button {
  color: rgba(255, 255, 255, 0.90);
}
.asn-header.asn-dark .asn-links > a:hover,
.asn-header.asn-dark .asn-more > button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.asn-header.asn-dark .asn-btn-quiet {
  background: #fff;
  border-color: var(--asn-border);
  color: var(--asn-foreground);
}
.asn-header.asn-dark .asn-btn-quiet:hover {
  border-color: color-mix(in oklch, var(--asn-brand) 40%, transparent);
  color: var(--asn-brand);
}

.asn-header.asn-dark .asn-burger { color: #fff; }
.asn-header.asn-dark .asn-burger:hover { background: rgba(255, 255, 255, 0.1); }

.asn-header.asn-dark .asn-mobile {
  background: var(--asn-dark-bg);
  border-top-color: rgba(255, 255, 255, 0.12);
}
.asn-header.asn-dark .asn-mobile a:not(.asn-btn) { color: rgba(255, 255, 255, 0.90); }
.asn-header.asn-dark .asn-mobile a:not(.asn-btn):hover { background: rgba(255, 255, 255, 0.1); }
.asn-header.asn-dark .asn-mobile-account { border-top-color: rgba(255, 255, 255, 0.12); }
