/* FinStudyHub top nav — shared by every finstudyhub.com page (home, product pages,
 * guides, glossary, privacy). Markup is static HTML in each page so crawlers see the
 * links; nav.js-free: dropdown + mobile menu are <details> elements. */
.fnav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}
.fnav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 20px;
}
.fnav-brand {
  font-weight: 800; font-size: 1.06rem; color: #08306b !important;
  letter-spacing: -0.02em; text-decoration: none !important; white-space: nowrap;
}
.fnav-brand .dot { color: #ff7a18; }
.fnav-links {
  display: flex; align-items: center; gap: 20px; margin-left: auto;
  font-size: 0.94rem; font-weight: 600;
}
.fnav-links > a, .fnav-dd > summary {
  color: #475569 !important; text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.fnav-links > a:hover, .fnav-dd > summary:hover, .fnav-dd[open] > summary { color: #0b3d91 !important; }
.fnav details > summary { list-style: none; }
.fnav details > summary::-webkit-details-marker { display: none; }
.fnav-dd { position: relative; }
.fnav-dd > summary::after {
  content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
  transition: transform 0.15s;
}
.fnav-dd[open] > summary::after { transform: rotate(180deg); }
.fnav-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 300px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14); padding: 8px;
}
.fnav-menu a, .fnav-panel a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #0f172a !important; text-decoration: none !important;
}
.fnav-menu a:hover, .fnav-panel a:hover { background: #f1f5f9; }
.fnav-menu a b, .fnav-panel a b { display: block; font-size: 0.93rem; font-weight: 700; }
.fnav-menu a span, .fnav-panel a span { display: block; font-size: 0.8rem; color: #64748b; font-weight: 500; }
.fnav-menu hr, .fnav-panel hr { border: 0; border-top: 1px solid #e2e8f0; margin: 6px 4px; }
.fnav-cta {
  background: #0b3d91; color: #fff !important; padding: 8px 16px; border-radius: 8px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none !important; white-space: nowrap;
}
.fnav-cta:hover { background: #08306b; }
.fnav-mobile { display: none; }
.fnav-mobile > summary {
  font-size: 1.25rem; line-height: 1; padding: 7px 11px; border: 1px solid #e2e8f0;
  border-radius: 8px; cursor: pointer; color: #0f172a; background: #fff;
}
.fnav-mobile[open] > summary { background: #f1f5f9; }
.fnav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
  padding: 6px 12px 14px; max-height: calc(100vh - 64px); overflow-y: auto;
}
.fnav-panel .fnav-h {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #94a3b8; margin: 12px 12px 2px;
}
@media (max-width: 880px) {
  .fnav-inner { gap: 10px; padding: 10px 14px; }
  .fnav-links { display: none; }
  .fnav-cta { margin-left: auto; }
  .fnav-mobile { display: block; }
}
