/**
 * Wild Orbit — editorial content enhancement.
 *
 * Loads on long-form, content-heavy pages (wildlife field guides, stories,
 * travel guides, encyclopedia, destinations) to give the single-column
 * `.prose` body a clearer reading rhythm — accented section headers,
 * pull-quotes, a lead-in first paragraph, framed figures — and styles the
 * in-content CTA bands injected by inc/editorial.php.
 *
 * Uses the theme's own colour tokens with safe fallbacks, so it stays on brand.
 */

/* --- Reading rhythm ------------------------------------------------------- */
.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
}
.prose > p {
  margin-block: 0 1.5rem;
}
/* Lead-in: the first paragraph reads as a hook. */
.prose > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #fff;
}

/* Section headers get a short gold accent rule and clear breathing room,
   so a long article scans as distinct sections rather than one wall. */
.prose h2 {
  position: relative;
  margin-block: 3.25rem 1.1rem;
  padding-block-start: 1.5rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent, #f1ad4e);
}
.prose h3 {
  margin-block: 2rem 0.6rem;
  color: var(--color-accent, #f1ad4e);
}

/* Pull-quotes break up the text and carry the brand voice. */
.prose blockquote {
  margin: 2.75rem 0;
  padding: 0.25rem 0 0.25rem 1.6rem;
  border: 0;
  border-inline-start: 3px solid var(--color-accent, #f1ad4e);
  font-family: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.45;
  color: #fff;
}
.prose blockquote p {
  margin: 0;
}

/* Framed imagery with captions. */
.prose figure {
  margin-block: 2.5rem;
}
.prose figure img,
.prose > img {
  border-radius: 14px;
}
.prose figcaption {
  margin-block-start: 0.6rem;
  font-size: 0.85rem;
  color: rgba(248, 243, 237, 0.6);
  text-align: center;
}

/* Gold gradient divider. */
.prose hr {
  border: 0;
  height: 1px;
  margin-block: 3rem;
  background: linear-gradient(90deg, transparent, var(--color-gold, #ae7c35), transparent);
}

/* --- In-content CTA bands ------------------------------------------------- */
.wos-ed-cta {
  margin: 3rem 0;
  padding: 1.9rem 2.1rem;
  border: 1px solid rgba(174, 124, 53, 0.4);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(174, 124, 53, 0.14), rgba(174, 124, 53, 0.03));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.wos-ed-cta--end {
  margin-block-start: 3.5rem;
}
.wos-ed-cta__text {
  flex: 1 1 20rem;
  min-width: 0;
}
.wos-ed-cta__title {
  font-family: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.3rem;
}
.wos-ed-cta__sub {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(248, 243, 237, 0.72);
}
.wos-ed-cta__btn {
  flex: 0 0 auto;
  display: inline-block;
  background: var(--color-gold, #ae7c35);
  color: #1a1205;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.wos-ed-cta__btn:hover,
.wos-ed-cta__btn:focus {
  background: var(--color-accent, #f1ad4e);
}
@media (max-width: 640px) {
  .wos-ed-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .wos-ed-cta__btn {
    width: 100%;
    text-align: center;
  }
}
