/* =========================================================
   EVHomeSavings.com - Global Stylesheet
   American Clean Business Style | Blue Energy Theme
   Primary: #0057b8 | Green Accent: #00a862
   ========================================================= */

/* --- Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #0057b8;
  --primary-dark: #00408a;
  --primary-light: #1a6fc9;
  --primary-hover: #0066d6;
  --accent-green: #00a862;
  --accent-green-dark: #008c52;
  --accent-green-light: #e6f7ef;
  --bg-body: #f5f7fa;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-light-blue: #f0f5ff;
  --text-dark: #1a1a2e;
  --text-muted: #5a6a7a;
  --text-light: #8a9baa;
  --border-color: #e2e8f0;
  --border-light: #f0f2f5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* --- Dark Mode --- */
body.dark-mode {
  --bg-body: #0f172a;
  --bg-white: #1e293b;
  --bg-card: #1e293b;
  --bg-light-blue: #1e3a5f;
  --text-dark: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: #334155;
  --border-light: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

/* Dark mode */
body.dark-mode {
  --bg-body: #111827;
  --bg-card: #1f2937;
  --bg-white: #1f2937;
  --text-dark: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --border-light: #2d3748;
  --bg-light-blue: #1e3a5f;
}

/* Dark mode navigation rows */
body.dark-mode .nav-row0 {
  background: var(--bg-white);
  border-bottom-color: var(--border-color);
}
body.dark-mode .site-logo { color: var(--text-dark); }
body.dark-mode .nav-row2 {
  background: var(--bg-white);
  border-bottom-color: var(--border-color);
}
body.dark-mode .nav-sub-menu > li > a { color: var(--text-muted); }
body.dark-mode .nav-sub-menu > li > a:hover,
body.dark-mode .nav-sub-menu > li.active > a { color: #8fcbff; }
body.dark-mode .nav-util-menu > li > a { color: var(--text-muted); }
body.dark-mode .nav-util-menu > li > a:hover { color: #8fcbff; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #0057b8;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Input error */
.form-group input.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.15);
}
.input-error-msg {
  font-size: 0.75rem;
  color: #dc3545;
  margin-top: 2px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 132px; /* 48 (row0) + 48 (row1) + 40 (row2) */
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* --- Top Navigation --- */
/* --- Three-Row Navigation Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Row 0: Logo Only */
.nav-row0 {
  background: #fff;
  height: 48px;
  border-bottom: 1px solid var(--border-color);
}
.nav-row0 .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

/* Row 1: Main Nav */
.nav-row1 {
  background: var(--primary);
  height: 48px;
}
.nav-row1 .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
}

/* Row 2: Sub Nav + Utility */
.nav-row2 {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  height: 40px;
}
.nav-row2 .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.site-logo i { font-size: 1.2rem; color: var(--primary); }
.site-logo:hover { text-decoration: none; color: var(--primary); }

/* Main nav menu (Row 1) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  height: 100%;
}

.nav-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  color: rgba(255,255,255,0.92);
  font-size: 0.93rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  border-radius: 20px;
}
.nav-menu > li > a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}
.nav-menu > li.active > a {
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-weight: 600;
}
.nav-menu > li > a i { font-size: 0.8rem; }

/* Sub menu (Row 2 left) */
.nav-sub-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  height: 100%;
  margin-right: 20px;
}
.nav-sub-menu > li {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-sub-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-sub-menu > li > a:hover {
  color: var(--primary);
  text-decoration: none;
}
.nav-sub-menu > li.active > a {
  color: var(--primary);
  font-weight: 600;
}

/* Utility area (Row 2 right) */
.nav-util {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-util-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-util-menu > li > a {
  display: block;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 0.81rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
  line-height: 40px;
}
.nav-util-menu > li > a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Dark toggle button - row 2 style */
.dark-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
}
.dark-toggle:hover {
  background: var(--bg-light-blue);
  color: var(--primary);
  border-color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
}

/* Mobile select nav */
.mobile-nav-select {
  display: none;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-family);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6a7a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* --- Page Container --- */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #003d7a 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 32px;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}
.page-hero h1 i {
  margin-right: 12px;
  color: #8fcbff;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 800px;
  line-height: 1.6;
}

/* --- Content Sections --- */
.content-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.content-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 8px;
  margin-bottom: 20px;
}
.content-section h2 i {
  color: var(--primary);
  margin-right: 10px;
}
.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 14px;
}
.content-section h3:first-child {
  margin-top: 4px;
}
.content-section p {
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.8;
}

