/**
 * Consumer-style energy guide article shell (switchermate.com–style layout).
 * Use with body.sm-article--consumer-b2c on individual guide pages.
 */

body.sm-article--consumer-b2c {
  background: #0f0f0f;
}

body.sm-article--consumer-b2c .content-page.sm-b2c-article-page {
  flex: 1;
  width: 100%;
  padding: 0 1.25rem 3rem;
  background: linear-gradient(180deg, #e8edf2 0%, #dfe6ee 50%, #d5dde8 100%);
}

.sm-b2c-article-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.sm-b2c-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 2rem;
  align-items: start;
}

.sm-b2c-article-main {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.08);
  padding clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 2.75rem) clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
}

/* Breadcrumbs — light “article header” (nav.breadcrumb parity) */
body.sm-article--consumer-b2c .sm-b2c-article-main .breadcrumb {
  color: #64748b !important;
  margin-bottom: 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 0 0.75rem;
  max-width: none;
}
body.sm-article--consumer-b2c .sm-b2c-article-main .breadcrumb a {
  color: #64748b !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main .breadcrumb a:hover {
  color: #2E7DD2 !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main .breadcrumb span.sep {
  color: #cbd5e1 !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main .breadcrumb span.current {
  color: #0f172a !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main .guide-back {
  margin: 0.5rem 0 0.75rem;
}
body.sm-article--consumer-b2c .sm-b2c-article-main .guide-back a {
  color: #15803d !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main .guide-back a:hover {
  color: #166534 !important;
}

.sm-b2c-article-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Override legacy dark-theme inline colours inside article */
body.sm-article--consumer-b2c .sm-b2c-article-main h1 {
  color: #0f172a !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
body.sm-article--consumer-b2c .sm-b2c-article-main h2 {
  color: #0f172a !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.35rem;
  margin-top: 2.25rem !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main p,
body.sm-article--consumer-b2c .sm-b2c-article-main li {
  color: #334155 !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main strong,
body.sm-article--consumer-b2c .sm-b2c-article-main a[style*="4CAF50"] {
  color: #15803d !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main a[style*="2E7DD2"] {
  color: #1d4ed8 !important;
}

/* Related guide cards — light “resource” tiles */
body.sm-article--consumer-b2c .sm-b2c-article-main [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
  gap: 1rem !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] > div {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.sm-article--consumer-b2c .sm-b2c-article-main [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] > div:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 4px 12px rgba(46, 125, 210, 0.12);
}
body.sm-article--consumer-b2c .sm-b2c-article-main h4 {
  color: #1e3a5f !important;
}
body.sm-article--consumer-b2c .sm-b2c-article-main [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] span {
  color: #64748b !important;
}

/* Sticky sidebar */
.sm-b2c-article-sidebar {
  position: sticky;
  top: 5.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sm-b2c-sidebar-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.sm-b2c-read-time {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.sm-b2c-sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2E7DD2 !important;
  text-decoration: none !important;
  margin-top: 0.75rem;
}
.sm-b2c-sidebar-back:hover {
  text-decoration: underline !important;
}

@media (max-width: 960px) {
  .sm-b2c-article-grid {
    grid-template-columns: 1fr;
  }
  .sm-b2c-article-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }
  .sm-b2c-sidebar-card {
    flex: 1 1 200px;
  }
}

body.sm-article--consumer-b2c.smb-article #wrap {
  min-height: 100vh;
}

@media (max-width: 767px) {
  body.sm-article--consumer-b2c .content-page.sm-b2c-article-page {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .sm-b2c-article-shell {
    padding-top: 0.75rem;
  }

  .sm-b2c-article-main {
    padding: 1rem 1rem 1.5rem;
    border-radius: 10px;
  }

  .sm-b2c-article-meta {
    font-size: 0.8125rem;
  }

  body.sm-article--consumer-b2c .sm-b2c-article-main h1 {
    font-size: clamp(1.5rem, 6vw, 1.85rem) !important;
    line-height: 1.2 !important;
  }

  body.sm-article--consumer-b2c .sm-b2c-article-main h2 {
    font-size: 1.2rem !important;
    margin-top: 1.75rem !important;
  }

  .sm-b2c-article-sidebar {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    order: -1;
    margin-bottom: 0.75rem;
  }

  .sm-b2c-sidebar-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .sm-b2c-sidebar-back {
    min-height: 48px;
    margin-top: 0.5rem;
  }
}
