/* Homepage + marketplace SEO category navigation */
.tev-seo-category-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.6rem;
}

@media (min-width: 720px) {
  .tev-seo-category-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .tev-seo-category-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.tev-seo-category-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tev-seo-category-card:hover {
  transform: translateY(-1px);
  border-color: #2563eb;
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.14);
}

.tev-seo-category-card__icon {
  font-size: 0.7rem;
  line-height: 1;
}

.tev-seo-category-card__title {
  font-size: 0.62rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.2;
}

.tev-seo-category-card__sub {
  font-size: 0.5rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.22;
}

.tev-seo-category-card--accent {
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  border-color: transparent;
}

.tev-seo-category-card--accent .tev-seo-category-card__title,
.tev-seo-category-card--accent .tev-seo-category-card__sub {
  color: #fff;
}

.tev-seo-category-card--accent .tev-seo-category-card__sub {
  color: rgba(255, 255, 255, 0.82);
}

.tev-seo-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.tev-seo-inline-links a {
  color: #1d4ed8;
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.tev-seo-inline-links a:hover {
  background: #dbeafe;
  text-decoration: underline;
}

.tev-mp-seo-strip {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.tev-mp-seo-strip p {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e3a8a;
}

.tev-mp-seo-strip .tev-seo-inline-links {
  margin: 0;
}

.tev-subpage-category-tiles {
  width: min(1200px, calc(100% - 2rem));
  margin: 0.75rem auto 1rem;
  box-sizing: border-box;
}

body.tev-cart-page .tev-subpage-category-tiles,
body.tev-compliance-page .tev-subpage-category-tiles,
body.tev-seo-landing .tev-subpage-category-tiles {
  padding: 0 0.25rem;
}

body.tev-marketplace-page .tev-subpage-category-tiles {
  width: 100%;
  margin: 0.5rem 0 0.85rem;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.tev-category-explainer {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid #bfdbfe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.tev-category-explainer__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.tev-category-explainer__back:hover {
  background: #dbeafe;
}

.tev-category-explainer__badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tev-category-explainer h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.3;
}

.tev-category-explainer__lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
}

.tev-category-explainer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tev-category-explainer__card {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.tev-category-explainer__card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.tev-category-explainer__card p,
.tev-category-explainer__card li {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #64748b;
}

.tev-category-explainer__card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tev-category-explainer__card a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.tev-category-explainer__card a:hover {
  text-decoration: underline;
}

.tev-seo-category-card--active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), 0 8px 18px rgba(37, 99, 235, 0.14);
}

@media (max-width: 760px) {
  .tev-category-explainer__grid {
    grid-template-columns: 1fr;
  }
}

/* Home EV Charger — polished body layout */
.tev-home-charger-body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.tev-home-charger-body--landing {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4rem);
}

#chargers.chargers-panel--focused .tev-home-charger-body {
  padding-top: clamp(0.75rem, 2.5vw, 1.25rem);
}

.tev-home-charger-body__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 1.75rem);
  box-sizing: border-box;
}

.tev-home-charger-body__intro {
  margin: 0 0 clamp(0.85rem, 2.5vw, 1.15rem);
  text-align: center;
}

.tev-home-charger-body__lead {
  margin: 0 auto;
  max-width: min(1100px, 100%);
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  line-height: 1.55;
  color: #475569;
}

.tev-home-charger-body__lead-line {
  display: block;
}

@media (min-width: 900px) {
  .tev-home-charger-body__lead-line {
    white-space: nowrap;
  }
}

.tev-home-charger-body__tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
}

.tev-home-charger-body__table-wrap {
  min-width: 0;
  padding: clamp(0.75rem, 2vw, 0.95rem);
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.tev-home-charger-body__table-heading {
  margin: 0 0 0.55rem;
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.tev-home-charger-body__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(0.72rem, 1.6vw, 0.8rem);
  line-height: 1.45;
}

.tev-home-charger-body__table thead th {
  padding: 0.4rem 0.5rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
}

.tev-home-charger-body__table thead th:first-child {
  width: 34%;
  border-radius: 8px 0 0 0;
}

.tev-home-charger-body__table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.tev-home-charger-body__table tbody td {
  padding: 0.42rem 0.5rem;
  vertical-align: top;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.tev-home-charger-body__table tbody tr:last-child td {
  border-bottom: none;
}

.tev-home-charger-body__table tbody td:first-child {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.tev-home-charger-body__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
}

.tev-home-charger-body__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tev-home-charger-body__cta--primary {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.tev-home-charger-body__cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
  color: #ffffff;
}

.tev-home-charger-body__cta--secondary {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.tev-home-charger-body__cta--secondary:hover {
  transform: translateY(-1px);
  background: #eff6ff;
  color: #1d4ed8;
}

.tev-home-charger-body__faq {
  margin: 0 0 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.45rem);
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.tev-home-charger-body__faq-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.tev-home-charger-body__faq-item {
  border-top: 1px solid #e2e8f0;
  padding: 0.65rem 0;
}

.tev-home-charger-body__faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.tev-home-charger-body__faq-item summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.45;
}

.tev-home-charger-body__faq-item p {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
}

.tev-home-charger-body__updated {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

#chargers.chargers-panel--focused .tev-home-charger-body ~ .tev-mp-intro,
#chargers.chargers-panel--focused .tev-home-charger-body ~ .tev-mp-grid {
  width: min(1100px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 1.75rem);
  padding-right: clamp(1rem, 3.5vw, 1.75rem);
  box-sizing: border-box;
}

#home-vendor-grid {
  scroll-margin-top: clamp(5rem, 12vw, 7rem);
}

@media (max-width: 760px) {
  .tev-home-charger-body__tables {
    grid-template-columns: 1fr;
  }

  .tev-home-charger-body__table tbody td:first-child {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .tev-home-charger-body__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .tev-home-charger-body__cta {
    width: 100%;
  }
}
