/* ============================================================================
   CHAPTERS — public list (/chapters) + detail (/chapters/{slug}).
   Dedicated .chp-* components (reusability rule: not shared with committee/team cards).
   Uses the shared public tokens (--pub-*, --brand-*) so theme/light-dark resolve.
   ============================================================================ */

/* search bar */
.chp-search { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.chp-search__box { position:relative; display:flex; flex:1 1 320px; min-width:0; }
.chp-search__ic { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--pub-mut); pointer-events:none; }
.chp-search__ic svg { width:100%; height:100%; }
.chp-search input[type="search"] { width:100%; height:46px; padding:0 16px 0 46px;
  border:1px solid var(--pub-line); border-radius:6px; background:var(--pub-card); color:var(--pub-ink); font-size:.95rem; }
.chp-search .pub-btn { height:46px; }
.chp-search input[type="search"]:focus { outline:2px solid var(--brand-navy); outline-offset:1px; }

/* grid + card */
.chp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.chp-card { display:flex; flex-direction:column; text-decoration:none; background:var(--pub-card);
  border:1px solid var(--pub-line); border-radius:10px; overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease; }
@media (hover:hover){ .chp-card:hover { transform:translateY(-4px); box-shadow:0 16px 40px -22px color-mix(in srgb,var(--brand-navy) 50%,transparent); } }
.chp-card__media { position:relative; aspect-ratio:16/9; background:var(--brand-navy); display:grid; place-items:center; overflow:hidden; }
.chp-card__media img { width:100%; height:100%; object-fit:cover; }
.chp-card__icon { font-size:2.6rem; }
.chp-card__body { display:flex; flex-direction:column; gap:7px; padding:18px 18px 16px; flex:1 1 auto; }
.chp-card__name { font-family:var(--pub-serif, Georgia, serif); font-size:1.18rem; font-weight:700; color:var(--pub-ink); line-height:1.25; }
.chp-card__loc { display:inline-flex; align-items:center; gap:6px; font-size:.82rem; color:var(--brand-navy); font-weight:600; }
.chp-card__loc svg, .chp-card__members svg { width:14px; height:14px; }
.chp-card__desc { font-size:.9rem; line-height:1.55; color:var(--pub-mut); }
.chp-card__foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:12px; border-top:1px solid var(--pub-line); }
.chp-card__members { display:inline-flex; align-items:center; gap:6px; font-size:.78rem; color:var(--pub-mut); }
.chp-card__link { display:inline-flex; align-items:center; gap:4px; font-size:.82rem; font-weight:700; color:var(--brand-red); white-space:nowrap; }
.chp-card__link svg { width:15px; height:15px; }

/* ── detail intro (under the shared interior hero) ── */
.chp-intro { margin:2px 0 30px; }
.chp-intro__loc, .chp-intro__members { display:inline-flex; align-items:center; gap:7px; font-size:.92rem; color:var(--brand-navy); font-weight:600; margin:0 18px 8px 0; }
.chp-intro__loc svg, .chp-intro__members svg { width:16px; height:16px; }
.chp-intro__lede { font-size:1.05rem; line-height:1.6; color:var(--pub-mut); margin:8px 0 20px; max-width:62ch; }
/* Logo + short description on one row, under the location. The lede keeps its own margins when
   it stands alone; inside the row the row owns the spacing. */
.chp-intro__row { display:flex; align-items:center; gap:18px; margin:8px 0 20px; }
.chp-intro__row .chp-intro__lede { margin:0; }
.chp-intro__logo { flex:none; display:grid; place-items:center; width:84px; height:84px; padding:6px;
  box-sizing:border-box; border-radius:14px; background:#fff; border:1px solid rgba(0,0,0,.08); overflow:hidden; }
.chp-intro__logo img { width:100%; height:100%; object-fit:contain; display:block; }
@media (max-width:560px) {
  .chp-intro__row { gap:14px; }
  .chp-intro__logo { width:64px; height:64px; padding:5px; border-radius:12px; }
}

.chp-detail__grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,320px); gap:36px; align-items:start; }
.chp-sec__h { font-family:var(--pub-serif, Georgia, serif); font-size:1.35rem; font-weight:700; color:var(--pub-ink); margin:0 0 18px; }
.chp-prose { font-size:1rem; line-height:1.75; color:var(--pub-ink); margin-bottom:34px; }
.chp-prose :first-child { margin-top:0; }

