/* =========================================================
   Grace Church Production Hub — shared styles
   Styled after gracechurchsp.org: Montserrat 500 headlines, Inter body,
   black pill buttons, soft gray bands, 12px rounded photos and panels.
   Change a color or font here and every page updates.
   ========================================================= */

:root {
  /* Colors — Grace Church is black & white; photos carry the color */
  --ink: #0a0a0a;          /* buttons, dark panels, headlines */
  --text: #353535;         /* body text (gracechurchsp.org's reading color) */
  --muted: #6d6f6e;        /* secondary text */
  --faint: #989a99;        /* small labels on dark backgrounds */
  --line: #e5e6e5;         /* thin divider lines */
  --wash: #f7f7f7;         /* light gray blocks */
  --paper: #ffffff;        /* page background */

  /* Fonts — Montserrat for headlines, Inter for everything else */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: 24px;

  /* Golden-ratio type scale — 17px body, each step x1.618 */
  --t-xs: 10.5px;   /* labels */
  --t-s: 13.5px;    /* small print */
  --t-body: 17px;
  --t-m: 21px;      /* lead-in text, list headings */
  --t-l: 27.5px;    /* h3 */
  --t-xl: 44.5px;   /* h2 */
  --t-xxl: 72px;    /* h1 */
  --radius: 12px;          /* rounded photos, cards and panels */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.618;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Small uppercase labels (the Futur signature) ---------- */
.label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--ink { color: var(--ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, gap .15s;
}
.arrow-link::after { content: "→"; }
.arrow-link:hover { border-color: currentColor; gap: 10px; }
.arrow-link.label { font-size: var(--t-xs); white-space: nowrap; }
[id] { scroll-margin-top: 80px; }

/* ---------- Buttons (Grace Church's black pill) ---------- */
.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 17px;
  padding: 13px 30px;
  border-radius: 25px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 22px; width: auto; }
.brand span {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line);
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav__links a { color: var(--text); opacity: 1; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600;
}

/* Nav dropdowns */
.nav__item { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__more {
  border: 0; background: none; cursor: pointer; padding: 6px; line-height: 0;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
}
.nav__more::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
}
.nav__more[aria-expanded="true"]::after { transform: rotate(225deg) translate(-1px, -1px); border-color: var(--ink); }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: -16px; z-index: 60;
  display: block; min-width: 240px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 14px 30px rgba(0,0,0,.10);
  /* hidden by visibility, not display, so closing can be given a grace period */
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .2s;
}
.nav__menu--wide { min-width: 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__menu.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .14s ease, transform .14s ease, visibility 0s;
}
/* The menu sits 10px below the item. Without this bridge the pointer crosses dead
   space on the way down, the item loses :hover, and the menu closes before you reach it. */
.nav__item::after {
  content: ""; position: absolute; top: 100%; left: -16px; right: -16px; height: 14px;
}
@media (hover: none) {
  /* No hover on a touch screen, so the chevron does the opening. */
  .nav__item:hover .nav__menu { opacity: 0; visibility: hidden; }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
}
.nav__menu .label { display: block; margin-bottom: 10px; }
.nav__menu a { display: block; padding: 7px 0; font-size: var(--t-body); color: var(--text); }
.nav__menu a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav__links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__item { display: block; width: 100%; }
  .nav__more { display: none; }
  .nav__menu, .nav__menu--wide {
    position: static; display: block; min-width: 0; border: 0; border-radius: 0;
    box-shadow: none; padding: 0 0 8px 16px;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__item::after { content: none; }
  .nav__menu .label { margin: 10px 0 4px; }
  .nav__menu a { border-bottom: 0; padding: 8px 0; color: var(--muted); }
  .nav.is-open .nav__links { display: flex; }
  .brand span { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 0; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(var(--t-xl), 5.4vw, var(--t-xxl));
  line-height: 1.1;
  letter-spacing: normal;
  margin: 0 0 32px;
  max-width: 22ch;
}
.hero h1.hero--wide { max-width: 26ch; }

/* Home hero: centered statement with pill buttons under it */
.hero--center { text-align: center; padding-bottom: 8px; }
.hero--center h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero--center > .wrap > .label { display: block; margin-bottom: 18px; }
.hero--center .latest { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 48px; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(3, 1fr); } .mosaic img:nth-child(n+4) { display: none; } }
.hero__lede { font-size: var(--t-m); color: var(--muted); max-width: 46ch; margin: -16px 0 40px; }
.hero--center .hero__lede--center { font-size: var(--t-m); max-width: 54ch; margin: -12px auto 36px; text-align: center; }
.hero__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.hero__img {
  margin-top: 40px;
  aspect-ratio: 21 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--wash);
  border-radius: var(--radius);
}

