/* Quiet — Swiss / International Typographic. Systematic, near-monochrome warm
   paper, ONE vermilion accent used sparingly (eyebrows, the period after every
   major headline, key links, date badges, primary CTAs). Flat only: no shadows,
   gradients, or glows (the one exception is the documented map grid texture).
   All scoped to .tpl-quiet; must never leak into the admin, legacy .church-site,
   or other templates. Quiet is a LIGHT-canvas template: brandStyle maps only the
   accent (the warm paper canvas stays fixed so a dark brand color can never
   break legibility — build spec §7). Radius 0 almost everywhere; the only
   exceptions are event/group cards (16px), their detail box (12px), and the
   event date badge (10px). The only borders: 1.5px ink on form inputs + 1px
   hairline on the event/group detail box. */

.tpl-quiet {
  /* accent (church-mappable) — the ONE place the vermilion hex is written */
  --qt-accent: #d8442a;
  /* fixed palette */
  --qt-ink: #17150f;
  --qt-soft: #5f5a4e;
  --qt-gray: #8b8577;
  --qt-paper: #f0ede4;
  --qt-paper2: #e7e3d7;
  --qt-card: #faf8f2;
  --qt-slot: #e2ddd0;
  --qt-hair: #ddd6c7;
  --qt-hover: #efe9dc;
  --qt-mapgrid: #d7d1c1;
  /* text color sitting ON the accent fill — set per-tenant in the Shell by
     accent luminance so button labels stay legible for ANY brand color */
  --qt-on-accent: var(--qt-paper);
  /* REQUIRED font indirection (a picked pairing overrides these three) */
  --font-disp: var(--qt-font-disp), 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: var(--qt-font-body), 'Hanken Grotesk', system-ui, sans-serif;
  --font-label: var(--qt-font-label), 'Space Mono', ui-monospace, monospace;

  background: var(--qt-paper);
  color: var(--qt-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* `clip`, NOT `hidden`: overflow-x:hidden makes the OTHER axis compute to
     `auto`, which turns this element into the scroll container for everything
     inside — and a position:sticky descendant then pins to a box that never
     scrolls. That silently killed the sticky nav here (it was declared sticky
     and never pinned). `clip` still cuts horizontal overflow, without becoming
     a scroll container. */
  overflow-x: clip;
}

.tpl-quiet * { box-sizing: border-box; }
.tpl-quiet img { max-width: 100%; display: block; }
.tpl-quiet a { color: inherit; text-decoration: none; }
.tpl-quiet a:hover { color: var(--qt-accent); }
/* Keyboard focus — visible ring on every interactive element (a11y). */
.tpl-quiet a:focus-visible, .tpl-quiet button:focus-visible, .tpl-quiet input:focus-visible, .tpl-quiet textarea:focus-visible { outline: 3px solid var(--qt-accent); outline-offset: 2px; }

/* The signature vermilion period. */
.qt-verm { color: var(--qt-accent); }

.qt-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; width: 100%; }
.qt-sec { padding: 104px 0; }
.qt-sec--flush-top { padding-top: 0; }
/* First grid section under a page hero — the reference gives it a 40px top
   (sections read `40px 40px 104px`) so the grid sits ~88px below the hero lead,
   not flush against the hero's 48px bottom. */
.qt-sec--tight-top { padding-top: 40px; }
.qt-band { background: var(--qt-paper2); }
.qt-band--card { background: var(--qt-card); }

/* ── Type primitives ──────────────────────────────────────────── */
.qt-eyebrow { display: block; font-family: var(--font-label); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qt-accent); margin: 0 0 24px; }
.qt-h1 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(46px, 9.4vw, 96px); line-height: 0.9; letter-spacing: -0.04em; margin: 0; text-transform: uppercase; color: var(--qt-ink); }
.qt-h2 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.0; letter-spacing: -0.03em; margin: 0; color: var(--qt-ink); }
.qt-lead { font-family: var(--font-disp); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; letter-spacing: -0.01em; margin: 0; max-width: 660px; color: var(--qt-ink); }
.qt-body { font-size: 18px; line-height: 1.75; color: var(--qt-soft); margin: 0; }

