/* Compass Bible Church North Phoenix — rebuild of the Squarespace look.
   Layout: full-width color bands (Squarespace "sections"), header floating over the first band,
   Josefin Sans display type scaled to fill the width, Space Grotesk text. */
:root {
  --cream: #FFF0DB;
  --terra: #C77E57;
  --sand: #E9CA8B;
  --sand-field: #EDD29B;
  --olive: #86865F;
  --rose: #B07D85;
  --ink: #1A1A1A;
  --head: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(24px, 3vw);
  --radius-photo: 30px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.25rem, 0.9rem + 0.75vw, 1.54rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- sections / themes ---------- */
.sec { position: relative; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.t-olive { background: var(--olive); color: var(--cream); }
.t-terra { background: var(--terra); color: var(--cream); }
.t-sand { background: var(--sand); color: var(--ink); }
.t-cream { background: var(--cream); color: var(--ink); }
.t-ink { background: var(--ink); color: var(--cream); }
.wrap { max-width: 2200px; margin-inline: auto; }

/* text links: RefTagger-style Scripture links and inline links */
.prose a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.t-terra .prose a { color: var(--cream); }
.prose strong a { font-weight: 700; }

/* ---------- header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  align-items: flex-start;
  padding: calc(9px + env(safe-area-inset-top, 0px)) max(calc(var(--gutter) - 22px), env(safe-area-inset-right, 0px)) 0 max(43px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.site-header a { pointer-events: auto; }
.site-header .logo { display: block; }
.menu-btn { display: block; margin-top: 7px; background: none; border: 0; cursor: pointer; pointer-events: auto; padding: 16px 20.8px; font-family: var(--body); font-weight: 600; font-size: 33px; line-height: normal; color: var(--cream); text-decoration: none; }
.hdr-pad { padding-top: 150px; }
.hdr-band { height: 136px; }

/* ---------- display type ---------- */
.fit { display: block; width: max-content; max-width: none; white-space: nowrap; font-size: 6rem; }
.center .fit, .fit-wrap.center .fit, .center.fit-wrap .fit { margin-inline: auto; }
.fit-wrap { width: 100%; overflow: hidden; }

.big { font-size: clamp(2.6rem, 6.4vw, 7rem); }

.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--terra); color: var(--cream);
  font-family: var(--body); font-weight: 600; text-transform: uppercase; font-size: .78rem; letter-spacing: .02em;
  padding: 1.05em 1.6em; border-radius: 8px; border: 0; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.pager-links { display: flex; justify-content: space-around; padding-block: 3.5rem 4.5rem; gap: 1rem; }
.pager-links a { font-family: var(--body); font-weight: 600; text-transform: uppercase; color: var(--terra); text-decoration: none; font-size: clamp(1.1rem, 1.9vw, 2.2rem); letter-spacing: -.01em; }

/* ---------- photos ---------- */
.photo { border-radius: var(--radius-photo); object-fit: cover; width: 100%; }

/* ---------- footer ---------- */

.socials { display: flex; gap: 22px; align-items: center; margin: 1.7rem 0 0 46px; }
.socials a { display: block; width: 30px; height: 30px; color: var(--cream); }
.socials svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.copy { font-weight: 600; font-size: 1.05rem; position: relative; padding-bottom: 2rem; }

.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; background: currentColor; left: 0; right: 0; top: 6px; height: 2px; }
.pm::after { left: 6px; right: auto; width: 2px; top: 0; height: 14px; transition: transform .2s; }
details[open] > summary .pm::after { transform: scaleY(0); }

/* ---------- home ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--cream); overflow: hidden; padding-bottom: 9vw; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero > *:not(.bg):not(.curve) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.8rem, 6.9vw, 8.2rem); line-height: 1.05; }
.hero h2 { font-style: italic; font-size: clamp(2rem, 4.6vw, 5.4rem); line-height: 1.1; max-width: 13em; margin-top: .3em; }

.curve { position: absolute; left: -2%; right: -2%; bottom: -1px; height: 7vw; z-index: 1; }
.curve svg { width: 100%; height: 100%; display: block; }

/* subscribe card (home + mailing list) */
.sub-card { background: var(--cream); color: var(--ink); border: 5px solid var(--terra); border-radius: 36px; padding: clamp(2rem, 11vw, 10rem) clamp(1.5rem, 11.5vw, 11rem) clamp(2.5rem, 7vw, 7rem); }
.sub-card h1 { font-family: var(--body); font-size: clamp(2rem, 4vw, 4.3rem); letter-spacing: -.03em; }
.sub-card p { margin: 1.2rem 0 1.6rem; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.6rem); }
.sub-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1100px; }
.sub-row input { flex: 1 1 260px; max-width: 380px; font: inherit; font-size: 1.15rem; padding: 1.05em 1.4em; border: 1px solid #ddd; background: #fff; color: var(--ink); border-radius: 0; }
.sub-row input::placeholder { color: #a8a8a8; }
.sub-card .btn { margin-top: 1.6rem; }
.wrap-2-1 .sub-row { max-width: 780px; }
.thanks, .ps p.thanks { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
  color: var(--terra) !important; margin: 1.4rem 0 .6rem; }

/* ---------- menu page ---------- */
.menu-acc { position: relative; z-index: 1; }
.menu-acc details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .25rem; }
.menu-acc details > summary::-webkit-details-marker { display: none; }
.menu-acc summary span.t { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(2.9rem, 7.4vw, 8.8rem); line-height: 1.12; }
.menu-acc .pm { width: 20px; height: 20px; }
.menu-acc .pm::before { top: 9px; }
.menu-acc .pm::after { left: 9px; height: 20px; }
.menu-acc .links { display: grid; gap: .9rem; padding: .6rem 0 2.2rem; }
.menu-acc .links a { text-decoration: none; font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1.25; }
.follow { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.2rem; margin-top: 2.6rem; }

.follow .socials { margin: 0; gap: 1.1rem; }
.follow .socials a { width: clamp(30px, 3vw, 44px); height: clamp(30px, 3vw, 44px); }

/* ---------- history ---------- */

.timeline { position: relative; padding-bottom: 4rem; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; transform: translateX(-50%); background: var(--cream); }

/* ---------- meet pastor john ---------- */
.follow-cards { display: flex; justify-content: center; gap: clamp(1rem, 4.6vw, 5rem); flex-wrap: wrap; padding-block: 3.4rem 7rem; }
.follow-cards a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 388px; max-width: 100%; height: 190px; padding: 0 1.6rem 0 1.8rem; background: var(--cream); color: var(--olive); border-radius: 10px; text-decoration: none; font-family: var(--body); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 2.1rem); text-transform: uppercase; letter-spacing: -.02em; }

/* ---------- plain text pages ---------- */
.band-title { padding-block: 9.5rem 5rem; }
.band-title.tall { padding-block: 11rem 6rem; }
.prose { padding-block: 4.5rem 0; line-height: 1.5; }
.two-tier .l1 { font-size: clamp(2rem, 5.2vw, 6rem); }
.two-tier .l2 { font-size: clamp(4rem, 15.3vw, 17.5rem); line-height: .95; }

/* doctrine accordion */
.doc-acc { padding-top: clamp(2.2rem, 5vw, 4.5rem); }
.doc-acc details:first-child { border-top-width: 1.5px; }
.doc-acc details { border-bottom: 1.5px solid var(--ink); }
.doc-acc details:first-child { border-top: 1.5px solid var(--ink); }
.doc-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1.35rem 0 1.05rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 2.85vw, 2.95rem); letter-spacing: -.01em; }
.doc-acc summary::-webkit-details-marker { display: none; }
.chev { width: 26px; height: 26px; flex: none; transition: transform .2s; }
details[open] > summary .chev { transform: rotate(180deg); }
.doc-acc .body { padding: 0 0 1.8rem; font-size: clamp(1.05rem, 1.45vw, 1.45rem); line-height: 1.55; max-width: none; }
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 3rem; }
.tiles4 a { background: var(--terra); color: var(--cream); border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.6rem 1.4rem; min-height: 230px; text-decoration: none; font-family: var(--body); font-weight: 700; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 2.15rem); line-height: 1.22; letter-spacing: -.02em; }

/* mission */
.mission-hero { padding-block: 10.5rem 6rem; }
.mission-hero .intro { text-align: center; margin-top: 2.6rem; font-size: clamp(1.05rem, 1.55vw, 1.55rem); line-height: 1.5; }
.m-part { padding-block: 2.6rem 3rem; }
.m-part h2 { text-align: center; font-size: clamp(3rem, 7.4vw, 8.3rem); margin-bottom: .2em; }
.m-part .photo { width: 63%; margin: 0 auto 2.2rem; aspect-ratio: 453 / 254; }

/* distinctives */
.dist-hero { padding-block: 9.6rem 2.6rem; }
.dist-hero .l1 { font-size: clamp(1.9rem, 5.2vw, 6rem); }
.dist-hero .l2 { font-size: clamp(3.4rem, 10.6vw, 12.2rem); line-height: 1; }
.badges { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1.2vw; margin-top: 1.4rem; }
.badges a, .badges span { display: block; }
.badges img { width: 100%; opacity: .5; transition: opacity .15s; }
.badges a:hover img { opacity: .8; }
.badges .on img { opacity: 1; }
.dist-body { padding-top: 4.6rem; }
.dist-body h2 { font-size: clamp(2.2rem, 6.1vw, 7rem); margin-bottom: .45em; }
.dist-body .refs { font-weight: 700; }

/* affirmed statements */
.stmt h2 { font-size: clamp(2rem, 4.6vw, 5.2rem); margin: 0 0 .6em; }
.stmt h3 { font-size: clamp(1.4rem, 2.6vw, 2.9rem); font-style: italic; margin: 0 0 .5em; }
.stmt .part { padding-bottom: 4rem; }
.stmt ol, .stmt ul { padding-left: 1.4em; margin: 0 0 1em; }
.stmt li { margin-bottom: .55em; }
.stmt li p { margin: 0; }
.stmt-title .l1, .stmt-title .l2 { font-size: clamp(2.2rem, 7.4vw, 8.4rem); line-height: 1.07; }