/* ---------- Generic sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding: 56px 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section__head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }

h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(var(--t-l), 3.4vw, var(--t-xl));
  line-height: 1.236;
  letter-spacing: normal;
  margin: 0;
}
h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--t-l);
  line-height: 1.309;
  letter-spacing: normal;
  margin: 0;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* A section on Grace's soft gray, used between white ones */
.section--wash { background: var(--wash); }
.section--wash + .section, .section + .section--wash { border-top: 0; }

/* ---------- Home: three statements, no labels (the creed row) ---------- */
.creed { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 56px; }
.creed p {
  margin: 0; padding: 0 28px;
  font-family: var(--font-head); font-weight: 500; font-size: var(--t-l);
  line-height: 1.309;
}
.creed p + p { border-left: 1px solid var(--line); }
.creed__verse { margin: 32px 0 0; text-align: center; font-style: italic; color: var(--muted); }
@media (max-width: 760px) {
  .creed { grid-template-columns: 1fr; gap: 24px; }
  .creed p { padding: 0; }
  .creed p + p { border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
}

/* ---------- Spec strip: the three facts under a position page's hero ----------
   One quiet panel. Label above value, left-aligned, body-sized — not headline-sized,
   which is what made the old three-column version go ragged. Stacks on phones. */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px 48px;
  margin: 40px 0 0;
  padding: 28px 32px;
  background: var(--wash); border-radius: var(--radius);
  text-align: left;
}
.fact { min-width: 0; }
.fact dt {
  margin: 0 0 8px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.fact dd { margin: 0; font-size: var(--t-body); line-height: 1.5; }
.fact dd b { font-family: var(--font-head); font-weight: 600; font-size: var(--t-m); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 0; padding: 20px 22px; }
  .fact + .fact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
}