/* ── Buttons (all Space Mono, uppercase, square) ─────────────────── */
.qt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-label); font-weight: 400; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; padding: 16px 22px; border: 1.5px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap; }
/* Prefixed with .tpl-quiet (0,2,0) so they BEAT `.tpl-quiet a { color: inherit }`
   and the nav link rules — otherwise <a> buttons inherit body text on a colored
   fill (unreadable). */
.tpl-quiet .qt-btn--ink { background: var(--qt-ink); color: var(--qt-paper); }
.tpl-quiet .qt-btn--ink:hover { background: var(--qt-accent); color: var(--qt-paper); }
.tpl-quiet .qt-btn--outline { background: transparent; color: var(--qt-ink); border-color: var(--qt-ink); }
.tpl-quiet .qt-btn--outline:hover { background: var(--qt-ink); color: var(--qt-paper); }
/* Outline button ON a dark/ink band — paper border + label, fills to paper. */
.tpl-quiet .qt-btn--outline-light { color: var(--qt-paper); border-color: rgba(240, 237, 228, 0.55); }
.tpl-quiet .qt-btn--outline-light:hover { background: var(--qt-paper); color: var(--qt-ink); border-color: var(--qt-paper); }
/* Vermilion CTA that flips to paper on hover (give band / give hero). */
.tpl-quiet .qt-btn--verm { background: var(--qt-accent); color: var(--qt-on-accent); }
.tpl-quiet .qt-btn--verm:hover { background: var(--qt-paper); color: var(--qt-ink); }
/* Underline link CTA (mono, vermilion 1.5px rule under it). */
.qt-ulink { display: inline-block; font-family: var(--font-label); font-weight: 400; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--qt-ink); border-bottom: 1.5px solid var(--qt-accent); padding-bottom: 2px; }
.qt-ulink:hover { color: var(--qt-accent); }

/* ── Image slot placeholder ──────────────────────────────────────── */
.qt-slot { display: block; background: var(--qt-slot); }
.qt-slotfill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Icons ───────────────────────────────────────────────────────── */
.qt-ico { width: 15px; height: 15px; flex: none; }

/* ── Announcement bar ────────────────────────────────────────────── */
/* Pinned group: bar + nav ride together so the message survives a scroll. */
.qt-topstick { position: sticky; top: 0; z-index: 50; }
.qt-annbar { background: var(--qt-ink); color: var(--qt-paper); font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.tpl-quiet a.qt-annbar__txt--link { color: inherit; }
.qt-annbar__txt--link:hover { color: var(--qt-accent); }
.qt-annbar__inner { max-width: 1280px; margin: 0 auto; padding: 9px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qt-annbar__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qt-annbar__dot { color: var(--qt-accent); }
.qt-annbar__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-annbar__right { display: flex; align-items: center; gap: 26px; }
.qt-annbar__right a { color: var(--qt-paper); }
.qt-annbar__right a:hover { color: var(--qt-accent); }

/* ── Masthead / nav ──────────────────────────────────────────────── */
.qt-nav { position: sticky; top: 0; z-index: 40; background: rgba(240, 237, 228, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qt-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 22px 40px; }
.qt-wordmark { font-family: var(--font-disp); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; color: var(--qt-ink); text-transform: uppercase; }
.qt-wordmark:hover { color: var(--qt-ink); }
/* Uploaded logo: normalize on height (fills the 22px-padded masthead with
   breathing room), let wordmark logos run wide. Two classes (0,2,0) so it
   out-specifies `.tpl-quiet img { max-width: 100% }` (0,1,1). */
.qt-wordmark .qt-navlogo { height: 40px; width: auto; max-width: min(360px, 42vw); object-fit: contain; display: block; }
.qt-navlinks { display: flex; align-items: center; gap: 20px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.qt-navlinks > a { color: var(--qt-ink); }
.qt-navlinks > a:hover, .qt-navlinks > a.active { color: var(--qt-accent); }
.qt-navlive { display: inline-flex; align-items: center; gap: 7px; }
.qt-navlive__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--qt-accent); }
.tpl-quiet .qt-navcta { background: var(--qt-accent); color: var(--qt-on-accent); padding: 8px 15px; }
.tpl-quiet .qt-navcta:hover { background: var(--qt-ink); color: var(--qt-paper); }
.qt-navtoggle { display: none; background: none; border: 0; color: var(--qt-ink); cursor: pointer; padding: 4px; }

/* ── Home hero ───────────────────────────────────────────────────── */
.qt-hero { padding: 56px 0 48px; }
.qt-metaline { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qt-soft); margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 28px; }
.qt-metaline .m-accent { color: var(--qt-accent); }
.qt-hero__h { font-size: clamp(48px, 12vw, 132px); line-height: 0.9; letter-spacing: -0.045em; }
.qt-hero__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-top: 44px; align-items: end; }
.qt-hero__lead { font-family: var(--font-disp); font-weight: 500; font-size: clamp(22px, 2.5vw, 27px); line-height: 1.28; letter-spacing: -0.01em; margin: 0; max-width: 660px; color: var(--qt-ink); }
.qt-hero__cta { display: flex; flex-direction: column; gap: 12px; }
.qt-hero__cta .qt-btn { justify-content: space-between; padding: 16px 18px; }
.qt-heroimg { position: relative; height: 540px; background: var(--qt-slot); margin-bottom: 0; }

