/* ============================================
   State Auto Insurance Pages - NerdWallet-Inspired
   ============================================ */

/* ---------- Hero Override (shorter, content peeks) ---------- */
.state-hero-short .container {
  min-height: 480px !important;
  padding-top: 60px !important;
  padding-bottom: 40px !important;
}

.state-hero-short .hero-content {
  gap: 24px !important;
}

.state-hero-short .hero-subtext {
  font-size: 18px;
  max-width: 540px;
}

@media (max-width: 768px) {
  .state-hero-short .container {
    min-height: 400px !important;
    padding-top: 40px !important;
    padding-bottom: 32px !important;
  }
}

/* ---------- Two-Column Layout ---------- */
.state-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.state-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 60px;
}

.state-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  padding: 24px 0;
  display: none;
}

/* ---------- Sidebar TOC ---------- */
.state-toc {
  border-left: 2px solid #e5e7eb;
}

.state-toc-title {
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-slate);
  padding: 0 0 12px 20px;
}

.state-toc a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate);
  border-left: 3px solid transparent;
  margin-left: -2px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.state-toc a:hover {
  color: var(--color-primary-blue);
  background: #f8f9ff;
}

.state-toc a.active {
  color: var(--color-primary-blue);
  border-left-color: var(--color-primary-blue);
  font-weight: 600;
  background: #f0f2ff;
}

/* ---------- Stats Bar ---------- */
.state-stats-bar {
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, #1e3a8a 100%);
  padding: 24px 0;
}

.state-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: white;
}

.state-stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: Poppins, sans-serif;
}

.state-stat-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

/* ---------- State Section ---------- */
.state-section {
  padding: 48px 0;
  border-bottom: 1px solid #eef0f4;
}

.state-section:last-child {
  border-bottom: none;
}

.state-section-alt {
  background: #fafaff;
  margin: 0 -20px;
  padding: 48px 20px;
}

.state-section h2 {
  font-size: 28px;
  line-height: 1.3;
  color: var(--color-primary-blue);
  margin-bottom: 12px;
  font-family: Poppins, sans-serif;
  position: relative;
  padding-bottom: 16px;
}

.state-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-green-600), #4f6ef7);
  border-radius: 2px;
}

.state-section h3 {
  font-size: 20px;
  color: var(--color-primary-blue);
  margin-bottom: 16px;
  font-family: Poppins, sans-serif;
}

.state-section-desc {
  font-size: 18px;
  color: var(--color-slate);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 720px;
}

/* ---------- Data Tables ---------- */
.state-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.state-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 16px;
}

.state-table thead tr {
  background: var(--color-primary-blue);
  color: white;
}

.state-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.state-table th.center {
  text-align: center;
}

.state-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.state-table td.center {
  text-align: center;
}

.state-table td.fw600 {
  font-weight: 600;
}

.state-table td.fw700 {
  font-weight: 700;
}

.state-table tbody tr:hover {
  background: #f8f9ff;
}

.state-table tbody tr:last-child td {
  border-bottom: none;
}

/* Row variants */
.state-table tr.row-best {
  background: #f0fdf4;
  border-left: 4px solid var(--color-green-600);
}

.state-table tr.row-best td:first-child {
  padding-left: 12px;
}

.state-table tr.row-worst {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
}

.state-table tr.row-worst td:first-child {
  padding-left: 12px;
}

.state-table tr.row-alt {
  background: #f9fafb;
}

