/* ==========================================================================
   MEDICARE SS NAVIGATOR - OFFICIAL 2026 STYLESHEET
   Senior Accessibility & WCAG AAA Standards (Ref: SSA.gov & Medicare.gov)
   ========================================================================== */

:root {
  /* Brand Navy Palette */
  --navy-dark:          #080e1a;
  --navy-header:        #0d192d;
  --navy-card:          #132238;
  --navy-subtle:        #1a2d4a;
  
  /* Primary & Accent Blues */
  --blue-primary:       #1d4ed8;
  --blue-vibrant:       #2563eb;
  --blue-light:         #eff6ff;
  --blue-glow:          rgba(37, 99, 235, 0.15);
  
  --cyan-accent:        #0284c7;
  --cyan-light:         #e0f2fe;
  
  /* High-Visibility Amber */
  --amber:              #f59e0b;
  --amber-hover:        #d97706;
  --amber-soft:         #fef3c7;
  --amber-glow:         rgba(245, 158, 11, 0.25);
  
  /* Status Colors */
  --green:              #047857;
  --green-soft:         #ecfdf5;
  --green-border:       #a7f3d0;
  
  --red:                #b91c1c;
  --red-soft:           #fef2f2;
  --red-border:         #fecaca;
  
  /* Backgrounds & Neutral Borders */
  --slate-bg:           #f8fafc;
  --white:              #ffffff;
  --slate-border:       #cbd5e1;
  --slate-border-hover: #94a3b8;
  
  /* WCAG AAA High Contrast Body Typography */
  --text-primary:       #0a1120;
  --text-body:          #1e293b;
  --text-muted:         #475569;
  --text-light:         #94a3b8;
  
  /* Elevation, Radius & Spacing */
  --card-radius:        16px;
  --input-radius:       10px;
  --shadow-sm:          0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md:          0 8px 24px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg:          0 16px 40px -4px rgba(15, 23, 42, 0.14);
  --section-gap:        5rem;
}

/* ==========================================================================
   1. UNIVERSAL BOX SIZING & ROOT VIEWPORT RESTRAINTS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* 100% Base Default Scale */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--slate-bg);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   2. TOP TRUST BAR & ACCESSIBILITY FONT CONTROLLER
   ========================================================================== */
.topbar {
  background: linear-gradient(90deg, #091322 0%, #0f1d35 50%, #091322 100%);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar strong {
  color: var(--amber);
  font-weight: 800;
}
.topbar-pill {
  background: rgba(37, 99, 235, 0.3);
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.font-size-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
.font-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.font-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.font-btn-active {
  background: var(--amber) !important;
  color: #0f172a !important;
}

/* ==========================================================================
   3. STICKY NAVIGATION BAR (ADAPTIVE & RESILIENT)
   ========================================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--slate-border);
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-wrap {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #0d192d 0%, #1e3a8a 100%);
  border: 2px solid #38bdf8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-brand:hover .brand-logo-wrap { transform: scale(1.05); }
.brand-text-col { display: flex; flex-direction: column; }
.brand-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-title span { color: var(--amber-hover); }
.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.nav-links a:hover {
  background: #f1f5f9;
  color: var(--blue-primary);
}
.nav-cta {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hover) 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.mobile-menu-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--slate-border);
  border-radius: 8px;
  color: var(--navy-dark);
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mobile-menu-btn:hover { background: #e2e8f0; }

/* Breadcrumbs & Trust Strips */
.breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-border);
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--blue-primary); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

.disclaimer-strip {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   4. HEROES & PAGE HEADERS
   ========================================================================== */
.hero {
  background: 
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #09121f 0%, #0d1e38 55%, #0a1424 100%);
  padding: 5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
  color: var(--white);
  border-bottom: 4px solid var(--blue-vibrant);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-badge, .page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.hero h1, .page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero h1 em, .page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #38bdf8 0%, #93c5fd 50%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead, .page-hero-lead {
  color: #e2e8f0;
  font-size: 1.18rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-image-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

/* Feature Banners */
.feature-banner {
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-banner:hover {
  box-shadow: var(--shadow-md);
}
.feature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
  max-height: 320px;
  display: block;
}
.feature-banner-content {
  padding: 1.5rem 2rem 1.5rem 0.5rem;
}
.feature-banner-badges {
  display: flex;
  gap: 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-primary);
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .feature-banner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature-banner-content {
    padding: 1.5rem 1.75rem 2rem;
  }
  .feature-banner img {
    max-height: 240px;
  }
}

.page-hero {
  background: linear-gradient(135deg, #09121f 0%, #0d1e38 60%, #0a1424 100%);
  color: #ffffff;
  padding: 4rem 2rem 3.5rem;
  border-bottom: 4px solid var(--blue-vibrant);
}
.page-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}
.page-hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Trust Strip */
.trust-strip {
  background: #ffffff;
  border-bottom: 2px solid var(--slate-border);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-sm);
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
}
.trust-icon { font-size: 1.2rem; }

