/* ============================================================
   SalarySketch.com — Production CSS
   Mobile-first · Core Web Vitals optimized · 2026
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --blue:        #1a56db;
  --blue-dark:   #1641b0;
  --blue-light:  #eff6ff;
  --blue-mid:    #dbeafe;
  --green:       #16a34a;
  --green-light: #f0fdf4;
  --red:         #dc2626;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;
  --white:       #ffffff;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow-xs:   0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 10px 36px rgba(0,0,0,.11);
  --t:           .18s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ── Skip Nav ───────────────────────────────────────────────── */
.skip-nav {
  position: absolute; left: -9999px; top: 16px;
  background: var(--blue); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  z-index: 9999; font-weight: 600;
}
.skip-nav:focus { left: 16px; }

/* ── Container ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700;
  color: var(--gray-900); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-text strong { color: var(--blue); }

.main-nav ul { display: none; list-style: none; gap: 2px; }
.main-nav ul li a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--gray-600); transition: all var(--t); display: block;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}
@media (min-width: 768px) {
  .main-nav ul { display: flex; }
  .nav-toggle  { display: none !important; }
}
.nav-toggle {
  background: none; border: none; padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-700); border-radius: 2px; transition: all var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .main-nav {
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px; box-shadow: var(--shadow);
}
.nav-open .main-nav ul { display: flex; flex-direction: column; }
.nav-open .main-nav ul li a { padding: 12px 16px; }

/* ════════════════════════════════════════════════════════════
   STATE SELECTOR BANNER  ← ported from reference file
   ════════════════════════════════════════════════════════════ */
.state-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.state-selector-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.state-selector-wrap label {
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
  color: var(--gray-700);
}
.state-select {
  padding: 8px 36px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: var(--font);
  color: var(--gray-900);
  background-color: var(--gray-50);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: border-color var(--t), box-shadow var(--t);
}
.state-select:hover {
  border-color: var(--blue);
}
.state-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

/* ════════════════════════════════════════════════════════════
   HOME PAGE  (hh- prefix)
   ════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────── */
.hh-hero {
  background: var(--blue);
  color: var(--white);
  padding: 52px 0 56px;
  text-align: center;
}
.hh-hero-inner { max-width: 640px; margin: 0 auto; }
.hh-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px; margin-bottom: 18px;
}
.hh-hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.025em; margin-bottom: 14px; color: var(--white);
}
.hh-hero p {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  opacity: .88; max-width: 540px; margin: 0 auto 28px; line-height: 1.7;
}
.hh-hero-btns {
  display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: center;
}
.hh-btn-white {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; background: var(--white); color: var(--blue);
  font-weight: 700; font-size: .9rem; border-radius: var(--radius-sm);
  text-decoration: none; border: 2px solid transparent; transition: all var(--t);
}
.hh-btn-white:hover {
  background: #f0f7ff; transform: translateY(-1px);
  box-shadow: var(--shadow); text-decoration: none;
}
.hh-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; background: transparent; color: var(--white);
  font-weight: 600; font-size: .9rem; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.38); text-decoration: none; transition: all var(--t);
}
.hh-btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.65); text-decoration: none;
}
.hh-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; background: var(--blue); color: var(--white);
  font-weight: 700; font-size: .9rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: all var(--t);
}
.hh-btn-primary:hover {
  background: var(--blue-dark); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,219,.3); text-decoration: none;
}
.hh-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; background: var(--white); color: var(--blue);
  font-weight: 600; font-size: .875rem; border-radius: var(--radius-sm);
  border: 2px solid var(--blue); text-decoration: none; transition: all var(--t);
}
.hh-btn-outline:hover {
  background: var(--blue); color: var(--white);
  text-decoration: none; transform: translateY(-1px);
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.hh-stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.hh-stats-inner {
  display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.hh-stat {
  display: flex; flex-direction: column;
  align-items: center; padding: 18px 32px; text-align: center;
}
.hh-stat strong {
  font-size: 1.7rem; font-weight: 800; color: var(--blue);
  line-height: 1; display: block; margin-bottom: 3px;
}
.hh-stat span { font-size: .76rem; color: var(--gray-500); font-weight: 500; white-space: nowrap; }
.hh-stat-sep { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }
@media (max-width: 600px) {
  .hh-stats-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .hh-stat { padding: 14px; }
  .hh-stat-sep { display: none; }
}

/* ── Ad Slots ───────────────────────────────────────────────── */
.hh-ad-slot {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0; text-align: center;
}
.hh-ad-slot--bottom { background: var(--white); padding: 28px 0; }
.hh-ad-label {
  font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--gray-400); margin-bottom: 8px;
}

/* ── Section Shared ─────────────────────────────────────────── */
.hh-section { padding: 64px 0; background: var(--white); }
.hh-section--gray { background: var(--gray-50); }
.hh-section-head {
  text-align: center; max-width: 540px; margin: 0 auto 40px;
}
.hh-section-head h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 800; color: var(--gray-900);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.hh-section-head p { font-size: .97rem; color: var(--gray-500); line-height: 1.65; }

/* ── Calculator Cards ───────────────────────────────────────── */
.hh-calc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px)  { .hh-calc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .hh-calc-grid { grid-template-columns: repeat(3, 1fr); } }

