/* ============================================================
   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-strong);
}

.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-strong);
  text-decoration-thickness: 2px;
}

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

/* --- Bordered card row: bare facts (accepted plans, prep checklists) that read as a
   flat wall of paragraphs otherwise. Overrides the wrap's universal 68ch child cap
   so the row can actually use the full column width for its 2-3 cards. --- */
.sec-23-prose__cards {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.sec-23-prose__card {
  position: relative;
  border: 1.5px solid hsl(var(--accent-h) 50% 55% / 0.45);
  border-radius: var(--radius-card);
  background: var(--white);
  padding: 1.25rem 3.5rem 1.25rem 1.25rem;
}

.sec-23-prose__card p {
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0;
}

.sec-23-prose__card-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

/* Prep-checklist variant: a heading + several plain paragraphs per card, so the icon
   corner padding isn't needed and paragraphs need normal spacing between them. */
.sec-23-prose__card--tall {
  padding: 1.5rem;
}
.sec-23-prose__card--tall h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.sec-23-prose__card--tall p {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
}
.sec-23-prose__card--tall p + p {
  margin-top: 0.9rem;
}

/* --- Checkmark bullet list (benefits, values) --- */
.sec-23-prose__checklist {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.sec-23-prose__check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.sec-23-prose__check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.2em;
  color: var(--accent-strong);
}
.sec-23-prose__check-item p {
  margin: 0;
}

/* --- Photo gallery grid --- */
.sec-23-prose__gallery {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.sec-23-prose__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
}

/* --- Icon + heading + text feature grid (careers "what sets us apart") --- */
.sec-23-prose__features {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.sec-23-prose__feature img {
  margin-bottom: 0.75rem;
}
.sec-23-prose__feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.sec-23-prose__feature p {
  font-size: 0.95rem;
  line-height: 1.6;
}
