/* ============================================================
   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>
   ============================================================ */

.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 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;
}

.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 a {
  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:hover,
.sec-23-prose a: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;
  }
}

/* --- list-then-paragraph spacing ---
   A <p> straight after a <ul> inherited no top margin, so it butted against the final
   bullet at a different indent and read as part of the list. Seen on privacy, contact
   and the city pages. */
.sec-23-prose .sec-23-prose__list + p { margin-top: 1.35rem; }
.sec-23-prose .sec-23-prose__list { margin-bottom: 0; }
.sec-23-prose p + .sec-23-prose__h { margin-top: 2.75rem; }

/* --- card grids inside a prose page ---
   City, team and news pages are prose PAGES but they carry real link collections, and a
   bulleted list of 24 default-blue links is not the site's design language. They reuse the
   card components that already exist (50-wwt-grid, 65-serv-pairs, 40-about-team). Those
   selectors are not nested under their section roots, so they style correctly here with no
   new component. These rules only handle the surrounding spacing and the column count.
   The prose column is narrow, so a card grid is allowed to break out of it. */
.sec-23-prose .sec-23-prose__cardgrid {
  margin: 1.75rem 0 2.75rem;
  width: 100%;
  /* the prose column clamps children to 68ch for readability; a card grid is not prose
     and must use the full container width or the cards squash to one narrow column */
  max-width: none;
}
/* 10 team members read as 5 + 5 rather than the about page's 4 + 4 + 2 orphan row */
.sec-23-prose .sec-40-about-team__grid.sec-23-prose__cardgrid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* 8 services and 5 posts: let them flow rather than forcing two columns */
.sec-23-prose .sec-65-serv-pairs__grid.sec-23-prose__cardgrid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.sec-23-prose .sec-23-prose__cardgrid + .sec-23-prose__h { margin-top: 1rem; }

/* --- cardgrid link reset ---
   `.sec-23-prose a` gives prose links an accent underline, which is right for body copy
   and wrong for the reused card components: a whole card is an <a>, so every word inside
   it was rendering underlined and accent-blue. Cards keep their own component styling. */
.sec-23-prose .sec-23-prose__cardgrid a {
  color: inherit;
  text-decoration: none;
}
.sec-23-prose .sec-23-prose__cardgrid a:hover,
.sec-23-prose .sec-23-prose__cardgrid a:focus-visible {
  color: inherit;
}

/* --- card typography reset ---
   Prose sets a generous body line-height for reading. Inside a card a two-line title then
   looks loose and unset. Cards use their own component rhythm. */
.sec-23-prose .sec-23-prose__cardgrid .sec-65-serv-pairs__title,
.sec-23-prose .sec-23-prose__cardgrid h3 {
  line-height: 1.15;
}
.sec-23-prose .sec-23-prose__cardgrid p,
.sec-23-prose .sec-23-prose__cardgrid .sec-65-serv-pairs__desc {
  line-height: 1.5;
}
