/* =========================================================
   Analysis article template — persianepochtimes
   Enqueued only on single posts in the "top-news" category.
   RTL-first.
   ========================================================= */

.analysis-article{
  --accent:#c8102e;      /* editorial red — change to your brand accent */
  --muted:#63676f;
  --rule:#e5e7eb;
  --maxw:720px;
}
@media (prefers-color-scheme: dark){
  .analysis-article{ --muted:#9aa0aa; --rule:#272b33; --accent:#ff5a6e; }
}

/* shared type styles */
.analysis-article .eyebrow{
  display:inline-block; font-weight:800; font-size:.82rem;
  letter-spacing:.08em; color:var(--accent);
}
.analysis-article .title{
  font-size:2.35rem; line-height:1.3; font-weight:900; margin:0;
}

/* ---- full-bleed hero with title overlay ---- */
.analysis-hero{ position:relative; margin:0; max-width: 1440px;margin: 0 auto;}
.analysis-hero img{
  display:block; width:100%; max-width:100%;
  height:clamp(300px, 56vh, 660px);   /* caps the height — adjust to taste */
  object-fit:cover;
}
.analysis-hero__overlay{
  position:absolute; inset:0; display:flex; align-items:flex-end;
  background:linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,.32) 42%, rgba(0,0,0,0) 72%);
}
.analysis-hero__inner{
  width:100%; max-width:var(--maxw); margin:0 auto; padding:0 20px 34px;
}
.analysis-hero__inner .eyebrow{ color:#fff; opacity:.95; }
.analysis-hero__inner .title{
  color:#fff; margin-top:8px;
  text-shadow:0 2px 14px rgba(0,0,0,.6);
}
.analysis-hero__cap{
  max-width:var(--maxw); margin:0 auto; padding:10px 20px 0;
  font-size:.82rem; line-height:1.7; color:var(--muted);
}

/* ---- centered column ---- */
.analysis-wrap{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }

/* ---- header block ---- */
.analysis-head{ padding-top:28px; }
.analysis-head .eyebrow{ margin-bottom:12px; }   /* only shows when no hero image */
.analysis-head .title{ margin-bottom:18px; }     /* only shows when no hero image */
.analysis-head .deck{
  font-size:1.3rem; line-height:1.75; font-weight:500; margin:0 0 24px;
}
.analysis-head .byline{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px;
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
  padding:14px 0; font-size:.92rem; color:var(--muted);
}
.analysis-head .byline a{ color:inherit; font-weight:700; text-decoration:none; }
.analysis-head .byline .sep{ opacity:.5; }

/* ---- share row ---- */
.analysis-share{ display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 4px; }
.analysis-share a,
.analysis-share button{
  display:inline-flex; align-items:center; gap:7px;
  font-family:inherit; font-size:.85rem; font-weight:600; line-height:1;
  color:var(--muted); text-decoration:none; cursor:pointer;
  background:transparent; border:1px solid var(--rule); border-radius:999px;
  padding:8px 14px;
}
.analysis-share a:hover,
.analysis-share button:hover{ border-color:var(--accent); color:var(--accent); }
.analysis-share svg{ width:16px; height:16px; flex:0 0 auto; }
.analysis-share .share-copy.copied{ border-color:var(--accent); color:var(--accent); }

/* ---- body ---- */
.analysis-body{ padding:28px 0 8px; font-size:1.125rem; line-height:1.9; }
.analysis-body p{ margin:0 0 1.35em; }
.analysis-body h2{ font-size:1.5rem; font-weight:800; line-height:1.45; margin:2.2em 0 .7em; }
.analysis-body figure{ margin:2em 0; }
.analysis-body figure img{ width:100%; height:auto; display:block; }
.analysis-body figcaption{ font-size:.82rem; line-height:1.7; color:var(--muted); padding-top:10px; }

/* pull quote (native Quote block + "Pull quote" style) — accent on the RIGHT in RTL */
.analysis-body .wp-block-quote.is-style-pull{
  margin:2em 0; padding:.1em 20px .1em 0;
  border:0; border-inline-start:4px solid var(--accent);
  font-size:1.55rem; line-height:1.65; font-weight:700;
}
.analysis-body .wp-block-quote.is-style-pull cite,
.analysis-body .wp-block-quote.is-style-pull .wp-block-quote__citation{
  display:block; margin-top:.5em; font-size:1rem; font-weight:500;
  font-style:normal; color:var(--muted);
}

/* stat callout ([stat] shortcode) */
.analysis-body .stat{
  text-align:center; margin:2.4em 0; padding:1.8em 1em;
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
}
.analysis-body .stat__num{ font-size:4.2rem; font-weight:900; color:var(--accent); line-height:1; }
.analysis-body .stat__label{ font-weight:800; letter-spacing:.08em; font-size:.95rem; margin-top:.3em; }
.analysis-body .stat__note{ color:var(--muted); font-size:1rem; line-height:1.8; max-width:34ch; margin:.9em auto 0; }

/* related grid */
.analysis-more{ max-width:1040px; margin:48px auto 60px; padding:0 20px; }
.analysis-more .head{ border-bottom:2px solid var(--accent); padding-bottom:10px; margin-bottom:22px; }
.analysis-more .head h3{ font-size:1.25rem; font-weight:900; margin:0; }
.analysis-more .cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:26px; }
.analysis-more .card img{ width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; display:block; }
.analysis-more .card h4{ font-size:1.05rem; line-height:1.6; font-weight:700; margin:12px 0 0; }
.analysis-more .card a{ color:inherit; text-decoration:none; }
.analysis-more .card a:hover h4{ color:var(--accent); }

@media (max-width:620px){
  .analysis-article .title{ font-size:1.9rem; }
  .analysis-hero img{ height:clamp(240px, 48vh, 420px); }
  .analysis-head .deck{ font-size:1.15rem; }
  .analysis-body .wp-block-quote.is-style-pull{ font-size:1.3rem; }
  .analysis-body .stat__num{ font-size:3.2rem; }
}