.hh-calc-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  text-decoration: none; color: var(--gray-900); transition: all var(--t);
}
.hh-calc-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(26,86,219,.1);
  transform: translateY(-3px); text-decoration: none;
}
.hh-calc-card h3 {
  font-size: .97rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 7px;
}
.hh-calc-card p {
  font-size: .855rem; color: var(--gray-500);
  line-height: 1.6; flex: 1; margin: 0;
}
.hh-calc-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.hh-calc-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.hh-calc-tag {
  font-size: .68rem; font-weight: 700;
  background: var(--blue-light); color: var(--blue);
  padding: 3px 9px; border-radius: 100px; white-space: nowrap;
}
.hh-calc-cta {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .8rem; font-weight: 700; color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════
   ★ BLUE "Browse by State" CARD — every text element white ★
   ═══════════════════════════════════════════════════════════ */
.hh-calc-card--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.hh-calc-card--blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 6px 24px rgba(26,86,219,.3);
  color: var(--white);
  text-decoration: none;
}
.hh-calc-card--blue h3 { color: var(--white) !important; }
.hh-calc-card--blue p  { color: rgba(255,255,255,.88) !important; }
.hh-calc-icon--blue    { background: rgba(255,255,255,.18) !important; }
.hh-calc-tag--white {
  background: rgba(255,255,255,.2);
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,.3);
}
.hh-calc-cta--white {
  color: rgba(255,255,255,.85) !important;
  border-top-color: rgba(255,255,255,.18) !important;
}

/* ── Two Column ─────────────────────────────────────────────── */
.hh-two-col { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hh-two-col { grid-template-columns: 1fr 1fr; } }
.hh-eyebrow-dark {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); margin-bottom: 10px;
}
.hh-two-col-text h2 {
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  font-weight: 800; color: var(--gray-900);
  letter-spacing: -.02em; line-height: 1.22; margin-bottom: 14px;
}
.hh-two-col-text p {
  font-size: .93rem; color: var(--gray-500);
  line-height: 1.75; margin-bottom: 12px;
}
.hh-check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.hh-check-list li {
  font-size: .88rem; color: var(--gray-600);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.hh-check-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--blue); font-weight: 700;
}
.hh-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hh-info-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
}
.hh-info-label {
  font-size: .68rem; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px;
}
.hh-info-value {
  font-size: 1.45rem; font-weight: 800;
  color: var(--blue); line-height: 1; margin-bottom: 5px;
}
.hh-info-note { font-size: .68rem; color: var(--gray-400); }