/* ==========================================================================
   5. CONTAINER WIDTH CONSTRAINTS & LAYOUTS
   ========================================================================== */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
  box-sizing: border-box;
}
.article-body { min-width: 0; }

.section {
  padding: var(--section-gap) 0;
}
.section + .section {
  border-top: 1px solid var(--slate-border);
}
.section-label-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  background: var(--blue-light);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 760px;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

/* Article Typography */
h2.section-h {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 2.75rem 0 1rem;
  line-height: 1.3;
}
h3.sub-h {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 2rem 0 0.75rem;
}
p.body-p {
  color: var(--text-body);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
ul.body-list {
  margin: 1.25rem 0 1.75rem 2rem;
  color: var(--text-body);
  font-size: 1.08rem;
  line-height: 1.85;
}
ul.body-list li { margin-bottom: 0.65rem; }

/* Callout Boxes */
.callout-box {
  background: #eff6ff;
  border-left: 5px solid var(--blue-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  color: var(--navy-dark);
}
.callout-box.amber {
  background: #fefce8;
  border-left-color: var(--amber);
}
.callout-box.green {
  background: #ecfdf5;
  border-left-color: var(--green);
}
.callout-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.callout-box p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ==========================================================================
   6. GUIDE CARDS & INTERACTIVE TOOLS
   ========================================================================== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.guide-card {
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-vibrant);
}
.guide-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.icon-blue { background: var(--blue-light); border: 1px solid #bfdbfe; }
.icon-green { background: var(--green-soft); border: 1px solid var(--green-border); }
.icon-amber { background: var(--amber-soft); border: 1px solid #fde68a; }
.icon-slate { background: #f1f5f9; border: 1px solid var(--slate-border); }
.guide-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.guide-card p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
  flex-grow: 1;
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-top: 1.25rem;
}

/* Tool Shells */
.tool-shell {
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}
.tool-header {
  background: linear-gradient(135deg, #09121f 0%, #1e3a8a 100%);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.tool-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.tool-header p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.tool-tag {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--amber);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tool-body {
  padding: 2.25rem;
}

/* ==========================================================================
   7. ACCESSIBLE FORMS & HORIZONTALLY ALIGNED BASELINES
   ========================================================================== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: start;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy-dark);
  min-height: 3.2em;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}
.form-group input,
.form-group select {
  min-height: 52px;
  height: auto;
  padding: 0.75rem 1.15rem;
  box-sizing: border-box;
  border: 2px solid var(--slate-border);
  border-radius: var(--input-radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  line-height: 1.4;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue-vibrant);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.input-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.45;
  margin-top: 0.5rem;
  min-height: 2.8em;
  display: block;
}

/* ==========================================================================
   8. RESPONSIVE DATA TABLES (NON-COLLAPSING COLUMNS)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: block;
}
table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.02rem;
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: 12px;
  overflow: hidden;
}
.data-table th {
  background: #0d1e38;
  color: #f8fafc;
  font-weight: 800;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #1e3a8a;
  white-space: normal;
  min-width: 140px;
  word-break: break-word;
}
.data-table td {
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--slate-border);
  color: var(--text-body);
  font-weight: 600;
  vertical-align: middle;
  min-width: 140px;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: #f8fafc; }
.data-table tbody tr:hover td { background: #f1f5f9; }
.data-table tbody tr.highlighted td {
  background: #eff6ff !important;
  color: var(--blue-primary);
  font-weight: 800;
  border-top: 2px solid var(--blue-primary);
  border-bottom: 2px solid var(--blue-primary);
}

/* ==========================================================================
   9. BUTTONS & FOCUS-VISIBLE ACCESSIBILITY
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  min-height: 54px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #1e40af 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, var(--blue-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.btn-amber {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hover) 100%);
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}
.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}
.btn-outline {
  background: #ffffff;
  color: var(--navy-dark);
  border: 2px solid var(--slate-border);
}
.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hover) 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Strict Focus-Visible States */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-amber:focus-visible,
.btn-outline:focus-visible,
.btn-cta:focus-visible,
.font-btn:focus-visible,
.nav-links a:focus-visible,
.quiz-opt:focus-visible,
.faq-q:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible,
.sidebar-links a:focus-visible,
.footer-col a:focus-visible {
  outline: 3px solid var(--blue-vibrant) !important;
  outline-offset: 3px !important;
}

/* ==========================================================================
   10. CALCULATOR RESULTS, CARDS & STAT GRIDS
   ========================================================================== */
.result-box {
  background: #f8fafc;
  border: 2px solid var(--slate-border);
  border-radius: 14px;
  padding: 2rem;
  margin-top: 2rem;
}
.result-box.hidden { display: none; }
.result-box.success { border-color: #86efac; background: #f0fdf4; }
.result-box.info { border-color: #93c5fd; background: #eff6ff; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.result-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.35rem 1.15rem;
  border: 2px solid var(--slate-border);
  box-shadow: var(--shadow-sm);
}
.result-item-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-dark);
  display: block;
  line-height: 1.15;
}
.result-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
  line-height: 1.45;
}
.chart-area {
  margin-top: 2.25rem;
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.chart-area.hidden { display: none; }
.chart-area canvas { max-height: 340px; }

/* Deadline Cards */
.deadline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.deadline-card {
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.deadline-card.upcoming { border-color: #86efac; background: #f0fdf4; }
.deadline-card.critical { border-color: #fca5a5; background: #fef2f2; }
.deadline-card.neutral { border-color: #93c5fd; background: #eff6ff; }
.deadline-card-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.deadline-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.65rem;
}
.deadline-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}
.info-banner {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--navy-dark);
  font-size: 0.98rem;
  line-height: 1.7;
}
.info-banner .icon { font-size: 1.4rem; flex-shrink: 0; }

/* Stats Grids */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-card {
  background: #ffffff;
  border: 2px solid var(--slate-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-dark);
  display: block;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Sidebar & Cards */
.sidebar-card {
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.sidebar-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0.75rem; }
.sidebar-links a {
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-links a:hover {
  background: #eff6ff;
  color: var(--blue-primary);
}

.cta-box {
  background: linear-gradient(135deg, #09121f 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}
.cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.cta-box p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* SSDI Quiz */
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-progress {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.quiz-progress-dot {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  flex: 1;
  transition: background 0.3s;
}
.quiz-progress-dot.done { background: var(--blue-primary); }
.quiz-progress-dot.active { background: var(--amber); }
.quiz-q {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.75rem;
}
.quiz-opt {
  padding: 1.15rem 1.5rem;
  min-height: 56px;
  border: 2px solid var(--slate-border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--white);
  transition: all 0.15s ease;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.quiz-opt:hover {
  border-color: var(--blue-primary);
  background: #eff6ff;
  color: var(--blue-primary);
}

/* ==========================================================================
   11. SMOOTH FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.faq-item {
  background: var(--white);
  border: 2px solid var(--slate-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: #94a3b8; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.75rem;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.chevron {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, background 0.2s, color 0.2s;
}
.faq-q.open .chevron {
  transform: rotate(180deg);
  background: #dbeafe;
  color: var(--blue-primary);
}
.faq-ans {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
}
.faq-ans.open {
  max-height: 600px;
  opacity: 1;
  padding: 0 1.75rem 1.6rem 1.75rem;
}

/* ==========================================================================
   12. AUTHORITATIVE & COMPLIANT FOOTER
   ========================================================================== */
footer {
  background: #080f1e;
  padding: 5rem 2rem 3rem;
  color: #94a3b8;
  margin-top: var(--section-gap);
  border-top: 4px solid var(--blue-primary);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2.25rem;
}
.footer-brand { min-width: 260px; }
.footer-brand h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
}
.footer-brand h3 span { color: var(--amber); }
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #94a3b8;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-col a:hover { color: #38bdf8; }
.footer-bottom {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #64748b;
}
.footer-legal-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}
.footer-legal-links a:hover { color: var(--amber); }

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS & MOBILE DRAWER
   ========================================================================== */
@media (max-width: 1150px) {
  nav { padding: 0.6rem 1.25rem; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    border-bottom: 3px solid var(--blue-primary);
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
  }
  .nav-links.active {
    display: flex;
    animation: slideDown 0.2s ease-out;
  }
  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: 8px;
  }
  .nav-cta {
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.85rem 1.25rem !important;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .layout { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 1.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .page-layout { padding: 0 1rem; }
  .tool-body { padding: 1.5rem; }
  .trust-inner { justify-content: center; text-align: center; }
  .topbar { justify-content: center; text-align: center; }
}

@media (max-width: 580px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
