/* ==========================================================
   THE POLITICAL RIFT — ARTICLES (Posts)
   File: article-editorial.css
   Scope: single posts + .pr-article-hero
   Goal: Follow theme colors, lock editorial rhythm, museum-grade hero image
========================================================== */

/* ---------------------------
   Base rhythm (theme owns colors + fonts)
--------------------------- */
.single-post .entry-content {
  line-height: 1.75;
}

/* Keep a readable measure without fighting your theme.
   If your theme already constrains content, you can delete this block. */
.single-post .entry-content > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------
   Header color safety net (theme-first, fallback-only)
   - Uses WordPress preset accent if available
   - Falls back to --accent-color if you have it
   - Final fallback: #ff6f00
--------------------------- */
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3 {
  color: var(--wp--preset--color--accent, var(--accent-color, #ff6f00));
}

/* ---------------------------
   Header hierarchy + spacing (no font-family overrides)
--------------------------- */
.single-post .entry-content h1 {
  margin-top: 0;
  margin-bottom: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.single-post .entry-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  line-height: 1.3;
  font-weight: 650;
}

.single-post .entry-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.35;
  font-weight: 600;
}

/* Prevent cramped headers after media/quotes */
.single-post .entry-content figure + h2,
.single-post .entry-content blockquote + h2,
.single-post .entry-content p + h2 {
  margin-top: 44px;
}

/* Paragraph rhythm */
.single-post .entry-content p {
  margin: 0 0 16px;
}

/* Links: keep theme color, just make underline cleaner */
.single-post .entry-content a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------------------------
   HERO IMAGE (LOCKED STANDARD)
   Add this wrapper in post HTML:
   <figure class="pr-article-hero">...</figure>
--------------------------- */
.single-post .pr-article-hero {
  max-width: 1100px;
  margin: 0 auto 34px;
  text-align: center;
}

/* Improved image presentation: museum "float" + crisp rendering */
.single-post .pr-article-hero img {
  width: 100%;
  height: auto;
  display: block;

  /* museum edge */
  border-radius: 14px;

  /* gallery depth */
  box-shadow:
    0 18px 50px rgba(0,0,0,0.18),
    0 1px 0 rgba(255,255,255,0.35) inset;

  /* improve perceived sharpness without changing colors */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;

  /* avoid accidental white frames from theme defaults */
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
}

/* Subtle hover lift on devices that support hover */
@media (hover: hover) {
  .single-post .pr-article-hero img:hover {
    transform: translateY(-2px);
    box-shadow:
      0 26px 70px rgba(0,0,0,0.22),
      0 1px 0 rgba(255,255,255,0.35) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
}

/* Caption: follows theme text color via opacity (no hard color) */
.single-post .pr-article-hero figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.75;
}

/* Optional: museum-style quote block accent using theme accent */
.single-post .entry-content blockquote {
  margin: 30px auto;
  padding: 18px 22px;
  max-width: 900px;

  border-left: 4px solid var(--wp--preset--color--accent, var(--accent-color, #ff6f00));
  background: rgba(255, 255, 255, 0.45);
  border-radius: 10px;
}

/* Keep quote text readable without forcing colors */
.single-post .entry-content blockquote p {
  margin: 0;
}

/* ---------------------------
   Mobile polish
--------------------------- */
@media (max-width: 520px) {
  .single-post .entry-content > * {
    max-width: 92vw;
  }

  .single-post .entry-content h1 {
    margin-bottom: 18px;
  }

  .single-post .entry-content h2 {
    margin-top: 30px;
  }

  .single-post .pr-article-hero {
    margin-bottom: 26px;
  }

  .single-post .pr-article-hero figcaption {
    font-size: 13px;
  }
}