/* Shared Navigation Styles - Unique Floating Pill Design */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --nav-height: 60px;
  --nav-top-offset: 16px;
  --nav-clearance-gap: 120px;
  --nav-clearance: calc(var(--nav-height) + var(--nav-top-offset) + var(--nav-clearance-gap));
  --article-header-padding-top: var(--nav-clearance);
  --article-header-padding-bottom: 60px;
  --logo-font-size: 22px;
  --logo-img-height: 50px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

nav[role="navigation"] {
  position: fixed;
  top: var(--nav-top-offset);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1600px;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 100px;
}

/* Prevent content from going under fixed navigation; unified font across all pages */
body {
  padding-top: 0;
  font-family: var(--font-sans);
}

/* Ensure first content block clears the fixed nav on desktop (applies to all page types) */
#nav-placeholder + section,
#nav-placeholder + .hero-section,
#nav-placeholder + header,
#nav-placeholder + main,
#nav-placeholder + .page-content-start,
#nav-placeholder + .container,
#nav-placeholder + .article-breadcrumb-bar {
  padding-top: var(--nav-clearance) !important;
}

/* Extra padding for non-homepage pages (about, privacy, terms, etc.) - hero and content need more space from nav */
body:not(.home) #nav-placeholder + section,
body:not(.home) #nav-placeholder + .hero-section,
body:not(.home) #nav-placeholder + header,
body:not(.home) #nav-placeholder + main,
body:not(.home) #nav-placeholder + .page-content-start,
body:not(.home) #nav-placeholder + .container,
body:not(.home) #nav-placeholder + .article-breadcrumb-bar {
  padding-top: calc(var(--nav-clearance) + 48px) !important;
}

/* Risk profiles index: extra padding from nav */
#nav-placeholder + section.risk-profiles-index-hero {
  padding-top: calc(var(--nav-clearance) + 40px) !important;
}

/* All resources / posts listing pages: extra padding from nav for comfortable reading */
#nav-placeholder + main.resources-posts-page {
  padding-top: calc(var(--nav-clearance) + 40px) !important;
}

.resources-posts-page .blog-header {
  padding-top: 48px !important;
  padding-bottom: 32px !important;
}

.resources-posts-page .blog-content {
  padding-top: 0;
  padding-bottom: 48px;
}

