
/* Editorial styles for the Guides landing page and guide articles only.
   Loaded only by /guides/ and the three guide article pages. */
.guide-hero{position:relative;isolation:isolate;padding:4.4rem 0 3.2rem!important;margin-bottom:1.2rem}
.guide-hero:before{content:"";position:absolute;z-index:-1;inset:0 calc((100vw - 100%)/-2);background:linear-gradient(115deg,#eaf5ed 0%,#f2f7f1 55%,#f8f9f5 100%);border-bottom:1px solid #e0eae1}
.guide-hero h1{max-width:920px!important;font-size:clamp(2.65rem,5vw,4.1rem)!important;line-height:1.04!important;letter-spacing:-.065em!important}
.guide-hero .muted{max-width:790px!important;line-height:1.75!important}
.guide-breadcrumb{font-size:.82rem;color:#71857b;margin:0 0 1.5rem}
.guide-breadcrumb a{color:#087b68;text-decoration:none}
.guide-index-content{padding-top:2.4rem!important}
.guide-section-heading{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}
.guide-section-heading h2,.guide-topic-band h2{font:800 clamp(1.7rem,3vw,2.35rem)/1.18 var(--display);letter-spacing:-.045em;margin:.35rem 0}
.guide-section-heading p,.guide-topic-band p{color:var(--muted);margin:.4rem 0 0;max-width:620px}
.guide-text-link{font-weight:800;color:#087b68;text-decoration:none;white-space:nowrap}
.guide-card-grid{gap:1.1rem}
.guide-card{min-height:310px;padding:1.55rem!important}
.guide-card-number{font-size:.7rem;letter-spacing:.12em;font-weight:850;color:#07816d}
.guide-card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e8f8ec;color:#087b68;font-size:1.35rem;font-weight:800;margin:1rem 0}
.guide-card h2{font-size:1.18rem!important}
.guide-card p{line-height:1.7}
.guide-topic-band{display:grid;grid-template-columns:1fr .8fr;gap:2rem;align-items:center;padding:2rem;margin:1rem auto 3rem;background:#eaf4ec;border:1px solid #dce9de;border-radius:22px}
.guide-topic-links{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.guide-topic-links a{display:flex;justify-content:space-between;gap:.7rem;padding:.85rem 1rem;background:#fff;border:1px solid #dce8df;border-radius:12px;color:#173a33;text-decoration:none;font-weight:750}
.guide-topic-links a span{color:#07816d}
.guide-index-note{padding-bottom:2rem}
.guide-article{padding-bottom:2rem}
.guide-article .guide-answer{font-size:1.08rem;line-height:1.8;color:#203f36;background:#edf6ef;border:1px solid #dceadf;border-radius:16px;padding:1.15rem 1.3rem}
.guide-callout{margin:1.2rem 0 1.8rem;padding:1rem 1.2rem;border-left:4px solid #0b8b70;background:#f0f7f1;border-radius:0 12px 12px 0;color:#294b40}
.guide-callout a,.guide-sources a,.related-guides a{color:#087b68;font-weight:700}
.formula-card{display:grid;gap:.55rem;margin:1rem 0;padding:1.1rem 1.2rem;background:#173a33;border-radius:14px;color:#fff;overflow:auto}
.formula-card code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:normal;color:#e7f6eb;font-size:.92rem}
.guide-sources,.related-guides{margin-top:2.5rem;padding:1.2rem 1.35rem;border:1px solid #dce8df;border-radius:15px;background:#fbfdf9}
.guide-sources h2,.related-guides h2{font-size:1.25rem!important;margin:.2rem 0 .8rem!important}
.guide-sources ul{padding-left:1.2rem}
.guide-sources li{margin:.45rem 0}
.guide-sources .small{font-size:.85rem}
@media(max-width:760px){
 .guide-hero{padding:2.8rem 0 2.3rem!important}
 .guide-hero h1{font-size:clamp(2.35rem,9vw,3.25rem)!important}
 .guide-section-heading{align-items:flex-start;flex-direction:column;gap:.7rem}
 .guide-topic-band{grid-template-columns:1fr;padding:1.25rem;margin-bottom:2rem}
 .guide-topic-links{grid-template-columns:1fr}
 .guide-card{min-height:240px}
}

/* White reading surface for guide articles only. */
.guide-article{background:#fff;border:1px solid #e0e9e2;border-radius:22px;padding:clamp(1.35rem,3.4vw,3rem);margin-top:1.4rem;margin-bottom:4rem;box-shadow:0 16px 42px rgba(25,55,43,.055);box-sizing:border-box}
.guide-article > :first-child{margin-top:0}
.guide-article h2{scroll-margin-top:2rem}
@media(max-width:760px){.guide-article{border-radius:16px;padding:1.2rem;margin-top:.8rem;margin-bottom:2.5rem}}


/* Final article panel sizing: use the normal site .wrap container, not viewport width. */
.guide-article{
  width:100%;
  max-width:none;
  margin:1.4rem auto 4rem;
  background:#fff;
  border:1px solid #e0e9e2;
  border-radius:22px;
  padding:clamp(1.35rem, 3.4vw, 3rem);
  box-shadow:0 16px 42px rgba(25,55,43,.055);
  box-sizing:border-box;
}
@media(max-width:760px){
  .guide-article{
    border-radius:16px;
    padding:1.2rem;
    margin-top:.8rem;
    margin-bottom:2.5rem;
  }
}


/* Definitive fix: constrain the white article panel to the same centered
   1120px site container as the rest of EVChargeNexa. */
.guide-article.wrap{
  display:block;
  width:min(calc(100% - 28px), 1120px);
  max-width:1120px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
@media(max-width:760px){
  .guide-article.wrap{
    width:calc(100% - 28px);
    margin-left:auto;
    margin-right:auto;
  }
}
