/* MyEVCred shared stylesheet — site chrome only.
   Extracted from inline <style> blocks after verifying zero conflicting
   values across all 51 pages. Page-specific sections (hero, wrap, layout
   containers, calculators) intentionally remain inline per-page, since
   those genuinely differ by design across the site. */

:root {
  --bg-primary: #080c14;
  --bg-card: #0d1422;
  --bg-elevated: #131c2e;
  --border: #1e2d47;
  --border-glow: #2a4a7f;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59,130,246,0.15);
  --green: #10b981;
  --green-glow: rgba(16,185,129,0.15);
  --yellow: #f59e0b;
  --red: #ef4444;
  --text-primary: #f0f6ff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-display); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

nav { position: sticky; top: 0; z-index: 100; background: rgba(8,12,20,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 24px; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.nav-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, #3b82f6, #10b981); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.nav-links a { color: var(--text-secondary); text-decoration: underline transparent; text-underline-offset: 4px; font-size: 0.875rem; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover { color: var(--text-primary); background: var(--bg-elevated); text-decoration-color: var(--accent-bright); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all 0.3s; }

.content-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.content-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em; }
.content-card p { color: var(--text-secondary); font-size: 0.925rem; line-height: 1.75; margin-bottom: 12px; }
.content-card ul { color: var(--text-secondary); font-size: 0.92rem; margin: 10px 0 10px 20px; }
.content-card li { margin-bottom: 6px; }

footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 40px 24px; margin-top: 40px; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

.quick-answer { background: var(--green-glow); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; font-size: 0.92rem; line-height: 1.65; color: var(--text-primary); }
.quick-answer strong { color: var(--green); }

.glance-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.glance-table caption { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 12px 16px 8px; }
.glance-table th { text-align: left; padding: 10px 16px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border-glow); background: var(--bg-elevated); }
.glance-table td { padding: 10px 16px; font-size: 0.9rem; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.glance-table tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* Mobile-first usability pass — preserves the existing visual system. */
@media (max-width: 768px) {
  html { font-size: 16px; }
  body { min-width: 0; overflow-x: hidden; }
  nav { padding: 0 16px; }
  .nav-inner { height: 60px; }
  .nav-logo { font-size: 1rem; }
  .nav-links.open { max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-links.open a { display: block; width: 100%; min-height: 44px; padding: 12px 14px; }
  .nav-hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .breadcrumb { padding: 10px 16px; overflow-x: auto; white-space: nowrap; }
  .breadcrumb ol { min-width: max-content; }
  .hero { padding: 38px 16px 28px !important; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.55rem) !important; line-height: 1.12; }
  .hero-sub, .state-hero-sub { font-size: 0.98rem !important; line-height: 1.55; }
  .hero-stats { gap: 14px !important; margin-bottom: 30px; }
  .hero-stat { min-width: 120px; }
  .hero-stat-num { font-size: 1.3rem !important; }
  .hero-stat-label { font-size: 0.68rem; }
  .content-card, .quick-answer, .glance-table, .cta-card, .mini-calc { border-radius: 14px; }
  .content-card { padding: 20px !important; margin-bottom: 16px; }
  .content-card h2 { font-size: 1.08rem; }
  .content-card p, .content-card li { font-size: 0.9rem; line-height: 1.62; }
  .page-wrap, .wrap, .calc-wrap { width: 100%; max-width: 100%; padding-left: 16px !important; padding-right: 16px !important; }
  .calc-card, .checker-card { border-radius: 14px; }
  .calc-header { padding: 16px !important; gap: 12px; }
  .calc-title { font-size: 0.9rem; }
  .calc-body { padding: 16px !important; }
  .calc-grid { gap: 16px !important; }
  .calc-field { min-width: 0; }
  .field-label, .input-label { font-size: 0.76rem; }
  input, select, textarea, button { font-size: 16px; }
  input[type="number"], input[type="text"], select { min-height: 46px; }
  .filing-btns, .toggle-group, .ev-toggle { width: 100%; }
  .filing-btn, .toggle-btn, .ev-toggle button { min-height: 44px; flex: 1 1 auto; padding: 10px 12px !important; }
  .calc-btn, .mini-calc-btn, .check-btn, .cta-btn, .trust-cta-btn, .mini-pdf-btn { min-height: 48px; width: 100%; }
  .result-box, .result-area { margin-top: 18px; }
  .result-line, .breakdown-line, .mini-result-line { gap: 10px; flex-wrap: wrap; }
  .result-total-val { font-size: 1.65rem !important; }
  .savings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .savings-card { min-width: 0; padding: 14px 10px !important; }
  .savings-num { font-size: 1.35rem !important; overflow-wrap: anywhere; }
  .savings-label { font-size: 0.68rem; line-height: 1.3; }
  .mini-input-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .mini-input-group label { font-size: 0.76rem; }
  .state-card, .state-highlight { padding: 16px !important; }
  .rel-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .rel-link { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px !important; }
  .faq-q { min-height: 48px; padding: 14px 12px !important; }
  .faq-a { padding: 0 12px 14px !important; font-size: 0.88rem; }
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 22px !important; }
  .footer-col a, .footer-links a { display: inline-block; min-height: 40px; padding: 8px 0; }
  .footer-disclaimer { font-size: 0.74rem; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  th, td { min-width: 120px; }
  .state-table th:first-child, .state-table td:first-child { min-width: 145px; }
  .glance-table { display: table; white-space: normal; }
  .glance-table th, .glance-table td { min-width: 0; padding: 9px 10px !important; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr !important; }
  .savings-grid { grid-template-columns: 1fr 1fr !important; }
  .rel-links { grid-template-columns: 1fr !important; }
  .info-grid { grid-template-columns: 1fr !important; }
  .hero-stats { display: grid !important; grid-template-columns: 1fr 1fr; }
  .hero-stat-divider { display: none !important; }
  .state-table th, .state-table td { padding: 10px 8px !important; font-size: 0.78rem; }
}