/* Homepage: extend hero up to top so its background fills nav-clearance area (no white strip) */
body.home .hero {
  margin-top: calc(-1 * var(--nav-clearance)) !important;
  padding-top: calc(120px + var(--nav-clearance)) !important;
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo,
a.logo,
a.logo:hover,
a.logo:visited {
  font-size: var(--logo-font-size);
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.logo img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  height: var(--logo-img-height) !important;
  width: auto;
  padding-left: 20px;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(241, 245, 249, 0.7);
  padding: 4px;
  border-radius: 100px;
  margin-left: auto;
}

.nav-links > a {
  color: var(--gray-600, #475569);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: -0.01em;
  padding: 10px 18px;
  border-radius: 100px;
}

.nav-links > a:hover {
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.9);
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600, #475569);
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.nav-dropdown-trigger:hover {
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.9);
}

/* Link-based dropdown trigger (clickable to navigate) */
.nav-dropdown-trigger-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600, #475569);
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.nav-dropdown-trigger-link:hover {
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.nav-dropdown.active .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger-link {
  color: #4f46e5;
  background: white;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.nav-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
}

/* Standard dropdown menu - constrained to viewport */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-dropdown-menu::-webkit-scrollbar {
  display: none;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Right-align last dropdown (Resources) so it isn't cut off on the right */
.nav-links .nav-dropdown:last-child .nav-dropdown-menu {
  left: auto;
  right: 0;
  transform: translateY(-10px) scale(0.98);
}
.nav-links .nav-dropdown:last-child.active .nav-dropdown-menu {
  transform: translateY(0) scale(1);
}

/* Wide dropdown for Blog - constrained to viewport, compact, no visible scrollbar */
.nav-dropdown-wide .nav-dropdown-menu-wide {
  min-width: 360px;
  max-width: 540px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  border-radius: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-dropdown-wide .nav-dropdown-menu-wide::-webkit-scrollbar {
  display: none;
}

/* Right-align Blog (wide) dropdown so it isn't cut off on the right */
.nav-links .nav-dropdown-wide .nav-dropdown-menu-wide {
  left: auto;
  right: 0;
  transform: translateY(-10px) scale(0.98);
}
.nav-links .nav-dropdown-wide.active .nav-dropdown-menu-wide {
  transform: translateY(0) scale(1);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

/* Blog dropdown: single column, latest articles only (no categories) */
.nav-dropdown-blog-single .nav-dropdown-section {
  max-width: 420px;
}
.nav-dropdown-blog-single .nav-dropdown-viewall {
  margin-top: 6px;
  display: inline-block;
}

.nav-dropdown-section {
  padding: 10px 12px;
}

.nav-dropdown-section-secondary {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 0 24px 24px 0;
}

.nav-dropdown-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  padding: 0 4px;
}

/* Featured articles style - compact */
.nav-dropdown-article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.nav-dropdown-article:last-child {
  margin-bottom: 0;
}

.nav-dropdown-article:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(226, 232, 240, 0.8);
  transform: translateX(4px);
}

.nav-dropdown-article-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-dropdown-article-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.nav-dropdown-article:hover .nav-dropdown-article-title {
  color: #4f46e5;
}

.nav-dropdown-article-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.nav-dropdown-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav-dropdown-tag.popular {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.nav-dropdown-tag.new {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
}

.nav-dropdown-tag.important {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4338ca;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

/* Categories grid - compact */
.nav-dropdown-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

/* Resources dropdown: categories at top, then guides */
.nav-dropdown-menu-resources {
  min-width: 300px;
}
.nav-dropdown-resources-categories {
  padding: 10px 12px 6px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 4px;
}
.nav-dropdown-resources-categories .nav-dropdown-section-title {
  margin-bottom: 6px;
}
.nav-dropdown-resources-categories .nav-dropdown-categories {
  margin-bottom: 0;
}
.nav-dropdown-menu-resources > .nav-dropdown-section-title {
  padding: 6px 12px 4px;
  margin-bottom: 2px;
}
.nav-dropdown-menu-resources > .nav-dropdown-item {
  margin: 0;
}

.nav-dropdown-category {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  padding: 5px 10px;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-category:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.nav-dropdown-viewall {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: rgba(79, 70, 229, 0.05);
}

.nav-dropdown-viewall:hover {
  background: rgba(79, 70, 229, 0.1);
}

.nav-dropdown-viewall svg {
  transition: transform 0.2s ease;
}

.nav-dropdown-viewall:hover svg {
  transform: translateX(3px);
}

/* Standard dropdown item - compact */
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.nav-dropdown-item:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(226, 232, 240, 0.8);
  transform: translateX(4px);
}

.nav-dropdown-item:hover .nav-dropdown-title {
  color: #4f46e5;
}

.nav-dropdown-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
  transform: scale(1.05);
}

.nav-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-dropdown-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s ease;
}

.nav-dropdown-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 90px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.08);
  z-index: 9998;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.mobile-nav.active {
  max-height: 70vh;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-section {
  padding: 12px 0;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.mobile-nav-section:first-child {
  padding-top: 16px;
}

.mobile-nav-section:last-child {
  border-bottom: none;
  padding-bottom: 16px;
}

.mobile-nav-title {
  padding: 14px 20px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-nav-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}
.mobile-nav-categories a {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  padding: 6px 12px;
  background: rgba(241, 245, 249, 0.8);
  border-radius: 20px;
  text-decoration: none;
}
.mobile-nav-categories a:hover {
  color: #4f46e5;
  background: rgba(224, 231, 255, 0.6);
}

.mobile-nav a {
  display: block;
  padding: 14px 20px;
  margin: 4px 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(241, 245, 249, 0.8);
  color: var(--primary, #1e40af);
}

.mobile-nav-viewall {
  color: #1e40af !important;
  font-weight: 600 !important;
}

/* ================================================
   Page Content Helper Styles for Floating Nav
   Use these classes on your page sections
   ================================================ */

/* ================================================
   REUSABLE HERO COMPONENT SYSTEM
   ================================================ */

/* Base hero component - Use this class on all hero sections */
.hero {
  padding: 120px 2rem 80px !important;
  margin-top: 0 !important;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.4rem;
  opacity: 0.95;
  max-width: none;
  margin: 0 auto;
  font-weight: 300;
}

/* Alternative gradient variants */
.hero.purple-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* Orange gradient hero for risk profiles */
.hero.orange-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Hero container for alignment */
.hero-container {
  max-width: none;
  margin: 0 auto;
  padding: 0 2rem;
}

/* For pages WITH hero sections (gradient background) */
/* Apply .page-hero to your hero section */
.page-hero {
  padding-top: var(--nav-clearance) !important;
  margin-top: 0 !important;
}

/* For pages WITHOUT hero sections (content pages like privacy, terms) */
/* Apply .page-content-start as the first content container */
.page-content-start {
  padding-top: var(--nav-clearance) !important;
  margin-top: 0 !important;
}

/* Article headers for blog posts - Complete reusable component */
.article-header {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
  text-align: center;
  padding-top: var(--article-header-padding-top) !important;
  padding-bottom: var(--article-header-padding-bottom) !important;
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
}

.article-header .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.article-header h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.article-header h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.article-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.article-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 15px;
  opacity: 0.9;
  flex-wrap: wrap;
}

/* Blog header */
.blog-header {
  padding-top: 60px !important;
  text-align: center;
}

.blog-header p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.article-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Blog layout: left sidebar + main content */
.blog-layout-wrapper {
  display: flex;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 100px;
  align-items: flex-start;
}

.blog-sidebar-holder {
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: calc(var(--nav-height) + var(--nav-top-offset) + 24px);
}

.blog-sidebar {
  width: 260px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  text-decoration: none;
  display: block;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(30, 64, 175, 0.2);
  transition: color 0.2s ease;
}

.blog-sidebar-title:hover {
  color: #2563eb;
}

.blog-sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.blog-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar-list li {
  margin-bottom: 6px;
}

.blog-sidebar-list a {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  display: block;
  transition: all 0.2s ease;
}

.blog-sidebar-list a:hover {
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.9);
}

.blog-sidebar-viewall {
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.08);
  display: inline-block;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.blog-sidebar-viewall:hover {
  background: rgba(79, 70, 229, 0.15);
}

.blog-main-column {
  flex: 1;
  min-width: 0;
}

.blog-layout-wrapper > main {
  flex: 1;
  min-width: 0;
}

.blog-layout-wrapper .blog-header {
  padding-top: 40px !important;
}

/* Hero section adjustments */
.hero-section {
  padding-top: 100px !important;
  margin-top: 0 !important;
}

/* Breadcrumb styling - Desktop */
/* Breadcrumb wrapper (div with gradient background) */
div[style*="background: linear-gradient(135deg, #f8fafc"] {
  padding-top: 100px !important;
  margin-top: 0 !important;
}

/* Breadcrumb navigation */
nav[aria-label="Breadcrumb"] {
  padding: 24px 0 !important;
}

/* Dropdown: fit viewport on medium/small desktop (e.g. 1080x1280, 1280x720) */
@media (max-width: 1280px) {
  .nav-dropdown-wide .nav-dropdown-menu-wide {
    /* Never exceed viewport; cap at 540px when space allows */
    max-width: min(540px, calc(100vw - 48px));
    min-width: 320px;
  }

  .nav-dropdown-menu {
    max-width: calc(100vw - 48px);
  }
}

@media (max-height: 800px) {
  .nav-dropdown-menu,
  .nav-dropdown-wide .nav-dropdown-menu-wide {
    max-height: calc(100vh - 100px);
  }
}

/* Mobile Responsive */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .blog-layout-wrapper {
    flex-direction: column;
    padding-top: 80px;
    gap: 24px;
  }

  .blog-sidebar-holder {
    display: none !important;
  }

  .blog-sidebar {
    display: none !important;
  }
}

  /* Mobile hero component adjustments */

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  /* Mobile padding adjustments - override nav clearance (smaller than desktop to avoid large white gap) */
  #nav-placeholder + section,
  #nav-placeholder + .hero-section,
  #nav-placeholder + header,
  #nav-placeholder + main,
  #nav-placeholder + .page-content-start,
  #nav-placeholder + .container,
  #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 80px !important;
  }

  /* Extra space for non-homepage on tablet */
  body:not(.home) #nav-placeholder + section,
  body:not(.home) #nav-placeholder + .hero-section,
  body:not(.home) #nav-placeholder + header,
  body:not(.home) #nav-placeholder + main,
  body:not(.home) #nav-placeholder + .page-content-start,
  body:not(.home) #nav-placeholder + .container,
  body:not(.home) #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 120px !important;
  }

  #nav-placeholder + main.resources-posts-page {
    padding-top: 96px !important;
  }

  #nav-placeholder + section.risk-profiles-index-hero {
    padding-top: 96px !important;
  }

  body.home .hero {
    margin-top: -80px !important;
    padding-top: 120px !important;
  }

  .resources-posts-page .blog-header {
    padding-top: 40px !important;
    padding-bottom: 28px !important;
  }

  .page-content-start {
    padding-top: 80px !important;
  }

  .page-hero,
  .blog-header,
  .hero-section,
  .article-breadcrumb-bar {
    padding-top: 80px !important;
  }

  body:not(.home) .hero-section,
  body:not(.home) .page-content-start {
    padding-top: 120px !important;
  }

  .article-header {
    padding-top: 50px !important;
    padding-bottom: 40px !important;
  }

  .article-header .container {
    padding: 0 16px;
  }

  .article-header h1,
  .article-header h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .article-category {
    font-size: 11px;
    padding: 5px 12px;
  }

  .article-meta {
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  #nav-placeholder + section,
  #nav-placeholder + .hero-section,
  #nav-placeholder + header,
  #nav-placeholder + main,
  #nav-placeholder + .page-content-start,
  #nav-placeholder + .container,
  #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 75px !important;
  }

  body:not(.home) #nav-placeholder + section,
  body:not(.home) #nav-placeholder + .hero-section,
  body:not(.home) #nav-placeholder + header,
  body:not(.home) #nav-placeholder + main,
  body:not(.home) #nav-placeholder + .page-content-start,
  body:not(.home) #nav-placeholder + .container,
  body:not(.home) #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 110px !important;
  }

  #nav-placeholder + main.resources-posts-page {
    padding-top: 90px !important;
  }

  #nav-placeholder + section.risk-profiles-index-hero {
    padding-top: 90px !important;
  }

  body.home .hero {
    margin-top: -75px !important;
    padding-top: 115px !important;
  }

  .resources-posts-page .blog-header {
    padding-top: 36px !important;
    padding-bottom: 24px !important;
  }

  .page-content-start {
    padding-top: 75px !important;
  }

  .page-hero,
  .blog-header,
  .hero-section,
  .article-breadcrumb-bar {
    padding-top: 75px !important;
  }

  body:not(.home) .hero-section,
  body:not(.home) .page-content-start {
    padding-top: 110px !important;
  }

  .article-header {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }

  .article-header h1,
  .article-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  #nav-placeholder + section,
  #nav-placeholder + .hero-section,
  #nav-placeholder + header,
  #nav-placeholder + main,
  #nav-placeholder + .page-content-start,
  #nav-placeholder + .container,
  #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 70px !important;
  }

  body:not(.home) #nav-placeholder + section,
  body:not(.home) #nav-placeholder + .hero-section,
  body:not(.home) #nav-placeholder + header,
  body:not(.home) #nav-placeholder + main,
  body:not(.home) #nav-placeholder + .page-content-start,
  body:not(.home) #nav-placeholder + .container,
  body:not(.home) #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 100px !important;
  }

  #nav-placeholder + main.resources-posts-page {
    padding-top: 84px !important;
  }

  #nav-placeholder + section.risk-profiles-index-hero {
    padding-top: 84px !important;
  }

  body.home .hero {
    margin-top: -70px !important;
    padding-top: 110px !important;
  }

  .resources-posts-page .blog-header {
    padding-top: 32px !important;
    padding-bottom: 20px !important;
  }

  .page-content-start {
    padding-top: 70px !important;
  }

  .page-hero,
  .blog-header,
  .hero-section,
  .article-breadcrumb-bar {
    padding-top: 70px !important;
  }

  body:not(.home) .hero-section,
  body:not(.home) .page-content-start {
    padding-top: 100px !important;
  }

  .article-header {
    padding-top: 45px !important;
    padding-bottom: 35px !important;
  }

  .article-header h1,
  .article-header h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  #nav-placeholder + section,
  #nav-placeholder + .hero-section,
  #nav-placeholder + header,
  #nav-placeholder + main,
  #nav-placeholder + .page-content-start,
  #nav-placeholder + .container,
  #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 65px !important;
  }

  body:not(.home) #nav-placeholder + section,
  body:not(.home) #nav-placeholder + .hero-section,
  body:not(.home) #nav-placeholder + header,
  body:not(.home) #nav-placeholder + main,
  body:not(.home) #nav-placeholder + .page-content-start,
  body:not(.home) #nav-placeholder + .container,
  body:not(.home) #nav-placeholder + .article-breadcrumb-bar {
    padding-top: 90px !important;
  }

  #nav-placeholder + main.resources-posts-page {
    padding-top: 78px !important;
  }

  #nav-placeholder + section.risk-profiles-index-hero {
    padding-top: 78px !important;
  }

  body.home .hero {
    margin-top: -65px !important;
    padding-top: 105px !important;
  }

  .resources-posts-page .blog-header {
    padding-top: 28px !important;
    padding-bottom: 20px !important;
  }

  .page-content-start {
    padding-top: 65px !important;
  }

  .page-hero,
  .blog-header,
  .hero-section,
  .article-breadcrumb-bar {
    padding-top: 65px !important;
  }

  body:not(.home) .hero-section,
  body:not(.home) .page-content-start {
    padding-top: 90px !important;
  }

  .article-header {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }

  .article-header .container {
    padding: 0 12px;
  }

  .article-header h1,
  .article-header h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .article-meta {
    font-size: 13px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  nav[role="navigation"] {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: none;
    border-radius: 50px;
    height: 56px;
  }

  body {
    padding-top: 0;
  }

  .nav-container {
    padding: 8px 12px 8px 16px;
    height: 100%;
    gap: 12px;
  }

  :root {
    --logo-font-size: 22px;
    --logo-img-height: 48px;
  }

  .logo {
    font-size: 22px;
  }

  .logo img {
    height: 48px !important;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-right: 4px;
  }

  /* Breadcrumb wrapper mobile spacing */
  div[style*="background: linear-gradient(135deg, #f8fafc"] {
    padding-top: 80px !important;
  }

  /* Breadcrumb mobile spacing */
  nav[aria-label="Breadcrumb"] {
    padding: 16px 0 !important;
  }

  /* Mobile Navigation */
  .mobile-nav {
    position: fixed;
    top: 74px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.15),
      0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 9998;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .mobile-nav.active {
    max-height: 75vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-section {
    padding: 12px 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  }

  .mobile-nav-section:first-child {
    padding-top: 16px;
  }

  .mobile-nav-section:last-child {
    border-bottom: none;
    padding-bottom: 16px;
  }

  .mobile-nav-title {
    padding: 14px 20px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-nav a {
    display: block;
    padding: 14px 20px;
    margin: 4px 8px;
    color: var(--gray-700, #334155);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  .mobile-nav a:hover {
    background: rgba(241, 245, 249, 0.8);
    color: var(--primary, #667eea);
  }
}

/* Shared footer */
.site-footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.site-footer__inner {
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 2.5rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.site-footer__logo img {
  height: 36px;
  width: auto;
}

.site-footer__tagline {
  margin-top: 0.75rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 420px;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer__title {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.site-footer__col a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.site-footer__col a:hover {
  color: #60a5fa;
}

.site-footer__social {
  max-width: none;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__social-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin: 0;
  flex-shrink: 0;
}

.site-footer__social .site-footer__social-icons,
.site-footer__social .social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer .social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.site-footer .social-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.site-footer .social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.site-footer .social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(96, 165, 250, 0.35);
}

.site-footer .social-icon.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.45);
}

.site-footer .social-icon.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border-color: #bc1888;
  box-shadow: 0 10px 24px rgba(220, 39, 67, 0.45);
}

.site-footer .social-icon.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 10px 24px rgba(0, 119, 181, 0.45);
}

.site-footer .social-icon.youtube:hover {
  background: #ff0000;
}

.site-footer .social-icon.reddit:hover {
  background: #ff4500;
  border-color: #ff4500;
  box-shadow: 0 10px 24px rgba(255, 69, 0, 0.45);
}

.site-footer .social-icon.tiktok:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 700px) {
  .site-footer__social {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer__social .site-footer__social-icons,
  .site-footer__social .social-icons {
    justify-content: center;
  }
}

.site-footer__legal {
  max-width: none;
  margin: 2rem auto 0;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer__legal a {
  color: #cbd5f5;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: #60a5fa;
}

.site-footer__seo {
  max-width: none;
  margin: 1rem auto 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-footer__links {
    grid-template-columns: 1fr;
  }
}

/* Stocktwits-inspired homepage hero */
.home-page .hero {
  background: linear-gradient(
    135deg,
    #1e293b 0%,
    #1e3a8a 20%,
    #1e40af 40%,
    #2563eb 60%,
    #1e40af 80%,
    #1e293b 100%
  ) !important;
  color: #ffffff !important;
  padding: 120px 0 50px !important;
  border-bottom: none;
}

.home-page .hero .container {
  max-width: none !important;
  display: grid !important;
  grid-template-columns: 1fr 1.5fr !important;
  gap: 40px !important;
  align-items: center !important;
}

.home-page .hero-content {
  max-width: none !important;
  padding-right: 0 !important;
}

.home-page .hero-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}

.home-page .hero h1,
.home-page .hero h1 .h1-line {
  color: #ffffff !important;
  letter-spacing: -0.02em;
  font-size: 3.25rem !important;
  line-height: 1.05 !important;
}

.home-page .hero .subtitle,
.home-page .hero .subtitle a {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.15rem !important;
}

.home-page .above-fold-benefits span {
  color: rgba(255, 255, 255, 0.9) !important;
}

.home-page .hero-cta-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35) !important;
}

.home-page .secondary-cta {
  color: rgba(255, 255, 255, 0.9) !important;
}

.home-page .hero-trust-signals span {
  color: rgba(255, 255, 255, 0.8) !important;
}

.home-page .hero-dashboard-preview {
  gap: 20px !important;
}

.home-page .hero-dashboard-card,
.home-page .hero-upload-widget {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

.home-page .hero-upload-widget button {
  background: #0f172a !important;
  color: #ffffff !important;
}

@media (max-width: 960px) {
  .home-page .hero .container {
    grid-template-columns: 1fr !important;
  }
}

/* Homepage hero: smaller text and more side padding on mobile */
@media (max-width: 768px) {
  .home-page .hero .container {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }

  .home-page .hero h1,
  .home-page .hero h1 .h1-line {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  .home-page .hero .subtitle,
  .home-page .hero .subtitle a {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .home-page .hero-cta-btn {
    font-size: 14px !important;
    padding: 12px 20px !important;
  }
}