/* ── States Grid (home page pills) ─────────────────────────── */
.hh-states-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
@media (min-width: 480px)  { .hh-states-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px)  { .hh-states-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px)  { .hh-states-grid { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 1100px) { .hh-states-grid { grid-template-columns: repeat(9, 1fr); } }
.hh-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 9px 5px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .72rem; font-weight: 600; color: var(--gray-700);
  text-align: center; text-decoration: none; line-height: 1.3; transition: all var(--t);
}
.hh-state:hover {
  background: var(--blue); color: var(--white);
  border-color: var(--blue); text-decoration: none; transform: translateY(-1px);
}
.hh-state em {
  font-style: normal; font-size: .6rem; font-weight: 500;
  color: var(--green); margin-top: 2px;
}
.hh-state:hover em { color: rgba(255,255,255,.75); }
.hh-state--notax {
  background: var(--green-light); border-color: #bbf7d0; color: #166534;
}
.hh-state--notax:hover {
  background: var(--green); border-color: var(--green); color: var(--white);
}
.hh-states-cta { text-align: center; margin-top: 28px; }

/* ── How It Works ───────────────────────────────────────────── */
.hh-steps {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: center; gap: 14px; max-width: 880px; margin: 0 auto;
}
.hh-step {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  text-align: center; flex: 1; min-width: 190px; max-width: 250px;
}
.hh-step-n {
  width: 42px; height: 42px; background: var(--blue); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 800; margin: 0 auto 13px;
}
.hh-step h3 { font-size: .93rem; font-weight: 700; color: var(--gray-900); margin-bottom: 7px; }
.hh-step p  { font-size: .83rem; color: var(--gray-500); line-height: 1.6; }
.hh-step-arrow { font-size: 1.4rem; color: var(--gray-300); align-self: center; flex-shrink: 0; }
@media (max-width: 640px) { .hh-step-arrow { display: none; } .hh-step { max-width: 100%; } }

/* ── SEO Prose ──────────────────────────────────────────────── */
.hh-prose { max-width: 760px; margin: 0 auto; }
.hh-prose h2 {
  font-size: 1.35rem; font-weight: 800; color: var(--gray-900);
  margin-bottom: 12px; letter-spacing: -.015em;
}
.hh-prose h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin: 22px 0 8px; }
.hh-prose p  { font-size: .93rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 12px; }

/* ════════════════════════════════════════════════════════════
   CALCULATOR PAGES
   ════════════════════════════════════════════════════════════ */

/* ── Page Header ────────────────────────────────────────────── */
.calc-page-header {
  background: var(--blue);
  color: var(--white);
  padding: 28px 0 32px;
  border-bottom: 3px solid var(--blue-dark);
}
.calc-page-header .container { max-width: 900px; }
.calc-page-header h1 {
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em; margin-bottom: 6px; color: var(--white);
}
.calc-page-header p {
  font-size: .93rem; opacity: .88; max-width: 580px; line-height: 1.6;
}
.calc-page-breadcrumb {
  font-size: .75rem; opacity: .72; margin-bottom: 8px;
}
.calc-page-breadcrumb a { color: var(--white); opacity: .8; }
.calc-page-breadcrumb a:hover { opacity: 1; text-decoration: none; }
.calc-page-breadcrumb span { margin: 0 5px; opacity: .5; }

/* ── Layout ─────────────────────────────────────────────────── */
.calc-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; padding: 28px 0 48px;
}
@media (min-width: 1024px) { .calc-layout { grid-template-columns: 1fr 320px; } }

.calc-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
.calc-header {
  background: var(--gray-900);
  color: var(--white); padding: 18px 22px;
}
.calc-header h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 3px; }
.calc-header p  { font-size: .82rem; opacity: .8; }
.calc-body { padding: 22px; }