/* Article content lists — add breathing room */
.content-section ul,
.content-section ol {
  margin-bottom: 20px;
  padding-left: 22px;
}
.content-section li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
  padding-left: 6px;
}
.content-section li strong {
  color: var(--text-dark);
}
.content-section li:last-child {
  margin-bottom: 0;
}

.intro-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

/* --- Calculator Box (AdSense exclusion container) --- */
.calculator-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  position: relative;
}

.calculator-box h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--bg-light-blue);
  padding-bottom: 14px;
}
.calculator-box h2 i {
  color: var(--primary);
  margin-right: 10px;
}

/* --- Calculator Form --- */
.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.calc-form.full-width {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group label i {
  color: var(--primary);
  width: 16px;
  font-size: 0.9rem;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-family);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6a7a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group .input-hint {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Form radio buttons */
.form-group input[type="radio"] {
  margin-right: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-group label input[type="radio"] + span,
.form-group label input[type="radio"] {
  vertical-align: middle;
}

/* --- Calculate Button --- */
.btn-calc {
  grid-column: 1 / -1;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-family);
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.btn-calc:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-calc:active {
  transform: translateY(0);
}
.btn-calc i {
  font-size: 1.1rem;
}

/* --- Results Section --- */
.calc-results {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--bg-light-blue);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.result-card {
  background: var(--bg-light-blue);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(0,87,184,0.1);
  transition: transform 0.2s;
}
.result-card:hover {
  transform: translateY(-2px);
}

.result-card .result-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.result-card .result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.result-card .result-value.positive {
  color: var(--accent-green);
}

.result-card .result-value.negative {
  color: #dc3545;
}

.result-card .result-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Highlight card (savings) */
.result-card.highlight {
  background: var(--accent-green-light);
  border-color: var(--accent-green);
}
.result-card.highlight .result-value {
  color: var(--accent-green-dark);
}

/* --- Progress Bar --- */
.progress-bar-wrap {
  margin: 16px 0;
}
.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.progress-bar-track {
  height: 10px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.progress-bar-fill.green {
  background: linear-gradient(90deg, var(--accent-green), #00c878);
}

/* --- Chart Container --- */
.chart-container {
  margin: 20px 0;
  max-width: 100%;
}

/* --- Info Callout --- */
.callout {
  background: var(--bg-light-blue);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}
.callout.green {
  background: var(--accent-green-light);
  border-left-color: var(--accent-green);
}
.callout.amber {
  background: #fff8e6;
  border-left-color: #f0ad4e;
}
.callout p {
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.callout p:last-child { margin-bottom: 0; }
.callout i {
  margin-right: 8px;
  color: var(--primary);
}
.callout.green i { color: var(--accent-green); }
.callout.amber i { color: #f0ad4e; }

/* --- FAQ Section --- */
.faq-section {
  margin: 20px 0;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: background 0.2s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-family);
}
.faq-question:hover {
  background: var(--bg-light-blue);
}
.faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-question.active i {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-white);
}
.faq-answer.open {
  max-height: 600px;
  padding: 0 16px 12px;
}
.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer ul {
  padding-left: 20px;
  margin: 8px 0;
}
.faq-answer li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* --- Related Calculators --- */
.related-calculators,
.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.related-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.related-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.related-card h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.related-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.related-card a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.82rem;
}

/* --- State Comparison Table --- */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.table-wrap th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}
.table-wrap tr:nth-child(even) {
  background: var(--bg-light-blue);
}
.table-wrap tr:hover {
  background: #e8f0fe;
}

/* --- Page Footer --- */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-col ul li a i {
  width: 16px;
  color: var(--primary);
  font-size: 0.78rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --- Blog / Article Styles --- */

/* --- Gov Authority Links --- */
.gov-links {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 0;
}
.gov-links h3 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gov-links h3 i {
  color: var(--primary);
  font-size: 0.9rem;
}
.gov-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.gov-links ul li a {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0,87,184,0.2);
  transition: color 0.15s;
}
.gov-links ul li a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}
.gov-extra-link {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gov-extra-link:hover {
  color: var(--primary);
}

/* --- Site Group in Footer --- */
.footer-col.site-group {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 8px;
}
.footer-col.site-group h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-col.site-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-col.site-group ul li {
  margin-bottom: 4px;
}
.footer-col.site-group ul li a {
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .gov-links ul {
    flex-direction: column;
    gap: 6px;
  }
}
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.article-card-body {
  padding: 20px;
}
.article-card-body .article-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.article-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.article-card-body h3 a { color: var(--text-dark); }
.article-card-body h3 a:hover { color: var(--primary); }
.article-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.article-card-body .article-meta {
  font-size: 0.78rem;
  color: var(--text-light);
}
.article-card-body .article-meta i {
  margin-right: 4px;
}

/* Article detail page */
.article-content {
  font-size: 0.95rem;
  line-height: 1.8;
}
.article-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}
.article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text-dark);
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 22px 0 12px;
  color: var(--text-dark);
}
.article-content ul {
  padding-left: 20px;
  margin: 12px 0;
}
.article-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}
.article-content .callout {
  margin: 20px 0;
}

