/* SalaryCalcPro — calculator & enhancement styles */

body { font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif; }
h1, h2, h3, h4, h5, h6, .logo, .stat-value, .section-title {
  font-family: 'Lexend', system-ui, sans-serif;
}

/* ── Calculator UI ── */
.calc-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 6px 32px rgba(79, 70, 229, 0.06);
}
.calc-card h2:first-child, .calc-card h3:first-child { margin-top: 0; }
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.calc-input-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.calc-input-group { flex: 1; min-width: 200px; }
.calc-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-family: 'Lexend', sans-serif;
}
.calc-input-group input,
.calc-input-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 12px;
  outline: none;
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.calc-input-group input:focus,
.calc-input-group select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.calc-btn {
  padding: 14px 32px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Lexend', sans-serif;
  white-space: nowrap;
}
.calc-btn:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,70,229,0.3); }
.calc-btn:active { transform: translateY(0); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.result-box {
  background: #f8fafc;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.result-box.highlight {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.25);
}
.result-box .result-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 6px;
  font-family: 'Lexend', sans-serif;
}
.result-box .result-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-family: 'Lexend', sans-serif;
}
.result-box.highlight .result-label { color: rgba(255,255,255,0.85); }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 998;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta svg { width: 18px; height: 18px; }
.sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(79, 70, 229, 0.45); }
@media (max-width: 640px) {
  .sticky-cta { bottom: 16px; right: 16px; left: 16px; justify-content: center; padding: 12px 18px; }
}