/* ---------- sermons ---------- */
.sermons-hero { padding-block: 9.4rem 3rem; }
.sermons-hero h1 { font-size: clamp(2.6rem, 8.6vw, 9.8rem); line-height: 1.07; }
.filters { display: flex; justify-content: center; gap: 8px 2.4vw; margin: 3.6rem auto 0; flex-wrap: wrap; position: relative; z-index: 5; max-width: 1150px; }
.filters .f { display: contents; }
.filters .fb { flex: 0 1 260px; }
.filters .fb { width: 100%; border: 0; cursor: pointer; background: rgba(0, 0, 0, .045); display: flex; justify-content: space-between; align-items: center; padding: 1.15rem 1.3rem 1rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--olive); font-size: 1.55rem; letter-spacing: -.01em; text-align: left; }
.filters .fb .chev { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.filters .f.used .fb { background: var(--olive); color: var(--cream); }
.filters .f.open .fb { background: var(--cream); color: var(--olive); }
.filters .f.open .fb .chev { transform: rotate(180deg); }
.fp { order: 9; flex: 0 0 100%; box-sizing: border-box; overflow: hidden; background: var(--cream); color: var(--ink); text-align: left; }
.fp-in { padding: 1.6rem 1.8rem 1.9rem; }
.fp button { font: inherit; border: 0; cursor: pointer; }
.fp .fp-head { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--olive); font-size: 1.05rem; letter-spacing: .03em; margin: 0 0 .75rem; }
.bk-grid + .fp-head { margin-top: 1.6rem; }
.fp .fp-hint { color: var(--olive); font-size: 1rem; line-height: 1.4; margin: 0 0 1rem; }
/* book grid: one tile per book he has preached, colored by kind of book */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; }
.fp .bk { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; color: var(--cream); padding: 1.1rem .4rem .95rem; text-align: center; }
.bk.g-law { background: var(--olive); } .bk.g-hist { background: var(--rose); } .bk.g-poet { background: var(--terra); } .bk.g-proph { background: var(--ink); }
.fp .bk:hover { opacity: .85; }
.fp .bk.on { outline: 3px solid var(--ink); outline-offset: -3px; text-decoration: underline; text-underline-offset: .2em; }
.fp .bk.g-proph.on { outline-color: var(--sand); }
/* series and preacher lists */
.rows { display: grid; }
.fp .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; background: none; border-bottom: 1px solid rgba(134, 134, 95, .4); padding: 1.05rem 0 .85rem; text-align: left; color: var(--ink); }
.rows .row:first-child { padding-top: .2rem; }
.row .rn { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; }
.row .rc { color: var(--olive); font-size: .95rem; white-space: nowrap; }
.fp .row:hover .rn, .fp .row.on .rn { color: var(--terra); }
.fp .row.on .rn { text-decoration: underline; text-underline-offset: .2em; }
/* date: a year, or a month in that year */
.dyr { display: grid; grid-template-columns: 112px 1fr; gap: 4px; }
.dyr + .dyr { margin-top: 4px; }
.fp .yb { font-family: var(--head); font-weight: 700; font-size: 1.45rem; background: var(--olive); color: var(--cream); padding: .95rem .5rem .8rem; }
.mos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.fp .mo { display: flex; align-items: center; justify-content: center; line-height: 1; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1rem; background: var(--sand); color: var(--ink); padding: 1rem .1rem .85rem; text-align: center; }
.fp .mo.off { border-radius: 0; background: rgba(0, 0, 0, .04); color: rgba(26, 26, 26, .3); }
.fp .yb:hover, .fp button.mo:hover { opacity: .85; }
.fp .yb.on, .fp .mo.on { background: var(--terra); color: var(--cream); }
/* the "showing" line under the filters */
.filter-note { text-align: center; margin-top: 2rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: 1.3rem; }
.filter-note .fx { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.filter-note .fx svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; margin-top: -3px; }
.filter-note .fx:hover { color: var(--terra); }
.filter-note .clear { color: var(--olive); margin-left: 1.2rem; }
.no-match { text-align: center; color: var(--cream); font-size: 1.3rem; padding-block: 1rem 3rem; }
.no-match a { color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2.1vw; row-gap: 4.8rem; padding-block: 2.6rem 4rem; }
[hidden] { display: none !important; }
/* Square cards. The thumbnail is the top of the card; the cream outline is drawn from the bottom of the thumbnail
   down (it starts exactly where the picture ends, so nothing overlaps or peeks out when the card grows on hover). */
.card { text-decoration: none; color: var(--cream); display: block; min-width: 0; position: relative; container-type: inline-size; }
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; top: calc(100cqw * 9 / 16); border: 4px solid var(--cream); border-top: 0; pointer-events: none; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; position: relative; z-index: 1; }
/* Until the thumbnail arrives: a terracotta outline (same thickness as the cream one) saying "Loading...".
   The picture covers it as soon as it loads. */
.card::before { content: 'Loading...'; position: absolute; left: 0; right: 0; top: 0; height: calc(100cqw * 9 / 16); box-sizing: border-box;
  border: 4px solid var(--terra); display: flex; align-items: center; justify-content: center; font-size: clamp(.9rem, 1vw, 1rem); font-weight: 500; color: var(--cream); }
/* The details as thin stripes, in order: text, preacher, date. They share the space evenly, so a card missing
   one has two slightly taller stripes instead of a gap. */
.card .stripes { list-style: none; margin: .6rem calc(.6rem + 4px) 0; padding: 0; display: flex; flex-direction: column; min-height: 5rem; }
.card .stripes li { flex: 1 1 0; display: flex; align-items: center; padding: .15rem .6rem; font-size: clamp(.85rem, .95vw, .95rem); font-weight: 500; line-height: 1.3; }
.card .stripes li:nth-child(odd) { background: rgba(26, 26, 26, .09); }
.card h3 { font-size: clamp(1.4rem, 2.2vw, 2.3rem); line-height: 1.1; margin: .9rem 0 calc(.9rem + 4px); padding-inline: calc(.6rem + 4px); text-align: center; align-self: center; }
/* Cards in the same row share row heights (picture, stripes, title), so the titles start on the same line. */
@supports (grid-template-rows: subgrid) {
  .grid:has(> .card) { row-gap: 0; }
  .grid > .card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; margin-bottom: 2.6rem; }
  @media (max-width: 767px) { .grid > .card { margin-bottom: 2rem; } }
}
.older { display: flex; justify-content: space-between; padding-bottom: 5.5rem; font-size: 1.5rem; }
.older a { color: var(--cream); text-decoration: none; }
.older a { display: inline-flex; padding: .4rem; }
.older svg { width: 22px; height: 40px; }
.older a:hover { opacity: .75; }
.sermon-page { padding-block: clamp(6.4rem, 9vw, 8rem) 0; text-align: center; }
.sermon-page .meta { font-size: clamp(1rem, 1.7vw, 1.6rem); margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; row-gap: .2em; }
.sermon-page .meta .dot { margin-inline: .6em; opacity: .7; }
@media (max-width: 700px) { .sermon-page .meta { flex-direction: column; } .sermon-page .meta .dot { display: none; } }
.sermon-page .meta a, .sermon-page .passage a { color: inherit; text-decoration: none; }
.sermon-page .meta a:hover, .sermon-page .passage a:hover { text-decoration: underline; }
/* Arrow at the left edge, title centered on the page (the empty third column balances the arrow). */
.sermon-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.sermon-title .back-btn { margin: 0 0 .12em; justify-self: start; }
.sermon-title::after { content: ''; }
.sermon-page h1 { font-size: clamp(2.4rem, 6.4vw, 7rem); margin: 0; line-height: 1; }
.sermon-page .passage { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.3rem, 2.6vw, 2.4rem); margin: 1rem 0 2.4rem; color: var(--sand); }
.sermon-page .sermon-video { margin-top: 2.4rem; }
.sermon-page .passage + .sermon-video { margin-top: 0; }
.back-btn { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 52px; background: var(--cream); color: var(--ink); border-radius: 8px; text-decoration: none; font-size: 1rem; margin-top: 3.4rem; }
.sermon-video { width: 100%; margin: 1.8rem 0 0; }
.post-nav { display: flex; justify-content: space-between; align-items: center; padding-block: 5rem 2.6rem; gap: 2rem; }
.post-nav a { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; color: var(--cream); font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 3.2rem); letter-spacing: -.02em; line-height: 1.1; }
.post-nav a.next { margin-left: auto; text-align: right; }
.post-nav svg { width: 22px; height: 40px; flex: none; }

/* ---------- forms ---------- */
.ask { padding-block: 5rem 8rem; }
.ask h1 { font-size: clamp(3rem, 8.4vw, 9.6rem); margin-bottom: .3em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 10px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 1.35rem; margin-bottom: .45rem; }
.form label .req { color: #6b6b6b; font-size: .85em; margin-left: .4em; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; font: inherit; font-size: 1.2rem; background: var(--sand-field); border: 0; border-radius: 8px; padding: .85rem 1rem; color: var(--ink); }
.form textarea { min-height: 7rem; resize: vertical; }
.form .check { display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; text-transform: uppercase; margin-top: .6rem; }
.form .check input { width: 18px; height: 18px; accent-color: var(--terra); }
.form .btn { justify-self: start; margin-top: .4rem; }
.mailing { padding-block: 13rem 6.4rem; }

/* ---------- in the word ---------- */
.itw { padding-block: 7.6rem 5rem; font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.6; }
.itw h1.itw-head { text-align: center; font-size: clamp(2.8rem, 7.6vw, 8.6rem); line-height: 1.08; margin: 0 auto 3rem; max-width: 9em; }
.itw .lab { font-style: italic; font-size: .9rem; margin-bottom: .5rem; }
.itw audio { width: 100%; margin-bottom: 2.6rem; }
.itw-text h2 { font-size: clamp(2.6rem, 5vw, 5.6rem); margin: 0 0 .8em; }
.itw-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.9rem); margin: 1.4em 0 .9em; }
.itw-text p { margin: 0 0 1.2em; }
.itw-text .indent { padding-left: 1.4em; }
.itw-text .line { display: inline; }
.itw-text b.chapter-num, .itw-text b.verse-num { font-weight: 700; }
.itw-text hr { border: 0; border-top: 1px solid rgba(26,26,26,.25); margin: 3rem 0; }
.itw-text .footnotes, .itw-text .footnote, .itw-text sup.footnote { display: none; }
.itw-text a { color: var(--terra); text-decoration: none; }
.itw-nav { display: flex; justify-content: space-between; margin-top: 3.4rem; }
.itw-nav a { text-decoration: none; }
.itw-nav a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.itw-missing { padding: 2rem 0; font-size: 1.2rem; }
.esv-note { padding-block: 1rem; font-size: clamp(.85rem, 1.1vw, 1.1rem); font-style: italic; }