/* ---------- Hub cards (Futur's featured events) ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.feature__img, .card__img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wash);
  transition: transform .4s ease;
}
.img-frame { overflow: hidden; border-radius: var(--radius); }
a:hover .feature__img, a:hover .card__img { transform: scale(1.03); }
.feature h3 { font-size: clamp(var(--t-l), 2.8vw, 34px); letter-spacing: normal; margin: 12px 0 16px; }
.feature p { color: var(--muted); margin: 0 0 24px; max-width: 38ch; }
.tagline { display: flex; align-items: center; gap: 10px; }
.chip {
  font-size: 12px; color: var(--muted); background: var(--wash);
  padding: 2px 10px; border-radius: 999px;
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding-top: 56px; }

/* Three equal photo cards (home hubs), white on the gray band */
.cards--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 0; }
.cards--3 .card { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.cards--3 .card .img-frame { border-radius: 0; }
.cards--3 .card__img { aspect-ratio: 3 / 2; }
.cards--3 .card__body { padding: 28px; }
.cards--3 .card h3 { margin: 10px 0 8px; }
.cards--3 .card p { margin: 0 0 20px; }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr; } }
.card h3 { margin: 20px 0 8px; }
.card p { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Numbered list (Futur's "Most Popular") ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 28px; font-weight: 500; color: #8e908f; line-height: 1.1;
}
.steps strong { display: block; font-family: var(--font-head); font-size: var(--t-m); font-weight: 500; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.steps a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- Step photos (room guides): one or two square photos beside a step ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shots--1 { grid-template-columns: 1fr; max-width: 520px; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
.shots figcaption { margin-top: 8px; font-size: var(--t-s); color: var(--muted); }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }

/* ---------- Split layout: heading left, content right ---------- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.split > :first-child p { color: var(--muted); margin-top: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Tiles (positions, resources) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles > :last-child:nth-child(3n + 1) { grid-column: 2; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  background: #fff; padding: 28px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 10px; min-height: 160px;
  transition: background .15s, border-color .15s;
}
.tile:hover { background: var(--wash); border-color: var(--ink); }
.tile__icon { font-size: 26px; line-height: 1; }
.tile h3 { font-size: var(--t-m); }
.tile p { margin: 0; color: var(--muted); font-size: var(--t-s); }
.tile .arrow-link { margin-top: auto; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles, .tiles--2 { grid-template-columns: 1fr; } }

/* ---------- Gray block (Futur's "Free Tool") ---------- */
.block {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.block h3 { margin: 8px 0 6px; font-size: var(--t-l); }
.block p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .block { grid-template-columns: 1fr; padding: 28px 24px; } }

/* Call-time list (home) */
.timelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timelist li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timelist span { font-size: var(--t-body); }
.timelist b { font-family: var(--font-head); font-weight: 600; font-size: var(--t-m); }
.timelist li.timelist--quiet span, .timelist li.timelist--quiet b { color: var(--muted); }

/* ---------- Times row (Online Resourcers) ---------- */
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.time { background: var(--wash); border-radius: var(--radius); padding: 26px; }
.time + .time { border-left: 0; }
.time b { display: block; font-family: var(--font-head); font-size: clamp(var(--t-l), 3.2vw, 36px); font-weight: 600; letter-spacing: normal; line-height: 1.15; margin-top: 8px; }
@media (max-width: 560px) {
  .times { grid-template-columns: 1fr; }
  .time, .time + .time { padding: 22px; border-left: 0; }
}

/* ---------- Dark band (Futur's "Our Mission") ---------- */
.dark { background: var(--paper); color: var(--text); }
.dark > .wrap {
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  padding: 72px 48px;
}
@media (max-width: 700px) { .dark > .wrap { padding: 40px 24px; } }
.dark.section { padding: 40px 0; }
.dark .label, .dark .muted { color: var(--faint); }
.dark h2 { color: #fff; }
.dark .section + .section, .section.dark + .section { border-top: 0; }
.band { padding: 40px 0; text-align: center; }
.band h2 { font-size: clamp(var(--t-l), 3.6vw, var(--t-xl)); letter-spacing: normal; max-width: 20ch; margin: 16px auto 18px; }
.band p { color: var(--faint); max-width: 48ch; margin: 0 auto 32px; }

/* Prayer steps on dark background */
.prayer { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.prayer li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid #262626; }
.prayer li span { font-family: var(--font-head); color: #9a9c9b; font-size: 22px; font-weight: 500; }
.prayer strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.prayer p { margin: 0; color: #b5b5b5; }
.prayer em { color: #fff; }

/* ---------- Expandable sections ---------- */
details.drawer { border-top: 1px solid var(--line); }
details.drawer:last-of-type { border-bottom: 1px solid var(--line); }
details.drawer summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--font-head); font-size: var(--t-m); font-weight: 500;
}
details.drawer summary::-webkit-details-marker { display: none; }
details.drawer summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 28px; line-height: 1; transition: transform .2s; }
details.drawer[open] summary::after { transform: rotate(45deg); }
details.drawer .drawer__body { padding: 0 0 28px; color: var(--muted); max-width: 68ch; }
.dark details.drawer { border-color: #262626; }
.dark details.drawer .drawer__body { color: #b5b5b5; }

/* ---------- Training levels: five rows in the split, level left, meaning right ---------- */
.level {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 22px 0; border-top: 1px solid var(--line);
}
.level:last-of-type { border-bottom: 1px solid var(--line); }
.level h3 { margin: 0; font-family: var(--font-head); font-size: var(--t-m); font-weight: 500; }
.level p { margin: 0; color: var(--muted); text-align: right; }
@media (max-width: 560px) {
  .level { flex-direction: column; gap: 4px; }
  .level p { text-align: left; }
}

blockquote { margin: 0 0 18px; padding-left: 18px; border-left: 2px solid currentColor; }
blockquote cite { display: block; font-style: normal; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; opacity: .7; }

/* ---------- Team table ---------- */
.people { width: 100%; border-collapse: collapse; font-size: 16px; }
.people th { text-align: left; padding: 0 16px 12px 0; }
.people td { padding: 18px 16px 18px 0; border-top: 1px solid var(--line); vertical-align: top; }
.people td:first-child { font-weight: 600; white-space: nowrap; }
.people td:last-child { color: var(--muted); }
@media (max-width: 640px) {
  .people thead { display: none; }
  .people tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .people td { display: block; border: 0; padding: 2px 0; }
}

/* ---------- Tabs (Futur's video filters) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; padding: 12px 0; margin-bottom: -1px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.tab:hover { border-color: var(--line); }
.tab[aria-selected="true"] { border-color: var(--ink); }  /* the underline alone marks the active tab */
.panel[hidden] { display: none; }

.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.checks h4 { margin: 0 0 12px; }
.checks ul { list-style: none; margin: 0; padding: 0; }
.checks li { border-top: 1px solid var(--line); }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 16px; }
.checks input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 3px 0 0; border: 1.5px solid var(--ink); border-radius: 4px; cursor: pointer; display: grid; place-content: center; }
.checks input:checked { background: var(--ink); }
.checks input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.checks input:checked + span { color: var(--faint); text-decoration: line-through; }
.checks__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Updates list ---------- */
.update { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.update:last-of-type { border-bottom: 1px solid var(--line); }
.update h3 { font-size: 20px; margin-bottom: 4px; }
.update p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .update { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Copy button for blurbs ---------- */
.copy {
  margin-top: 8px; background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink);
}
.copy:hover { border-color: var(--ink); }

/* ---------- Focus: one visible ring on every control ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
details.drawer summary:focus-visible, .tab:focus-visible, .seg button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark a:focus-visible, .dark button:focus-visible, .dark summary:focus-visible { outline-color: #ffffff; }

/* ---------- Footer ---------- */
.footer__install {
  margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px; line-height: 1.7; color: var(--faint);
}
.footer__install strong { color: #d6d6d6; font-weight: 600; }
.footer__install span { display: inline-block; max-width: 86ch; }
.footer__contact {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
  padding: 24px 0 0; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 16px;
}
.footer__contact a { font-weight: 600; border-bottom: 2px solid currentColor; }
.footer__updated { color: var(--faint); }

.footer { background: var(--ink); color: #fff; padding: 72px 0 32px; border-top: 1px solid #262626; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 56px; }
.footer__top img { height: 22px; width: auto; filter: invert(1); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols .label { color: var(--faint); margin-bottom: 16px; display: block; }
.footer__cols a { display: block; padding: 5px 0; font-size: 15px; color: #d6d6d6; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid #262626; font-size: 13px; color: var(--faint); }
@media (max-width: 760px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Phone tab bar (the "app" navigation) ---------- */
.tabbar { display: none; }

@media (max-width: 820px) {
  /* On phones the bottom tab bar replaces the Menu button */
  .nav__toggle { display: none; }
  .nav__inner { height: 56px; }
  .nav { padding-top: env(safe-area-inset-top); }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 7px; font-size: 11px; font-weight: 500; color: var(--faint);
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.2; }

  /* leave room so the tab bar never covers the footer */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* tighter, thumb-friendly spacing */
  :root { --gutter: 16px; }
  .hero { padding-top: 36px; }
  .hero h1.hero--wide { font-size: 32px; line-height: 1.08; letter-spacing: -0.03em; }
  .hero__bar .label--ink { max-width: 55%; }
  .hero h1 { margin-bottom: 28px; }
  .hero__img { aspect-ratio: 4 / 3; margin-top: 28px; }
  .section { padding: 56px 0; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .band { padding: 80px 0; }
  .footer { padding-top: 48px; }
  .footer__top .btn { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 24px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
  .checks label { padding: 14px 0; }
  .checks input { width: 22px; height: 22px; margin-top: 0; }
}

/* ---------- Gentle fade-in as you scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Content pages (Ministry Philosophy, positions, standards…)
   ========================================================= */

/* Breadcrumb label above a page title */
.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb span[aria-hidden] { color: #8e908f; }

/* Readable long text */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; color: var(--muted); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.prose li { margin: 6px 0; }
.prose strong, .drawer__body strong { color: var(--ink); }
.dark .prose strong, .dark .drawer__body strong { color: #fff; }
.prose a, .drawer__body a, .note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Big quote */
.quote {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.025em;
  margin: 16px 0 0; max-width: 26ch;
}
.quote cite, .verse cite { display: block; margin-top: 16px; font-family: var(--font-body); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.verse { margin: 0 0 24px; padding-left: 20px; border-left: 2px solid var(--ink); font-size: 18px; line-height: 1.55; }
.dark .verse { border-color: #fff; }

/* Note cards in a grid */
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.notes--3 { grid-template-columns: repeat(3, 1fr); }
.notes--1 { grid-template-columns: 1fr; }
.note { background: #fff; padding: 28px 24px; }
.note h3 { font-size: 20px; margin: 10px 0 8px; }
.note p { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.note p:last-child { margin-bottom: 0; }
.note ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.note li { margin: 4px 0; }
.note--wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .notes, .notes--3 { grid-template-columns: 1fr; } }

/* Important notice */
.alert {
  display: flex; gap: 16px; align-items: flex-start;
  border: 2px solid var(--ink); padding: 22px 24px; font-size: 17px;
}
.alert b { font-weight: 700; }
.alert__icon { font-size: 22px; line-height: 1.3; }

/* Data tables that scroll sideways on phones */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th {
  text-align: left; white-space: nowrap; padding: 14px 20px 10px 0;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.data td { padding: 14px 20px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.data td:first-child { font-weight: 600; }
.data--wide { min-width: 680px; }
.data .tbd { color: var(--faint); font-style: italic; font-weight: 400; }
.drawer__body .data { color: var(--ink); }

/* Copy-ready message template */
.template {
  background: var(--wash); border-radius: var(--radius); padding: 24px; margin: 0 0 12px;
  font: inherit; font-size: 16px; line-height: 1.65; white-space: pre-wrap; color: var(--ink);
}

/* Link list with copy buttons (Online Resourcer) */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 1px solid var(--line); }
.linklist strong { display: block; font-weight: 600; margin-bottom: 2px; }
.linklist a { color: var(--muted); font-size: 14px; word-break: break-all; }
.linklist a:hover { color: var(--ink); }
.linklist .copy { margin-top: 0; white-space: nowrap; }

/* Single-column checklists (training levels, SP checklist) */
.checks--1 { grid-template-columns: 1fr; gap: 0; }
.drawer__body .checks label { color: var(--ink); }
.drawer__body h4 { font-family: var(--font-head); font-size: 15px; color: var(--ink); margin: 18px 0 6px; }
.drawer__body h4:first-child { margin-top: 0; }
.drawer__body ul { padding-left: 20px; margin: 0 0 8px; }
.drawer__body li { margin: 4px 0; }
.drawer summary small { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--muted); margin-left: 8px; }

/* Hero without a photo gets a little more breathing room */
.hero--plain { padding-bottom: 8px; }

/* Text colors inside dark sections */
.dark .label--ink { color: #fff; }
.dark .split > :first-child p, .dark .prose p { color: #b5b5b5; }

/* "Swipe for more" hint above wide tables (phones only) */
.table-hint { display: none; margin: 0 0 10px; }
@media (max-width: 820px) { .table-hint { display: block; } }

/* On phones, regular tables become stacked cards with a small label above each value */
@media (max-width: 640px) {
  .data:not(.data--wide):not(.data--compact) thead { display: none; }
  .data:not(.data--wide):not(.data--compact) tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .data:not(.data--wide):not(.data--compact) td { display: block; border: 0; padding: 2px 0; }
  .data:not(.data--wide):not(.data--compact) td:first-child { font-size: 17px; margin-bottom: 6px; }
  .data:not(.data--wide):not(.data--compact) td:not(:first-child)::before {
    content: attr(data-label); display: block; margin-top: 6px;
    font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  }
}

/* ---------- Online Resourcer: live viewer data ---------- */
.viewership__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { background: #fff; color: var(--ink); border: 0; padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.times--4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; }
.time small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 760px) {
  .times--4 { grid-template-columns: repeat(2, 1fr); }
  .times--4 .time, .times--4 .time + .time { padding: 18px 12px 14px 0; border-left: 0; border-top: 0; }
  .times--4 .time:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .times--4 .time:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.chart { position: relative; min-height: 120px; }
.chart svg { display: block; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .event { stroke: #c4c5c4; stroke-width: 1; stroke-dasharray: 2 4; }
.chart .area { fill: var(--wash); }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line--0 { stroke: var(--ink); }
.chart .line--1 { stroke: var(--faint); stroke-dasharray: 6 5; }
.chart .cursor { stroke: var(--ink); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart__tip {
  position: absolute; top: 8px; transform: translateX(-50%); pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 14px; font-size: 13px; line-height: 1.5; white-space: nowrap;
}
.chart__tip strong { display: block; font-weight: 600; }
.chart__tip span { display: block; color: #d6d6d6; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--ink); }
.key--1 { border-top: 2.5px dashed var(--faint); }
.key--event { border-top: 1.5px dotted #a9aaa9; }

/* ---------- Updates (home line, pop-up, Updates page, tab dot) ---------- */
.latest { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.latest[hidden] { display: none; }
.latest strong { font-family: var(--font-head); font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest::after { content: "→"; }
.latest:hover strong { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .latest { grid-template-columns: 1fr auto; } .latest .label { grid-column: 1 / -1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips[hidden] { display: none; }
.chips button { flex: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 820px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
}
.update__by { font-size: 13px; margin-top: 6px !important; }
.update__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 220px; }
.update__tags--left { justify-content: flex-start; max-width: none; margin-top: 28px; }
@media (max-width: 640px) { .update__tags { justify-content: flex-start; max-width: none; } }

.article { max-width: 720px; }
.article[hidden] { display: none; }
.article .back { display: inline-block; margin-bottom: 28px; color: var(--muted); }
.article h2 { margin: 12px 0 16px; }
.article__summary { font-family: var(--font-head); font-size: clamp(19px, 2.2vw, 22px); font-weight: 500; line-height: 1.4; margin: 0 0 24px; }
.article .prose p { color: var(--ink); }
.article .btn { margin-top: 8px; }

.popup {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 10, 10, 0); transition: background .25s ease;
}
.popup.is-open { background: rgba(10, 10, 10, .45); }
.popup__card {
  background: #fff; width: min(560px, 100%); padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.popup.is-open .popup__card { transform: none; }
.popup__card h3 { font-size: 24px; margin: 10px 0 10px; }
.popup__card p { color: var(--muted); margin: 0 0 24px; }
.popup__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 821px) { .popup { align-items: center; } .popup__card { padding: 36px; } }
@media (prefers-reduced-motion: reduce) { .popup, .popup__card { transition: none; } }

.tabbar a { position: relative; }
.tabbar a.has-new::after {
  content: ""; position: absolute; top: 6px; left: calc(50% + 7px);
  width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2px solid #fff;
}

/* ===== One heading per section ===== */
/* .note-line is the only line allowed under a heading, and only for a fact the
   reader has to act on (a time, a limit, where something is saved). Never a description. */
.note-line { margin-top: 10px; font-size: var(--t-s); color: var(--muted); }
.hero__bar--end { justify-content: flex-end; }

/* ===== Skeleton loaders ===== */
.skeleton { display: grid; gap: 14px; }
.skeleton span {
  display: block; height: 86px; border-radius: var(--radius);
  background: linear-gradient(90deg, #f2f2f2 25%, #e8e8e8 37%, #f2f2f2 63%);
  background-size: 400% 100%; animation: skeleton 1.4s ease infinite;
}
.skeleton--chart span { height: 260px; }
.skeleton--tall span { height: 120px; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton span { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Centered hero: the breadcrumb is a flex row, so centre it rather than letting text-align do it */
.hero--center > .wrap > .crumb { display: flex; justify-content: center; }

/* ---------- Serve Commitment: pledge rows ----------
   Number, commitment, practices. Every practice gets its own line with its reference
   beside it — the old single line of middle dots was the unreadable part. */
.pledge { list-style: none; margin: 0; padding: 0; counter-reset: pl; }
.pledge > li {
  counter-increment: pl;
  display: grid; grid-template-columns: 56px 1fr 1.1fr; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.pledge > li:last-child { border-bottom: 1px solid var(--line); }
.pledge > li::before {
  content: counter(pl, decimal-leading-zero);
  font-family: var(--font-head); font-size: 24px; font-weight: 500; color: #8e908f;
}
.pledge strong { font-family: var(--font-head); font-size: var(--t-m); font-weight: 500; line-height: 1.35; }
.pledge ul { margin: 0; padding: 0; list-style: none; }
.pledge ul li { padding: 0 0 7px; color: var(--muted); font-size: var(--t-body); line-height: 1.5; }
.pledge ul li:last-child { padding-bottom: 0; }
.pledge cite { font-style: normal; color: #8e908f; font-size: var(--t-s); }
@media (max-width: 860px) {
  .pledge > li { grid-template-columns: 44px 1fr; gap: 10px 16px; }
  .pledge ul { grid-column: 2; margin-top: 10px; }
}

/* ---------- Weekend Heart Prep: each rhythm carries its own Scripture ---------- */
.paired { list-style: none; margin: 0; padding: 0; }
.paired > li {
  display: grid; grid-template-columns: 200px 1fr; gap: 36px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.paired > li:last-child { border-bottom: 1px solid var(--line); }
.paired h3 { margin: 0; font-family: var(--font-head); font-size: var(--t-m); font-weight: 500; }
.paired p { margin: 0 0 14px; color: var(--muted); }
.paired blockquote {
  margin: 0 0 12px; padding-left: 16px; border-left: 2px solid var(--line);
  color: var(--text); font-size: 15px; line-height: 1.65;
}
.paired blockquote:last-child { margin-bottom: 0; }
.paired blockquote cite {
  display: block; font-style: normal; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #8e908f; margin-top: 6px; opacity: 1;
}
.rhythms__verse { margin: 12px 0 0; max-width: 72ch; font-style: italic; color: var(--muted); }
.rhythms__verse cite { font-style: normal; font-size: var(--t-s); letter-spacing: .08em; text-transform: uppercase; color: #8e908f; }
@media (max-width: 760px) { .paired > li { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Home: the Online Resourcer panel ----------
   Name on the left with the way in; the three facts on the right. No descriptive copy. */
.invite {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  background: var(--wash); border-radius: var(--radius); padding: 44px 48px;
}
.invite h2 { margin: 0; }
.invite__cta { margin: 24px 0 0; }
.invite ul { list-style: none; margin: 0; padding: 0; }
.invite li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-body);
}
.invite li:first-child { border-top: 1px solid var(--line); }
.invite li span { color: var(--muted); white-space: nowrap; }
.invite li b { font-family: var(--font-head); font-weight: 600; text-align: right; }
@media (max-width: 860px) {
  .invite { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
}