/* Bar & chart visuals */
.bar-visual {
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bar-visual div {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  min-width: 30px;
  font-family: 'Lexend', sans-serif;
}

.growth-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 220px;
  padding: 16px 0 30px;
  margin: 24px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.growth-bar {
  flex: 1;
  min-width: 24px;
  max-width: 60px;
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: opacity 0.2s;
}
.growth-bar:hover { opacity: 0.85; }
.growth-bar .bar-invested { background: #a5b4fc; }
.growth-bar .bar-earnings { background: #4f46e5; border-radius: 6px 6px 0 0; }
.growth-bar .bar-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-dim, #64748b);
  white-space: nowrap;
  font-weight: 600;
}
.growth-bar .bar-tooltip {
  display: none;
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.growth-bar:hover .bar-tooltip { display: block; }
.legend { display: flex; gap: 24px; justify-content: center; margin: 12px 0 24px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-dim, #64748b); }
.legend span::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 4px; }
.legend .leg-invested::before { background: #a5b4fc; }
.legend .leg-earnings::before { background: #4f46e5; }

/* Bracket & amortization tables */
.bracket-table, .year-table, .amort-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.bracket-table th, .bracket-table td,
.year-table th, .year-table td,
.amort-table th, .amort-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.bracket-table th, .year-table th, .amort-table th {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  color: var(--text-dim, #64748b);
  font-family: 'Lexend', sans-serif;
}
.bracket-table .active-row {
  background: rgba(79, 70, 229, 0.06);
  font-weight: 600;
}
.bracket-table .active-row td:first-child { color: #4f46e5; font-weight: 700; }
.year-table td, .amort-table td { text-align: right; }
.year-table td:first-child, .year-table th:first-child,
.amort-table td:first-child, .amort-table th:first-child { text-align: center; }
.year-table tbody tr:hover, .amort-table tbody tr:hover { background: rgba(79, 70, 229, 0.03); }
.table-scroll {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
}

/* Budget cards */
.budget-card {
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  border: 2px solid transparent;
}
.budget-card .budget-icon {
  width: 44px; height: 44px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.budget-card .budget-icon svg { width: 24px; height: 24px; }
.budget-card .budget-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; font-family: 'Lexend', sans-serif; }
.budget-card .budget-pct { font-size: 14px; font-weight: 500; opacity: 0.7; margin-bottom: 10px; }
.budget-card .budget-amount { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; font-family: 'Lexend', sans-serif; }
.needs-card { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.needs-card .budget-icon { background: #dbeafe; color: #1e40af; }
.wants-card { background: #fdf4ff; border-color: #e9d5ff; color: #7c3aed; }
.wants-card .budget-icon { background: #f3e8ff; color: #7c3aed; }
.savings-card { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
.savings-card .budget-icon { background: #d1fae5; color: #059669; }

.section-divider { border: none; border-top: 2px solid var(--border, #e5e7eb); margin: 32px 0; }
#results-section { display: none; }
#results-section.visible { display: block; }

/* Hub content */
.hub-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.hub-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hub-hero p.lead {
  font-size: 18px;
  color: var(--text-dim, #64748b);
  max-width: 640px;
  margin: 0 auto 0;
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.tool-card {
  display: block;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.25s;
}
.tool-card:hover {
  border-color: #818cf8;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.1);
}
.tool-card .tc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tool-card .tc-icon svg { width: 22px; height: 22px; }
.tool-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tool-card p {
  font-size: 14px;
  color: var(--text-dim, #64748b);
  line-height: 1.55;
  margin: 0;
}

/* Related block */
.related-block {
  background: #f8fafc;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  padding: 28px;
  margin: 40px 0;
}
.related-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.related-grid a {
  display: block;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text, #0f172a);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.related-grid a:hover {
  border-color: #818cf8;
  color: #4f46e5;
  transform: translateY(-1px);
}

/* FAQ */
.faq-list { margin: 24px 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 50px;
  font-family: 'Lexend', sans-serif;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border, #e5e7eb); }
.faq-item .faq-body {
  padding: 18px 22px;
  color: var(--text-dim, #475569);
  line-height: 1.65;
  font-size: 15px;
}

/* Fix header emoji logos sitewide */
header .logo-icon {
  width: 34px; height: 34px;
  background: #4f46e5;
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
header .logo-icon svg { width: 20px; height: 20px; }
header nav a.active { color: #4f46e5; }

/* Container narrow width */
.container.narrow { max-width: 980px; margin: 0 auto; padding: 40px 24px; }

/* Article body prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; margin-bottom: 16px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.prose p { line-height: 1.75; margin-bottom: 18px; color: #334155; font-size: 17px; }
.prose ul, .prose ol { margin: 16px 0 20px; padding-left: 22px; color: #334155; line-height: 1.75; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose strong { color: #0f172a; }
.prose blockquote {
  border-left: 4px solid #4f46e5;
  background: #f8fafc;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}
.prose a { color: #4f46e5; text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.prose th { background: #f8fafc; font-weight: 700; font-family: 'Lexend', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }

/* Hero for article */
.article-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  padding: 60px 0 40px;
}
.article-hero .breadcrumbs { margin-bottom: 20px; }
.article-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 820px;
}
.article-hero .lead {
  font-size: 18px;
  color: #475569;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 760px;
}

/* Hero image */
.hero-image {
  border-radius: 16px;
  overflow: hidden;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  aspect-ratio: 16/9;
  background: #e5e7eb;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bracket 2026 reference block */
.ref-brackets { background: #f8fafc; border-radius: 14px; padding: 20px; margin: 20px 0; font-size: 14px; }
.ref-brackets table { font-size: 13px; }

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  text-align: center;
  margin: 48px 0;
}
.newsletter h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.newsletter p { opacity: 0.9; margin-bottom: 20px; font-size: 16px; }
.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  font-family: inherit;
}
.newsletter button {
  padding: 14px 28px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  border: none;
  font-weight: 700;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.newsletter button:hover { background: #1e293b; transform: translateY(-1px); }
.newsletter .ok { margin-top: 12px; font-size: 14px; opacity: 0.9; }

/* Breadcrumbs (finer) */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: #4f46e5; }
.breadcrumbs .sep { opacity: 0.4; }

/* Article tags */
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.article-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
}

/* State tax visual */
.state-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  color: #fff;
  padding: 60px 0 48px;
}
.state-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.state-hero .lead { color: rgba(255,255,255,0.92); font-size: 18px; max-width: 780px; line-height: 1.6; }
.state-hero .breadcrumbs { color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.state-hero .breadcrumbs a { color: rgba(255,255,255,0.85); }
.state-hero .breadcrumbs a:hover { color: #fff; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.qf-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}
.qf-card .qf-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; font-weight: 600; margin-bottom: 6px; font-family: 'Lexend', sans-serif; }
.qf-card .qf-value { font-size: 22px; font-weight: 900; color: #0f172a; font-family: 'Lexend', sans-serif; letter-spacing: -0.01em; }

/* CTA button inline */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #4f46e5;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  font-family: 'Lexend', sans-serif;
  text-decoration: none !important;
  transition: all 0.2s;
}
.cta-btn:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,70,229,0.3); }
.cta-btn.outline {
  background: transparent;
  color: #4f46e5 !important;
  border: 2px solid #4f46e5;
}
.cta-btn.outline:hover { background: #4f46e5; color: #fff !important; }

/* Callout */
.callout {
  background: #eef2ff;
  border-left: 4px solid #4f46e5;
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: #1e293b;
}
.callout strong { color: #0f172a; display: block; margin-bottom: 4px; font-family: 'Lexend', sans-serif; }

/* Mobile nav */
header nav.mobile-open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--border, #e5e7eb); box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 4px !important; z-index: 100; }
header nav.mobile-open a { padding: 10px 14px; border-radius: 8px; }
header nav.mobile-open a:hover { background: #f1f5f9; }

@media (max-width: 860px) {
  header nav { display: none; gap: 8px; }
  .menu-toggle { display: flex !important; }
}