/* Cell colors */
.text-green { color: var(--color-green-600); }
.text-red { color: #dc2626; }
.text-amber { color: #d97706; }
.text-pink { color: #be185d; }
.text-blue { color: var(--color-primary-blue); }
.text-slate { color: var(--color-slate); }
.text-sm { font-size: 13px; }

/* ---------- Table Footnote ---------- */
.state-table-note {
  font-size: 13px;
  color: var(--color-slate);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- Violation Cards ---------- */
.state-violations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.state-violation-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.state-violation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.state-violation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.state-violation-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.state-violation-icon.amber { background: #fef3c7; color: #d97706; }
.state-violation-icon.red { background: #fee2e2; color: #dc2626; }
.state-violation-icon.pink { background: #fce7f3; color: #be185d; }

.state-violation-icon i { font-size: 20px; }

.state-violation-card h3 {
  font-size: 18px;
  margin: 0;
  color: var(--color-dark-gray);
}

.state-violation-pct {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.state-violation-pct.amber { background: #fffbeb; }
.state-violation-pct.red { background: #fef2f2; }
.state-violation-pct.pink { background: #fdf2f8; }

.state-violation-pct .pct-value {
  font-size: 32px;
  font-weight: 700;
  font-family: Poppins, sans-serif;
}

.state-violation-pct .pct-label {
  font-size: 14px;
  color: var(--color-slate);
}

.state-violation-breakdown {
  width: 100%;
  font-size: 14px;
}

.state-violation-breakdown td {
  padding: 8px 0;
  border: none;
}

.state-violation-breakdown td:first-child {
  color: var(--color-slate);
}

.state-violation-breakdown td:last-child {
  text-align: right;
  font-weight: 600;
}

.state-violation-breakdown tr.sep td {
  border-top: 1px solid #e5e7eb;
}

/* Violation duration box */
.state-duration-box {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.state-duration-box h4 {
  margin-bottom: 16px;
  font-size: 18px;
}

.state-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.state-duration-item {
  text-align: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.state-duration-item .dur-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-blue);
  font-family: Poppins, sans-serif;
}

.state-duration-item .dur-label {
  font-size: 14px;
  color: var(--color-slate);
  margin-top: 4px;
}

/* ---------- Requirements / Coverage Box ---------- */
.state-min-coverage {
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, #1e40af 100%);
  border-radius: 12px;
  padding: 32px;
  color: white;
  margin-bottom: 32px;
  text-align: center;
}

.state-min-coverage h3 {
  color: white;
  margin-bottom: 24px;
  font-size: 22px;
}

.state-min-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.state-min-coverage-value {
  font-size: 36px;
  font-weight: 700;
  font-family: Poppins, sans-serif;
}

.state-min-coverage-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
  line-height: 1.3;
}

/* ---------- Info / Warning / Tip Boxes ---------- */
.state-info-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.state-info-box h4 {
  margin-bottom: 12px;
  color: var(--color-primary-blue);
  font-size: 18px;
}

.state-info-box p {
  margin: 0;
  color: var(--color-slate);
  font-size: 18px;
  line-height: 1.6;
}

.state-info-box p + p {
  margin-top: 12px;
}

.state-warning-box {
  background: #fef3c7;
  border-left: 4px solid #d97706;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 24px;
}

.state-warning-box h4 {
  margin: 0 0 8px 0;
  color: #92400e;
  font-size: 18px;
}

.state-warning-box p {
  margin: 0;
  color: #78350f;
  font-size: 18px;
  line-height: 1.6;
}

.state-danger-box {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 24px;
}

.state-danger-box h4 {
  margin: 0 0 8px 0;
  color: #991b1b;
  font-size: 18px;
}

.state-danger-box p,
.state-danger-box ul {
  margin: 0;
  color: #7f1d1d;
  font-size: 18px;
  line-height: 1.6;
}

.state-danger-box ul {
  padding-left: 20px;
  list-style: disc;
  margin-top: 12px;
}

.state-danger-box p + p,
.state-danger-box ul + p {
  margin-top: 12px;
}

.state-nofault-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.state-nofault-box h4 {
  margin: 0 0 12px 0;
  color: #92400e;
  font-size: 18px;
}

.state-nofault-box p {
  margin: 0;
  color: #78350f;
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Tips Grid ---------- */
.state-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.state-tip-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.state-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.state-tip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.state-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.state-tip-icon.blue { background: #dbeafe; color: var(--color-primary-blue); }
.state-tip-icon.green { background: #dcfce7; color: var(--color-green-600); }
.state-tip-icon.amber { background: #fef3c7; color: #d97706; }
.state-tip-icon.indigo { background: #e0e7ff; color: #4f46e5; }
.state-tip-icon.pink { background: #fce7f3; color: #be185d; }
.state-tip-icon.purple { background: #f3e8ff; color: #7c3aed; }

.state-tip-card h4 {
  margin: 0;
  font-size: 18px;
  color: var(--color-dark-gray);
}

.state-tip-card p {
  margin: 0;
  color: var(--color-slate);
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Provider Cards ---------- */
.state-providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.state-provider-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid var(--color-primary-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.state-provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.state-provider-card.green-top { border-top-color: var(--color-green-600); }
.state-provider-card.blue-top { border-top-color: var(--color-primary-blue); }
.state-provider-card.indigo-top { border-top-color: #6366f1; }
.state-provider-card.cyan-top { border-top-color: #0891b2; }

.state-provider-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.state-provider-top img {
  height: 40px;
}

.state-provider-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.state-provider-badge.green { background: #dcfce7; color: var(--color-green-600); }
.state-provider-badge.blue { background: #dbeafe; color: var(--color-primary-blue); }
.state-provider-badge.indigo { background: #e0e7ff; color: #4f46e5; }
.state-provider-badge.cyan { background: #cffafe; color: #0891b2; }

.state-provider-card h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: var(--color-dark-gray);
}

.state-provider-desc {
  color: var(--color-slate);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.state-provider-stats {
  display: flex;
  gap: 16px;
  font-size: 16px;
}

/* ---------- Testimonials ---------- */
.state-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.state-testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.state-testimonial-card p {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-slate);
  font-style: italic;
  margin-bottom: 16px;
}

.state-testimonial-author {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.state-testimonial-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-dark-gray);
}

.state-testimonial-location {
  font-size: 13px;
  color: var(--color-slate);
}

/* ---------- FAQ (simple Q&A, no accordion) ---------- */
.state-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.state-faq-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.state-faq-item h4 {
  font-size: 18px;
  color: var(--color-dark-gray);
  margin: 0 0 10px 0;
  font-family: Poppins, sans-serif;
}

.state-faq-item p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-slate);
  margin: 0;
}

/* ---------- CTA Section ---------- */
.state-cta {
  text-align: center;
  padding: 56px 24px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
  border-radius: 16px;
  margin: 8px 0 32px;
}

.state-cta h2 {
  color: var(--color-primary-blue);
  margin-bottom: 12px;
  font-family: Poppins, sans-serif;
  padding-bottom: 0;
}

.state-cta h2::after {
  display: none;
}

.state-cta p {
  color: var(--color-slate);
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.state-cta .search-bar {
  max-width: 500px;
  margin: 0 auto;
}

.state-cta-links {
  margin-top: 20px;
  font-size: 14px;
}

.state-cta-links a {
  color: var(--color-primary-blue);
}

.state-cta-links a:hover {
  text-decoration: underline;
}

/* ---------- Coverage Cards ---------- */
.state-coverage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.state-coverage-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.state-coverage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-blue), #4f6ef7);
}

.state-coverage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.state-coverage-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.state-coverage-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.state-coverage-icon.blue { background: #dbeafe; color: var(--color-primary-blue); }
.state-coverage-icon.green { background: #dcfce7; color: var(--color-green-600); }
.state-coverage-icon.indigo { background: #e0e7ff; color: #4f46e5; }
.state-coverage-icon.amber { background: #fef3c7; color: #d97706; }
.state-coverage-icon.pink { background: #fce7f3; color: #be185d; }
.state-coverage-icon.cyan { background: #cffafe; color: #0891b2; }

.state-coverage-title {
  flex: 1;
}

.state-coverage-card h4 {
  font-size: 18px;
  color: var(--color-dark-gray);
  margin: 0;
  font-family: Poppins, sans-serif;
  line-height: 1.3;
}

.state-coverage-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.state-coverage-badge.required { background: #fee2e2; color: #dc2626; }
.state-coverage-badge.recommended { background: #dcfce7; color: #15803d; }
.state-coverage-badge.optional { background: #f3f4f6; color: #6b7280; }

.state-coverage-card p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-slate);
  margin: 0 0 6px 0;
}

.state-coverage-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Driver Profile Cell ---------- */
.driver-profile {
  font-weight: 600;
}

.driver-profile-sub {
  font-size: 13px;
  color: var(--color-slate);
  font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (min-width: 1024px) {
  .state-sidebar {
    display: block;
  }
}

@media (max-width: 1023px) {
  .state-page {
    flex-direction: column;
    gap: 0;
  }

  .state-sidebar {
    display: none;
  }

  .state-main {
    width: 100%;
  }

  .state-providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .state-testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Tablet & small desktop ---- */
@media (max-width: 768px) {
  /* Hero */
  .state-hero-short .container {
    min-height: auto !important;
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }

  .state-hero-short .hero-subtext {
    font-size: 16px;
  }

  /* Stats bar */
  .state-stats-bar {
    padding: 16px 0;
  }

  .state-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .state-stat-value {
    font-size: 22px;
  }

  .state-stat-label {
    font-size: 12px;
  }

  /* Page layout */
  .state-page {
    padding: 0 16px;
  }

  /* Section spacing */
  .state-section {
    padding: 32px 0;
  }

  .state-section h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .state-section h3 {
    font-size: 18px;
  }

  .state-section-desc {
    font-size: 16px;
    margin-bottom: 24px;
  }

  /* Tables → Card Layout */
  .state-table-wrap {
    overflow-x: visible;
    box-shadow: none;
    border: none;
  }

  .state-table thead {
    display: none;
  }

  .state-table {
    display: block;
    background: transparent;
    font-size: 16px;
  }

  .state-table tbody {
    display: block;
  }

  .state-table tbody tr {
    display: block;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f4;
    position: relative;
    border-left: 4px solid transparent;
  }

  .state-table tbody tr.row-best {
    border-left: 4px solid var(--color-green-600);
    background: #f0fdf4;
  }

  .state-table tbody tr.row-worst {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
  }

  .state-table tbody tr.row-alt {
    background: #f9fafb;
  }

  .state-table tbody tr:hover {
    background: inherit;
  }

  .state-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    min-height: 44px;
    font-size: 16px;
  }

  .state-table tbody td:last-child {
    border-bottom: none;
  }

  .state-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-slate);
    text-align: left;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .state-table td.center {
    text-align: right;
  }

  .state-table-note {
    font-size: 16px;
  }

  /* Company rate tables — Rank badge + Company title */
  #cheapest-companies .state-table tbody td:nth-child(1) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-bottom: none;
    border-radius: 50%;
    background: var(--color-primary-blue);
    color: white;
    font-weight: 700;
    font-size: 16px;
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: auto;
  }

  #cheapest-companies .state-table tbody td:nth-child(1)::before {
    display: none;
  }

  #cheapest-companies .state-table tbody td:nth-child(2) {
    display: block;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary-blue);
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
    padding-right: 44px;
  }

  #cheapest-companies .state-table tbody td:nth-child(2)::before {
    display: none;
  }

  /* Rates by City — City title + Key Factors subtitle */
  #rates-by-city .state-table tbody td:nth-child(1) {
    display: block;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary-blue);
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
  }

  #rates-by-city .state-table tbody td:nth-child(1)::before {
    display: none;
  }

  #rates-by-city .state-table tbody td:nth-child(5) {
    display: block;
    text-align: left;
    font-size: 16px;
    font-style: italic;
    color: var(--color-slate);
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    min-height: auto;
  }

  /* Rates by Age — Driver Profile title */
  #rates-by-age .state-table tbody td:first-child {
    display: block;
    text-align: left;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
  }

  #rates-by-age .state-table tbody td:first-child::before {
    display: none;
  }

  #rates-by-age .driver-profile {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-blue);
  }

  #rates-by-age .driver-profile-sub {
    font-size: 16px;
    color: var(--color-slate);
  }

  /* Coverage Requirements — Coverage Type title + Why It Matters subtitle */
  #requirements .state-table tbody td:first-child {
    display: block;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-blue);
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
  }

  #requirements .state-table tbody td:first-child::before {
    display: none;
  }

  #requirements .state-table tbody td:last-child {
    display: block;
    text-align: left;
    font-size: 16px;
    color: var(--color-slate);
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    min-height: auto;
  }

  /* Grids to single column */
  .state-violations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .state-tips-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .state-providers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .state-testimonials {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .state-duration-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Min coverage box */
  .state-min-coverage {
    padding: 20px;
    margin-bottom: 24px;
  }

  .state-min-coverage h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .state-min-coverage-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .state-min-coverage-value {
    font-size: 28px;
  }

  /* Violation cards */
  .state-violation-card {
    padding: 16px;
  }

  .state-violation-card h3 {
    font-size: 16px;
  }

  .state-violation-pct .pct-value {
    font-size: 26px;
  }

  /* Coverage cards */
  .state-coverage-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .state-coverage-card {
    padding: 16px;
  }

  .state-coverage-card h4 {
    font-size: 16px;
  }

  .state-coverage-card p {
    font-size: 16px;
  }

  .state-coverage-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Tip cards */
  .state-tip-card {
    padding: 16px;
  }

  .state-tip-card h4 {
    font-size: 16px;
  }

  .state-tip-card p {
    font-size: 16px;
  }

  .state-tip-icon {
    width: 36px;
    height: 36px;
  }

  /* Provider cards */
  .state-provider-card {
    padding: 16px;
  }

  .state-provider-card h3 {
    font-size: 18px;
  }

  .state-provider-desc {
    font-size: 16px;
  }

  .state-provider-stats {
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
  }

  .state-provider-top img {
    height: 32px;
  }

  /* Testimonials */
  .state-testimonial-card {
    padding: 16px;
  }

  .state-testimonial-card p {
    font-size: 16px;
  }

  /* FAQ */
  .state-faq-item {
    padding: 16px;
  }

  .state-faq-item h4 {
    font-size: 16px;
  }

  .state-faq-item p {
    font-size: 16px;
  }

  /* Info / warning boxes */
  .state-info-box,
  .state-warning-box,
  .state-danger-box,
  .state-nofault-box {
    padding: 16px;
  }

  .state-duration-box {
    padding: 16px;
  }

  .state-duration-item .dur-value {
    font-size: 20px;
  }

  /* CTA */
  .state-cta {
    padding: 32px 0;
  }

  .state-cta h2 {
    font-size: 22px;
  }

  .state-cta p {
    font-size: 16px;
  }

  .state-cta .search-bar {
    max-width: 100%;
  }

  .state-cta-links {
    font-size: 13px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
  .state-page {
    padding: 0 12px;
  }

  .state-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px;
  }

  .state-stat-value {
    font-size: 20px;
  }

  .state-stat-label {
    font-size: 11px;
  }

  .state-section {
    padding: 24px 0;
  }

  .state-section h2 {
    font-size: 20px;
  }

  .state-section-desc {
    font-size: 16px;
    margin-bottom: 16px;
  }

  /* Tables — tighter card spacing */
  .state-table tbody tr {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .state-table tbody td {
    font-size: 16px;
    padding: 6px 0;
    min-height: 40px;
  }

  .state-table tbody td::before {
    font-size: 16px;
    font-weight: 700;
  }

  #cheapest-companies .state-table tbody td:nth-child(2),
  #rates-by-city .state-table tbody td:nth-child(1),
  #rates-by-age .driver-profile,
  #requirements .state-table tbody td:first-child {
    font-size: 16px;
  }

  .text-sm {
    font-size: 16px;
  }

  #rates-by-age .driver-profile {
    font-size: 16px;
  }

  #rates-by-age .driver-profile-sub {
    font-size: 16px;
  }

  .state-coverage-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* Cards tighter padding */
  .state-violation-card,
  .state-coverage-card,
  .state-tip-card,
  .state-provider-card,
  .state-testimonial-card,
  .state-faq-item {
    padding: 14px;
    border-radius: 8px;
  }

  .state-min-coverage {
    padding: 16px;
    border-radius: 8px;
  }

  .state-min-coverage-value {
    font-size: 24px;
  }

  .state-violation-pct .pct-value {
    font-size: 22px;
  }

  .state-cta h2 {
    font-size: 20px;
  }
}