/* --- Legal Pages --- */
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text-dark);
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-dark);
}
.legal-content p {
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-content ul {
  padding-left: 20px;
  margin: 12px 0;
}
.legal-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* --- 404 Page --- */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.page-404 h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-404 p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.page-404 .btn-calc {
  display: inline-flex;
}

/* --- Tab Navigation (for multi-tab calculators) --- */
.calc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.calc-tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-family);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.calc-tab:hover {
  color: var(--primary);
  background: var(--bg-light-blue);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.calc-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.calc-tab i {
  margin-right: 6px;
}

/* --- Loader --- */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 900px) {

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 10000;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* --- Input Validation --- */
.form-group input.input-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.15) !important;
}
.input-error-msg {
  font-size: 0.74rem;
  color: #dc3545;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.input-error-msg::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
}

/* --- How It Works Section --- */
.how-it-works {
  background: var(--bg-light-blue);
  border: 1px solid rgba(0,87,184,0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
}
.how-it-works h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.how-it-works p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}
.how-it-works .formula {
  font-family: 'Courier New', monospace;
  background: rgba(0,87,184,0.06);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-dark);
  margin: 8px 0;
  overflow-x: auto;
}

/* --- Standard Example Section --- */
.example-box {
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.example-box i {
  font-size: 1.5rem;
  color: var(--accent-green);
  flex-shrink: 0;
}
.example-box p {
  font-size: 0.88rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.5;
}

/* --- Affiliate Product Cards --- */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.product-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.product-card .price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  margin: 6px 0;
}
.product-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-card .buy-link {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.product-card .buy-link:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

/* --- EV Model Select (Range Calculator) --- */
.ev-model-select {
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 100%;
  font-family: var(--font-family);
  background: #fff;
  color: var(--text-dark);
}
.ev-model-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
  outline: none;
}