/* ---------- phones ---------- */
@media (max-width: 767px) {
  body { font-size: 1.1rem; }
  .site-header { padding: calc(23px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 0 max(23px, env(safe-area-inset-left, 0px)); }
  .menu-btn { font-size: 24px; margin-top: 3px; }
  .hdr-band { height: 175px; }

  .socials { margin: 2.2rem 0 0; justify-content: center; }

  .copy { padding-bottom: 1.8rem; }
  .hero { min-height: 120vh; }
  .hero h1 { font-size: 2.85rem; }
  .hero h2 { font-size: 2.2rem; }
  .curve { height: 14vw; }

  .mailing { padding-top: 175px !important; }
  .sub-row input { flex-basis: 100%; max-width: none; }
  .timeline::before { display: none; }

  .follow-cards a { width: 100%; height: 150px; }
  .band-title { padding-block: 9rem 6rem; }
  .tiles4 { grid-template-columns: 1fr; }
  .tiles4 a { min-height: 0; padding: .7rem 1rem; }
  .doc-acc summary { padding: 1.7rem 0 1.4rem; }
  .badges { grid-template-columns: repeat(4, 1fr); gap: 3vw; }
  .dist-body h2 { text-align: center; }
  .grid { grid-template-columns: 1fr; row-gap: 3rem; }
  .filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .8rem; margin-inline: auto; max-width: 440px; }
  .filters .fb { flex: none; }
  .fp { order: 0; flex: none; margin-top: calc(4px - 1rem); }
  .fp-in { padding: 1.2rem 1.1rem 1.4rem; }
  .bk-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .fp .bk { font-size: 1rem; padding: .95rem .2rem .8rem; }
  .dyr { grid-template-columns: 1fr; }
  .mos { grid-template-columns: repeat(6, 1fr); }
  .sermons-hero h1 { text-align: center !important; }
  .post-nav a { font-size: 1.6rem; }
  .form label { font-size: 1.1rem; }
  .mailing { padding-block: 0 3rem; }
  .mailing .hdr-band { margin-inline: -24px; }
  .sub-card { border-radius: 28px; padding: 2.4rem 1.8rem; }
  .itw h1.itw-head { max-width: 6em; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* accordion animation */
.acc-body { overflow: hidden; }
/* follow us row inside the Connect list */
.follow-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.menu-acc .follow-row .socials { margin: 0; gap: 1rem; }
.menu-acc .follow-row .socials a { width: clamp(28px, 2.6vw, 40px); height: clamp(28px, 2.6vw, 40px); }

/* notable signatories in three columns */
.sig-cols { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
.sig-cols ul { margin: 0; }
@media (max-width: 767px) { .sig-cols { grid-template-columns: 1fr; } }
details.closing > summary .pm::after { transform: none; }
details.closing > summary .chev { transform: none; }
.menu-acc .follow-row { font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1.25; }
/* embedded YouTube player (real site) */
.video-embed { position: relative; width: 80%; margin: 2.5rem auto 0; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.sermon-video { width: 100%; margin-top: 1.8rem; }
@media (max-width: 767px) { .video-embed { width: 100%; } }
/* RefTagger links */
.prose a.rtBibleRef { color: var(--terra); }
.t-terra .prose a.rtBibleRef { color: var(--cream); }
.refs a.rtBibleRef { font-weight: 700; }
/* logos: one master file per logo, colored here */
.logo-mask { display: block; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.mark-hdr { width: 88px; color: var(--cream); }

.fc-ico svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.fc-ico { display: block; width: 56px; height: 56px; color: var(--olive); flex: none; }
@media (max-width: 767px) { .mark-hdr { width: 67px; }  }

/* menu links (menu page and footer): no underline; they grow a little on hover. "Follow Us:" is just a label. */
.menu-acc .links a, .ps .accordion-item__description a { text-decoration: none; display: inline-block; transform-origin: left center; transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.menu-acc .links a:hover, .menu-acc .links a:focus-visible, .ps .accordion-item__description a:hover, .ps .accordion-item__description a:focus-visible { transform: scale(1.06); }
.follow-row .socials a, .ps .socials a { transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.follow-row .socials a:hover, .follow-row .socials a:focus-visible, .ps .socials a:hover, .ps .socials a:focus-visible { transform: scale(1.15); }
.follow-row > span { cursor: default; }
@media (prefers-reduced-motion: reduce) { .menu-acc .links a, .ps .accordion-item__description a, .follow-row .socials a, .ps .socials a { transition: none; } }
.menu-acc .links a { justify-self: start; width: fit-content; }
.acc-body { overflow: hidden; }
/* "Follow Us:" with its icons on one line, icons centered on the text */
.follow-row { align-items: center; }
.follow-row .socials { margin: 0; gap: .85em; }
.ps .follow-row .socials a { width: 1.3em; height: 1.3em; }
/* (bolder via a thin outline of the letters, so the text never re-flows while growing) */
.menu-acc .links a, .ps .accordion-item__description a { will-change: transform; backface-visibility: hidden; -webkit-text-stroke: 0 currentColor; transition: transform .22s cubic-bezier(.3, .7, .4, 1), -webkit-text-stroke-width .22s cubic-bezier(.3, .7, .4, 1); }
.menu-acc .links a:hover, .menu-acc .links a:focus-visible, .ps .accordion-item__description a:hover, .ps .accordion-item__description a:focus-visible { -webkit-text-stroke-width: .035em; }
/* sermon cards grow a little on hover (no bold) */
.card { transition: transform .25s cubic-bezier(.3, .7, .4, 1); }
.card:hover, .card:focus-visible { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card, .menu-acc .links a, .ps .accordion-item__description a { transition: none; } }

/* ---------- menu overlay (opens over any page) ---------- */
html.menu-open { overflow: hidden; }
.mnav { position: fixed; inset: 0; z-index: 100; }
/* background: the grainy sunset photo (on Home it sits exactly on the hero photo, so it looks like one picture) */
.mnav-scrim { position: absolute; inset: 0; overflow: hidden; }
.mnav-scrim > * { opacity: 0; transition: opacity .35s ease; }
.mnav.open .mnav-scrim > * { opacity: 1; }
.mnav.open .mnav-scrim > .grain { opacity: .24; }
/* Home: the photo sits exactly on the hero photo, so it appears at once (no see-through moment) and only the tint fades */
.mnav.aligned .mnav-scrim > .bg { transition: none; }
.mnav-scrim .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.mnav-scrim .wash { position: absolute; inset: 0; background: rgba(206, 132, 112, .7); mix-blend-mode: multiply; }
.mnav-scrim .soft { position: absolute; inset: 0; background: rgba(255, 214, 190, .22); }
.mnav-scrim .grain { position: absolute; inset: -100px; mix-blend-mode: overlay; animation: grain-static .9s steps(1) infinite; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .94  0 0 0 0 .86  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.mnav-panel { position: absolute; inset: 0; color: var(--cream); pointer-events: none; }
.mnav-panel > * { pointer-events: auto; }
.mnav-in { position: absolute; top: 0; bottom: 0; left: 0; max-width: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; box-sizing: border-box; padding: 150px var(--gutter) 4rem max(43px, var(--gutter)); width: min(1100px, 100%);
  opacity: 0; transform: translateX(-28px); transition: opacity .35s ease, transform .45s cubic-bezier(.3, .7, .2, 1); }
.mnav-in::-webkit-scrollbar { display: none; }
.mnav.open .mnav-in { opacity: 1; transform: none; }
.mnav-panel .menu-acc summary span.t { font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: 1.05; }
.mnav-panel .menu-acc details > summary { padding-block: .7rem .5rem; }
.mnav-panel .menu-acc .links a, .mnav-panel .menu-acc .follow-row { font-size: clamp(1.4rem, 2.2vw, 2.3rem); }

html.menu-shown .site-header .menu-btn, html.menu-shown .site-header .logo { visibility: hidden; }
@media (max-width: 767px) {
  .mnav-in { padding: 120px 24px 3rem; }
}
@media (prefers-reduced-motion: reduce) { .mnav-scrim > *, .mnav-in { transition: none; } }

/* ---------- church-planting map: each church is its own link; on hover or tap it grows a little ---------- */
.ccpa { position: relative; container-type: inline-size; }
.ccpa > img { width: 100%; display: block; }
.ccpa .pin { position: absolute; width: 0; height: 0; color: var(--ink); text-decoration: none; z-index: 1; transition: transform .25s cubic-bezier(.3, .7, .4, 1); -webkit-tap-highlight-color: transparent; }
.ccpa .pin .mk { position: absolute; left: -.95cqw; top: calc(-.95cqw * 1436 / 1519); width: 1.9cqw; height: auto; aspect-ratio: 1519 / 1436; display: block; max-width: none; }
.ccpa .pin .lb { position: absolute; white-space: nowrap; font-family: "Montserrat", var(--body); font-weight: 800; font-size: 1.65cqw; line-height: 1; letter-spacing: -.01em; color: #000; }
.ccpa .pin:hover, .ccpa .pin:focus-visible, .ccpa .pin:active { transform: scale(1.03); z-index: 2; }
.ccpa .pin-logo { position: absolute; display: block; transform-origin: left bottom; transition: transform .25s cubic-bezier(.3, .7, .4, 1); -webkit-tap-highlight-color: transparent; }
.ccpa .pin-logo img { width: 100%; display: block; }
.ccpa .pin-logo:hover, .ccpa .pin-logo:focus-visible, .ccpa .pin-logo:active { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .ccpa .pin, .ccpa .pin-logo { transition: none; } }

/* Follow Pastor John cards: grow noticeably on hover */
.follow-cards a { transition: transform .28s cubic-bezier(.3, .7, .4, 1); }
.follow-cards a:hover, .follow-cards a:focus-visible { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .follow-cards a { transition: none; } }
/* Affirmed Statements tiles grow on hover */
.tiles4 a { position: relative; transition: transform .28s cubic-bezier(.3, .7, .4, 1); }
.tiles4 a:hover, .tiles4 a:focus-visible { transform: scale(1.06); z-index: 1; }
/* What We Believe page arrows (< Our Mission / Our Doctrine >): grow 5% and turn bolder, without the text shifting */
.pager-links a { display: inline-block; -webkit-text-stroke: 0 currentColor; transition: transform .22s cubic-bezier(.3, .7, .4, 1), -webkit-text-stroke-width .22s cubic-bezier(.3, .7, .4, 1); }
.pager-links a:hover, .pager-links a:focus-visible { transform: scale(1.05); -webkit-text-stroke-width: .03em; }
@media (prefers-reduced-motion: reduce) { .tiles4 a, .pager-links a { transition: none; } }
/* film-grain "static": the grain jumps around a little, like the old Squarespace menu */
@keyframes grain-static {
  0% { transform: translate(0, 0); } 11% { transform: translate(-37px, 21px); } 22% { transform: translate(18px, -44px); }
  33% { transform: translate(-61px, -12px); } 44% { transform: translate(42px, 33px); } 55% { transform: translate(-14px, 58px); }
  66% { transform: translate(66px, -27px); } 77% { transform: translate(-48px, -55px); } 88% { transform: translate(29px, 9px); }
}
.mnav[hidden] .grain { animation: none; }
@media (prefers-reduced-motion: reduce) { .mnav-scrim .grain { animation: none; } }
/* Distinctives badges grow 10% on hover */
.badges a { position: relative; transition: transform .25s cubic-bezier(.3, .7, .4, 1); }
.badges a:hover, .badges a:focus-visible { transform: scale(1.1); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .badges a { transition: none; } }

/* Text size floor (2026-11-11): these were smaller than the site's paragraphs; they now use the regular
   paragraph size (as on Home: 24.6px on a laptop, 21.4px on a phone). */
:root { --para: calc(.5 * var(--u) + 1rem); }
.sermon-page .meta, .form label.check, .sub-row input, .itw .lab, .itw-missing { font-size: var(--para); }
@media (max-width: 767px) {
  .timeline .text p, .prose p, .prose li, .prose .refs, .sub-card p, .form label { font-size: var(--para); }
}
/* History: links in the story text stay plain (no underline) */
body[data-page="a-history-of-compass-bible-church"] .ps .txt a { text-decoration: none; }

/* Ask a Question on phones: one field per row so labels don't break up */
@media (max-width: 767px) { .form { grid-template-columns: 1fr; } }
/* top-left logo grows 5% on hover (header and menu) */
.site-header .logo { transform-origin: left top; transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.site-header .logo:hover, .site-header .logo:focus-visible { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .site-header .logo { transition: none; } }
/* Home: copy of the hero's own tint, so the menu photo starts out looking exactly like the hero */
.mnav-scrim > .hero-ov { position: absolute; display: none; pointer-events: none; }
.mnav.aligned .mnav-scrim > .hero-ov { display: block; transition: opacity .45s ease; }
.mnav.aligned.open .mnav-scrim > .hero-ov { opacity: 0 !important; }
/* menu, filters and other tap targets: no accidental text highlighting */
.mnav, .site-header, .site-foot summary, .filters, .badges, .ccpa, .follow-cards, .tiles4, .pager-links, .older { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* touch screens: a tapped link shouldn't stay grown or bold afterwards */
@media (hover: none) {
  .menu-acc .links a:hover, .ps .accordion-item__description a:hover, .pager-links a:hover { transform: none; -webkit-text-stroke-width: 0; }
  .card:hover, .tiles4 a:hover, .badges a:hover, .follow-cards a:hover, .ccpa .pin:hover, .ccpa .pin-logo:hover, .site-header .logo:hover, .follow-row .socials a:hover, .ps .socials a:hover { transform: none; }
}

/* menu button: two drawn lines (same size as the × they turn into) */
:root { --lw: 26px; --lt: 2.5px; --gap: 6.5px; }
@media (max-width: 767px) { :root { --lw: 26px; --lt: 3px; --gap: 7px; } }
.menu-btn { font-size: 0; padding: 20px 19px; margin-top: 18px; }
.menu-btn .ml { position: relative; display: block; width: var(--lw); height: calc(var(--gap) + var(--lt)); }
.menu-btn .ml i { position: absolute; left: 0; right: 0; height: var(--lt); background: var(--cream); border-radius: 1px; }
.menu-btn .ml i:first-child { top: 0; } .menu-btn .ml i:last-child { bottom: 0; }

@media (max-width: 767px) { .menu-btn { margin-top: 10px; padding: 20px 16px; } }
/* menu button hover: cream box, rose lines (as on the old site) */
.menu-btn { padding: 32px 19px; margin-top: 6px; transition: background-color .2s ease; }
.menu-btn .ml i { transition: background-color .2s ease; }
@media (hover: hover) {
  .menu-btn:hover, .menu-btn:focus-visible { background: var(--cream); }
  .menu-btn:hover .ml i, .menu-btn:focus-visible .ml i { background: var(--rose); }
}
@media (max-width: 767px) { .menu-btn { padding: 32px 16px; margin-top: -2px; } }

/* =====================================================================================
   DESKTOP (2026-11-12): make the site read like a desktop site. Phones are unchanged —
   everything below only applies to wider screens.
   ===================================================================================== */

@media (min-width: 1024px) {
  /* newsletter card hugs its form instead of leaving a tall empty space */
  .ps:has(.k-newsletter) .fe { grid-template-rows: none !important; grid-auto-rows: auto; }
}
@media (min-width: 1200px) {
  /* 2. footer: the three menu sections side by side, all links showing */
  .site-foot .feb.k-accordion { grid-column: 11 / 26 !important; }
  .site-foot .feb.k-text { grid-column: 2 / 11 !important; }
  .site-foot .accordion-items-container { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; column-gap: 2.6vw; }
  .site-foot summary { border-bottom: 1px solid rgba(255, 240, 219, .7); margin-bottom: .2rem; }
  .site-foot .accordion-item__title { white-space: nowrap; }
  .site-foot .accordion-items-container > li { border: 0 !important; }
  .site-foot .accordion-divider { display: none !important; }
  .site-foot .accordion-item__click-target, .site-foot summary { pointer-events: none; cursor: default; padding-top: 0 !important; padding-bottom: .9rem !important; }
  .site-foot .accordion-icon-container { display: none; }
  .site-foot .accordion-item__title { padding-right: 0 !important; }
  .site-foot .acc-body { height: auto !important; overflow: visible; }
  .site-foot .accordion-item__description { padding-top: .6rem !important; }
}

@media (min-width: 768px) {
  /* 3. reading text: left-aligned, in a comfortable column (about 70 characters) */
  .prose, .doc-acc, .stmt, .dist-body { max-width: 46rem; margin-inline: auto; }
  .prose p, .prose li, .ps p.long { text-align: left !important; }
  .mission-hero .intro { max-width: 46rem; margin-inline: auto; }
  .ps .txt:has(p.long) { max-width: 46rem; margin-inline: auto; }

  /* 5. text sizes for a desktop: body text about 19–21px, very large headlines capped */
  .ps p, .ps .txt li, .prose p, .prose li, .doc-acc .body, .mpj-top .bio, .sermon-page .meta { font-size: clamp(18px, calc(.25 * var(--u) + 1rem), 21px); }
  .ps p.sqsrte-small { font-size: clamp(17px, calc(.2 * var(--u) + 1rem), 20px); }
  .ps h1 { font-size: min(calc(4.8 * var(--u) + 1rem), 7rem); }
  .ps h2 { font-size: min(calc(3 * var(--u) + 1rem), 4.6rem); }
  .m-part h2 { font-size: clamp(3rem, 5.6vw, 6rem); }
  .dist-body h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); }
  .stmt h2 { font-size: clamp(2rem, 3.6vw, 3.9rem); }
}

@media (min-width: 1024px) {
  /* 4. side by side: Mission's three parts put the photo beside the text, alternating sides */
  .m-part { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4vw; align-items: center; max-width: 1500px; margin-inline: auto; }
  .m-part h2 { grid-column: 1 / -1; }
  .m-part .photo { width: 100%; margin: 0; }
  .m-part .prose { max-width: none; margin: 0; }
  .m-part:nth-child(even) .photo { order: 2; }
}

/* sermons: four across on desktop (two on tablets, one on phones) */
@media (min-width: 768px) and (max-width: 1023px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); column-gap: 1.8vw; row-gap: 3.6rem; } }
/* footer: deeper olive tint over the photo so the cream text stands out */
.site-foot .ps-ov { background-color: #4f4f37 !important; opacity: .74 !important; }
/* footer social icons: a little bigger, evenly spaced, lined up with the logo */
.site-foot .k-social-links .socials { margin: .4rem 0 0 6px; gap: 30px; }
.site-foot .k-social-links .socials a { width: 34px; height: 34px; }
@media (max-width: 767px) { .site-foot .k-social-links .socials { justify-content: center; gap: 34px; } }

/* ---------- header v3 (2026-11-12): logo and menu button always on screen ----------
   The header stays fixed at the top over everything (also over the open menu), with no band behind it.
   The menu button is a terracotta rounded rectangle; its two lines turn into the × when the menu opens. */
.site-header { position: fixed; top: 0; z-index: 110; background: none; transform: none; transition: none; }

html.menu-shown .site-header .menu-btn, html.menu-shown .site-header .logo { visibility: visible; }
.mark-hdr { transition: color .35s ease; }

html.menu-open .site-header .mark-hdr { color: var(--cream); }

.site-header:not(.on-light) .mark-hdr { color: var(--cream); }

:root { --lw: 30px; --lt: 3.5px; --gap: 8px; }
@media (max-width: 767px) { :root { --lw: 26px; --lt: 3px; --gap: 7px; } }
.menu-btn { margin-top: 18px; padding: 17px 15px; background: var(--terra); border-radius: 12px; transition: background-color .25s ease, transform .22s cubic-bezier(.3, .7, .4, 1); }
@media (max-width: 767px) { .menu-btn { margin-top: 12px; padding: 15px 13px; border-radius: 11px; } }
.menu-btn .ml i { background: var(--cream); border-radius: 2px;
  transition: transform .4s cubic-bezier(.3, .7, .2, 1), background-color .25s ease; }
@media (hover: hover) {
  .menu-btn:hover, .menu-btn:focus-visible { background: var(--rose); }
  .menu-btn:hover .ml i, .menu-btn:focus-visible .ml i { background: var(--cream); }
}
html.menu-open .menu-btn .ml i:first-child { transform: translateY(calc(var(--gap) / 2)) rotate(45deg); }
html.menu-open .menu-btn .ml i:last-child { transform: translateY(calc(var(--gap) / -2)) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-btn .ml i, .mark-hdr { transition: none; } }
/* Home hero: the logo lockup in place of the typed church name */
.hero-lockup { margin: 0 auto 1.6rem !important; width: min(78%, 900px); color: var(--cream); }
.hero-lockup .logo-mask { width: 100%; }
@media (max-width: 767px) { .hero-lockup { width: 92%; margin-bottom: 1.2rem !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header logo: cream, with a green copy shown exactly over light backgrounds */
.site-header .logo { position: relative; }
.site-header .mark-alt { position: absolute; left: 0; top: 0; width: 100%; color: var(--olive) !important; clip-path: inset(0 0 100% 0); pointer-events: none; }

/* Home: the logo waits until you're past the hero */
html.is-home .site-header .logo { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
html.is-home.past-hero .site-header .logo { opacity: 1; visibility: visible; transition: opacity .35s ease; }
/* menu button: bigger, green on hover */
:root { --lw: 34px; --lt: 4px; --gap: 9px; }
@media (max-width: 767px) { :root { --lw: 30px; --lt: 3.5px; --gap: 8px; } }
.menu-btn { padding: 20px 18px; margin-top: 14px; border-radius: 14px; }
@media (max-width: 767px) { .menu-btn { padding: 17px 15px; margin-top: 10px; border-radius: 12px; } }
@media (hover: hover) { .menu-btn:hover, .menu-btn:focus-visible { background: var(--olive); } }
/* YouTube preview */
.yt-lite { cursor: pointer; overflow: hidden; }
.yt-lite .yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 60px; margin: -30px 0 0 -42px; border: 0; border-radius: 14px; background: var(--terra); color: var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, transform .22s cubic-bezier(.3, .7, .4, 1); }
.yt-play svg { width: 34px; height: 34px; fill: currentColor; }
@media (hover: hover) { .yt-lite:hover .yt-play { background: var(--olive); transform: scale(1.06); } }
.yt-lite.playing .yt-play, .yt-lite.playing .yt-poster { display: none; }
@media (max-width: 767px) { .yt-play { width: 68px; height: 48px; margin: -24px 0 0 -34px; } .yt-play svg { width: 28px; height: 28px; } }
/* footer: social icons centered under the logo; no "Follow Us" row inside Connect (the icons are right there) */
.site-foot .k-social-links .socials { justify-content: center; margin: .4rem 0 0; }
.site-foot .follow-row { display: none; }
/* info pages on desktop: wider reading column (still left-aligned), titles sized for a desktop and lined up with the text */
@media (min-width: 768px) {
  :root { --col: min(1180px, calc(100vw - 2 * var(--gutter))); }
  .prose, .doc-acc, .stmt, .dist-body, .mission-hero .intro, .ps .txt:has(p.long) { max-width: var(--col); }
  .band-title .wrap, .mission-hero .wrap, .dist-hero .wrap { max-width: var(--col); margin-inline: auto; }
  .band-title { padding-bottom: 3.2rem; }
  .pager-links.wrap { max-width: var(--col); margin-inline: auto; }
}
/* text pages (2026-11-12, later): centered titles, smaller section headings and text on desktop; bigger menu button */
@media (min-width: 768px) {
  .band-title h1, .band-title .fit-wrap, .mission-hero h1, .dist-hero h1, .stmt-title { text-align: center; margin-inline: auto; }
  .band-title .fit, .mission-hero .fit, .dist-hero .fit { margin-inline: auto; }
  .doc-acc summary { font-size: clamp(1.25rem, 1.75vw, 1.85rem); padding: 1.1rem 0 .85rem; }
  .doc-acc + .wrap h2.center, h2.center[style*="6.9vw"] { font-size: clamp(2rem, 4.2vw, 4.4rem) !important; max-width: var(--col); margin-inline: auto; }
  .m-part h2 { font-size: clamp(2.4rem, 4.2vw, 4.4rem); }
  .dist-body h2 { font-size: clamp(1.9rem, 3vw, 3.2rem); }
  .stmt h2 { font-size: clamp(1.7rem, 2.7vw, 2.9rem); }
  .stmt h3 { font-size: clamp(1.25rem, 1.8vw, 1.9rem); }
  .ps h2 { font-size: min(calc(3 * var(--u) + 1rem), 3.9rem); }
  .prose p, .prose li, .doc-acc .body, .stmt li, .ps p.long, .ps .txt:has(p.long) p, .mpj-top .bio, .mpj-top .bio p, .m-part .prose p, .dist-body p, .mission-hero .intro p { font-size: clamp(16px, calc(.18 * var(--u) + 1rem), 18.5px); }
}
:root { --lw: 40px; --lt: 4.5px; --gap: 10px; }
@media (max-width: 767px) { :root { --lw: 34px; --lt: 4px; --gap: 9px; } }
.menu-btn { padding: 23px 20px; margin-top: 10px; border-radius: 16px; }
@media (max-width: 767px) { .menu-btn { padding: 19px 16px; margin-top: 6px; border-radius: 14px; } }
.site-header.on-terra:not(:hover) .menu-btn { background: var(--olive); }
html.menu-open .site-header.on-terra .menu-btn { background: var(--terra); }
/* top-left logo 1.25x */
.mark-hdr { width: 110px; }
@media (max-width: 767px) { .mark-hdr { width: 84px; } }
/* over a green section, the menu button turns dusty rose on hover (green would disappear) */
@media (hover: hover) { .site-header.on-olive .menu-btn:hover, .site-header.on-olive .menu-btn:focus-visible { background: var(--rose); } }
/* map: grow by resizing (not zooming a picture of it), so roses and names stay sharp while enlarged */
.ccpa .pin, .ccpa .pin:hover, .ccpa .pin:focus-visible, .ccpa .pin:active { transform: none !important; transition: none; }
.ccpa .pin .mk { left: 0; top: 0; transform: translate(-50%, -50%); transition: width .25s cubic-bezier(.3, .7, .4, 1); }
.ccpa .pin .lb { transition: font-size .25s cubic-bezier(.3, .7, .4, 1); }
@media (hover: hover) {
  .ccpa .pin:hover .mk, .ccpa .pin:focus-visible .mk { width: calc(1.9cqw * 1.03); }
  .ccpa .pin:hover .lb, .ccpa .pin:focus-visible .lb { font-size: calc(1.65cqw * 1.03); }
}
.ccpa .pin:active .mk { width: calc(1.9cqw * 1.03); }
.ccpa .pin:active .lb { font-size: calc(1.65cqw * 1.03); }
@media (prefers-reduced-motion: reduce) { .ccpa .pin .mk, .ccpa .pin .lb { transition: none; } }
/* Affirmed Statements tiles: a little narrower with more space between, smaller grow */
@media (min-width: 768px) {
  .tiles4 { gap: clamp(20px, 2.4vw, 36px); max-width: min(1080px, var(--col, 100%)); margin-inline: auto; }
  .tiles4 a { min-height: 200px; font-size: clamp(1rem, 1.45vw, 1.55rem); padding: 1.4rem 1.2rem; }
}
.tiles4 a:hover, .tiles4 a:focus-visible { transform: scale(1.03); }
/* sermons grid: a little more margin on the sides (desktop and tablet) */
@media (min-width: 768px) { #results .grid { padding-inline: clamp(24px, 4vw, 72px); } }
/* menu button: green exactly where it overlaps a terracotta background (no whole-button switch) */
.menu-btn { position: relative; overflow: hidden; }
.menu-btn .ml { z-index: 1; }

.site-header.on-terra:not(:hover) .menu-btn { background: var(--terra); }

.menu-btn, .site-header.on-terra:not(:hover) .menu-btn, html.menu-open .site-header.on-terra .menu-btn { background: var(--olive); }
.site-header.on-olive .menu-btn, .site-header.on-olive:not(:hover) .menu-btn { background: var(--rose); }
@media (hover: hover) { .menu-btn:hover, .menu-btn:focus-visible, .site-header.on-olive .menu-btn:hover, .site-header.on-olive .menu-btn:focus-visible { background: var(--terra); } }
html.menu-open .site-header .menu-btn { background: var(--olive); }
.menu-btn { transition: background-color .1s linear, transform .22s cubic-bezier(.3, .7, .4, 1); }
/* Home: "Meet Pastor John Fabarez" heading is a link that grows 2% */
.title-link { color: inherit; text-decoration: none; display: inline-block; transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
@media (hover: hover) { .title-link:hover, .title-link:focus-visible { transform: scale(1.02); } }
/* Home, desktop: the Pastor John section as a tidy two-column layout — photo (icons under it) beside the title and bio */
@media (min-width: 1024px) {
  .ps:has(.title-link) .fe { display: grid !important; grid-template-columns: 1fr 1fr 5vw 1.35fr !important; grid-template-rows: 1fr auto auto 1fr auto !important;
    align-items: start; max-width: 1400px; margin-inline: auto; padding-inline: 3vw; row-gap: 0; }
  .ps:has(.title-link) .fe > .feb { grid-area: auto !important; }
  .ps:has(.title-link) .fe > .feb.k-image:has(.fit) { grid-column: 1 / 3 !important; grid-row: 1 / 5 !important; aspect-ratio: 2101 / 2711; width: 100%; height: auto; }
  .ps:has(.title-link) .fe > .feb.k-image:has(a[href*="youtube"]) { grid-column: 1 !important; grid-row: 5 !important; justify-self: end; width: 46px; height: 46px; margin: 1.1rem 12px 0 0; }
  .ps:has(.title-link) .fe > .feb.k-image:has(a[href*="instagram"]) { grid-column: 2 !important; grid-row: 5 !important; justify-self: start; width: 46px; height: 46px; margin: 1.1rem 0 0 12px; }
  .ps:has(.title-link) .fe > .feb.k-text:has(.title-link) { grid-column: 4 !important; grid-row: 2 !important; }
  .ps:has(.title-link) .fe > .feb.k-text:not(:has(.title-link)) { grid-column: 4 !important; grid-row: 3 !important; }
  .ps:has(.title-link) h2, .ps:has(.title-link) h2[style] { text-align: left !important; margin: 0 0 1.4rem !important; }
  .ps:has(.title-link) .title-link { transform-origin: left center; }
  .ps:has(.title-link) .txt p { font-size: clamp(17px, 1.3vw, 20px) !important; line-height: 1.6; margin: 0; }
}
@media (min-width: 1024px) { .ps:has(.title-link) h2 { font-size: clamp(2.3rem, 3.7vw, 3.9rem) !important; } }
/* map roses: drawn the same soft way all the time (as their own layer), so hovering doesn't change their sharpness */
.ccpa .pin .mk { will-change: transform; transform: translate(-50%, -50%) scale(1); transition: transform .25s cubic-bezier(.3, .7, .4, 1); width: 1.9cqw !important; }
@media (hover: hover) { .ccpa .pin:hover .mk, .ccpa .pin:focus-visible .mk { transform: translate(-50%, -50%) scale(1.03); } }
.ccpa .pin:active .mk { transform: translate(-50%, -50%) scale(1.03); }
/* menu button colors (as Ashton wants): terracotta; hover green — or dusty rose when it touches a green section.
   Over a terracotta section it shows green so it doesn't disappear. */
.menu-btn, .site-header.on-olive .menu-btn, .site-header.on-olive:not(:hover) .menu-btn, html.menu-open .site-header .menu-btn { background: var(--terra); }
.site-header.on-terra .menu-btn, .site-header.on-terra:not(:hover) .menu-btn { background: var(--olive); }
@media (hover: hover) {
  .menu-btn:hover, .menu-btn:focus-visible { background: var(--olive) !important; }
  .site-header.on-olive .menu-btn:hover, .site-header.on-olive .menu-btn:focus-visible, .site-header.on-terra .menu-btn:hover { background: var(--rose) !important; }
}
@media (min-width: 1024px) {
  .ps:has(.title-link) h2, .ps:has(.title-link) h2[style] { text-align: center !important; }
  .ps:has(.title-link) .title-link { transform-origin: center; }
  .ps:has(.title-link) .txt p { text-align: center !important; }
}
@media (hover: hover) { .ccpa .pin:hover .mk, .ccpa .pin:focus-visible .mk { transform: translate(-50%, -50%) scale(1.04); } }
.ccpa .pin:active .mk { transform: translate(-50%, -50%) scale(1.04); }
/* Home: the top-left logo is hidden from the very first moment (no flash before the page script runs) */
#page[data-page="home"] .site-header .logo, body[data-page="home"] .site-header .logo { opacity: 0; visibility: hidden; }
html.past-hero #page[data-page="home"] .site-header .logo, html.past-hero body[data-page="home"] .site-header .logo { opacity: 1; visibility: visible; }
/* Home: with the menu open the logo shows too (clicking it closes the menu and goes to the top) */
html.menu-open #page[data-page="home"] .site-header .logo, html.menu-open body[data-page="home"] .site-header .logo { opacity: 1; visibility: visible; transition: opacity .35s ease; }
/* video play button: cream outline so it reads on any thumbnail; on hover it flips to cream with a terracotta play mark */
.yt-play { border: 3px solid var(--cream); box-sizing: border-box; }
@media (hover: hover) { .yt-lite:hover .yt-play { background: var(--cream); color: var(--terra); border-color: var(--terra); transform: scale(1.06); } }
/* map names: grow smoothly (scale, not font size, which jitters) from the side next to their rose */
.ccpa .pin .lb, .ccpa .pin:hover .lb, .ccpa .pin:focus-visible .lb, .ccpa .pin:active .lb { font-size: 1.65cqw !important; transition: scale .25s cubic-bezier(.3, .7, .4, 1); will-change: scale; }
.ccpa .lb-l { transform-origin: left center; } .ccpa .lb-r { transform-origin: right center; } .ccpa .lb-c { transform-origin: center bottom; }
@media (hover: hover) { .ccpa .pin:hover .lb, .ccpa .pin:focus-visible .lb { scale: 1.03; } }
.ccpa .pin:active .lb { scale: 1.03; }
/* "Why North Phoenix?" video with a column of the playlist's other videos */
.vgal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 26px); align-items: start; }
.vgal .video-embed { width: 100%; margin: 0; }
.vg-list { display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 18px); }
.vg-item { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); font: inherit; transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.vg-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.vg-item span { display: block; margin-top: .45rem; font-family: var(--body); font-weight: 600; font-size: clamp(.85rem, 1vw, 1rem); line-height: 1.3; }
@media (hover: hover) { .vg-item:hover, .vg-item:focus-visible { transform: scale(1.03); } }
@media (max-width: 767px) {
  .vgal { grid-template-columns: 1fr; }
  .vg-list { flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .vg-item { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (min-width: 1024px) {
  /* the block gets a little more room so the main video can sit slightly right with the column beside it */
  .ps:has(.vgal) .feb.k-video { grid-column-start: 3 !important; grid-column-end: 25 !important; }
  .ps:has(.vgal) .vgal { padding-left: 3%; }
}
.vgal .video-embed { border-radius: 12px; overflow: hidden; }
@media (max-width: 767px) { .vg-list { align-items: flex-start; } }
/* gallery: title of the playing video above it; the side column matches the video's height */
@media (min-width: 768px) { .vgal { grid-template-rows: auto auto; } }
.vg-now { grid-column: 1 / -1; margin: 0 0 .9rem !important; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink);
  font-size: clamp(1.15rem, 1.7vw, 1.75rem) !important; line-height: 1.15 !important; text-align: left; }
@media (min-width: 768px) {
  .vg-list { height: var(--vh, auto); display: grid; grid-auto-rows: minmax(0, 1fr); gap: clamp(10px, 1vw, 14px); }
  .vg-item { display: flex; flex-direction: column; min-height: 0; }
  .vg-item img { flex: 1 1 auto; min-height: 0; height: 0; aspect-ratio: auto; width: 100%; }
  .vg-item span { flex: none; margin-top: .3rem; font-size: clamp(.78rem, .85vw, .92rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.ps .vg-now { color: var(--ink); }
/* Sign Up button grows on hover */
.nl-btn button, .sub-row button, .form button[type="submit"] { transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
@media (hover: hover) { .nl-btn button:hover, .nl-btn button:focus-visible, .sub-row button:hover, .form button[type="submit"]:hover { transform: scale(1.06); } }
/* Home hero: bigger logo, smaller "Planting in North Phoenix, Arizona" line sitting under it */
@media (min-width: 768px) {
  .hero-lockup { width: min(90%, 1180px); margin-bottom: 1.1rem !important; }
  .ps-first:has(.hero-lockup) h2 { font-size: clamp(1.3rem, 2.3vw, 2.6rem) !important; margin-top: 0 !important; }
}
.yt-lite iframe { transition: opacity .25s ease; }
.yt-lite.loading .yt-play { opacity: .6; pointer-events: none; }
@media (min-width: 768px) { .ps-first:has(.hero-lockup) h2 { font-size: min(3.7vw, 53px) !important; white-space: nowrap; } }
/* video gallery: no blue selection highlight when clicking around */
.vgal, .vg-item, .vg-item img, .yt-lite { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; }
.vg-item:focus:not(:focus-visible) { outline: none; }
.yt-lite.playing { background: #000; }
/* gallery with more than 3 other videos: a 2 x 3 grid beside the main video (more than 6 scroll inside it) */
@media (min-width: 768px) {
  .vgal.vg-many { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr); }
  .vgal.vg-many .vg-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: calc((var(--vh, 300px) - (var(--rows, 3) - 1) * clamp(10px, 1vw, 14px)) / var(--rows, 3)); overflow-y: auto; scrollbar-width: thin; }   /* 4 others = 2 rows, 5-6 = 3 rows: no scrolling; only more than 6 scroll */
}
/* while YouTube's player starts: "Loading..." in the site's type instead of plain black */
.yt-lite.playing::before { content: "Loading..."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0;
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--cream); font-size: clamp(1rem, 1.6vw, 1.5rem); background: var(--ink); }
.yt-lite iframe { z-index: 1; }
/* Home: "A History of Compass Bible Church" title grows a little like "Meet Pastor John Fabarez" */
.ps .txt:has(.sqsrte-scaled-text-container a) { transition: transform .22s cubic-bezier(.3, .7, .4, 1); transform-origin: center; }
@media (hover: hover) { .ps .txt:has(.sqsrte-scaled-text-container a):hover { transform: scale(1.02); } }
.ps .sqsrte-scaled-text-container a { text-decoration: none; }

/* Site-wide: things that grow on hover are drawn as their own smooth layer, so text doesn't jitter while growing */
.title-link, .ps .txt:has(.sqsrte-scaled-text-container a), .menu-acc .links a, .ps .accordion-item__description a, .pager-links a,
.tiles4 a, .badges a, .follow-cards a, .card, .vg-item, .nl-btn button, .site-header .logo, .yt-play, .follow-row .socials a, .ps .socials a, .ccpa .pin .lb {
  will-change: transform; backface-visibility: hidden; -webkit-font-smoothing: antialiased; transform: translateZ(0);
}
@media (hover: hover) {
  .title-link:hover, .title-link:focus-visible { transform: translateZ(0) scale(1.02); }
  .ps .txt:has(.sqsrte-scaled-text-container a):hover { transform: translateZ(0) scale(1.02); }
  .menu-acc .links a:hover, .menu-acc .links a:focus-visible, .ps .accordion-item__description a:hover, .ps .accordion-item__description a:focus-visible { transform: translateZ(0) scale(1.06); }
  .pager-links a:hover, .pager-links a:focus-visible { transform: translateZ(0) scale(1.05); }
  .tiles4 a:hover, .tiles4 a:focus-visible { transform: translateZ(0) scale(1.03); }
  .badges a:hover, .badges a:focus-visible { transform: translateZ(0) scale(1.1); }
  .follow-cards a:hover, .follow-cards a:focus-visible { transform: translateZ(0) scale(1.1); }
  .card:hover, .card:focus-visible { transform: translateZ(0) scale(1.03); }
  .vg-item:hover, .vg-item:focus-visible { transform: translateZ(0) scale(1.03); }
  .nl-btn button:hover, .nl-btn button:focus-visible { transform: translateZ(0) scale(1.06); }
  .site-header .logo:hover, .site-header .logo:focus-visible { transform: translateZ(0) scale(1.05); }
  .follow-row .socials a:hover, .ps .socials a:hover { transform: translateZ(0) scale(1.15); }
}
/* sermon filters: the four buttons always stay in one row on tablets and desktop (they shrink to fit) */
@media (min-width: 768px) {
  .filters { gap: 12px clamp(10px, 2vw, 34px); }
  .filters .fb { flex: 1 1 0; min-width: 0; max-width: 260px; font-size: clamp(.95rem, 1.5vw, 1.55rem); padding-inline: clamp(.7rem, 1.1vw, 1.3rem); white-space: nowrap; }
}

/* ---- Home: Upcoming Events (sand band, shorter than the other sections) ---- */
.events-band { background: var(--sand); color: var(--ink); }
.events-band .ev-in { width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(2.2rem, 3.6vmax, 3.6rem) var(--gutter) clamp(2.6rem, 4.2vmax, 4.2rem); box-sizing: border-box; }
.ps.events-band h2 { color: var(--ink); text-align: center; margin: 0 0 clamp(1.4rem, 2.6vw, 2.4rem); }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.ev-grid.ev-one { grid-template-columns: minmax(0, 980px); justify-content: center; }
@media (min-width: 901px) {
  .ev-one .ev { flex-direction: row; align-items: center; padding: 12px; gap: 1rem; }
  .ev-one .ev .ev-img { width: 52%; flex: none; }
  .ev-one .ev-txt { flex: 1; padding: 1rem 1.2rem; }
}
.ev-grid:has(> .ev:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; }
.ev { display: flex; flex-direction: column; background: var(--cream); color: var(--ink); text-decoration: none; border-radius: var(--radius-photo);
      padding: 12px 12px 0; transition: transform .25s cubic-bezier(.3, .7, .4, 1); will-change: transform; user-select: none; -webkit-user-select: none; }
.ev[hidden] { display: none; }
.ev.ev-pic, .ev-one .ev.ev-pic { padding: 0; background: none; display: block; border-radius: var(--radius-photo); overflow: hidden; }
.ev.ev-pic .ev-img, .ev-one .ev.ev-pic .ev-img { width: 100%; border-radius: var(--radius-photo); }
.ev-grid.ev-one:has(.ev-pic) { grid-template-columns: minmax(0, 720px); }
.ev .ev-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius-photo) - 12px); display: block; }
.ev-txt { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1rem 1.4rem; text-align: center; }
.ev-when { font-size: var(--para); font-weight: 700; color: var(--terra); }
.ev-t { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.1; padding-top: .2em; }
.ev-where { font-size: var(--para); }
.ev-when > span { display: block; }
.ev-go { margin-top: .5rem; font-size: var(--para); font-weight: 700; color: var(--olive); }
@media (hover: hover) { .ev:hover, .ev:focus-visible { transform: translateZ(0) scale(1.03); } }
@media (max-width: 900px) { .ev-grid, .ev-grid.ev-one, .ev-grid:has(> .ev:nth-child(2):last-child) { grid-template-columns: minmax(0, 560px); justify-content: center; } }
/* once a grow has finished, redraw it crisp at its new size (the smooth layer is only needed while moving) */
.grow-sharp, .ccpa .pin .lb.grow-sharp, .ev.grow-sharp { will-change: auto !important; }

/* ==== COLOR BLOCKING ====
   Sections can carry a second solid color (a .cb-panel element) and photos can sit on an offset color block.
   All flat colors from the palette: no gradients, no soft shadows. */
.cb-panel { position: absolute; pointer-events: none; }
:root { --fo: clamp(10px, 1.1vw, 18px); }                       /* how far a photo's color block is offset */
.cb-fr { box-shadow: var(--fo) var(--fo) 0 0 var(--fc, var(--terra)); }
.cb-fl { box-shadow: calc(-1 * var(--fo)) var(--fo) 0 0 var(--fc, var(--terra)); }

/* Home — Meet Pastor John: terracotta on the left, olive on the right, the photo straddling the two */
.cb-mpj { overflow: clip; }
.cb-mpj .cb-panel { background: var(--terra); }
.cb-mpj .fe { position: relative; overflow: visible !important; }
.cb-mpj .fe > .feb { position: relative; }
@media (max-width: 767px) {
  /* phones: terracotta on top, olive from the middle of the photo down */
  .cb-mpj .cb-panel { grid-column: 1 / -1; grid-row: 1 / 10; left: -100vw; right: -100vw; top: -100vh; bottom: 0; }
  .ps.cb-mpj h2 { font-size: min(10.4vw, 2.9rem) !important; }
  .ps.cb-mpj .fe > .feb.k-image:has(a[href*="youtube"]) { grid-column: 2 / 6 !important; justify-self: end; width: 38px; height: 38px; margin: .7rem 10px .5rem 0; }
  .ps.cb-mpj .fe > .feb.k-image:has(a[href*="instagram"]) { grid-column: 6 / 10 !important; justify-self: start; width: 38px; height: 38px; margin: .7rem 0 .5rem 10px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* tablets: terracotta on the left up to the middle of the photo */
  .cb-mpj .cb-panel { grid-column: 1 / 8; grid-row: 1 / -1; left: -100vw; right: 0; top: -100vh; bottom: -100vh; }
}
@media (min-width: 1024px) {
  .ps.cb-mpj .fe { grid-template-columns: 1fr 1fr 5vw 1.6fr !important; }
  .cb-mpj .fe { position: relative; overflow: visible !important; grid-template-rows: 1fr auto auto auto 1fr !important; }
  .cb-mpj .cb-panel { grid-column: 1 / 2; grid-row: 1 / -1; left: -100vw; right: 0; top: -100vh; bottom: -100vh; }
  .cb-mpj .fe > .feb { position: relative; }
  .ps.cb-mpj .fe > .feb.k-image:has(.fit) { grid-row: 1 / 6 !important; }
  .ps.cb-mpj .fe > .feb.k-image:has(a[href*="youtube"]) { grid-column: 4 !important; grid-row: 4 !important; justify-self: center; margin: 1.6rem 66px 0 0; }
  .ps.cb-mpj .fe > .feb.k-image:has(a[href*="instagram"]) { grid-column: 4 !important; grid-row: 4 !important; justify-self: center; margin: 1.6rem 0 0 66px; }
}

/* Home — Subscribe: the sand of the section above runs down behind the top half of the card */
.cb-sub .cb-panel { left: 0; right: 0; top: 0; height: 50%; background: var(--sand); }
.cb-sub > .ps-cw { z-index: 1; }

/* Meet Pastor John page — sand panel behind the portrait, olive beside it; family photos on cream below */
.mpj-title { font-size: clamp(2.8rem, 7.3vw, 8.4rem); line-height: 1.12; text-align: center; }
.mpj-hero { overflow: clip; }
/* phones and tablets: olive on top, sand from the middle of the portrait down (the bio sits on the sand) */
.mpj-hero .cb-panel { background: var(--cream); grid-row: 3 / 5; left: -100vw; right: -100vw; bottom: -100vh;
  top: calc(1.2rem + (100vw - 2 * var(--gutter)) * .8 * 335 / 256 / 2); }
.mpj-top > :not(.cb-panel) { position: relative; }
.mpj-top .bio { color: var(--ink); }
.mpj-top { display: grid; grid-template-columns: 1fr; gap: 1.2rem; padding-bottom: 3.4rem; position: relative; }
.mpj-role { margin: -.7rem 0 0; text-align: center; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.15rem, 2.4vw, 1.7rem); color: var(--sand); }
.mpj-pic { margin-top: 1.2rem; }
.mpj-pic .photo { display: block; width: 80%; margin-inline: auto; aspect-ratio: 256 / 335; --fc: var(--terra); }
.mpj-top .bio { text-align: center; font-size: calc(.5 * var(--u) + 1rem); line-height: 1.5; margin-top: .6rem; }
.mpj-fam { padding-block: 3rem 3.6rem; }
.mpj-row { display: grid; grid-template-columns: 1fr; gap: 28px; }
.mpj-row img { justify-self: center; }
.mpj-row img:nth-child(1) { width: 58%; aspect-ratio: 144 / 214; --fc: var(--olive); }
.mpj-row img:nth-child(2) { width: 64%; aspect-ratio: 144 / 214; order: 3; --fc: var(--rose); }
.mpj-row img:nth-child(3) { width: 92%; aspect-ratio: 269 / 214; order: 2; --fc: var(--terra); }
@media (min-width: 768px) {
  .mpj-row { grid-template-columns: 144fr 144fr 269fr; gap: clamp(2rem, 4.5vw, 4.5rem); max-width: 1320px; align-items: start; }
  .mpj-row img:nth-child(n) { width: 100%; order: 0; }
  .mpj-fam { padding-block: clamp(3.5rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem); }
}
@media (min-width: 1024px) {
  .mpj-hero { padding-top: 0; }
  .mpj-hero .cb-panel { grid-row: auto; left: 0; right: auto; top: 0; bottom: 0; width: 42%; }
  .mpj-top .bio { color: inherit; }
  .mpj-top { grid-template-columns: 42fr 58fr; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 0; row-gap: 0; max-width: none; padding: 0; min-height: min(92vh, 900px); margin-inline: calc(-1 * var(--gutter)); }
  .mpj-pic { grid-column: 1; grid-row: 1 / 6; align-self: center; margin: 0; padding: 150px 0 clamp(4rem, 7vw, 6rem); }
  .mpj-pic .photo { width: min(64%, 520px); }
  .mpj-title { grid-column: 2; grid-row: 2; font-size: clamp(2.6rem, 4.6vw, 5.2rem); padding-inline: clamp(3rem, 7vw, 8rem); margin: 0 0 .5rem; padding-top: 110px; }
  .mpj-role { grid-column: 2; grid-row: 3; text-align: left; padding-inline: clamp(3rem, 7vw, 8rem); margin: 0 0 1.6rem; font-size: clamp(1.1rem, 1.5vw, 1.6rem); }
  .mpj-top .bio { grid-column: 2; grid-row: 4; padding-inline: clamp(3rem, 7vw, 8rem); margin: 0; padding-bottom: 4rem; max-width: none; }
  .mpj-top .bio, .mpj-top .bio p { text-align: left; }
  .mpj-top .bio p { max-width: 680px; }
  .mpj-hero .mpj-title { text-align: left; }
}

/* Photos and videos on an offset color block */
.vgal .vg-main { box-shadow: calc(-1 * var(--fo)) var(--fo) 0 0 var(--sand); }
.ev.ev-pic { box-shadow: var(--fo) var(--fo) 0 0 var(--olive); }
.m-part .photo { box-shadow: calc(-1 * var(--fo)) var(--fo) 0 0 var(--fc); }
.m-part:nth-child(even) .photo { box-shadow: var(--fo) var(--fo) 0 0 var(--fc); }
.m-part:nth-child(1) { --fc: var(--terra); } .m-part:nth-child(2) { --fc: var(--olive); } .m-part:nth-child(3) { --fc: var(--rose); }
/* Mission: the middle part sits on its own sand band, edge to edge */
.m-part:nth-child(even) { background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); }
.m-part:nth-child(even) .prose a { color: var(--ink); }

/* Title bands end in a stripe of a second color */
.band-title::after, .mission-hero::after, .dist-hero::after, .sermons-hero::after, .hdr-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(10px, 1.1vw, 18px); background: var(--stripe, var(--terra)); }
.t-olive.band-title, .t-olive.dist-hero, .t-olive.hdr-band { --stripe: var(--sand); }
.t-terra.mission-hero { --stripe: var(--olive); }
/* Mailing list page: sand across the top, the card straddling sand and olive */
.mailing .cb-panel { left: 0; right: 0; top: 0; height: 46%; background: var(--sand); }
.mailing > .wrap { position: relative; }
/* Sermon page: the video on a terracotta block */
.video-embed.sermon-video { box-shadow: var(--fo) var(--fo) 0 0 var(--terra); }

/* ==== FIXES ==== */
/* Mailing list card: fields never stick out past the card on narrow phones */
.sub-row input { min-width: 0; }
/* Sermon page: previous / next titles always fit side by side on phones */
.post-nav a { min-width: 0; }
@media (max-width: 767px) {
  .post-nav { gap: .9rem; }
  .post-nav a { gap: .6rem; font-size: clamp(1.1rem, 5.2vw, 1.6rem); overflow-wrap: anywhere; }
  .post-nav svg { width: 14px; height: 26px; }
}
/* Mission on phones: the Reaching / Teaching / Training photos run the full width */
@media (max-width: 767px) { .m-part .photo { width: 100%; margin-bottom: 2rem; } }

/* ==== Phones and tablets: once the page is scrolled, the state and the menu button sit in their own olive bar
   (on Home, once past the hero photo). At the very top of a page they float as before. ==== */
@media (max-width: 1023px) {
  .site-header { transition: background-color .25s ease, padding .25s ease; }
  .site-header .mark-hdr { transition: width .25s ease, color .35s ease; }
  .site-header .menu-btn { transition: background-color .1s linear, transform .22s cubic-bezier(.3, .7, .4, 1), padding .25s ease, margin .25s ease; }
  .site-header.barred { background: var(--olive); pointer-events: auto; align-items: center;
    padding-top: calc(7px + env(safe-area-inset-top, 0px)); padding-bottom: 7px; }
  .site-header.barred .mark-hdr { width: 46px; color: var(--cream); }
  .site-header.barred .mark-alt { display: none; }
  .site-header.barred .menu-btn { margin-top: 0; padding: 13px 13px; border-radius: 11px; }
  .site-header.barred.bar-light { background: var(--cream); }
  .site-header.barred.bar-light .mark-hdr { color: var(--olive); }
  html.menu-open .site-header.barred { background: none; }
  html.menu-open .site-header.barred .mark-hdr { color: var(--cream); }
}
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .mark-hdr, .site-header .menu-btn { transition: none; } }
/* Home video gallery on phones: a little more room between the main video (and its color block) and the row below */
@media (max-width: 767px) { .vgal .vg-list { margin-top: 14px; } }

/* ==== Map on phones: tap it to open a zoomed map you can drag around; the church links work in there ==== */
.map-hint { display: none; }
@media (max-width: 767px) {
  .ccpa:not(.mz-map) { cursor: zoom-in; }
  .ccpa:not(.mz-map) .pin, .ccpa:not(.mz-map) .pin-logo { pointer-events: none; }
  p.map-hint, .ps p.map-hint { display: block; margin: .9rem 0 0 !important; text-align: center; font-family: var(--body); font-size: .95rem !important; font-weight: 600; color: var(--ink) !important; opacity: .75; }
}
.map-zoom { position: fixed; inset: 0; z-index: 200; background: var(--sand); opacity: 0; transition: opacity .2s ease; }
.map-zoom.open { opacity: 1; }
.mz-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; }
.mz-in { margin: auto; padding: calc(84px + env(safe-area-inset-top, 0px)) 40px 60px; flex: none; }
.mz-in .ccpa { width: min(300vw, 1500px); }
.mz-in .ccpa .pin, .mz-in .ccpa .pin-logo { pointer-events: auto; }
.mz-x { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); width: 62px; height: 52px; border: 0; border-radius: 14px;
  background: var(--terra); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mz-x:focus:not(:focus-visible) { outline: none; }
.mz-x::before, .mz-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 4px; margin: -2px 0 0 -15px; border-radius: 2px; background: var(--cream); transform: rotate(45deg); }
.mz-x::after { transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .map-zoom { transition: none; } }

/* The state in the header is always cream while the menu is open (never the green copy) */
html.menu-open .site-header .mark-alt, html.menu-shown .site-header .mark-alt { display: none; }
html.menu-open .site-header .mark-hdr { color: var(--cream) !important; }

/* ==== STAFF (private pages) ==== */
.staff-hero { padding-bottom: 4.2rem; }
.staff-lead { margin: 2.2rem auto 0; max-width: 46rem; text-align: center; padding: 0; }
.staff-lead p { font-size: var(--para); line-height: 1.55; }
@media (min-width: 768px) {
  .staff-lead { max-width: min(1080px, 100%); }
  .staff-lead p { font-size: clamp(16px, calc(.18 * var(--u) + 1rem), 18.5px); line-height: 1.6; }
}
.staff-lead a, .staff-lead a.rtBibleRef { color: var(--cream); }
.staff-src { margin-top: 1rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: .95rem !important; }
.staff-src a { text-decoration: none; color: var(--sand) !important; }
.staff-list { padding-block: clamp(3.5rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; gap: clamp(3rem, 6vw, 6.5rem) clamp(2.5rem, 6vw, 7rem); max-width: 1320px; }
.staff-card { text-align: center; }
.staff-pic { display: block; }
.staff-pic .photo { display: block; aspect-ratio: 4 / 5; box-shadow: var(--fo) var(--fo) 0 0 var(--fc, var(--terra)); transition: transform .25s cubic-bezier(.3, .7, .4, 1); }
.staff-card:nth-child(3n+2) { --fc: var(--olive); } .staff-card:nth-child(3n) { --fc: var(--rose); }
@media (hover: hover) { .staff-pic:hover .photo { transform: translateZ(0) scale(1.02); } }
.staff-card h2 { margin-top: 2rem; font-size: clamp(1.45rem, 1.9vw, 1.9rem); line-height: 1.1; white-space: nowrap; }
.staff-role { margin: .45rem 0 1.2rem; font-size: var(--para); }
.staff-back { margin-top: 2rem !important; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.staff-back a { color: inherit; text-decoration: none; }
.staff-login .sub-card p { margin-bottom: 1rem; }
.staff-msg { color: var(--terra); font-weight: 700; min-height: 0; margin: 0 0 1rem !important; }
.staff-msg:empty { display: none; }
/* staff pages: email + social icons under the bio */
.staff-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin-top: 1.6rem; }
.staff-links a { display: block; width: 34px; height: 34px; color: var(--olive); transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.staff-links svg { width: 100%; height: 100%; fill: currentColor; display: block; }
@media (hover: hover) { .staff-links a:hover, .staff-links a:focus-visible { transform: translateZ(0) scale(1.15); } }
@media (min-width: 1024px) { .staff-links { justify-content: flex-start; } .staff-links a { color: var(--cream); width: 32px; height: 32px; } }

/* staff email pop-up: the address with Copy and Send */
.staff-links { position: relative; }
.mp-break { flex-basis: 100%; height: 0; margin-top: -1.1rem; }
.mail-pop { margin-top: -.3rem; display: flex; align-items: center; gap: .5rem;
  padding: .55rem .6rem .55rem 1rem; background: var(--cream); color: var(--ink); border: 3px solid var(--terra); border-radius: 14px; white-space: nowrap;
  font-family: var(--body); font-size: 1rem; font-weight: 600; }
.mail-pop .mp-addr { margin-right: .35rem; user-select: all; -webkit-user-select: all; }
.mail-pop .mp-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 9px; background: var(--terra); color: var(--cream); cursor: pointer;
  transition: background-color .15s ease, transform .22s cubic-bezier(.3, .7, .4, 1); -webkit-tap-highlight-color: transparent; }
.mail-pop .mp-btn svg { width: 21px; height: 21px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mail-pop .mp-btn.done { background: var(--olive); }
.mail-pop .mp-copy svg + svg, .mail-pop .mp-copy.done svg:first-child { display: none; }
.mail-pop .mp-copy.done svg + svg { display: block; }
.mail-pop .mp-btn svg { pointer-events: none; }
@media (hover: hover) { .mail-pop .mp-btn:hover { background: var(--olive); transform: scale(1.06); } }
.mail-pop .mp-btn:focus:not(:focus-visible) { outline: none; }
.mail-pop .mp-btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
@media (max-width: 420px) { .mail-pop { font-size: .9rem; padding-left: .8rem; } }

/* forms: the hidden spam-trap field, and the message shown if sending fails */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note { grid-column: 1 / -1; margin: .9rem 0 0; font-weight: 700; color: var(--terra); font-size: 1.05rem; }
.form-note:empty { display: none; }
form button[disabled] { opacity: .7; cursor: default; }

/* ===== Menu button and header state at 0.75× (2026-11-12, Ashton): the button box shrank to 0.75×, then the
   lines inside it shrank a further 0.75× (box kept), and the state shrank to 0.75×. ===== */
:root { --lw: 19px; --lt: 2.25px; --gap: 5px; }
.menu-btn { padding: 18.5px 18.25px; margin-top: 8px; border-radius: 12px; }
.mark-hdr { width: 82.5px; }
@media (max-width: 767px) {
  :root { --lw: 17px; --lt: 2px; --gap: 4.5px; }
  .menu-btn { padding: 15.25px 14.75px; margin-top: 6px; border-radius: 10.5px; }
  .mark-hdr { width: 63px; }
}
@media (max-width: 1023px) {
  .site-header.barred .menu-btn { margin-top: 0; padding: 10.75px 12.5px; border-radius: 8.25px; }
  .site-header.barred .mark-hdr { width: 34.5px; }
}

/* ===== Home hero: logo and "Planting in North Phoenix, Arizona" at 0.8× (2026-11-12, Ashton) ===== */
.ps-first .hero-lockup { width: 73.6%; }
.ps-first:has(.hero-lockup) h2 { font-size: calc(.8 * (3 * var(--u) + 1rem)) !important; }
@media (min-width: 768px) {
  .ps-first .hero-lockup { width: min(72%, 944px); }
  .ps-first:has(.hero-lockup) h2 { font-size: min(2.96vw, 42.4px) !important; }
}
/* Phones: wider logo; the subtitle on two even lines, as wide as the logo */
@media (max-width: 767px) {
  .ps-first .hero-lockup { width: 94%; margin-bottom: .8rem !important; }
  .ps-first:has(.hero-lockup) h2 { font-size: 7.6vw !important; white-space: normal; text-wrap: balance; max-width: 94%; margin: 0 auto !important; }
}
/* Phones: "Coming Fall 2027" sits right under the logo and subtitle, not down at the bottom of the photo */
@media (max-width: 767px) {
  .ps-first:has(.hero-lockup) .fe { display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; }
  .ps-first:has(.hero-lockup) .fe > .feb { height: auto !important; min-height: 0 !important; }
}
@media (max-width: 767px) {
  .ps-first .hero-lockup { width: 83vw; }
  .ps-first:has(.hero-lockup) h2 { max-width: 83vw; }
}
@media (max-width: 767px) { .ps-first:has(.hero-lockup) .fe { padding-bottom: 26svh; } }
/* Linked pictures (event graphics, sermon thumbnails): Safari's Live Text lets people select the words inside a
   picture, which gets in the way of clicking it. Turn that off so the whole picture is just the link. */
.ev-pic, .ev-pic img, .card, .card img { -webkit-user-select: none; user-select: none; }
.ev-pic { cursor: pointer; }

/* ==== HISTORY (/a-history-of-compass-bible-church), rebuilt 2026-11-18 ====
   Title band like the What We Believe pages, a row of years to jump to, then one solid color band per year:
   the year big in a second color, the church logos in the band's text color, photos with an offset color block. */
.t-rose { background: var(--rose); color: var(--cream); }
.hist-hero .two-tier .l2 { font-size: clamp(2.6rem, 9.4vw, 11rem); }
.hist-years { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.3rem; margin-top: 2.2rem; }
.hist-years a { color: var(--sand); font: 700 clamp(1rem, 1.4vw, 1.3rem)/1.2 var(--head); letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; }
.hist-years a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.hist-band { --spine: 6px; --sx: 50%; --colgap: clamp(4.5rem, 8vw, 9rem); padding-block: clamp(3.5rem, 6vw, 6.5rem); position: relative; }
.hist-band .wrap { max-width: 1640px; position: relative; }
/* the line: full height of every band, so the bands join into one timeline */
.hist-band::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--sx); width: var(--spine); margin-left: calc(var(--spine) / -2); background: var(--line); }
.hist-finale::before { bottom: auto; height: clamp(3.5rem, 6vw, 6.5rem); }
/* the year: a rounded block sitting on the line */
.hist-block { position: relative; z-index: 1; display: flex; justify-content: center; margin: 0 0 clamp(3rem, 6vw, 5.5rem); }
.hist-block span { background: var(--line); color: var(--bandbg); border-radius: clamp(18px, 2vw, 30px); padding: .14em .45em .06em;
  font: 700 clamp(3.4rem, 8vw, 8.5rem)/1 var(--head); letter-spacing: -.03em; }
.hist-end span { font-size: clamp(2.4rem, 5.5vw, 5.6rem); padding: .25em .6em .15em; }
/* each chapter: two equal columns either side of the line, and a small block on the line at the middle of the chapter */
.hist-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--colgap); align-items: start; }
.hist-row + .hist-row { margin-top: clamp(4rem, 8vw, 8rem); }
.hist-mark { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; transform: translateX(-50%); border-radius: 8px; background: var(--line); }   /* level with the top of the chapter */
.hist-row.flip .hist-a { order: 2; }
/* the words stay in view while their pictures scroll past */
.hist-a { position: sticky; top: calc(46px + clamp(.75rem, 1.5vh, 1.25rem)); }   /* half the old gap; the header logo steps aside in the timeline */
.hist-logo { width: min(100%, 540px); margin: 0 auto clamp(1.8rem, 2.8vw, 2.6rem); }
.hist-logo .logo-mask, .hist-nphx .logo-mask { display: block; width: 100%; background: currentColor; }
.hist-logo .logo-mask { -webkit-mask-position: center; mask-position: center; }
.hist-text { font-size: clamp(1.2rem, 1.65vw, 1.7rem); line-height: 1.6; max-width: 40rem; padding: 0 !important; }
.hist-text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hist-photos { display: grid; gap: clamp(1.6rem, 2.6vw, 2.8rem); padding: 0 var(--fo) var(--fo) 0; }
.hist-row.flip .hist-photos { padding: 0 0 var(--fo) var(--fo); }
.hist-photos.pair { grid-template-columns: 1fr 1fr; }
.hist-photos img { width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; display: block; }
.hist-photos img.cutout { border-radius: 0; }
.hist-finale { text-align: center; padding-block: clamp(3.5rem, 6vw, 6.5rem) clamp(4.5rem, 9vw, 9rem); }
.hist-finale .hist-nphx { max-width: 900px; margin: 0 auto clamp(3rem, 6vw, 5rem); color: var(--cream); }
.hist-finale .hist-row { text-align: left; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; column-gap: clamp(2.5rem, 6vw, 6rem); }
.hist-finale .hist-text { max-width: 46rem; font-size: clamp(1.25rem, 1.75vw, 1.8rem); }
.hist-finale .hist-side { max-width: 620px; justify-self: center; width: 100%; }
.hist-map { padding-block: clamp(3.5rem, 7vw, 7rem); }
.hist-map h2 { font-size: clamp(2rem, 5vw, 5rem); margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.hist-map .wrap { max-width: 1320px; }
@media (max-width: 860px) {
  .hist-band { --sx: 26px; padding-inline-start: 58px; }
  .hist-band .wrap { position: static; }
  .hist-block { justify-content: flex-start; margin-left: -48px; }
  .hist-block span { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hist-row, .hist-finale .hist-row { grid-template-columns: 1fr; row-gap: 1.8rem; }
  .hist-row.flip .hist-a { order: 0; }
  .hist-a { position: static; }
  .hist-mark { left: -32px; top: .4rem; width: 22px; height: 22px; transform: translateX(-50%); border-radius: 6px; }   /* on the line, level with the chapter's start */
  .hist-logo { width: min(100%, 320px); }
  .hist-row.flip .hist-photos { padding: 0 var(--fo) var(--fo) 0; }
  .hist-finale { padding-inline-start: max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .hist-finale::before { left: 26px; }
  .hist-finale .hist-block { margin-left: -2px; }
}
.hist-text p, .hist-text li { font-size: inherit; line-height: inherit; }
html.hist-in:not(.menu-open) body[data-page="a-history-of-compass-bible-church"] .site-header .logo { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
body[data-page="a-history-of-compass-bible-church"] .site-header .logo { transition: opacity .25s ease; }
/* While the menu is open, its close (X) button is terracotta whatever page was behind it, and green on hover. */
html.menu-open .site-header .menu-btn { background: var(--terra) !important; }
@media (hover: hover) { html.menu-open .site-header .menu-btn:hover, html.menu-open .site-header .menu-btn:focus-visible { background: var(--olive) !important; } }
html.menu-open .site-header .menu-btn:focus-visible { background: var(--olive) !important; }
.hist-logo.k073 { width: min(100%, 300px); }   /* the National Equipped Conference logo is tall: keep it about the CCPA logo's height */
@media (max-width: 860px) { .hist-logo.k073 { width: min(100%, 200px); } }
.hist-top { display: inline-block; margin-top: clamp(1.5rem, 3vw, 2.5rem); transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
@media (hover: hover) { .hist-top:hover, .hist-top:focus-visible { transform: scale(1.08); } }
.hist-b { align-self: center; }   /* when a chapter's words run longer than its pictures, the pictures sit in the middle */
@media (max-width: 860px) { .hist-b { align-self: auto; } }

/* ==== THE GOSPEL (/the-gospel), rebuilt 2026-11-18 ====
   One cream page, no pictures. Each paragraph takes three quarters of the width; the other quarter holds terracotta-
   outlined bubbles with the ESV text of the verses it cites, switching sides every paragraph. */
.gp-page { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 6rem); }
.gp-wrap { max-width: 1500px; }
.gp-title { text-align: center; font-size: clamp(3.4rem, 10vw, 10rem); line-height: .9; margin: 0 0 clamp(3rem, 6vw, 6rem); color: var(--ink); }
.gp-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }   /* short paragraphs and their verses line up through the middle */
.gp-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.gp-row.flip .gp-text { order: 2; }
.gp-row.solo { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.gp-row + .gp-row { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.gp-text { position: relative; }
.gp-text.gp-still { position: sticky; top: 30vh; align-self: start; }   /* starts level with its first verse, then stays in view */
.gp-text p, .gp-text.prose p { font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1.7; margin: 0; }
.gp-verses { display: flex; flex-direction: column; gap: 1.1rem; }
.gp-verse { margin: 0; border: 3px solid var(--terra); border-radius: 22px; padding: 1.1rem 1.2rem 1.15rem; }
.gp-verse figcaption { font: 700 .95rem/1.2 var(--head); letter-spacing: -.02em; text-transform: uppercase; color: var(--terra); margin-bottom: .55rem; }
.gp-txt { margin: 0; font-size: .98rem; line-height: 1.55; max-height: calc(1.55em * 9); overflow: hidden; }
.gp-verse.open .gp-txt { max-height: none; }
.gp-txt sup { color: var(--terra); font-weight: 700; font-size: .7em; margin-right: .15em; }
.gp-txt a { color: var(--terra); }
.gp-more { margin-top: .5rem; padding: 0; border: 0; background: none; font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--terra); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gp-copy { margin: clamp(4rem, 8vw, 7rem) auto 0; max-width: 46rem; text-align: center; font-size: .8rem; opacity: .7; }
@media (max-width: 860px) {
  .gp-row, .gp-row.flip, .gp-row.solo { grid-template-columns: 1fr; gap: 1.4rem; }
  .gp-row.flip .gp-text { order: 0; }
  .gp-text { position: static; }
  /* on phones the verses sit in a row under their paragraph that you swipe through */
  .gp-verses { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .4rem; scrollbar-width: none; }
  .gp-verses::-webkit-scrollbar { display: none; }
  .gp-verse { flex: 0 0 82%; scroll-snap-align: start; align-self: flex-start; }   /* each tile only as tall as its verse */
  .gp-row + .gp-row { margin-top: 2.4rem; }
  .gp-row { gap: 1.1rem; }
  .gp-page { padding-top: 1.6rem; }
}
html.hist-in:not(.menu-open) body[data-page="gospel"] .site-header .logo { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.gp-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; flex-wrap: wrap; }
.gp-head figcaption { margin-bottom: 0; }
.gp-tabs { display: flex; gap: .3rem; }
/* tabs: 0.75 of the old size; they stay on one line and shrink a little when a tile has many of them */
.gp-head { flex-wrap: nowrap; }
.gp-head figcaption { flex: 1 1 0; min-width: 0; }
.gp-tabs { flex: 0 0 auto; gap: .22rem; }
.gp-tabs button { flex: none; width: var(--ts, 1.64rem); height: var(--ts, 1.64rem); border-radius: 6px; border: 1.5px solid var(--terra); background: none; color: var(--terra); font: 700 calc(var(--ts, 1.64rem) * .46)/1 var(--body); cursor: pointer; padding: 0; transition: transform .15s ease; }
.gp-tabs button[aria-selected="true"] { background: var(--terra); color: var(--cream); }
@media (hover: hover) { .gp-tabs button:hover { transform: scale(1.1); } }
.gp-head .gp-tabs { order: 2; margin-left: auto; }   /* numbered tabs in the top right */
.gp-ref { color: var(--terra); font-weight: 700; cursor: pointer; }
.gp-ref:hover { text-decoration: underline; text-underline-offset: 3px; }
.gp-ref:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 3px; }
@keyframes gpHit { 0% { background: rgba(199, 126, 87, .22); } 100% { background: transparent; } }
.gp-verse.gp-hit { animation: gpHit .7s ease-out; }
.gp-text.prose { padding: 0; }   /* the site's general prose spacing doesn't apply inside the Gospel rows */
@media (min-width: 768px) { .vgal.vg-many .vg-item { min-width: 0; } .vgal.vg-many .vg-item img { object-fit: cover; } }
/* Video gallery (2026-11-18): the main video full width, the other videos in one row underneath (whole 16:9
   thumbnails, four across; more than four scroll sideways). */
.vgal, .vgal.vg-many { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 768px) {
  .vgal .vg-list, .vgal.vg-many .vg-list { height: auto; display: flex; flex-direction: row; gap: clamp(12px, 1.3vw, 20px); overflow-x: auto; overflow-y: hidden;
    margin-top: clamp(1.2rem, 2vw, 1.8rem); padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .vgal .vg-item, .vgal.vg-many .vg-item { flex: 0 0 calc((100% - 3 * clamp(12px, 1.3vw, 20px)) / 4); min-width: 0; scroll-snap-align: start; display: block; }
  .vgal .vg-item img, .vgal.vg-many .vg-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; flex: none; }
  .vgal .vg-item span { display: block; margin-top: .45rem; }
}
.vg-item img { aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
/* room around the thumbnail row so a thumbnail growing on hover isn't clipped at the edges */
@media (min-width: 768px) { .vgal .vg-list, .vgal.vg-many .vg-list { padding: 12px; margin-inline: -12px; scroll-padding-inline: 12px; } }
/* a little smaller overall, centered; with more than four other videos the row shows a slice of the next one at the
   edge so it's clear you can scroll for more */
@media (min-width: 768px) {
  .ps .vgal { max-width: min(100%, 1060px); margin-inline: auto; }
  .vgal .vg-list:has(> .vg-item:nth-child(5)) .vg-item { flex-basis: calc((100% - 4 * clamp(12px, 1.3vw, 20px)) / 4.35); }
}
/* Doctrine: each section title is a real heading inside its toggle, with the toggle's look */
.doc-acc summary .acc-h { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; margin: 0; }
/* Contact page facts */
.contact-facts { margin: 0 0 4.5rem; display: grid; gap: 1.1rem; max-width: 46rem; }
.contact-facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; }
.contact-facts dt { font: 700 1rem var(--head); text-transform: uppercase; letter-spacing: -.02em; color: var(--terra); }
.contact-facts dd { margin: 0; font-size: 1.15rem; }
.contact-facts dd a { color: inherit; }
.contact-facts .socials { margin: 0; gap: 1rem; justify-content: flex-start !important; }
.contact-facts .socials a { width: 1.6rem; height: 1.6rem; color: var(--ink); }
.contact-facts .socials a:hover { color: var(--terra); }
.contact-facts > div:last-child { align-items: center; }

.ask .ask-h2 { font-size: clamp(2rem, 4.6vw, 5.2rem); margin: 0 0 .5em; }
@media (max-width: 640px) { .contact-facts > div { grid-template-columns: 1fr; gap: .2rem; } }