.chp-leaders { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:20px; }
.chp-leader { display:flex; flex-direction:column; align-items:center; text-align:center; }
.chp-leader__pic { width:96px; height:96px; border-radius:50%; overflow:hidden; background:var(--pub-soft); border:2px solid var(--pub-line); margin-bottom:12px; }
.chp-leader__pic img { width:100%; height:100%; object-fit:cover; }
.chp-leader__ph { display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:var(--pub-mut); opacity:.5; }
.chp-leader__ph svg { width:34px; height:34px; }
.chp-leader__name { font-weight:700; color:var(--pub-ink); font-size:.95rem; line-height:1.25; }
.chp-leader__role { font-size:.82rem; color:var(--brand-navy); margin-top:3px; }

.chp-contact { background:var(--pub-soft); border:1px solid var(--pub-line); border-radius:10px; padding:22px 22px 24px; }
.chp-contact__row { display:flex; align-items:flex-start; gap:10px; font-size:.92rem; line-height:1.5; color:var(--pub-ink); margin:0 0 12px; }
.chp-contact__row svg { width:17px; height:17px; flex:0 0 auto; margin-top:2px; color:var(--brand-navy); }
.chp-contact__row a { color:var(--pub-ink); }
.chp-contact__cta { width:100%; justify-content:center; margin-top:6px; }

@media (max-width:820px){
  .chp-hero { grid-template-columns:1fr; }
  .chp-detail__grid { grid-template-columns:1fr; }
}

/* ── Press Releases section on the Chapters page (association-wide; homepage-style dated list) ── */
.chp-press { background: var(--pub-soft, #f6f8fc); }
.chp-press__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.chp-press__head h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--pub-ink); }
.chp-press__all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--brand-red); text-decoration: none; }
.chp-press__all svg { width: 15px; height: 15px; }
.chp-press__list { display: grid; gap: 12px; }
.chp-press__item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: stretch; padding: 14px 18px; background: var(--pub-card, #fff); border: 1px solid var(--pub-line, #e7e6e2); border-radius: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.chp-press__item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px color-mix(in srgb,var(--brand-navy) 25%,transparent); }
.chp-press__date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand-navy); color: #fff; border-radius: 8px; padding: 8px 0; }
.chp-press__date b { font-size: 1.15rem; line-height: 1; font-weight: 700; }
.chp-press__date span { font-size: .7rem; letter-spacing: .08em; margin-top: 2px; }
.chp-press__cat { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pub-mut); margin-bottom: 4px; }
.chp-press__t { display: block; font-weight: 600; line-height: 1.3; color: var(--pub-ink); }
.chp-press__src { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.5; color: var(--pub-mut); }

/* ── Chapter detail: Press & Media | News & Updates — EXACT homepage "Latest" design.
   Copied 1:1 from home-v3-sec-a.css (.v3-lt2 / .v3-pr / .v3-nb), re-scoped from .home-v3 to
   .chp-updates so it matches the homepage while staying contained to the chapters page. Uses the
   site-wide --v3-* tokens (v3-chrome.css). ── */
.chp-updates .v3-lt2__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: stretch; }
.chp-updates .v3-lt2__col { display: flex; flex-direction: column; }
/* Press releases (dated list) */
.chp-updates .v3-pr { display: flex; flex-direction: column; border-top: 1px solid var(--v3-line); }
.chp-updates .v3-pr__item { display: flex; align-items: center; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--v3-line); text-decoration: none; transition: background .2s var(--v3-ease); }
.chp-updates .v3-pr__item::after, .chp-updates .v3-nb__item::after { content: ""; flex: none; width: 20px; height: 20px; align-self: center;
  background: var(--v3-coral); -webkit-mask: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  transition: transform .25s var(--v3-ease); }