/* ── Section head (eyebrow + heading + optional link) ────────────── */
.qt-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.qt-sechead__link { flex: none; }
.qt-sechead .qt-eyebrow { margin-bottom: 22px; }

/* ── Home welcome ────────────────────────────────────────────────── */
.qt-welcome__h { font-size: clamp(32px, 5vw, 50px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 48px; max-width: 980px; }
.qt-welcome__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 960px; }

/* ── Sermon spotlight (This Sunday / featured) ───────────────────── */
.qt-spot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: stretch; }
.qt-spot__img { position: relative; background: var(--qt-slot); min-height: 400px; }
.qt-spot__overlay { position: absolute; inset: 0; background: rgba(23, 21, 15, 0.2); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.qt-playcircle { width: 76px; height: 76px; border-radius: 50%; background: var(--qt-accent); display: flex; align-items: center; justify-content: center; }
.qt-playcircle svg { width: 24px; height: 24px; margin-left: 4px; fill: var(--qt-paper); }
.qt-playcircle--lg { width: 92px; height: 92px; }
.qt-playcircle--lg svg { width: 32px; height: 32px; margin-left: 5px; }
.qt-spot__info { display: flex; flex-direction: column; justify-content: center; }
.qt-spot__meta { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--qt-gray); margin-bottom: 18px; }
.qt-spot__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 20px; color: var(--qt-ink); }
.qt-spot__body { font-size: 17px; line-height: 1.7; color: var(--qt-soft); margin: 0 0 28px; max-width: 460px; }
.qt-spot__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qt-spot__foot .qt-btn { padding: 15px 22px; }
.qt-spot__by { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--qt-gray); }

/* sermons-page featured variant */
.qt-featgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: stretch; }
.qt-featgrid .qt-spot__img { min-height: 380px; }
.qt-feattag { position: absolute; top: 16px; left: 16px; background: var(--qt-ink); color: var(--qt-paper); font-family: var(--font-label); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 12px; }
.qt-featpanel { display: flex; flex-direction: column; justify-content: center; background: var(--qt-card); padding: 40px; }
.qt-featpanel__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(28px, 3.6vw, 36px); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--qt-ink); }
.qt-featpanel__meta { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--qt-gray); margin: 0 0 24px; }
.qt-featpanel .qt-btn { align-self: flex-start; padding: 15px 22px; }

/* ── Grids ───────────────────────────────────────────────────────── */
.qt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qt-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ── Next-steps cards ────────────────────────────────────────────── */
.qt-stepcard { background: var(--qt-card); padding: 36px 32px; }
.qt-stepcard .n { font-family: var(--font-disp); font-weight: 800; font-size: 40px; color: var(--qt-accent); line-height: 1; margin-bottom: 24px; }
.qt-stepcard h3 { font-family: var(--font-disp); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--qt-ink); }
.qt-stepcard p { font-size: 16px; line-height: 1.65; color: var(--qt-soft); margin: 0; }

