/* Red y Energía — blog post styling (Gutenberg native blocks).
   Scoped to single posts only; brand tokens match the pixel-clone site. */

.single-post :where(.entry-content, .wp-block-post-content){
  --rye-ink:#0b0f0e;
  --rye-green:#1d6362;
  --rye-green-dark:#0f3b37;
  --rye-lime:#d0fa93;
  --rye-gray-body:#55605e;
  --rye-hairline:#e2e6ea;
  --rye-surface:#f4f8fb;
  font-family:"Plus Jakarta Sans","Aeonik","General Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--rye-ink);
  max-width:748px;
  margin-left:auto;
  margin-right:auto;
  font-size:18px;
  line-height:1.7;
}

.single-post :where(.entry-content, .wp-block-post-content) :where(h1,h2,h3,h4){
  font-family:"Plus Jakarta Sans",sans-serif;
  font-weight:500;
  letter-spacing:-0.02em;
  line-height:1.2;
  color:var(--rye-ink);
}
.single-post :where(.entry-content, .wp-block-post-content) h2{ margin-top:64px; font-size:clamp(26px,3vw,34px); }
.single-post :where(.entry-content, .wp-block-post-content) h3{ margin-top:44px; font-size:clamp(21px,2vw,25px); }
.single-post :where(.entry-content, .wp-block-post-content) p{ margin-top:22px; color:var(--rye-gray-body); }
.single-post :where(.entry-content, .wp-block-post-content) ul, .single-post :where(.entry-content, .wp-block-post-content) ol{ margin-top:22px; padding-left:1.3em; color:var(--rye-gray-body); }
.single-post :where(.entry-content, .wp-block-post-content) li{ margin-top:10px; line-height:1.6; }
.single-post :where(.entry-content, .wp-block-post-content) li::marker{ color:var(--rye-green); }

.rye-lede{
  font-size:20px !important;
  line-height:1.6 !important;
  color:var(--rye-ink) !important;
  font-weight:400;
  border-left:3px solid var(--rye-lime);
  padding-left:22px;
  margin-top:28px !important;
}

.rye-hero-cover{
  border-radius:24px;
  overflow:hidden;
  margin-top:36px;
  min-height:420px !important;
}
.rye-hero-cover .wp-block-cover__image-background{ border-radius:24px; }

.rye-eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:500;
  letter-spacing:0.09em;
  text-transform:uppercase;
  color:var(--rye-green);
  margin-bottom:6px;
}

.rye-callout{
  background:var(--rye-surface);
  border-left:3px solid var(--rye-green);
  border-radius:16px;
  padding:32px 36px !important;
  margin-top:48px !important;
}
.rye-callout p{ margin-top:0 !important; color:var(--rye-ink) !important; font-size:19px; line-height:1.55; }
.rye-callout cite{ display:block; margin-top:14px; font-size:14px; color:var(--rye-gray-body); font-style:normal; }

.rye-stat-row{
  margin-top:48px !important;
  gap:24px !important;
}
.rye-stat{
  background:var(--rye-ink);
  border-radius:16px;
  padding:28px 26px !important;
  color:#fff;
}
.rye-stat .rye-stat-value{ font-size:34px; font-weight:500; letter-spacing:-0.02em; color:var(--rye-lime); line-height:1.1; }
.rye-stat .rye-stat-label{ margin-top:8px !important; font-size:14px; color:rgba(255,255,255,0.74) !important; }

.rye-inline-figure{ margin-top:44px !important; border-radius:16px; overflow:hidden; }
.rye-inline-figure img{ border-radius:16px; }
.rye-inline-figure figcaption{ margin-top:12px; font-size:14px; color:var(--rye-gray-body); text-align:center; }

.rye-cta-block{
  margin-top:56px !important;
  padding:40px !important;
  background:var(--rye-green) !important;
  border-radius:20px;
  color:#fff;
}
.rye-cta-block h3, .rye-cta-block p{ color:#fff !important; }
.rye-cta-block .wp-block-buttons{ margin-top:20px !important; }

.single-post .wp-block-button .wp-block-button__link{
  border-radius:999px !important;
  padding:14px 30px !important;
  font-weight:500 !important;
  font-family:"Plus Jakarta Sans",sans-serif;
}
.single-post .rye-btn-lime .wp-block-button__link{ background:var(--rye-lime) !important; color:var(--rye-ink) !important; }
.single-post .rye-btn-white .wp-block-button__link{ background:#fff !important; color:var(--rye-ink) !important; }

.rye-separator.wp-block-separator{ border-top:1px solid var(--rye-hairline); margin:56px 0 !important; opacity:1; }

.single-post .wp-block-post-title{
  font-family:"Plus Jakarta Sans",sans-serif !important;
  font-weight:500 !important;
  letter-spacing:-0.02em !important;
  line-height:1.15 !important;
  max-width:820px;
  margin-left:auto !important;
  margin-right:auto !important;
  color:#0b0f0e !important;
}
.single-post .wp-block-post-featured-image{
  max-width:900px;
  margin-left:auto !important;
  margin-right:auto !important;
  margin-top:32px !important;
}
.single-post .wp-block-post-featured-image img{
  border-radius:24px !important;
}
