/* ==========================================================================
   PlugSolarHub liquid-glass design system, site default.
   Loaded on every page. Pure CSS: no WebGL, no per-frame work, no layout JS.

   Two tiers:
     Tier 1 (this file)  static liquid glass. Deep-green gradient surfaces, gold
                         accents, glass edges and sheen, editorial typography.
                         Costs one cached request. Renders identically everywhere.
     Tier 2 (site.js)    the animated WebGL shader. Budget-capped to the hero
                         moments, lazy, paused offscreen. Purely additive: every
                         surface below already looks finished without it.

   Class names are canonical .psh-*, with .gr-* kept as aliases.
   ========================================================================== */

:root{
  --psh-green:#24553a; --psh-green-lt:#2d6a4f; --psh-ink:#0d1f14; --psh-ink-deep:#081109;
  --psh-gold:#b8922d; --psh-gold-lt:#e8c98a; --psh-cream:#f5f0e8;
  --psh-ff-display:'Playfair Display','Palatino Linotype',Georgia,serif;
  --psh-ff-body:'DM Sans','Segoe UI',Tahoma,sans-serif;
  --psh-ease:cubic-bezier(.4,0,.2,1);
}

/* ---------- Full-bleed dark hero ---------- */
.psh-hero,.gr-hero{position:relative;overflow:hidden;text-align:center;color:var(--psh-cream);
  background:radial-gradient(130% 130% at 50% -12%,#1c4530 0%,var(--psh-ink) 55%,var(--psh-ink-deep) 100%);
  padding:clamp(3.6rem,9vw,6.4rem) 1.5rem clamp(3rem,7vw,4.8rem)}
.psh-hero>*,.gr-hero>*{position:relative;z-index:1}
.psh-hero>.psh-fx,.gr-hero>.psh-fx{position:absolute;inset:0;z-index:0}
.psh-hero::after,.gr-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(232,201,138,.55),transparent);z-index:2}
.psh-hero-in,.gr-hero-in{max-width:900px;margin:0 auto}
.psh-hero h1,.gr-hero h1{font-family:var(--psh-ff-display);font-weight:800;
  font-size:clamp(2.05rem,5.6vw,3.5rem);line-height:1.07;letter-spacing:-.026em;color:#fff;
  margin:0 auto 1.15rem;max-width:18ch;text-shadow:0 2px 36px rgba(0,0,0,.45)}
.psh-hero h1 em,.gr-hero h1 em{font-style:normal;color:var(--psh-gold-lt)}
.psh-hero .dek,.gr-hero .dek{font-size:clamp(1rem,1.75vw,1.18rem);line-height:1.62;
  color:rgba(245,240,232,.84);max-width:60ch;margin:0 auto}
.psh-hero .meta,.gr-hero .meta{margin-top:1.7rem;font-size:.78rem;letter-spacing:.02em;color:rgba(245,240,232,.5)}

/* ---------- Gold pill badge ---------- */
.psh-badge,.gr-badge{display:inline-flex;align-items:center;gap:.55em;font-size:.7rem;font-weight:700;
  letter-spacing:.15em;text-transform:uppercase;color:var(--psh-gold-lt);
  background:rgba(232,201,138,.09);border:1px solid rgba(232,201,138,.32);
  padding:.42em 1.05em;border-radius:100px;margin-bottom:1.5rem}
.psh-badge .d,.gr-badge .d{width:7px;height:7px;border-radius:50%;background:var(--psh-gold-lt);
  box-shadow:0 0 10px 1px rgba(232,201,138,.85);animation:pshPulse 2.4s ease-in-out infinite}
@keyframes pshPulse{0%,100%{opacity:.35}50%{opacity:1}}