/* ── Event / group image-first cards (radius 16) ─────────────────── */
.qt-evcard { display: flex; flex-direction: column; background: var(--qt-card); border-radius: 16px; overflow: hidden; }
.qt-evcard__photo { position: relative; height: 220px; background: var(--qt-slot); }
.qt-evcard--group .qt-evcard__photo { height: 200px; }
.qt-datebadge { position: absolute; top: 14px; left: 14px; background: var(--qt-ink); color: var(--qt-paper); border-radius: 10px; padding: 8px 12px; text-align: center; line-height: 1; }
.qt-datebadge .m { display: block; font-family: var(--font-label); font-size: 10px; letter-spacing: 0.1em; color: var(--qt-accent); }
.qt-datebadge .d { display: block; font-family: var(--font-disp); font-weight: 800; font-size: 22px; margin-top: 3px; }
.qt-evcard__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.qt-evcard__head { flex: 1; }
.qt-evcard__aud { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qt-gray); margin-bottom: 8px; }
.qt-evcard__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(21px, 2.6vw, 24px); letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: var(--qt-ink); }
/* the one hairline detail box (radius 12) */
.qt-detailbox { border: 1px solid var(--qt-hair); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.qt-detailbox .row { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--qt-ink); }
.qt-detailbox .row--soft { color: var(--qt-soft); }
.qt-detailbox .row svg { stroke: var(--qt-accent); }
.tpl-quiet .qt-cardcta { background: var(--qt-accent); color: var(--qt-on-accent); border-radius: 8px; padding: 13px; text-align: center; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.tpl-quiet .qt-cardcta:hover { background: var(--qt-ink); color: var(--qt-paper); }

/* ── Ministry cells (square) ─────────────────────────────────────── */
.qt-mincell { display: block; background: var(--qt-card); padding: 32px; transition: background 0.15s; }
.qt-mincell:hover { background: var(--qt-hover); color: inherit; }
.qt-mincell h3 { font-family: var(--font-disp); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--qt-ink); }
.qt-mincell p { font-size: 15px; line-height: 1.6; color: var(--qt-soft); margin: 0; }
/* ministry page card (index + learn-more) */
.qt-mincard { display: flex; flex-direction: column; background: var(--qt-card); padding: 36px; transition: background 0.15s; }
.qt-mincard:hover { background: var(--qt-hover); color: inherit; }
.qt-mincard__n { font-family: var(--font-label); font-size: 11px; color: var(--qt-accent); margin-bottom: 14px; }
.qt-mincard h3 { font-family: var(--font-disp); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--qt-ink); }
.qt-mincard p { font-size: 15px; line-height: 1.6; color: var(--qt-soft); margin: 0 0 16px; }
.qt-mincard .qt-ulink { margin-top: auto; align-self: flex-start; }

/* ── Ink give band / CTA bands ───────────────────────────────────── */
.qt-inkband { background: var(--qt-ink); color: var(--qt-paper); }
.qt-inkband .qt-eyebrow { color: var(--qt-accent); }
.qt-inkband .qt-h1 { color: var(--qt-paper); }
.qt-giveband__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.qt-giveband__h { font-family: var(--font-disp); font-weight: 700; font-size: clamp(40px, 5.2vw, 58px); line-height: 0.98; letter-spacing: -0.03em; margin: 0; color: var(--qt-paper); }
.qt-giveband__body { font-size: 17px; line-height: 1.7; color: rgba(240, 237, 228, 0.72); margin: 0 0 28px; }
.qt-ctaband { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 72px 56px; }
.qt-ctaband__h { font-family: var(--font-disp); font-weight: 700; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.0; letter-spacing: -0.03em; margin: 0; color: var(--qt-paper); max-width: 640px; }
.qt-ctaband__copy { max-width: 560px; }
.qt-ctaband__copy .qt-ctaband__h { margin-bottom: 12px; }
.qt-ctaband__copy p { font-size: 17px; line-height: 1.6; color: rgba(240, 237, 228, 0.72); margin: 0; max-width: 520px; }
.qt-ctaband__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Location + map ──────────────────────────────────────────────── */
.qt-location { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.qt-location__h { margin: 0 0 40px; }
.qt-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-bottom: 36px; }
.qt-pair__label { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--qt-gray); margin-bottom: 6px; }
.qt-pair__val { font-size: 17px; color: var(--qt-ink); line-height: 1.45; }
.qt-map { position: relative; height: 440px; background: var(--qt-paper2); overflow: hidden; }
/* documented grid texture (the one gradient allowed by the spec) */
.qt-map__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--qt-mapgrid) 1px, transparent 1px), linear-gradient(90deg, var(--qt-mapgrid) 1px, transparent 1px); background-size: 40px 40px; }
.qt-map__pin { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -100%); color: var(--qt-accent); }
.qt-map__label { position: absolute; bottom: 16px; left: 16px; background: var(--qt-card); padding: 12px 16px; }
.qt-map__label .n { font-weight: 600; font-size: 14px; color: var(--qt-ink); }
.qt-map__label .a { font-family: var(--font-label); font-size: 11px; color: var(--qt-gray); margin-top: 2px; }