@media (max-width: 768px) {
    grid-template-columns: 1fr 1fr;
  }
  .calc-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body { padding-top: 96px; }

  .nav-row0 { display: none; }
  .nav-row2 { display: none; }
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav-select { display: block; margin: 0 12px; margin-top: 8px; }
  .nav-row1 { height: 48px; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 8px 0;
    height: auto;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open > li { height: auto; }
  .nav-menu.open > li > a {
    padding: 12px 20px;
    height: auto;
    border-radius: 0;
  }

  .page-hero {
    padding: 28px 0;
  }
  .page-hero h1 {
    font-size: 1.4rem;
  }
  .page-hero p {
    font-size: 0.88rem;
  }

  .content-section {
    padding: 20px;
  }
  .calculator-box {
    padding: 20px;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .result-card .result-value {
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .site-logo {
    font-size: 0.95rem;
  }
  .site-logo i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 1.2rem;
  }
  .calc-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .calc-tab {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   COMPETITIVE UPGRADES - Share, Trust, Bookmark, etc.
   ========================================================= */

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.trust-item i {
  font-size: 1rem;
  color: var(--accent-green);
}

/* --- Share Bar --- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin: 16px 0 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-light);
}
.share-bar span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.reddit { background: #FF4500; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.email { background: #7B7B7B; }
.share-btn.copy { background: var(--primary); }
.share-btn.print { background: #6B7280; }
.share-btn.bookmark {
  background: var(--accent-green);
  margin-left: auto;
}
.share-btn.bookmarked {
  background: #f0ad4e;
}

/* --- Sticky Mobile Calc Button --- */
.sticky-mobile-calc {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 2px solid var(--primary);
  padding: 10px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
.sticky-mobile-calc a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}
.sticky-mobile-calc a:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

/* --- Sticky Floating Share Bar --- */
.sticky-share-bar {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.sticky-share-bar .share-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  color: var(--text-muted);
  transition: all 0.2s;
}
.sticky-share-bar .share-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.sticky-share-bar .share-btn.print:hover {
  background: #2d3748;
}
.sticky-share-bar .share-btn.facebook:hover {
  background: #1877f2;
}
.sticky-share-bar .share-btn.twitter:hover {
  background: #000;
}
.sticky-share-bar .share-btn.reddit:hover {
  background: #ff4500;
}
.sticky-share-bar .share-btn.whatsapp:hover {
  background: #25d366;
}
.sticky-share-bar .share-btn.email:hover {
  background: #ea4335;
}
.sticky-share-bar .share-btn.copy:hover {
  background: #6b7280;
}
.sticky-share-bar .share-btn.bookmark:hover {
  background: #f0ad4e;
}
.sticky-share-bar .share-btn.bookmarked {
  background: #f0ad4e;
  color: #fff;
}

@media (max-width: 480px) {
  .sticky-share-bar {
    bottom: 80px;
    right: 10px;
    padding: 8px 6px;
    gap: 4px;
  }
  .sticky-share-bar .share-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .sticky-mobile-calc {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
  .trust-bar {
    gap: 12px;
    padding: 12px;
  }
  .trust-item {
    font-size: 0.75rem;
  }
}

/* --- Data Freshness Badge --- */
.freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green-dark);
  margin-bottom: 16px;
}
.freshness-badge i {
  font-size: 0.75rem;
}

/* --- CO2 Savings Display --- */
.co2-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e6f7ef 0%, #f0fdf4 100%);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
  margin: 16px 0;
}
.co2-icon {
  font-size: 2.2rem;
  color: var(--accent-green);
}
.co2-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.co2-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- State Quick Comparison Table --- */
.state-quick-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
  margin: 12px 0;
}
.state-quick-table th {
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.state-quick-table th:hover {
  background: var(--primary-dark);
}
.state-quick-table th i {
  margin-left: 4px;
  font-size: 0.7rem;
}
.state-quick-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}
.state-quick-table tr:nth-child(even) {
  background: var(--bg-light-blue);
}
.state-quick-table tr:hover {
  background: #e8f0fe;
}
.state-quick-table .highlight-row {
  background: var(--accent-green-light) !important;
  font-weight: 600;
}
.state-quick-table-wrap {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* --- Recent Estimates Feed --- */
.recent-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  cursor: pointer;
}
.recent-item:hover {
  background: var(--bg-light-blue);
}
.recent-item .ri-type {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}
.recent-item .ri-summary {
  font-size: 0.82rem;
  color: var(--text-dark);
  flex: 1;
  padding: 0 12px;
}
.recent-item .ri-date {
  font-size: 0.72rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* --- Bookmark Star (individual calc) --- */
.bookmark-calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-family);
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.bookmark-calc-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.bookmark-calc-btn.bookmarked {
  background: var(--accent-green-light);
  border-color: var(--accent-green);
  color: var(--accent-green-dark);
}
.bookmark-calc-btn i {
  font-size: 0.85rem;
}

