/**
 * Shared fixed header for index, premium, and account.
 * Markup: <nav class="dsa-site-nav">…</nav>
 * Load Inter from Google Fonts on the page for typography parity with index.
 */
nav.dsa-site-nav {
  --dsa-toolbar-line: rgba(20, 30, 55, 0.08);
  --dsa-toolbar-line-2: rgba(20, 30, 55, 0.14);
  --dsa-toolbar-text: #1b2238;
  --dsa-toolbar-muted: #5f6781;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--dsa-toolbar-line);
  box-sizing: border-box;
}
nav.dsa-site-nav *,
nav.dsa-site-nav *::before,
nav.dsa-site-nav *::after {
  box-sizing: border-box;
}
nav.dsa-site-nav .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
nav.dsa-site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  min-width: 0;
  gap: 10px;
}
nav.dsa-site-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}
nav.dsa-site-nav a.brand {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
nav.dsa-site-nav .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
nav.dsa-site-nav .logo svg {
  width: 18px;
  height: 18px;
}
nav.dsa-site-nav .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
nav.dsa-site-nav .brand-text b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dsa-toolbar-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
nav.dsa-site-nav .brand-text span {
  font-size: 11px;
  color: var(--dsa-toolbar-muted);
  letter-spacing: 0.02em;
}
nav.dsa-site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
nav.dsa-site-nav .nav-links a {
  font-size: 13.5px;
  color: var(--dsa-toolbar-muted);
  padding: 8px 14px;
  border-radius: 9px;
  transition: 0.2s;
  text-decoration: none;
}
nav.dsa-site-nav .nav-links a:hover {
  color: var(--dsa-toolbar-text);
  background: rgba(255, 255, 255, 0.7);
}
nav.dsa-site-nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
nav.dsa-site-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1;
  font-weight: 600;
  transition: 0.25s;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}
nav.dsa-site-nav a.btn {
  text-decoration: none;
}
nav.dsa-site-nav .btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
nav.dsa-site-nav .btn-ghost {
  color: var(--dsa-toolbar-text);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--dsa-toolbar-line-2);
  backdrop-filter: blur(10px);
}
nav.dsa-site-nav .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 30, 55, 0.2);
  transform: translateY(-1px);
}
nav.dsa-site-nav .btn-ghost[aria-current="page"] {
  cursor: default;
  opacity: 0.95;
}
nav.dsa-site-nav .btn-ghost[aria-current="page"]:hover {
  transform: none;
}
nav.dsa-site-nav .btn-premium {
  background: linear-gradient(135deg, #475569, #1e293b);
  color: #fff;
  /* Match ghost’s 1px border so both buttons share the same border-box height */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
nav.dsa-site-nav .btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.4);
}
nav.dsa-site-nav a.btn-premium[aria-current="page"] {
  cursor: default;
  opacity: 0.96;
}
nav.dsa-site-nav a.btn-premium[aria-current="page"]:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  nav.dsa-site-nav .nav-links {
    display: none;
  }
}
@media (max-width: 540px) {
  nav.dsa-site-nav .container {
    padding: 0 20px;
  }
}

/* Body offset when the marketing toolbar sits above portal-style pages (e.g. account). */
/*
 * Do NOT use padding-top on body: that band uses the default body background (white)
 * while <main> has the portal gradient — looks like a “gap”. Put clearance on <main>
 * so the same background paints under the fixed nav.
 */
body.has-dsa-site-nav-offset {
  margin: 0;
  padding-top: 0;
}
body.has-dsa-site-nav-offset .dsa-portal-page {
  /* .nav-inner 68px + nav 1px border-bottom */
  --dsa-site-nav-clearance: calc(68px + 1px);
  margin-top: 0;
  padding-top: var(--dsa-site-nav-clearance);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 48px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Practice account: center the portal column in the viewport (see account.html <main>). */
body.has-dsa-site-nav-offset .dsa-portal-page--account {
  align-items: center;
  justify-content: center;
  width: 100%;
}