/* ── Newsletter ──────────────────────────────────────────────────── */
.qt-news { background: var(--qt-card); padding: 56px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.qt-news__h { font-family: var(--font-disp); font-weight: 700; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.0; letter-spacing: -0.03em; margin: 0; color: var(--qt-ink); }
.qt-news__body { font-size: 16px; line-height: 1.6; color: var(--qt-soft); margin: 0 0 18px; }
.qt-news__form { display: flex; border: 1.5px solid var(--qt-ink); background: var(--qt-paper); }
.qt-news__input { flex: 1; font-family: var(--font-label); font-size: 13px; color: var(--qt-ink); background: transparent; border: none; padding: 15px 16px; outline: none; }
.tpl-quiet .qt-news__btn { background: var(--qt-ink); color: var(--qt-paper); padding: 15px 22px; border: none; }
.tpl-quiet .qt-news__btn:hover { background: var(--qt-accent); color: var(--qt-paper); }

/* ── Page hero ───────────────────────────────────────────────────── */
.qt-pagehero { padding: 64px 0 48px; }
.qt-pagehero .qt-eyebrow { margin-bottom: 28px; }
.qt-pagehero__h { margin-bottom: 40px; }
.qt-pagehero__lead { }

/* ── Full-width media band ───────────────────────────────────────── */
.qt-media { position: relative; height: 480px; background: var(--qt-slot); }
.qt-media--sm { height: 440px; }

/* ── About story 2-col ───────────────────────────────────────────── */
.qt-story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1000px; align-items: start; }
.qt-story__h { font-size: clamp(30px, 3.6vw, 38px); line-height: 1.05; }
.qt-story__body p { font-size: 17px; line-height: 1.75; color: var(--qt-soft); margin: 0 0 16px; }
.qt-story__body p:last-child { margin-bottom: 0; }

/* ── Feature cards (values / ways / expect) ──────────────────────── */
.qt-fcard { background: var(--qt-card); padding: 36px; }
.qt-fcard h3 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(21px, 2.4vw, 24px); letter-spacing: -0.02em; margin: 0 0 10px; color: var(--qt-ink); }
.qt-fcard p { font-size: 16px; line-height: 1.65; color: var(--qt-soft); margin: 0; }

/* ── Team grid ───────────────────────────────────────────────────── */
.qt-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.qt-teamcard { display: block; }
.qt-teamcard__photo { position: relative; height: 240px; background: var(--qt-slot); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.qt-team--preview .qt-teamcard__photo { height: 230px; }
.qt-teamcard__initials { font-family: var(--font-disp); font-weight: 800; font-size: 44px; color: var(--qt-accent); }
.qt-teamcard__name { font-family: var(--font-disp); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--qt-ink); }
.qt-teamcard__role { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; color: var(--qt-gray); margin-top: 3px; }