/* ── Form Elements ──────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: .8rem; font-weight: 600; color: var(--gray-700); }
.form-field input,
.form-field select {
  padding: 10px 13px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: .925rem;
  font-family: inherit; background: var(--white);
  color: var(--gray-900);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-field .help-text { font-size: .73rem; color: var(--text-muted); }
.input-prefix { position: relative; }
.input-prefix span {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); font-size: .925rem; pointer-events: none;
}
.input-prefix input { padding-left: 26px; }

.btn-calculate {
  width: 100%; padding: 13px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  font-size: .97rem; font-weight: 700;
  transition: all var(--t); margin-top: 8px;
}
.btn-calculate:hover {
  background: var(--blue-dark); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,219,.28);
}

/* ── Results Panel ──────────────────────────────────────────── */
.results-panel { margin-top: 22px; display: none; }
.results-panel.visible { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.results-summary {
  background: var(--gray-900); color: var(--white);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px; text-align: center;
}
.results-summary .take-home-label {
  font-size: .76rem; opacity: .65;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px;
}
.results-summary .take-home-amount {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: #4ade80;
}
.results-summary .take-home-period { font-size: .82rem; opacity: .7; margin-top: 4px; }

.breakdown-table { width: 100%; border-collapse: collapse; font-size: .855rem; }
.breakdown-table tr { border-bottom: 1px solid var(--gray-100); }
.breakdown-table tr:last-child { border-bottom: none; }
.breakdown-table td { padding: 9px 0; }
.breakdown-table td:last-child { text-align: right; font-weight: 500; }
.breakdown-table .total-row td { font-size: .97rem; font-weight: 800; padding-top: 12px; }
.deduction-row { color: var(--red); }

.results-tabs {
  display: flex; border-bottom: 2px solid var(--border); margin-bottom: 14px;
}
.results-tab {
  padding: 9px 18px; background: none; border: none;
  font-size: .855rem; font-weight: 600; color: var(--gray-500);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--t);
}
.results-tab.active,
.results-tab:hover { color: var(--blue); border-bottom-color: var(--blue); }

.effective-rate-bar { margin-top: 14px; }
.effective-rate-bar .bar-label {
  display: flex; justify-content: space-between;
  font-size: .76rem; color: var(--text-muted); margin-bottom: 5px;
}
.bar-track { height: 7px; background: var(--gray-200); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue); border-radius: 100px; transition: width .7s ease; }

/* ── Bookmark Button ────────────────────────────────────────── */
.bookmark-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 16px;
  background: var(--white); border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm); color: var(--blue);
  font-weight: 600; font-size: .82rem;
  transition: all var(--t); width: 100%; margin-top: 10px;
  line-height: 1;
}
.bookmark-btn:hover,
.bookmark-btn.bookmarked { background: var(--blue); color: var(--white); }
.bookmark-btn svg,
.bookmark-btn img {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.calc-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 18px; box-shadow: var(--shadow-xs);
}
.sidebar-card h3 {
  font-size: .9rem; font-weight: 700; color: var(--gray-800);
  margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border);
}
.related-calc-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.related-calc-list li a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; background: var(--gray-50);
  border-radius: var(--radius-sm); font-size: .84rem;
  font-weight: 500; color: var(--gray-700); text-decoration: none; transition: all var(--t);
}
.related-calc-list li a:hover { background: var(--blue-light); color: var(--blue); }

/* ════════════════════════════════════════════════════════════
   STATE SELECTION — CALCULATOR PAGES
   ════════════════════════════════════════════════════════════ */
.states-section { padding: 36px 0; }
.states-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; }

.states-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
@media (min-width: 480px)  { .states-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .states-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .states-grid { grid-template-columns: repeat(6, 1fr); } }