/* ---------- Reading column ---------- */
.psh-lede,.gr-lede{max-width:720px;margin:0 auto;padding:clamp(2rem,4vw,3rem) 1.5rem .5rem}
.psh-lede p,.gr-lede p{font-size:1.08rem;line-height:1.82;color:#33362e;margin:0}
.psh-dropcap::first-letter,.gr-dropcap::first-letter{float:left;font-family:var(--psh-ff-display);
  font-weight:800;font-size:3.5em;line-height:.76;padding:.05em .12em 0 0;color:var(--psh-green)}
.psh-read,.gr-read{max-width:720px;margin:0 auto;padding:0 1.5rem}
.psh-read p,.gr-read p{font-size:1.02rem;line-height:1.8;color:#33362e;margin-bottom:1.05rem}
.psh-read p strong,.gr-read p strong{color:#1c1e1a;font-weight:600}
.psh-read ul,.gr-read ul{margin:1rem 0 1.4rem;padding:0;list-style:none}
.psh-read ul li,.gr-read ul li{position:relative;padding-left:1.75rem;margin-bottom:.85rem;
  font-size:1rem;line-height:1.72;color:#33362e}
.psh-read ul li::before,.gr-read ul li::before{content:"";position:absolute;left:0;top:.6em;width:8px;height:8px;
  border-radius:50%;background:var(--psh-green-lt);box-shadow:0 0 0 4px #e8f5ec}
.psh-read ul li strong,.gr-read ul li strong{color:#1c1e1a;font-weight:700}

/* ---------- Section heading with gold rule ---------- */
.psh-h2,.gr-h2{font-family:var(--psh-ff-display);font-size:clamp(1.4rem,3vw,1.95rem);font-weight:700;
  line-height:1.2;letter-spacing:-.02em;color:#1c1e1a;margin:2.7rem 0 .9rem;position:relative;padding-top:1.25rem}
.psh-h2::before,.gr-h2::before{content:"";position:absolute;top:0;left:0;width:46px;height:3px;
  border-radius:3px;background:linear-gradient(90deg,var(--psh-gold),var(--psh-gold-lt))}

/* ---------- Dark feature band with glass steps ---------- */
.psh-band,.gr-decision{position:relative;overflow:hidden;color:#f2f7f3;
  background:radial-gradient(120% 120% at 12% -5%,#1c4531 0%,#0f2418 60%,#0a1a10 100%);
  padding:clamp(2.7rem,6vw,4.2rem) 1.5rem;margin:clamp(2.6rem,5vw,3.6rem) 0}
.psh-band>*,.gr-decision>*{position:relative;z-index:1}
.psh-band>.psh-fx,.gr-decision>.psh-fx{position:absolute;inset:0;z-index:0}
.psh-band-in,.gr-decision-in{max-width:840px;margin:0 auto}
.psh-band .k,.gr-decision .k{font-size:.72rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  color:var(--psh-gold-lt);margin-bottom:.55rem}
.psh-band h2,.gr-decision h2{font-family:var(--psh-ff-display);font-size:clamp(1.5rem,3.4vw,2.15rem);
  font-weight:700;color:#fff;margin-bottom:1.9rem;letter-spacing:-.02em;line-height:1.18}
.psh-steps,.gr-steps{display:grid;gap:1rem}
.psh-step,.gr-step{display:flex;gap:1.15rem;align-items:flex-start;padding:1.2rem 1.35rem;border-radius:16px;
  background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
.psh-step .n,.gr-step .n{flex-shrink:0;font-family:var(--psh-ff-display);font-size:1.6rem;font-weight:800;
  color:var(--psh-gold-lt);line-height:1;width:1.4em;text-align:center}
.psh-step p,.gr-step p{margin:0;font-size:.98rem;line-height:1.62;color:rgba(242,247,243,.9)}
.psh-step p strong,.gr-step p strong{color:#fff;font-weight:700}
.psh-src,.gr-src{margin-top:1.55rem;font-size:.78rem;color:rgba(242,247,243,.55);line-height:1.55}
.psh-src strong,.gr-src strong{color:rgba(242,247,243,.8)}

/* ---------- Oversized figure band ---------- */
.psh-numbers,.gr-numbers{position:relative;overflow:hidden;color:var(--psh-cream);
  background:linear-gradient(135deg,#0c1c12 0%,#153320 100%);
  padding:clamp(2.9rem,6vw,4.4rem) 1.5rem;margin:clamp(2.7rem,5vw,3.7rem) 0}
.psh-numbers>*,.gr-numbers>*{position:relative;z-index:1}
.psh-numbers>.psh-fx,.gr-numbers>.psh-fx{position:absolute;inset:0;z-index:0}
.psh-numbers-in,.gr-numbers-in{max-width:960px;margin:0 auto}
.psh-numbers .lead,.gr-numbers .lead{text-align:center;font-family:var(--psh-ff-display);
  font-size:clamp(1.3rem,3vw,1.85rem);font-weight:700;color:#fff;margin-bottom:2.1rem;
  letter-spacing:-.02em;line-height:1.2}
.psh-figs,.gr-fig-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
@media(max-width:720px){.psh-figs,.gr-fig-grid{grid-template-columns:1fr 1fr;gap:1.9rem 1rem}}
.psh-fig,.gr-fig{text-align:center}
.psh-fig .num,.gr-fig .num{font-family:var(--psh-ff-display);font-weight:800;
  font-size:clamp(2.2rem,5.2vw,3.3rem);line-height:1;color:var(--psh-gold-lt);letter-spacing:-.02em}
.psh-fig .num small,.gr-fig .num small{font-size:.4em;color:rgba(232,201,138,.78);font-weight:700;letter-spacing:.02em}
.psh-fig .lbl,.gr-fig .lbl{margin-top:.6rem;font-size:.82rem;line-height:1.42;color:rgba(245,240,232,.72)}

/* ---------- Gold-edged note ---------- */
.psh-note,.gr-correction{position:relative;margin:1.9rem 0;padding:1.3rem 1.4rem 1.3rem 1.65rem;
  border-radius:14px;background:linear-gradient(180deg,#fdf8ec,#fbf3de);border:1px solid #ecd9a4;
  font-size:.99rem;line-height:1.68;color:#33362e}
.psh-note::before,.gr-correction::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  border-radius:14px 0 0 14px;background:linear-gradient(180deg,var(--psh-gold),var(--psh-gold-lt))}
.psh-note strong,.gr-correction strong{color:#7a5c12}

/* ---------- Status timeline ---------- */
.psh-timeline,.gr-timeline{max-width:720px;margin:1.7rem auto .4rem;position:relative;padding-left:2.3rem}
.psh-timeline::before,.gr-timeline::before{content:"";position:absolute;left:9px;top:.7rem;bottom:.7rem;width:2px;
  background:linear-gradient(180deg,var(--psh-green-lt),var(--psh-gold) 55%,#d8d4c8)}
.psh-tl,.gr-tl{position:relative;margin-bottom:1.6rem}
.psh-tl:last-child,.gr-tl:last-child{margin-bottom:0}
.psh-tl::before,.gr-tl::before{content:"";position:absolute;left:-2.3rem;top:.15rem;width:20px;height:20px;
  border-radius:50%;border:3px solid #faf9f5;box-shadow:0 0 0 2px currentColor}
.psh-tl.done,.gr-tl.done{color:var(--psh-green-lt)}
.psh-tl.now,.gr-tl.now{color:var(--psh-gold)}
.psh-tl.next,.gr-tl.next{color:#b0ab9c}
.psh-tl.done::before,.gr-tl.done::before{background:var(--psh-green-lt)}
.psh-tl.now::before,.gr-tl.now::before{background:var(--psh-gold)}
.psh-tl.next::before,.gr-tl.next::before{background:#faf9f5}
.psh-tl .st,.gr-tl .st{font-size:.71rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.25rem}
.psh-tl h4,.gr-tl h4{font-family:var(--psh-ff-display);font-size:1.08rem;font-weight:700;color:#1c1e1a;
  margin:0 0 .28rem;line-height:1.3}
.psh-tl p,.gr-tl p{margin:0;font-size:.93rem;line-height:1.62;color:#6b6e64}

/* ---------- CTA wrapper ---------- */
.psh-cta-wrap,.gr-cta-wrap{max-width:720px;margin:clamp(2.6rem,5vw,3.6rem) auto 0;padding:0 1.5rem}

/* ==========================================================================
   Performance guards. These are not optional polish, they are the reason the
   system is safe as a site-wide default.
   ========================================================================== */

/* Backdrop-filter forces the compositor to resample the backdrop on every
   scrolled frame. That is the single biggest cause of scroll jank on mid-range
   Android. Below 700px the glass steps fall back to a flat translucent fill
   that looks near-identical and costs nothing. */
@media(max-width:700px){
  .psh-step,.gr-step{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,.07)}
}

/* Respect the user's motion preference: kill the badge pulse and let site.js
   skip the shader. The static gradients below still carry the whole look. */
@media(prefers-reduced-motion:reduce){
  .psh-badge .d,.gr-badge .d{animation:none}
  .psh-hero,.gr-hero,.psh-band,.gr-decision,.psh-numbers,.gr-numbers{scroll-behavior:auto}
}

/* Printing: drop the dark bands so articles print legibly and cheaply. */
@media print{
  .psh-hero,.gr-hero,.psh-band,.gr-decision,.psh-numbers,.gr-numbers{
    background:none!important;color:#000!important;padding:1rem 0!important}
  .psh-hero h1,.gr-hero h1,.psh-band h2,.gr-decision h2,.psh-numbers .lead,.gr-numbers .lead{color:#000!important}
  .psh-fx{display:none!important}
}

/* ---------- Inset hero variant (for heroes that live inside a page container) ---------- */
.psh-hero--inset{border-radius:20px;padding:clamp(2.4rem,5vw,3.4rem) clamp(1.4rem,4vw,2.4rem);
  margin-bottom:2rem;box-shadow:0 20px 48px rgba(12,28,18,.22)}
.psh-hero--inset::after{border-radius:0 0 20px 20px}
.psh-hero--inset h1{font-size:clamp(1.75rem,4.4vw,2.6rem);max-width:22ch}

/* ---------- Common light-page children reused inside a dark hero ---------- */
.psh-hero .hero-features{display:flex;justify-content:center;gap:1.1rem;flex-wrap:wrap;margin-top:1.5rem}
.psh-hero .hero-feat{font-size:.79rem;color:rgba(245,240,232,.75);display:flex;align-items:center;gap:.35rem}
.psh-hero .hero-feat::before{content:'\2713';color:var(--psh-gold-lt);font-weight:700}
.psh-hero .hero-meta{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center;justify-content:center;
  font-size:.76rem;color:rgba(245,240,232,.6);margin-bottom:1.1rem}
.psh-hero .hero-meta-item{display:flex;align-items:center;gap:5px}
.psh-hero .hero-meta-item svg{width:14px;height:14px}
.psh-hero .lead{font-size:clamp(1rem,1.75vw,1.15rem);line-height:1.62;color:rgba(245,240,232,.84);
  max-width:60ch;margin:0 auto}

/* ---------- Gold-ruled section headings on existing pages ----------
   .sh headings are centred on the homepage, so the rule is centred with them.
   .psh-goldrule is the left-aligned variant for editorial columns. */
.sh h2,.psh-goldrule{position:relative;padding-top:1.15rem}
.sh h2::before,.psh-goldrule::before{content:"";position:absolute;top:0;width:46px;height:3px;
  border-radius:3px;background:linear-gradient(90deg,var(--psh-gold),var(--psh-gold-lt))}
.sh h2::before{left:50%;transform:translateX(-50%)}
.psh-goldrule::before{left:0}