/* hiring panel */
.qt-hiring { background: var(--qt-card); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.qt-hiring__h { font-family: var(--font-disp); font-weight: 700; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.0; letter-spacing: -0.03em; margin: 0 0 10px; color: var(--qt-ink); }
.qt-hiring p { font-size: 16px; line-height: 1.6; color: var(--qt-soft); margin: 0; max-width: 540px; }

/* ── Series cards + sermon list ──────────────────────────────────── */
.qt-seriescard { display: block; background: var(--qt-card); overflow: hidden; }
.qt-seriescard__art { position: relative; height: 180px; background: var(--qt-slot); }
.qt-seriescard__body { padding: 22px; }
.qt-seriescard__title { font-family: var(--font-disp); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 4px; color: var(--qt-ink); }
.qt-seriescard__meta { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; color: var(--qt-gray); }
.qt-sermonrow { display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: center; padding: 22px 0; }
.qt-sermonrow__date { font-family: var(--font-label); font-size: 13px; color: var(--qt-gray); }
.qt-sermonrow__title { font-family: var(--font-disp); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--qt-ink); }
.qt-sermonrow__meta { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; color: var(--qt-gray); margin-top: 3px; }
.qt-sermonrow__play { color: var(--qt-accent); display: flex; }
.qt-sermonrow__play svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Give page ───────────────────────────────────────────────────── */
.qt-givehero { padding: 64px 0 96px; }
.qt-givehero__h { font-size: clamp(48px, 10vw, 104px); line-height: 0.88; margin-bottom: 40px; }
.qt-givehero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.qt-givehero__lead { font-family: var(--font-disp); font-weight: 500; font-size: clamp(20px, 2.3vw, 24px); line-height: 1.3; letter-spacing: -0.01em; margin: 0; max-width: 620px; color: rgba(240, 237, 228, 0.85); }
.qt-givehero__cta { padding: 18px 28px; }
.qt-wherebox { background: var(--qt-paper2); padding: 64px 56px; }
.qt-wherebox .qt-eyebrow { margin-bottom: 40px; }
.qt-wheregrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.qt-figure { font-family: var(--font-disp); font-weight: 800; font-size: 64px; color: var(--qt-accent); line-height: 0.85; margin-bottom: 16px; }
.qt-wherecol h3 { font-family: var(--font-disp); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--qt-ink); }
.qt-wherecol p { font-size: 15px; line-height: 1.6; color: var(--qt-soft); margin: 0; }

/* ── Forms (decorative markup → forms-api) ───────────────────────── */
.qt-formsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.qt-formintro__h { margin: 0 0 16px; }
.qt-formintro p { font-size: 16px; line-height: 1.65; color: var(--qt-soft); margin: 0; }
.qt-form { display: flex; flex-direction: column; gap: 14px; }
.qt-field { font-family: var(--font-label); font-size: 13px; color: var(--qt-gray); background: var(--qt-paper); border: 1.5px solid var(--qt-ink); padding: 15px 16px; outline: none; text-align: left; }
.qt-band--card .qt-field, .qt-formsplit--card .qt-field { background: var(--qt-card); }
.qt-field--area { min-height: 118px; align-items: flex-start; resize: none; }
.tpl-quiet .qt-form__submit { background: var(--qt-ink); color: var(--qt-paper); padding: 16px; border: none; }
.tpl-quiet .qt-form__submit:hover { background: var(--qt-accent); color: var(--qt-paper); }
.qt-formnote { font-size: 13px; color: var(--qt-gray); margin: 12px 0 0; }

/* contact detail grid */
.qt-contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-content: start; }
.qt-contactgrid .qt-pair__val { font-size: 16px; }

/* ── FAQ (visit) ─────────────────────────────────────────────────── */
.qt-faq { display: flex; flex-direction: column; }
.qt-faq__item { padding: 24px 0; border-top: 1px solid var(--qt-hair); }
.qt-faq__item:last-child { border-bottom: 1px solid var(--qt-hair); }
.qt-faq__item h3 { font-family: var(--font-disp); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--qt-ink); }
.qt-faq__item p { font-size: 16px; line-height: 1.65; color: var(--qt-soft); margin: 0; }

