/* ============================================================
   23 — Prose
   Long-form text pages. The template's other sections are all composed layouts, and
   base.css resets every margin to 0, so a page of bare <p>/<ul> renders as one
   unreadable block. This section is the minimum needed for the plain content pages a
   client site almost always has and the six master pages do not cover: privacy policy,
   careers, staff bios, city landing pages, thank-you pages.

   Usage:
     <section class="sec-23-prose section on-bone">
       <div class="sec-23-prose__wrap container">
         <h2 class="sec-23-prose__h">...</h2>
         <p>...</p>
         <ul class="sec-23-prose__list"><li>...</li></ul>
       </div>
     </section>
   ============================================================ */

/* CLIENT-BUILD FIX: this section ships with `.section`, which carries no padding
   (the composed sections all use `.section-pad`). On a prose-only page that left the
   last line of copy sitting ~28px above the footer CTA band with no breathing room. */
.sec-23-prose {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.sec-23-prose__wrap {
  /* This element also carries .container, which produces the site's gutter via
     width:min(--container, 100% - 2.5rem) + margin-inline:auto. Narrowing THIS element to
     a 68ch measure makes the auto-centring indent the whole column inward; overriding
     margin-inline to 0 to compensate then jams it against the viewport edge and lets the
     chapter rail print through the copy. Let .container own the gutter, and cap the
     MEASURE on the children instead. */
  max-width: none;
}

.sec-23-prose__wrap > * {
  max-width: 68ch;
}

/* staff-bio portrait: sits above the copy on mobile, floats beside it on desktop */
.sec-23-prose__portrait {
  margin-bottom: 1.6rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  max-width: 260px;
}

.sec-23-prose__portrait img {
  width: 100%;
  height: auto;
}

@media (min-width: 720px) {
  .sec-23-prose__portrait {
    float: right;
    width: 260px;
    margin-left: 2rem;
    margin-bottom: 1.25rem;
  }
}

.sec-23-prose__video {
  margin-bottom: 1.8rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  max-width: 68ch;
}

.sec-23-prose__video video {
  width: 100%;
  height: auto;
}

.sec-23-prose__postcard {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 68ch;
  margin-top: 1.4rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.sec-23-prose__postcard:hover,
.sec-23-prose__postcard:focus-visible {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}
.sec-23-prose__postcard img {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  border-radius: calc(var(--radius-card) - 6px);
}
.sec-23-prose__postcard-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sec-23-prose__postcard-date {
  font-size: var(--fs-small);
  color: var(--text-on-bone-dim);
}
.sec-23-prose__postcard-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  color: var(--text-on-bone);
}
.sec-23-prose__postcard-excerpt {
  color: var(--text-on-bone-dim);
}

.sec-23-prose__postdate {
  font-size: var(--fs-small);
  color: var(--text-on-bone-dim);
  margin-bottom: 0;
}
.sec-23-prose__postdate + .sec-23-prose__portrait {
  margin-top: 0.6rem;
}

@media (max-width: 480px) {
  .sec-23-prose__postcard {
    flex-direction: column;
  }
  .sec-23-prose__postcard img {
    width: 100%;
  }
}

.sec-23-prose p,
.sec-23-prose li {
  color: var(--text-on-bone);
  font-size: 1.02rem;
  line-height: 1.75;
}

.sec-23-prose p + p {
  margin-top: 1.1rem;
}

/* MASTER-TEMPLATE BUG, fixed here: spacing was only defined for p + p, so a paragraph
   that follows a list rendered jammed against the last bullet. The master's demo prose
   never put a paragraph after a list, so it never showed up. Any real long-form page
   does it constantly. Push this back upstream. */
.sec-23-prose__list + p {
  margin-top: 1.1rem;
}

.sec-23-prose__h {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  margin-top: 2.8rem;
  margin-bottom: 0.85rem;
}

.sec-23-prose__h:first-child {
  margin-top: 0;
}

.sec-23-prose__list {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.6rem;
  padding-left: 1.1rem;
}

.sec-23-prose__list li {
  list-style: disc;
  padding-left: 0.35rem;
}

.sec-23-prose__list li::marker {
  color: var(--accent);
}

.sec-23-prose .btn {
  margin: 0.3rem 0.75rem 0.3rem 0;
}

.sec-23-prose a:not(.btn) {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 200ms var(--ease-out);
}

.sec-23-prose a:not(.btn):hover,
.sec-23-prose a:not(.btn):focus-visible {
  color: var(--accent);
}

@media (max-width: 640px) {
  .sec-23-prose p,
  .sec-23-prose li {
    font-size: 0.98rem;
  }
  .sec-23-prose__h {
    margin-top: 2.1rem;
  }
}