.state-link {
  display: block;
  padding: 10px 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
  transition: all var(--t);
}
.state-link:hover {
  background: var(--blue);
  color: var(--white) !important;
  border-color: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(26,86,219,.18);
}
.state-link.no-tax {
  background: var(--green-light);
  border-color: #bbf7d0;
  color: #14532d;
}
.state-link.no-tax:hover {
  background: var(--green);
  color: var(--white) !important;
  border-color: var(--green);
}
.state-link small {
  display: block;
  font-size: .62rem;
  font-weight: 500;
  opacity: .7;
  margin-top: 2px;
}
.state-link:hover small { opacity: .85; color: rgba(255,255,255,.85); }

/* ════════════════════════════════════════════════════════════
   STATE-LIST PAGE  (sl- prefix, /states route)
   ════════════════════════════════════════════════════════════ */
.sl-tab-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.sl-tab-btn {
  padding: .5rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all var(--t);
  white-space: nowrap;
}
.sl-tab-btn:hover {
  border-color: var(--blue); color: var(--blue); background: var(--blue-light);
}
.sl-tab-btn.sl-tab-active {
  background: var(--blue); border-color: var(--blue);
  color: var(--white); box-shadow: 0 2px 10px rgba(26,86,219,.25);
}

.sl-alpha-section { margin-bottom: 2rem; }
.sl-alpha-letter {
  font-size: .88rem; font-weight: 700; color: var(--blue);
  border-bottom: 2px solid var(--blue-mid);
  padding-bottom: .35rem; margin-bottom: .8rem; letter-spacing: .04em;
}
.sl-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: .7rem;
}
.sl-state-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none;
  color: var(--gray-900); transition: all var(--t);
}
.sl-state-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(26,86,219,.12);
  transform: translateY(-2px); background: #fafcff; text-decoration: none;
}
.sl-card-inner { display: flex; flex-direction: column; gap: .2rem; }
.sl-state-name { font-weight: 600; font-size: .88rem; color: var(--gray-900); }
.sl-badge {
  font-size: .68rem; font-weight: 600;
  padding: .1rem .4rem; border-radius: 100px;
  display: inline-block; width: fit-content;
}
.sl-badge.sl-has-tax  { background: #ede9fe; color: #5b21b6; }
.sl-badge.sl-no-tax   { background: var(--green-light); color: #14532d; }
.sl-arrow {
  color: var(--blue); font-size: .95rem;
  flex-shrink: 0; margin-left: .5rem;
  transition: transform var(--t);
}
.sl-state-card:hover .sl-arrow { transform: translateX(3px); }
@media (max-width: 480px) {
  .sl-states-grid { grid-template-columns: 1fr 1fr; }
  .sl-state-card  { padding: .7rem .75rem; }
  .sl-tab-btn     { font-size: .8rem; padding: .4rem .85rem; }
}

/* ════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════ */
.faq-section { padding: 36px 0; }
.faq-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 9px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; font-size: .9rem;
  font-weight: 600; color: var(--gray-800); text-align: left; cursor: pointer; gap: 12px;
}
.faq-question:hover { background: var(--gray-50); }
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .95rem; font-weight: 700; transition: transform var(--t);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 18px; max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: .875rem; color: var(--gray-600); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 320px; padding: 0 18px 16px; }

/* ════════════════════════════════════════════════════════════
   CONTENT SECTIONS
   ════════════════════════════════════════════════════════════ */
