/* Premium editorial layer for EV Plug Finder charging guides.
   Built to sit on top of the main site theme without changing app behavior. */

.guide-page {
  overflow-x: hidden;
  background: var(--bg);
}

.guide-main { width: 100%; }

/* ---------- Premium hero ---------- */
.guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--teal-soft) 54%, var(--surface));
}

.guide-hero::before,
.guide-hero::after { display: none; }

.guide-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 50px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--teal-dark);
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs span[aria-hidden="true"] { color: var(--muted-2); }

.guide-hero .eyebrow,
.guide-section > .eyebrow,
.region-group > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.guide-hero .eyebrow::before,
.guide-section > .eyebrow::before,
.region-group > .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 10%, transparent);
}

.guide-hero h1 {
  max-width: 820px;
  margin: 11px 0 0;
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.guide-dek {
  max-width: 800px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.guide-search {
  max-width: 850px;
  margin: 28px 0 0;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(13, 81, 72, .08);
}

.guide-search .search-shell {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.guide-search .search-input-wrap {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.guide-search .primary-button {
  box-shadow: none;
}

.guide-search-note {
  margin: 8px 10px 2px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Editorial body ---------- */
.guide-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 88px;
}

.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
}

.guide-intro-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.guide-intro-copy::before {
  content: "At a glance";
  width: fit-content;
  margin-bottom: 2px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-intro-copy p { margin: 0; }

.guide-tip-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 20px 22px;
  border: 0;
  border-left: 3px solid var(--teal);
  border-radius: 0;
  background: color-mix(in srgb, var(--teal-soft) 52%, var(--surface));
  box-shadow: none;
}

.guide-tip-card::before { display: none; }

.guide-tip-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.guide-tip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.guide-section {
  position: relative;
  margin-top: 32px;
  padding: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guide-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  border-radius: 0;
  background: var(--teal);
}

.guide-section h2 {
  max-width: 820px;
  margin: 8px 0 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.16;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.guide-section-lead {
  max-width: 780px;
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 14px;
}

/* Strategy cards */
.context-grid {
  counter-reset: context-card;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.context-card {
  counter-increment: context-card;
  position: relative;
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.context-card::before {
  content: "0" counter(context-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-bottom: 14px;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.context-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  box-shadow: none;
}

.context-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.34;
  letter-spacing: -.026em;
}

.context-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

/* Numbered plan */
.strategy-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.strategy-list li {
  counter-increment: guide-step;
  position: relative;
  min-height: 58px;
  padding: 15px 0 15px 46px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  line-height: 1.65;
}

.strategy-list li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--teal) 36%, var(--line));
  background: transparent;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

/* Quick searches */
.quick-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 20px;
}

.quick-search-link {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.quick-search-link::after {
  content: "→";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 16px;
}

.quick-search-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  box-shadow: none;
}

/* FAQs */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  position: relative;
  padding: 20px 20px 20px 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq-item::before {
  content: "?";
  position: absolute;
  left: 17px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.faq-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

/* Resource + related cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.related-card {
  position: relative;
  min-height: 128px;
  padding: 20px 46px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.related-card::after {
  content: "↗";
  position: absolute;
  right: 17px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 12px;
}

.related-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal) 28%, var(--line));
  box-shadow: none;
}

.related-card span {
  display: block;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 9px;
  font-weight: 900;
}

.related-card strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.related-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Closing search prompt */
.guide-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 34px;
  padding: 30px 32px;
  border: 0;
  border-radius: 18px;
  background: #08766d;
  color: #fff;
  box-shadow: none;
}

.guide-cta::before { display: none; }

.guide-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.14;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.guide-cta p {
  max-width: 720px;
  margin: 11px 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.68;
  font-size: 14px;
}

.guide-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 20px;
  padding: 0 20px;
  border-radius: 10px;
  background: #fff;
  color: #076f65;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.guide-cta a:hover { transform: translateY(-1px); box-shadow: none; }

.guide-source-note {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 8px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.guide-source-note a { color: var(--teal-dark); }

/* ---------- Guide hub ---------- */
.guide-hub-intro {
  max-width: 880px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.region-group {
  margin-top: 32px;
  padding: 30px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.region-group h2 {
  margin: 0 0 17px;
  font-size: clamp(24px, 3vw, 31px);
  letter-spacing: -.04em;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 182px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.guide-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.guide-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal) 28%, var(--line));
  box-shadow: none;
}

.guide-card .eyebrow { font-size: 9px; }
.guide-card h3 { margin: 10px 0 0; font-size: 20px; line-height: 1.25; letter-spacing: -.032em; }
.guide-card p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.66; }
.guide-card strong { margin-top: auto; padding: 18px 44px 0 0; color: var(--teal-dark); font-size: 11px; }

/* ---------- Dark mode polish ---------- */
@media (prefers-color-scheme: dark) {
  .guide-search { box-shadow: 0 10px 28px rgba(0,0,0,.18); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .guide-hero-inner { padding-top: 48px; }
  .guide-intro { grid-template-columns: 1fr; }
  .context-grid,
  .guide-card-grid { grid-template-columns: 1fr 1fr; }
  .quick-search-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .guide-hero-inner { padding: 30px 15px 34px; }
  .breadcrumbs { margin-bottom: 18px; padding: 0; font-size: 10px; }
  .guide-hero h1 {
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.08;
    letter-spacing: -.038em;
  }
  .guide-dek { margin-top: 14px; font-size: 15px; line-height: 1.58; }
  .guide-search { margin-top: 20px; padding: 7px; border-radius: 14px; }
  .guide-search .search-shell { grid-template-columns: 1fr; }
  .guide-search .primary-button { width: 100%; }
  .guide-search-note { display: none; }

  .guide-body { padding: 26px 15px 84px; }
  .guide-intro { gap: 12px; padding: 18px; border-radius: 14px; }
  .guide-intro-copy { padding: 3px; font-size: 14px; line-height: 1.7; }
  .guide-tip-card { padding: 17px 17px 17px 19px; border-radius: 0; }

  .guide-section { margin-top: 26px; padding: 26px 0 0; border-radius: 0; }
  .guide-section::after { left: 0; width: 42px; }
  .guide-section h2 { font-size: 24px; }
  .guide-section-lead { font-size: 13px; }

  .context-grid,
  .guide-card-grid,
  .quick-search-grid,
  .related-grid { grid-template-columns: 1fr; }
  .context-card { min-height: 0; padding: 18px; }
  .context-card::before { margin-bottom: 12px; }

  .strategy-list li { padding: 14px 0 14px 42px; font-size: 13px; }
  .strategy-list li::before { left: 0; width: 27px; height: 27px; }

  .quick-search-link { min-height: 58px; padding: 13px 14px; }
  .faq-item { padding: 18px 16px 18px 47px; }
  .related-card { min-height: 0; }

  .guide-cta { margin-top: 28px; padding: 24px 20px; border-radius: 14px; }
  .guide-cta h2 { font-size: 25px; }
  .guide-cta a { width: 100%; justify-content: center; }

  .region-group { margin-top: 26px; padding: 24px 0 0; border-radius: 0; }
  .guide-card { min-height: 168px; }
}

@media (prefers-reduced-motion: reduce) {
  .context-card,
  .quick-search-link,
  .related-card,
  .guide-card,
  .guide-cta a { transition: none; }
}