/* --- Savings Speedometer Gauge --- */
.gauge-container {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.gauge {
  width: 180px;
  height: 100px;
  position: relative;
  overflow: hidden;
}
.gauge-bg {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #e9ecef;
  position: absolute;
  top: 0;
}
.gauge-fill {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  clip: rect(0px 180px 180px 90px);
  background: var(--accent-green);
  transform: rotate(0deg);
  transition: transform 0.8s ease;
}
.gauge-cover {
  width: 140px;
  height: 70px;
  background: var(--bg-card);
  border-radius: 0 0 140px 140px;
  position: absolute;
  bottom: 0;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4px;
}
.gauge-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-green-dark);
  line-height: 1.1;
}
.gauge-label {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* --- "My Bookmarks" Page Navigation --- */
.my-bookmarks-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-light-blue);
  border: 1px solid rgba(0,87,184,0.15);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.my-bookmarks-link:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.my-bookmarks-link i {
  font-size: 0.85rem;
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .sticky-mobile-calc,
  .sticky-share-bar,
  .share-bar,
  .gov-links,
  .mobile-nav-select,
  .nav-toggle,
  .dark-toggle,
  .related-calculators,
  .related-articles,
  .btn-calc,
  .bookmark-calc-btn,
  .my-bookmarks-link,
  .toast-notification {
    display: none !important;
  }
  body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #fff;
    font-size: 11pt;
  }
  .page-hero {
    background: #0057b8 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 20px 0;
  }
  .calculator-box {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  .content-section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  .progress-bar-fill,
  .gauge-fill,
  .toast-notification {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .result-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .chart-container canvas {
    max-width: 100%;
  }
}

/* =========================================================
   Advanced Settings (Customize Assumptions)
   ========================================================= */
.advanced-settings {
  margin: 16px 0;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--bg-light-blue);
  overflow: hidden;
}
.advanced-settings[open] {
  padding-bottom: 8px;
}
.advanced-settings summary {
  cursor: pointer;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border-bottom: 1px dashed transparent;
  transition: background 0.2s;
  user-select: none;
}
.advanced-settings[open] summary {
  border-bottom-color: var(--border-color);
  background: rgba(0,87,184,0.04);
}
.advanced-settings summary i {
  margin-right: 6px;
}
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding: 12px 16px 4px;
}
@media (max-width: 600px) {
  .advanced-grid {
    grid-template-columns: 1fr;
  }
}
.advanced-settings .form-group {
  margin-bottom: 8px;
}
.advanced-settings .form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.advanced-settings .form-group input {
  padding: 6px 10px;
  font-size: 0.88rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 100%;
  background: var(--bg-white);
  color: var(--text-dark);
}
.advanced-settings .form-group .input-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
  display: block;
}

/* Dark mode for advanced settings */
body.dark-mode .advanced-settings {
  background: rgba(30,58,95,0.5);
  border-color: var(--border-color);
}
body.dark-mode .advanced-settings summary {
  color: #93c5fd;
}
body.dark-mode .advanced-settings .form-group input {
  background: var(--bg-card);
  color: var(--text-dark);
  border-color: var(--border-color);
}

/* =========================================================
   BREADCRUMB NAVIGATION
   ========================================================= */
.breadcrumb {
  background: var(--bg-card, #fff);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding: 10px 0;
  font-size: 0.85rem;
}
.breadcrumb-list {
  list-style: none;
  list-style-type: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted, #64748b);
  list-style: none;
  list-style-type: none;
  counter-increment: none;
}
.breadcrumb-list li:not(:last-child)::after {
  content: "\203A"; /* › */
  margin-left: 8px;
  color: var(--text-light, #94a3b8);
}
.breadcrumb-list a {
  color: var(--primary, #047857);
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumb-list a:hover {
  text-decoration: underline;
  color: var(--primary-dark, #065f46);
}
.breadcrumb-list li[aria-current="page"] {
  color: var(--text-dark, #1e293b);
  font-weight: 600;
}
/* Dark mode */
body.dark-mode .breadcrumb {
  background: var(--bg-card, #1e293b);
  border-bottom-color: var(--border-color, #334155);
}
body.dark-mode .breadcrumb-list li[aria-current="page"] {
  color: #e2e8f0;
}

/* =========================================================
   STATE GUIDE PAGES
   ========================================================= */
.state-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.92rem;
}
.state-table th, .state-table td {
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 10px 12px;
  text-align: left;
}
.state-table thead th {
  background: var(--primary, #047857);
  color: #fff;
  font-weight: 600;
}
.state-table tbody tr:nth-child(even) {
  background: var(--bg-alt, #f1f5f9);
}
.state-table tbody tr:last-child td {
  font-weight: 700;
  background: rgba(4,120,87,0.08);
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.state-card {
  display: block;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-dark, #1e293b);
  background: var(--bg-card, #fff);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.state-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-color: var(--primary, #047857);
}
.state-card h4 {
  margin: 0 0 6px;
  color: var(--primary, #047857);
  font-size: 1rem;
}
.state-card .state-meta {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 6px;
}
.state-card .state-inc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  margin: 0;
}
body.dark-mode .state-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.04);
}
body.dark-mode .state-card {
  background: var(--bg-card, #1e293b);
  color: #e2e8f0;
}
