/* =============================================================================
   Church Map - news list and article (port of news.html's page styles).
   Tokens only, so both themes come for free. The feature card is the ordinary
   .nw-card with .is-feat on it: filtering moves the flag instead of swapping
   markup, and no-JS visitors still get a feature.
   ========================================================================== */

.page-head{padding:40px 0 18px;border-bottom:1px solid var(--line);margin-bottom:24px}
.page-head .lead{margin:8px 0 0;font-size:16px}

.cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;align-items:center}
.cats .picker{flex:0 1 auto;min-width:180px}
.cats .clear{background:none;border:none;color:var(--muted);font-size:13px;cursor:pointer;
  text-decoration:underline;padding:6px;font-family:inherit}
.cats .clear:hover{color:var(--ink)}
@media (max-width:640px){ .cats .picker{flex:1 1 46%;min-width:0} }

/* ------------------------------- the grid -------------------------------- */

.n-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;
  align-items:start}
.n-grid .nw-card[hidden]{display:none}

/* feature: full width, photo beside the copy */
.nw-card.is-feat{grid-column:1/-1;flex-direction:row;margin-bottom:6px}
.nw-card.is-feat .ph{flex:1 1 52%;aspect-ratio:auto;min-height:260px}
.nw-card.is-feat .in{flex:1 1 48%;justify-content:center;padding:26px 28px;gap:9px}
.nw-card.is-feat h3{font-size:clamp(22px,3vw,29px);line-height:1.12}
.nw-card.is-feat p{font-size:15px;flex:0 1 auto}
@media (max-width:760px){
  .nw-card.is-feat{flex-direction:column}
  .nw-card.is-feat .ph{min-height:0;aspect-ratio:16/9}
  .nw-card.is-feat .in{padding:18px 20px 20px}
}

.nw-card .byline-church{align-self:flex-start}

/* ------------------------------- article --------------------------------- */

.nw-article{max-width:720px;margin:0 auto}
.nw-article .cat{display:inline-block;margin-top:26px;font-size:11px;font-weight:800;
  letter-spacing:.1em;text-transform:uppercase;color:var(--c);text-decoration:none}
.nw-article .cat:hover{text-decoration:underline}
.nw-article h1{font-size:clamp(30px,5vw,44px);line-height:1.05;margin:8px 0 14px;
  font-family:"Fraunces",Georgia,serif;font-weight:600}
.nw-article .lede{font-size:19px;line-height:1.5;color:var(--muted);margin:0 0 18px;
  font-family:"Fraunces",Georgia,serif;font-style:italic}

.byline{display:flex;gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);margin-bottom:22px;flex-wrap:wrap}
.byline .av{width:38px;height:38px;border-radius:50%;background:var(--navy);color:var(--gold);
  display:grid;place-items:center;font-family:"Fraunces",Georgia,serif;font-weight:600;flex:none}
.byline strong{font-size:14.5px}
.byline small{display:block;color:var(--muted);font-size:12px}
.byline .byline-church{margin-left:auto}

.hero-ph{border-radius:var(--radius);overflow:hidden;margin-bottom:24px;aspect-ratio:16/8;
  background:var(--bg-2)}
.hero-ph img{width:100%;height:100%;object-fit:cover}

.nw-article .body p{font-size:17px;line-height:1.7;margin:0 0 18px}
.nw-article .body h2,.nw-article .body h3{font-family:"Fraunces",Georgia,serif;font-weight:600;
  line-height:1.2;margin:28px 0 10px}
.nw-article .body h2{font-size:25px}
.nw-article .body h3{font-size:20px}
.nw-article .body ul,.nw-article .body ol{font-size:17px;line-height:1.7;margin:0 0 18px;padding-left:22px}
.nw-article .body li{margin-bottom:6px}
.nw-article .body a{color:var(--gold-deep)}
.nw-article .body blockquote{margin:0 0 18px;padding:2px 0 2px 18px;border-left:3px solid var(--c);
  font-family:"Fraunces",Georgia,serif;font-style:italic;font-size:18px;color:var(--muted)}
.nw-article .body img{max-width:100%;height:auto;border-radius:var(--radius)}
.nw-article .body figcaption{font-size:12.5px;color:var(--muted);margin-top:6px}
.nw-article .body p:first-of-type::first-letter{font-family:"Fraunces",Georgia,serif;font-size:3.4em;
  float:left;line-height:.85;padding:4px 8px 0 0;color:var(--gold-deep)}
[data-theme="dark"] .nw-article .body p:first-of-type::first-letter{color:var(--gold)}
[data-theme="dark"] .nw-article .body a{color:var(--gold)}

.src-credit{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);margin:0}
.src-credit svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.src-credit a{color:inherit}

/* the church this story belongs to */
.related-church{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:16px 18px;margin-top:30px;display:flex;gap:14px;align-items:center;
  text-decoration:none;color:inherit;transition:box-shadow .18s}
.related-church:hover{box-shadow:var(--shadow-soft)}
.related-church .sw{width:44px;height:44px;border-radius:12px;background:var(--c);flex:none;
  display:grid;place-items:center}
.related-church .sw svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2}
.related-church b{display:block;font-family:"Fraunces",Georgia,serif;font-size:17px;font-weight:600}
.related-church small{color:var(--muted);font-size:12px}
.related-church .go{margin-left:auto;color:var(--navy);font-weight:800;font-size:13px;white-space:nowrap}
[data-theme="dark"] .related-church .go{color:var(--gold)}
@media (max-width:520px){
  .related-church{flex-wrap:wrap}
  .related-church .go{margin-left:58px}
}

.nw-more{margin:56px auto 0;max-width:var(--container)}
.nw-more .sec-head{margin-bottom:18px}

/* ----------------------------- pagination -------------------------------- */

.pagination{display:flex;justify-content:center;margin:34px 0 10px}
.pagination[hidden]{display:none}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pagination .page-numbers{display:grid;place-items:center;min-width:38px;height:38px;padding:0 12px;
  border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--card);
  color:var(--ink);text-decoration:none;font-size:14px;font-weight:700}
.pagination .page-numbers:hover{border-color:var(--gold)}
.pagination .page-numbers.current{background:var(--navy);border-color:var(--navy);color:#fff}
[data-theme="dark"] .pagination .page-numbers.current{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.pagination .dots{border:none;background:none}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
  clip-path:inset(50%);white-space:nowrap}

.filter-note{text-align:center;font-size:12.5px;color:var(--muted);margin:26px 0 0}
