/* Prose styling for WordPress-editor pages rendered in the v3 chrome.
   Owner: FOUNDATION.

   The 24 designed pages carry bespoke section markup. The remaining routes are
   edited in WordPress, so their body arrives as Gutenberg blocks (wp-block-*)
   inside .v3-prose. These rules give that generic markup the same rhythm,
   measure and colour as the designed pages — so no page ever falls back to the
   parent theme's look. */

.v3-prose {
  max-width: 68ch;
  color: var(--text-1, #d7e3ec);
  font-weight: 300;
  font-size: var(--step-body, 1.02rem);
  line-height: 1.62;
}

.v3-prose > * + * {
  margin-top: 1.15em;
}

.v3-prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--pale, #e9f1f7);
}

.v3-prose h3 {
  margin-top: 1.9em;
  font-size: clamp(1.12rem, 0.98rem + 0.5vw, 1.35rem);
  font-weight: 500;
  color: var(--pale, #e9f1f7);
}

.v3-prose h2 em,
.v3-prose h3 em {
  font-style: normal;
  font-weight: 600;
  color: var(--sky, #5e9ac8);
}

.v3-prose strong {
  font-weight: 600;
  color: var(--pale, #e9f1f7);
}

.v3-prose a {
  color: var(--sky, #5e9ac8);
  text-underline-offset: 0.18em;
}

.v3-prose ul,
.v3-prose ol {
  padding-left: 1.15rem;
}

.v3-prose li + li {
  margin-top: 0.5em;
}

.v3-prose li::marker {
  color: var(--sky, #5e9ac8);
}

.v3-prose blockquote {
  margin-left: 0;
  padding: 0.1rem 0 0.1rem 1.15rem;
  border-left: 2px solid var(--sky, #5e9ac8);
  color: var(--text-2, #9fb3c4);
}

.v3-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* wide content must scroll inside itself, never the page */
.v3-prose table,
.v3-prose pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Pillar figure on the editor-written pages. Owner: FOUNDATION.
   These pages carry 1600-1800 words and had no image at all; one wide figure
   between the hero and the prose gives the eye somewhere to land. Sits outside
   the 674px prose measure on purpose, so it reads as a band rather than an
   illustration squeezed into the column. */
.v3-pillar-figure {
  margin: 0 auto 2.6rem;
  max-width: 940px;
  padding-inline: clamp(1.2rem, 4vw, 3rem);
}

.v3-pillar-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(6, 14, 22, 0.45);
}

@media (max-width: 640px) {
  .v3-pillar-figure { margin-bottom: 1.8rem; }
  .v3-pillar-figure img { border-radius: 8px; }
}