/* ── Detail pages ────────────────────────────────────────────────── */
.qt-det { padding: 28px 0 104px; }
.qt-detback { padding: 32px 0 0; }
.qt-back { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--qt-ink); display: inline-flex; align-items: center; gap: 8px; }
.qt-back:hover { color: var(--qt-accent); }
.qt-det__video { position: relative; height: 560px; background: var(--qt-slot); margin-bottom: 40px; overflow: hidden; }
.qt-det__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qt-det__hero { position: relative; margin-bottom: 40px; background: var(--qt-slot); overflow: hidden; }
.qt-det__hero--tall { height: 560px; }
.qt-det__hero--ev { height: 440px; }
.qt-det__hero--grp { height: 380px; }
.qt-det__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.qt-det__grid--staff { grid-template-columns: 1fr 1.5fr; }
.qt-det__grid--group { grid-template-columns: 1.5fr 1fr; }
.qt-det__eyebrow { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--qt-accent); margin: 0 0 16px; display: inline-block; }
.qt-det__title { font-family: var(--font-disp); font-weight: 700; font-size: clamp(34px, 6vw, 56px); line-height: 0.94; letter-spacing: -0.035em; margin: 0 0 24px; color: var(--qt-ink); }
.qt-det__title--series { font-size: clamp(40px, 8vw, 72px); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; }
.qt-det__meta { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--qt-gray); margin: 0 0 30px; }
.qt-det__lead { font-size: 18px; line-height: 1.75; color: var(--qt-soft); margin: 0 0 16px; }
.qt-prose { color: var(--qt-soft); font-size: 18px; line-height: 1.75; }
.qt-prose p { margin: 0 0 16px; }
.qt-prose h3 { font-family: var(--font-disp); font-weight: 700; color: var(--qt-ink); }
.qt-det__subh { font-family: var(--font-disp); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 30px 0 14px; color: var(--qt-ink); }
.qt-det__questions { padding-left: 20px; margin: 0; font-size: 16px; line-height: 1.85; color: var(--qt-soft); }
.qt-det__sidecard { background: var(--qt-card); padding: 28px; }
.qt-det__sidecard--pad { padding: 30px; }
.qt-det__sidelabel { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--qt-gray); margin: 0 0 16px; }
.qt-listen { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--qt-ink); padding: 10px 0; }
.qt-listen svg { width: 18px; height: 18px; stroke: var(--qt-accent); flex: none; }
.qt-facts { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.qt-fact__label { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--qt-gray); margin-bottom: 3px; }
.qt-fact__val { font-size: 16px; color: var(--qt-ink); }
.qt-det__cta { display: block; text-align: center; }
.qt-related { margin-top: 64px; }
.qt-related .qt-eyebrow { margin-bottom: 22px; }
.qt-relgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qt-relcard { display: block; background: var(--qt-card); overflow: hidden; }
.qt-relcard__art { position: relative; height: 150px; background: var(--qt-slot); }
.qt-relcard__body { padding: 18px; }
.qt-relcard__title { font-family: var(--font-disp); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--qt-ink); }
.qt-relcard__meta { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; color: var(--qt-gray); margin-top: 3px; }
/* series message rows (numbered) */
.qt-msgrow { display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; }
.qt-msgrow__n { font-family: var(--font-disp); font-weight: 800; font-size: 24px; color: var(--qt-accent); }
.qt-msgrow__title { font-family: var(--font-disp); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--qt-ink); }
.qt-msgrow__meta { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; color: var(--qt-gray); margin-top: 3px; }
.qt-msgrow__play { color: var(--qt-accent); display: flex; }
.qt-msgrow__play svg { width: 16px; height: 16px; fill: currentColor; }
/* staff detail: photo + person, recent-message rows */
.qt-seriesd { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.qt-seriesd__art { position: relative; height: 360px; background: var(--qt-slot); }
.qt-staffphoto { position: relative; height: 440px; background: var(--qt-slot); display: flex; align-items: center; justify-content: center; }
.qt-staffphoto__initials { font-family: var(--font-disp); font-weight: 800; font-size: 72px; color: var(--qt-accent); }
.qt-recentrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.qt-recentrow__title { font-family: var(--font-disp); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--qt-ink); }
.qt-recentrow__meta { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; color: var(--qt-gray); margin-top: 3px; }
.qt-recentrow__play { color: var(--qt-accent); display: flex; }
.qt-recentrow__play svg { width: 16px; height: 16px; fill: currentColor; }
.qt-det__narrow { max-width: 760px; }
.qt-det__emailcta { margin-bottom: 40px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.qt-footer { background: var(--qt-ink); color: var(--qt-paper); padding: 64px 0 112px; }
.qt-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.qt-footer__wordmark { font-family: var(--font-disp); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; line-height: 0.9; color: var(--qt-paper); text-transform: uppercase; }
.qt-footer__wordmark:hover { color: var(--qt-paper); }
.qt-footer__cols { display: flex; gap: 48px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.qt-footer__col { display: flex; flex-direction: column; gap: 12px; }
.qt-footer__col .h { color: var(--qt-gray); }
.qt-footer__col a { color: var(--qt-paper); }
.qt-footer__col a:hover { color: var(--qt-accent); }
.qt-footer__col span:not(.h) { color: var(--qt-paper); }
.qt-footer__bottom { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--qt-gray); }

/* ── Responsive ──────────────────────────────────────────────────── */
/* Tablet — 3-up → 2-up, ease rhythm. */
@media (max-width: 1024px) {
  .qt-grid-3, .qt-wheregrid, .qt-relgrid, .qt-team { grid-template-columns: repeat(2, 1fr); }
  .qt-sec { padding: 80px 0; }
  .qt-footer__cols { gap: 32px; }
}
/* Below the nav's link budget — hamburger + stacked layouts. */
@media (max-width: 900px) {
  .qt-navtoggle { display: inline-flex; }
  .qt-navlinks { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--qt-paper); border-top: 1px solid var(--qt-hair); padding: 8px 40px 20px; display: none; }
  .qt-navlinks.open { display: flex; }
  .qt-navlinks > a { padding: 14px 0; font-size: 14px; border-bottom: 1px solid var(--qt-hair); }
  .qt-navcta, .tpl-quiet .qt-navcta { margin-top: 14px; text-align: center; }
  .qt-hero__grid, .qt-welcome__cols, .qt-spot, .qt-featgrid, .qt-giveband__grid, .qt-location, .qt-story, .qt-news, .qt-givehero__grid, .qt-formsplit, .qt-det__grid, .qt-det__grid--staff, .qt-det__grid--group, .qt-seriesd { grid-template-columns: 1fr; }
  .qt-spot__img, .qt-featgrid .qt-spot__img { min-height: 300px; }
  .qt-sechead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .qt-ctaband { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
  .qt-hiring { flex-direction: column; align-items: flex-start; gap: 24px; }
  .qt-det__video, .qt-det__hero--tall { height: 380px; }
  .qt-heroimg { height: 380px; }
  .qt-seriesd__art { height: 300px; }
}
/* Phone — single column everywhere, smaller rhythm. */
@media (max-width: 640px) {
  .qt-wrap { padding: 0 20px; }
  .qt-annbar__inner, .qt-nav__inner { padding-left: 20px; padding-right: 20px; }
  .qt-wordmark .qt-navlogo { height: 30px; max-width: 60vw; }
  .qt-sec { padding: 56px 0; }
  .qt-grid-3, .qt-grid-2, .qt-wheregrid, .qt-relgrid, .qt-team, .qt-pairs, .qt-contactgrid, .qt-msgrow { grid-template-columns: 1fr; }
  .qt-annbar__right { gap: 14px; }
  .qt-metaline { gap: 12px; }
  .qt-hero__grid { gap: 28px; }
  .qt-news { padding: 36px 24px; }
  .qt-wherebox, .qt-givehero { padding-left: 0; padding-right: 0; }
  .qt-wherebox { padding: 40px 24px; }
  .qt-ctaband { padding: 40px 24px; }
  .qt-hiring { padding: 36px 24px; }
  .qt-featpanel { padding: 28px; }
  .qt-footer__top { flex-direction: column; }
  .qt-footer__cols { flex-wrap: wrap; gap: 28px; }
  .qt-footer__bottom { flex-direction: column; gap: 10px; }
  .qt-msgrow { grid-template-columns: auto 1fr auto; gap: 16px; }
  .qt-sermonrow { grid-template-columns: 70px 1fr auto; gap: 16px; }
  .qt-news__form { flex-direction: column; }
}