.content-section {
  padding: 36px 0; background: var(--white); border-top: 1px solid var(--border);
}
.content-section h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.content-section h3 { font-size: 1.05rem; font-weight: 700; margin: 18px 0 8px; }
.content-section p  { color: var(--gray-600); line-height: 1.8; margin-bottom: 11px; font-size: .92rem; }
.content-section ul { padding-left: 20px; color: var(--gray-600); font-size: .92rem; }
.content-section ul li { margin-bottom: 5px; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   TAX TABLE
   ════════════════════════════════════════════════════════════ */
.tax-table-wrap { overflow-x: auto; margin: 14px 0; }
.tax-table { width: 100%; border-collapse: collapse; font-size: .855rem; }
.tax-table th {
  background: var(--blue); color: var(--white);
  padding: 9px 13px; text-align: left; font-weight: 600;
}
.tax-table td { padding: 9px 13px; border-bottom: 1px solid var(--gray-100); }
.tax-table tr:nth-child(even) td { background: var(--gray-50); }
.tax-table .rate-cell { font-weight: 700; color: var(--blue); }

/* ════════════════════════════════════════════════════════════
   TRUST SECTION
   ════════════════════════════════════════════════════════════ */
.trust-section { background: var(--gray-900); color: var(--white); padding: 36px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { text-align: center; }
.trust-item .trust-number { font-size: 1.9rem; font-weight: 800; color: #93c5fd; }
.trust-item .trust-label  { font-size: .84rem; color: var(--gray-400); margin-top: 3px; }

/* ════════════════════════════════════════════════════════════
   AD SLOTS (global)
   ════════════════════════════════════════════════════════════ */
.ad-banner     { padding: 8px 0; text-align: center; }
.ad-in-article { margin: 22px 0; text-align: center; }
.ad-anchor {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 8px; text-align: center; z-index: 50;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer { background: var(--gray-900); color: #cbd5e1; padding: 52px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { color: var(--white); margin-bottom: 10px; }
.footer-brand .logo strong { color: #93c5fd; }
.footer-tagline    { font-size: .855rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 9px; }
.footer-disclaimer { font-size: .73rem; color: var(--gray-500); line-height: 1.6; }
.footer-links h3 {
  font-size: .78rem; font-weight: 700; color: #e2e8f0;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links ul li a {
  font-size: .855rem; color: var(--gray-400);
  text-decoration: none; transition: color var(--t);
}
.footer-links ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 18px 0;
  display: flex; flex-direction: column; gap: 5px;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: .78rem; color: var(--gray-500); }
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--gray-400); }

/* ════════════════════════════════════════════════════════════
   STATIC PAGES
   ════════════════════════════════════════════════════════════ */
.static-page { max-width: 800px; margin: 36px auto; padding: 0 16px 56px; }
.static-page h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 7px; }
.static-page .updated { font-size: .855rem; color: var(--text-muted); margin-bottom: 26px; }
.static-page h2 { font-size: 1.25rem; font-weight: 700; margin: 26px 0 9px; color: var(--gray-800); }
.static-page p,
.static-page li { color: var(--gray-600); line-height: 1.8; font-size: .92rem; }
.static-page ul,
.static-page ol { padding-left: 20px; margin: 10px 0; }
.static-page li { margin-bottom: 5px; }
.contact-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-top: 24px; box-shadow: var(--shadow);
}
.contact-form .form-field { margin-bottom: 14px; }
.contact-form label {
  font-weight: 600; font-size: .855rem;
  color: var(--gray-700); display: block; margin-bottom: 5px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .92rem; color: var(--gray-900);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.btn-submit {
  padding: 12px 26px; background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  font-size: .97rem; font-weight: 700; width: 100%; transition: all var(--t);
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .88rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ════════════════════════════════════════════════════════════
   404 / ERROR
   ════════════════════════════════════════════════════════════ */
.error-page { text-align: center; padding: 80px 16px; }
.error-page .error-code { font-size: 5.5rem; font-weight: 900; color: var(--gray-200); line-height: 1; }
.error-page h1 { font-size: 1.65rem; font-weight: 700; color: var(--gray-800); margin: 14px 0 7px; }
.error-page p  { color: var(--text-muted); margin-bottom: 22px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; background: var(--blue); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 700;
  text-decoration: none; transition: all var(--t);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; }

/* ════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════ */
.breadcrumb { padding: 11px 0; font-size: .78rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 5px; }

/* ════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.calculating { opacity: .6; pointer-events: none; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.loading-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ════════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .ad-banner,
  .ad-anchor, .bookmark-btn, .hh-ad-slot { display: none !important; }
  .calc-card { box-shadow: none; border: 1px solid #000; }
}
