/* Five Sunday services, side by side. A full-screen piece that opens from the article
   "Largest Christian Denominations in the U.S." Built from the October prototype "One Shape of Sunday".
   Type follows christianpure.com since 5 Nov 2026 (design system D-047): GT Sectra for headings,
   GT Pantheon Text for reading, GT Pantheon Micro for small text and chart labels. The fonts load from the site.
   Unlike the 3D viewers, this page scrolls: the chart and the moment it shows come first, then the guest guide,
   then where the time goes. On a phone the Back and Next buttons stay at the foot of the screen. */

@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Medium.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Medium.woff') format('woff'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Regular.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Regular-Italic.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Regular-Italic.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Medium.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Medium.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Micro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Micro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Micro-Medium.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Micro-Medium.woff2') format('woff2'); }

:root {
  --page: #fbf8f3;     /* design system stone */
  --band: #f5ede1;     /* stone deep */
  --ink: #002b63;
  --muted: #5d6275;
  --gold: #c58c23;
  --gold-ink: #8f6418;
  --coral: #d8583f;
  --line: #e6ded3;
  --focus: #2d6db0;
  --head-font: 'GT Sectra', Georgia, 'Times New Roman', serif;
  --body-font: 'GT Pantheon Text', Georgia, 'Times New Roman', serif;
  --label-font: 'GT Pantheon Micro', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font-family: var(--body-font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* The header, as on the other pieces: back to the article, the name, About. */
.head {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 4px 12px; padding-top: max(4px, env(safe-area-inset-top)); background: var(--page); border-bottom: 1px solid var(--line);
}
.back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 6px 0 2px;
  font: 400 16px/1 var(--body-font); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.back-arrow { font: 400 30px/1 var(--body-font); margin-top: -3px; }
.back-more { display: none; margin-left: 0.24em; }
.title-more { display: none; }
.back:hover .back-word, .back:hover .back-more { text-decoration: underline; text-underline-offset: 3px; }
.head h1 {
  margin: 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 500 19px/1.15 var(--head-font); letter-spacing: -0.005em; color: var(--ink);
}
.about-btn {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; cursor: pointer;
  font: 400 16px/1 var(--body-font); color: var(--ink);
}
.about-btn:hover { border-color: var(--gold); }
@media (min-width: 900px) {
  .head { padding: 6px 24px; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); }
  .back, .about-btn { font-size: 17px; }
  .back-more { display: inline; }
  .title-more { display: inline; }
  .head h1 { font-size: 24px; }
  .about-btn { justify-self: end; }
}

.page { max-width: 1320px; margin: 0 auto; padding: 0 16px 96px; }
@media (min-width: 900px) { .page { padding: 0 32px 64px; } }

.lede { margin: 12px 0 0; max-width: 72ch; font-size: 16.5px; line-height: 1.45; }
@media (min-width: 900px) { .lede { font-size: 18px; margin-top: 16px; max-width: none; } }
/* On a phone the chart comes straight after the opening line; the key and the switches follow it,
   and Back and Next come after the readout so they stay at the foot of the screen while it is read. */
@media (max-width: 899px) {
  .page { display: flex; flex-direction: column; }
  .lede { order: 1; } .chart-card { order: 2; margin-top: 12px; } .legend { order: 3; margin-top: 10px; } .controls { order: 4; margin: 4px 0 0; }
  .hint { order: 5; } .readout-h { order: 6; } .readout { order: 7; } .stepper { order: 8; } .guest { order: 9; } .time { order: 10; }
}

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 14px 0 6px; font: 400 15px/1.3 var(--label-font); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; color: var(--ink); padding: 0 18px; min-height: 44px; cursor: pointer; font: inherit; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 13px/1.35 var(--label-font); color: var(--muted); margin: 2px 0 10px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.legend svg { display: block; flex: none; }

.chart-card { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0 4px; }
.scrub { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; border-radius: 4px; }
.scrub svg { display: block; width: 100%; height: auto; overflow: visible; }
.scrub:focus-visible { outline-offset: 4px; }
.row-label { font-family: var(--label-font); font-size: 14px; fill: var(--ink); paint-order: stroke; stroke: var(--page); stroke-width: 4px; stroke-linejoin: round; }
.row-label-btn { cursor: pointer; }
.row-label-btn:hover text { text-decoration: underline; }
.row-label-btn.on text.row-label { font-weight: 500; }
.band-label { font-family: var(--label-font); font-size: 12px; fill: var(--muted); paint-order: stroke; stroke: var(--page); stroke-width: 3px; stroke-linejoin: round; }
.axis text { font-family: var(--label-font); font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.seglabel { font-family: var(--label-font); font-size: 12px; fill: #fff; pointer-events: none; }
.total-label { font-family: var(--label-font); font-size: 12px; fill: var(--muted); }
.playhead line { stroke: var(--coral); stroke-width: 2; }
.playhead .knob { fill: var(--coral); stroke: var(--page); stroke-width: 2; }
.playhead .grip { fill: var(--coral); }
.playhead .grip-label { font-family: var(--label-font); font-size: 14px; font-weight: 500; fill: #fff; letter-spacing: .02em; pointer-events: none; }
.scrub:hover .playhead .grip { fill: #c44a33; }
.playhead.nudge { animation: cp-nudge 1.8s ease-in-out .7s 1 both; }
@keyframes cp-nudge { 0%, 100% { transform: translateX(0); } 22% { transform: translateX(26px); } 44% { transform: translateX(0); } 66% { transform: translateX(26px); } }
@media (prefers-reduced-motion: reduce) { .playhead.nudge { animation: none; } }

/* Back and Next, with where the line stands. On a phone it stays at the foot of the screen. */
.stepper { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 10px 0 0; font: 400 15px/1.3 var(--label-font); }
.stepper button { min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 4px; cursor: pointer; font: inherit; white-space: nowrap; }
.stepper button:hover { border-color: var(--ink); }
.where { text-align: center; color: var(--muted); min-width: 0; }
.where b { color: var(--ink); font-weight: 500; }
@media (max-width: 899px) {
  .stepper {
    position: sticky; bottom: 0; z-index: 10; margin: 10px -16px 0; padding: 8px 16px; padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: var(--page); border-top: 1px solid var(--line);
  }
  .where { font-size: 14px; line-height: 1.25; }
}
.hint { font: 400 13px/1.4 var(--label-font); color: var(--muted); margin: 8px 0 0; }

/* What each church is doing at the line. Laptop: three across, in the rows' order. Phone: one under another. */
.readout { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.readout li { padding: 12px 0; border-top: 1px solid var(--line); }
.readout .who { font: 500 15px/1.3 var(--label-font); display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.readout .pname { font-weight: 500; font-size: 17px; }
.readout .posture { font: 400 14px/1.4 var(--label-font); color: var(--muted); margin-left: 6px; }
.readout .posture b { color: var(--ink); font-weight: 500; }
.readout .desc { display: block; margin-top: 3px; font-size: 16px; line-height: 1.45; }
.readout .gap { color: var(--muted); font-style: italic; }
.readout .else { display: block; font: 400 14px/1.4 var(--label-font); margin-top: 4px; }
.readout .else::before { content: ""; display: inline-block; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.readout li.justin .who, .readout li.justin .what { opacity: .82; }
@media (min-width: 900px) {
  .readout { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .readout li { padding: 14px 0 16px; }
}
.mdot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.src { font: 400 13px/1.4 var(--label-font); color: var(--muted); }
.src a { color: var(--muted); }

section.guest, section.time { padding: 40px 0 0; }
h2 { font: 500 26px/1.2 var(--head-font); margin: 0 0 8px; letter-spacing: -0.005em; }
h3 { font: 500 19px/1.3 var(--head-font); margin: 20px 0 6px; }
p { max-width: 70ch; }
.sub { margin: 0 0 12px; color: var(--muted); }

.pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; font: 400 15px/1.2 var(--label-font); max-width: 760px; }
.pick button { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.pick button + button { border-left: 1px solid var(--line); }
.pick button:hover { background: var(--band); }
.pick button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 420px) { .pick { font-size: 13.5px; } .pick button { padding: 0 2px; } }

.card { max-width: 860px; }
.card .book { font: 400 14px/1.45 var(--label-font); color: var(--muted); margin: 0 0 4px; }
.card h3:first-child { margin-top: 0; font-size: 22px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 0 0 10px; max-width: 72ch; }
.card li .src { margin-left: 6px; }
.card .teach { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
.empty { color: var(--muted); font-style: italic; margin: 0; }

table.sum { border-collapse: collapse; font: 400 15px/1.3 var(--label-font); margin: 12px 0 6px; width: 100%; max-width: 860px; }
table.sum th, table.sum td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.sum th:first-child, table.sum td:first-child { text-align: left; padding-left: 0; }
table.sum thead th { color: var(--muted); font-weight: 400; font-size: 13px; }
table.sum tbody th { font-weight: 500; }
table.sum caption { caption-side: bottom; text-align: left; padding-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
  table.sum { font-size: 13px; table-layout: auto; }
  table.sum th, table.sum td { padding: 7px 2px; }
  table.sum thead th { font-size: 12px; }
  table.sum .hide-sm { display: none; }
}

details.tv { margin: 20px 0 0; }
details.tv summary { font: 400 16px/1.3 var(--label-font); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
table.align { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 8px; }
table.align th, table.align td { border-bottom: 1px solid var(--line); padding: 6px 6px; text-align: left; vertical-align: top; }
table.align thead th { font: 400 13px/1.3 var(--label-font); color: var(--muted); }
table.align tbody th { font: 500 13px/1.3 var(--label-font); color: var(--muted); }
table.align td.no { color: #b3ab9f; }
table.align tr.bandrow th { background: var(--band); color: var(--ink); font-size: 14px; }
@media (max-width: 700px) {
  table.align thead { display: none; }
  table.align, table.align tbody, table.align tr, table.align th, table.align td { display: block; width: 100%; }
  table.align tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.align th, table.align td { border: 0; padding: 2px 0; }
  table.align td.no { display: none; }
  table.align td::before { content: attr(data-label) ": "; font: 400 13px/1.3 var(--label-font); color: var(--muted); }
}

/* About, as on the other pieces. */
dialog#about {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: var(--page); box-shadow: 0 10px 40px rgba(0, 33, 89, 0.2);
}
dialog#about::backdrop { background: rgba(0, 20, 50, 0.45); }
.about-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px 10px 24px; background: var(--page); border-bottom: 1px solid var(--line);
}
.about-head h2 { font-size: 22px; margin: 0; }
.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; cursor: pointer; font: 400 16px/1 var(--body-font); color: var(--ink); }
.btn:hover { border-color: var(--gold); }
.about-body { padding: 4px 24px 28px; }
.about-body h3 { margin-top: 22px; }
.about-body p, .about-body dd { font-size: 16px; }
.about-body blockquote { margin: 14px 0; padding: 0 0 0 16px; border-left: 2px solid var(--gold); }
.about-body blockquote p { margin: 0; font-style: italic; }
.about-body blockquote cite { display: block; font: 400 13px/1.4 var(--label-font); color: var(--muted); font-style: normal; margin-top: 4px; }
ol.sources { padding-left: 22px; font-size: 15px; }
ol.sources li { margin: 0 0 10px; overflow-wrap: anywhere; }
ol.sources .lic { display: block; color: var(--muted); font: 400 13px/1.4 var(--label-font); }
ol.sources li:target { background: var(--band); }
ul.more { padding-left: 20px; }
ul.more li { margin: 0 0 8px; }
@media (max-width: 600px) {
  dialog#about { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .about-head { padding: 6px 12px 6px 18px; padding-top: max(6px, env(safe-area-inset-top)); }
  .about-body { padding: 4px 18px 28px; }
}

section.guest { scroll-margin-top: 64px; }
