/**
 * _consistent_typography.php
 * Sitewide card-title font-size standard: 20px across all card types.
 * Applied as overrides — no markup changes. Existing per-card weights,
 * colors, and line-heights are left intact.
 *
 * Card types covered:
 *   .blk-wrap h4              campaigns + resources listing + homepage
 *   .event-wrap-blk h4        events listing + homepage (was 24px)
 *   .membership-title         memberships card (was 16px)
 *   .plan-box-1 h5            groups / join_community card (Bootstrap h5)
 *   .dir-card-name            directory card (was 15px)
 */

.blk-wrap :is(h2, h3, h4),
.event-wrap-blk :is(h2, h3, h4),
.membership-title,
.plan-box-1 :is(h2, h3, h5),
.dir-card-name {
  font-size: 20px;
}

/* Event card title: clamp to three lines, sized by content.
 *
 * style.css sets height:58px + overflow:hidden on this element. That was
 * sized for its own 24px, but this file's 20px is what actually renders (it
 * loads after style.css AND responsive.css), and a fixed height clips
 * whatever does not fit THROUGH THE MIDDLE OF A WORD, with nothing to show
 * the title was cut. Long names make that obvious — SSL Chamber runs several
 * at 60-80 characters, e.g. "WAG Veterinary Emergency & Specialty Hospital
 * Ribbon Cutting & Open House", which needs three lines at any card width.
 *
 * Three lines is the cap, not a reservation: there is deliberately NO
 * min-height, so the title box is only as tall as the title actually is. A
 * set of cards whose titles all fit on two lines stays compact; one with a
 * three-line title grows, and its row-mates follow.
 *
 * Row-mates only follow if something equalises them. On the listing grid
 * that is Bootstrap's row + d-flex (see listing-grid.css, same approach as
 * the resource card title there). The homepage carousel does NOT get it for
 * free — Owl lays .owl-item out with float:left, which does not match
 * sibling heights — so web/org.php's inline style makes that stage a flex
 * row; it also owns the homepage clamp, since an inline <style> beats every
 * stylesheet here. Keep the two in step. */
.event-wrap-blk :is(h2, h3, h4) {
  height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* Campaign + resource card titles: the same 3-line cap, sized by content.
   These had NO clamp, so a long title grew the card while its row-mates
   stopped short — the cards in a section came out visibly different heights.
   No min-height, so a row of short titles stays compact; the container
   equalises the row (Bootstrap's row + d-flex on a listing page, the
   flex stage in kw.css on an editor page). */
.blk-wrap :is(h2, h3, h4) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
