/* Codexa Tools - Ultra-Clean, High-Precision Fintech Design System */
/* Zero external font requests: 100% Local, instantaneous, privacy-first font stack */

:root {
  /* Default fallbacks - overwritten dynamically by ThemeService */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-focus: #047857;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #475569;

  --brand-primary: #047857;
  --brand-primary-hover: #065f46;
  --brand-secondary: #0369a1;
  --brand-accent: #065f46;
  --primary: #047857;
  --primary-hover: #065f46;
  --secondary: #0369a1;
  --accent: #065f46;
  --brand-gradient: linear-gradient(135deg, #047857 0%, #0369a1 100%);
  --gradient: linear-gradient(135deg, #047857 0%, #0369a1 100%);

  --hero-pill-bg: #ecfdf5;
  --hero-pill-border: rgba(4, 120, 87, 0.25);
  --hero-pill-text: #065f46;

  --chart-net: #047857;
  --chart-fed: #0284c7;
  --chart-fica: #8b5cf6;
  --chart-state: #d97706;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px var(--border-subtle);
  --shadow-hover: 0 10px 25px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(4, 120, 87, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* 100% Local Native Font Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  scroll-behavior: smooth;
}

#calculatorApp,
#calculator,
#pool-mode,
#quick-tip,
#benchmarks,
#state-laws,
#how-to-tip,
#faq,
.content-section,
section[id],
.calculator-layout {
  scroll-margin-top: 85px;
}

.nav-target-anchor {
  display: block;
  position: relative;
  top: -85px;
  visibility: hidden;
  height: 0;
  width: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

.print-header {
  display: none !important;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-primary-hover);
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sticky Header */
.site-header {
  background: var(--bg-surface);
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header.header-scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-logo span span {
  color: var(--brand-primary);
}

.brand-badge {
  background: var(--hero-pill-bg, #ecfdf5);
  color: var(--hero-pill-text, #065f46);
  border: 1px solid var(--hero-pill-border, rgba(4, 120, 87, 0.25));
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Switcher in Header */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-full);
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-dot:hover {
  transform: scale(1.2);
}

.theme-dot.active {
  transform: scale(1.15);
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.theme-dot[data-theme="emerald"] {
  background: #10b981;
}

.theme-dot[data-theme="indigo"] {
  background: #6366f1;
}

.theme-dot[data-theme="sky"] {
  background: #0ea5e9;
}

.theme-dot[data-theme="light_clean"] {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.country-select-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: transparent !important;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.country-select-badge:hover {
  border-color: var(--brand-primary);
}

/* Breadcrumbs */
.breadcrumb-bar {
  padding: 0.85rem 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breadcrumb-bar a {
  color: var(--text-muted);
}

.breadcrumb-bar a:hover {
  color: var(--text-main);
}

.breadcrumb-bar span {
  margin: 0 0.1rem;
  color: var(--text-dim);
}

/* Hero Section */
.hero-section {
  padding: 2rem 0 1.25rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: var(--hero-pill-bg, #ecfdf5);
  border: 1px solid var(--hero-pill-border, rgba(4, 120, 87, 0.25));
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--hero-pill-text, #065f46);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  padding: 1.25rem 0 3.5rem;
}

/* Informational Content Grid */
.content-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.content-grid>* {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-card h2,
.info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  letter-spacing: -0.015em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-card ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.info-card ul li {
  position: relative;
  display: block;
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: break-word;
}

.info-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.6;
}

.info-card ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.info-card ol li {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Formula Box Component */
.formula-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin: 1rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.92rem;
  color: var(--brand-primary, #10b981);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
}

/* Sticky Sidebar on Desktop */
.sticky-sidebar {
  position: sticky;
  top: 90px;
}

/* About Feature Items */
.about-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature-text {
  min-width: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Tables & Horizontal Scroll Container */
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.45) var(--bg-surface);
}

.data-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.data-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: 4px;
}

.data-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.45);
  border-radius: 4px;
}

.data-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

.table-responsive-wrapper,
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  width: 100%;
}

.table-responsive-wrapper::-webkit-scrollbar,
.data-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-responsive-wrapper::-webkit-scrollbar-track,
.data-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.table-responsive-wrapper::-webkit-scrollbar-thumb,
.data-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.benchmark-table,
.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.benchmark-table th,
.benchmark-table td,
.data-table th,
.data-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-table th,
.data-table th {
  background: var(--bg-card);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.benchmark-table td,
.data-table td {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.benchmark-table tr:last-child td,
.data-table tr:last-child td {
  border-bottom: none;
}

.benchmark-table tr:hover td,
.data-table tr:hover td {
  background: rgba(4, 120, 87, 0.03);
}

.role-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.role-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.role-cell strong {
  color: var(--text-main);
  font-weight: 700;
}

.highlight-stat {
  font-weight: 700;
  color: var(--brand-primary);
  font-feature-settings: "tnum";
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  line-height: 1.3;
  white-space: nowrap;
}

.status-badge.allowed {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.prohibited {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.benchmark-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.callout-icon {
  font-size: 1.35rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.callout-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.callout-text strong {
  color: var(--text-main);
}

/* FAQs */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.faq-item:hover {
  border-color: var(--brand-primary);
}

.faq-header,
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 0.95rem;
  font-family: inherit;
  text-align: left;
  transition: color 0.15s ease;
}

.faq-header:hover,
.faq-question:hover {
  color: var(--brand-primary);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  transition: transform 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-body,
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-body,
.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Content Sections & Headers
   ========================================================================== */
.content-section {
  margin-top: 3.5rem;
  padding-top: 1rem;
}

.section-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--hero-pill-bg, #ecfdf5);
  border: 1px solid var(--hero-pill-border, rgba(4, 120, 87, 0.25));
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hero-pill-text, #065f46);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==========================================================================
   50-State Labor Laws Directory Grid
   ========================================================================== */
.state-directory-section {
  margin-top: 3.5rem;
}

/* State Directory Search & Filter Toolbar */
.state-search-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem auto 2rem;
  max-width: 720px;
  width: 100%;
}

.state-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.state-search-box .search-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.state-search-input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 3rem;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.state-search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

.state-search-clear {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.state-search-clear:hover {
  color: var(--text-main);
}

.state-filter-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--brand-primary);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.state-no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  color: var(--text-muted);
}

/* Related States Grid */
.related-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.related-state-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.related-state-card:hover {
  border-color: var(--brand-primary);
  transform: translateX(3px);
  box-shadow: var(--shadow-card);
}

.related-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.related-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.related-wage {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.related-arrow {
  font-size: 1.1rem;
  color: var(--brand-primary);
  transition: transform 0.15s ease;
}

.related-state-card:hover .related-arrow {
  transform: translateX(4px);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

.state-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.state-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.state-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.state-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.state-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.3;
}

.state-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.state-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.state-stat .stat-label {
  color: var(--text-dim);
}

.state-stat .stat-value {
  font-weight: 600;
  color: var(--text-main);
  font-feature-settings: "tnum";
}

.stat-value.credit-yes {
  color: #10b981;
  font-weight: 700;
}

.stat-value.credit-no {
  color: #ef4444;
  font-weight: 700;
}

.state-card-footer {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s ease;
}

.state-card:hover .state-card-footer {
  color: var(--brand-primary-hover);
}

/* ==========================================================================
   State Programmatic Landing Pages
   ========================================================================== */
.calculator-hero-section.state-hero {
  padding: 2.25rem 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  background: var(--hero-pill-bg, #ecfdf5);
  border: 1px solid var(--hero-pill-border, rgba(4, 120, 87, 0.25));
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hero-pill-text, #065f46);
  margin-bottom: 0.85rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: inline-block;
}

.state-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.state-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.state-stat-pill .label {
  color: var(--text-dim);
  font-weight: 500;
}

.state-stat-pill .val {
  font-weight: 700;
  color: var(--text-main);
}

.state-stat-pill .val.status-allowed {
  color: #10b981;
}

.state-stat-pill .val.status-prohibited {
  color: #ef4444;
}

.state-calc-wrapper {
  margin: 2rem 0;
}

.state-notice-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.state-notice-card .notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.state-notice-card .notice-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.state-notice-card .notice-text strong {
  color: var(--text-main);
}

.state-action-bar {
  text-align: center;
  margin: 1.75rem 0 2.5rem;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

.btn-primary-large:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  color: #ffffff !important;
}

.state-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.detail-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.detail-stat {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.65rem;
  font-feature-settings: "tnum";
}

.detail-stat.text-danger {
  color: #ef4444;
}

.detail-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Editorial Pages (About, Contact, Privacy, Terms)
   ========================================================================== */
.editorial-page-container {
  max-width: 860px;
  margin: 1.5rem auto 3rem;
  width: 100%;
  box-sizing: border-box;
}

.editorial-header {
  margin-bottom: 2rem;
  text-align: left;
}

.editorial-header h1 {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0.65rem;
  line-height: 1.2;
}

.lead-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.editorial-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.editorial-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.85rem 0 0.75rem;
  letter-spacing: -0.015em;
}

.editorial-body h2:first-child {
  margin-top: 0;
}

.editorial-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 1.15rem;
}

.editorial-body ul {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
}

.editorial-body ul li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.editorial-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--brand-primary);
  font-weight: 700;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-top: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.alert-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert-box.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.alert-box .alert-icon {
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Footer - Premium Deep Dark FinTech Theme */
.site-footer {
  background: #080c14 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0 2.5rem;
  margin-top: auto;
  font-size: 0.88rem;
  color: #94a3b8;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(16, 185, 129, 0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
  margin-bottom: 2.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-col {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-col.brand-col,
.footer-col-brand {
  padding-right: 1.5rem;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.88rem;
  color: #94a3b8 !important;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.02em;
}

.footer-badge,
.footer-tax-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  line-height: 1.4;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

.footer-bottom p {
  color: #64748b !important;
  margin: 0;
}

.logo-text {
  font-weight: 700;
  color: inherit;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--brand-primary, #10b981);
}

.footer-col h3,
.footer-col h4 {
  color: #f8fafc !important;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: #94a3b8 !important;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: #94a3b8 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: #38bdf8 !important;
  transform: translateX(3px);
}

/* Footer Salary Conversion Pill Cloud */
.footer-salary-cloud {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-salary-cloud-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.footer-salary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8 !important;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.footer-pill:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399 !important;
  transform: translateY(-1px);
}

.footer-disclaimer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-disclaimer p {
  color: #94a3b8 !important;
  margin: 0;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-copyright {
  color: #94a3b8;
}

.footer-back-to-top {
  color: #38bdf8 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  transition: all 0.15s ease;
}

.footer-back-to-top:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #fff !important;
  transform: translateY(-1px);
}

/* E-E-A-T Verified Trust Banner */
.eeat-trust-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-left: 4px solid var(--brand-primary, #10b981);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin: 0 auto 2rem;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eeat-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-primary, #10b981);
  flex-shrink: 0;
}

.eeat-trust-content {
  flex: 1;
}

.eeat-trust-headline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.2rem;
}

.eeat-badge-pill {
  background: #065f46;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eeat-trust-subtext {
  font-size: 0.82rem;
  color: var(--text-muted, #334155);
  line-height: 1.45;
}

.eeat-methodology-link {
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.eeat-methodology-link:hover {
  color: #065f46;
}

/* Mobile Header Controls & Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-subtle, #f1f5f9);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main, #0f172a);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

html.mobile-nav-open,
body.mobile-nav-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile Drawer & Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  touch-action: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

/* Strict Desktop Guard: Mobile drawer & backdrop never visible on desktop */
@media (min-width: 901px) {

  .mobile-nav-drawer,
  .mobile-nav-backdrop,
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
  }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-nav-brand strong {
  color: var(--brand-primary);
}

.mobile-nav-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.mobile-nav-close:hover {
  color: var(--text-main);
  background: var(--bg-input);
}

.mobile-nav-content {
  padding: 1.25rem;
  flex: 1;
  background: var(--bg-surface);
}

.mobile-nav-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.65rem;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  background: var(--bg-input);
  border-color: var(--brand-primary);
  transform: translateX(3px);
}

.nav-item-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.nav-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.nav-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mobile-theme-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.theme-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.theme-btn-pill::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-btn-pill[data-theme="light_clean"]::before {
  background: #f8fafc;
  border: 1px solid #94a3b8;
}

.theme-btn-pill[data-theme="emerald"]::before {
  background: #10b981;
}

.theme-btn-pill[data-theme="indigo"]::before {
  background: #6366f1;
}

.theme-btn-pill[data-theme="sky"]::before {
  background: #0ea5e9;
}

.theme-btn-pill:hover {
  border-color: var(--brand-primary);
  background: var(--bg-input);
  color: var(--text-main);
}

.theme-btn-pill.active {
  border-color: var(--brand-primary);
  background: var(--bg-input);
  color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
  font-weight: 700;
}

.mobile-nav-trust-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-trust-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-nav-trust-links a:hover {
  color: var(--brand-primary);
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
  }

  .sticky-sidebar,
  .content-grid>div>.info-card[style*="position:sticky"] {
    position: static !important;
    top: auto !important;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem 1.25rem !important;
  }

  .footer-col.brand-col,
  .footer-col-brand {
    grid-column: 1 / -1 !important;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {

  html,
  body {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .desktop-only-badge,
  .desktop-only-theme,
  .country-select-badge,
  .country-lang-dropdown {
    display: none !important;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Mobile Footer Optimization */
  .site-footer {
    padding: 2.25rem 0 1.75rem !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem 1rem !important;
    margin-bottom: 1.75rem !important;
  }

  .footer-col-brand {
    grid-column: 1 / -1 !important;
    padding-right: 0 !important;
    margin-bottom: 0.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-col h3,
  .footer-col h4 {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
    color: #38bdf8 !important;
  }

  .footer-col ul li {
    margin-bottom: 0.5rem;
  }

  .footer-col ul li a {
    font-size: 0.84rem;
    padding: 0.15rem 0;
    line-height: 1.4;
  }

  .footer-salary-cloud {
    padding: 1rem 0;
    margin-bottom: 1.25rem;
  }

  .footer-salary-pills {
    gap: 0.35rem;
  }

  .footer-pill {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }

  .footer-disclaimer {
    font-size: 0.74rem;
    line-height: 1.55;
  }

  .footer-bottom-bar {
    font-size: 0.76rem;
  }

  .eeat-trust-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .info-card {
    padding: 1.15rem 0.85rem !important;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }

  .benchmark-table th,
  .benchmark-table td,
  .data-table th,
  .data-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  .faq-header,
  .faq-question {
    padding: 0.85rem 0.95rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .faq-body,
  .faq-answer {
    padding: 0 0.95rem 0.85rem;
    font-size: 0.85rem;
  }

  .state-search-box {
    min-width: 0 !important;
    width: 100% !important;
  }

  .state-grid,
  .state-directory-section .state-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 0.6rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.25rem;
  }

  .formula-box {
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem;
  }

  .state-grid,
  .state-directory-section .state-grid-container {
    grid-template-columns: 1fr !important;
  }

  .state-directory-section input#state-search-input {
    width: 100% !important;
    box-sizing: border-box;
  }

  .card-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .card-actions .btn-secondary {
    width: 100% !important;
    padding: 0.75rem !important;
    box-sizing: border-box;
  }

  .stat-boxes-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .links-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 360px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* ==========================================================================
   Floating Back to Top Arrow
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s, background-color 0.15s ease, box-shadow 0.2s ease;
  z-index: 990;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--brand-primary-hover, #065f46);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.38), 0 3px 8px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2.6;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 1.5rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }

  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-btn {
    transition: opacity 0.15s linear;
  }
  .back-to-top-btn:hover svg {
    transform: none;
  }
}