.chp-updates .v3-pr__item::after { margin-left: auto; }
/* items with no link: no arrow, no pointer */
.chp-updates .v3-pr__item.is-static::after, .chp-updates .v3-nb__item.is-static::after { display: none; }
.chp-updates .v3-pr__item.is-static, .chp-updates .v3-nb__item.is-static { cursor: default; }
@media (hover: hover) { .chp-updates .v3-pr__item:hover::after, .chp-updates .v3-nb__item:hover::after { transform: translateX(4px); } }
@media (hover: hover) { .chp-updates .v3-pr__item:hover { background: var(--v3-paper); } }
.chp-updates .v3-pr__date { flex: 0 0 46px; text-align: center; display: flex; flex-direction: column; padding-top: 2px; }
.chp-updates .v3-pr__date b { font-size: .66rem; font-weight: 700; letter-spacing: .1em; color: var(--v3-coral); }
.chp-updates .v3-pr__date span { font-family: var(--v3-display); font-size: 1.65rem; font-weight: 600; line-height: 1; color: var(--v3-ink); }
.chp-updates .v3-pr__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chp-updates .v3-pr__cat { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v3-mut); }
.chp-updates .v3-pr__t { font-family: var(--v3-display); font-size: 1.05rem; font-weight: 600; line-height: 1.28; color: var(--v3-ink); }
.chp-updates .v3-pr__src { font-size: .84rem; line-height: 1.4; color: var(--v3-mut); }
/* News & updates (thumbnail cards) */
.chp-updates .v3-nb { display: flex; flex-direction: column; gap: 22px; }
.chp-updates .v3-nb__item { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; text-decoration: none; align-items: center; }
.chp-updates .v3-nb__thumb { width: 100px; height: 100px; border-radius: 0; overflow: hidden; background: var(--v3-paper-2); flex: none; }
.chp-updates .v3-nb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.chp-updates .v3-nb__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--v3-mut); opacity: .5; }
.chp-updates .v3-nb__ph svg { width: 30px; height: 30px; }
.chp-updates .v3-nb__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chp-updates .v3-nb__date { font-size: .64rem; font-weight: 700; letter-spacing: .1em; color: var(--v3-mut); }
.chp-updates .v3-nb__t { font-family: var(--v3-display); font-size: 1.1rem; font-weight: 600; line-height: 1.28; color: var(--v3-ink); }
.chp-updates .v3-nb__x { font-size: .87rem; line-height: 1.5; color: var(--v3-mut); }
@media (max-width: 820px) { .chp-updates .v3-lt2__grid { grid-template-columns: 1fr; gap: 40px; } }
.chp-empty { color: var(--pub-mut); font-size: .92rem; }

/* ── Chapter Photos & Videos (16 Nov 2026) — own section ABOVE Press & Media on /chapters/{slug}.
   One large main area + a thumbnail strip; js/public/chapter-gallery.js drives it. Shares only
   V4 tokens; images open in the shared lightbox (gallery.css). */
/* Lives in the left column beside Leadership Team + Contact (16 Nov 2026). Same card language as
   the sidebar cards (.chp-team / .chp-contact: soft fill, hairline border, 10px radius, 20px
   padding), so the two columns start on one line and their headings sit on one baseline. */
.chp-gal-sec { min-width: 0; background: var(--pub-soft); border: 1px solid var(--pub-line); border-radius: 10px; padding: 20px; }
.chp-gal-sec .chp-sec__h { margin-bottom: 16px; }
.chp-gal-sec .chp-gal__thumbs { padding-bottom: 2px; }
/* Text above the columns (only when Key Moments is present). */
.chp-prose--lead { max-width: 860px; margin-bottom: 28px; }
/* Vertical rhythm between the detail block and Press & Media: was 34 + 44 + 52 = 130px of air. */
.chp-detail--tight, body.dma4-interior .pub-section.chp-detail--tight { padding-bottom: 28px; }
.dma3d .v4page.chp-news { padding-top: 36px; }
/* Only one of Press & Media / News & Updates has items: it takes the full width. */
.dma3d .chp-news .news-press-grid--single { grid-template-columns: minmax(0, 1fr); }
/* ── Leadership Team in the right column, above Contact (16 Nov 2026) ── */
.chp-team { background:var(--pub-soft); border:1px solid var(--pub-line); border-radius:10px; padding:20px 20px 8px; margin-bottom:20px; }
.chp-team .chp-leaders { grid-template-columns:1fr; gap:14px; }
.chp-team .chp-leader { flex-direction:row; align-items:center; text-align:left; gap:12px; padding-bottom:12px; border-bottom:1px solid var(--pub-line); }
.chp-team .chp-leader:last-child { border-bottom:0; }
.chp-team .chp-leader__pic { width:56px; height:56px; flex:0 0 56px; margin-bottom:0; }
.chp-team .chp-leader__ph svg { width:24px; height:24px; }
.chp-team .chp-leader__txt { display:flex; flex-direction:column; min-width:0; }
