/* How Christianity spread, century by century. Full-screen piece (6 November 2026; layout A 7 November 2026).
   The controls frame the map they move: the centuries above it, Back / Play / the century / Next below it, the words after
   (owner's pick A, 7 Nov 2026: "Switch over to the layout A everywhere"). */

@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 Sectra'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular.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 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 {
  /* design system tokens (christianpure-design-system tokens.css) */
  --page: #fbf8f3;
  --band: #f8f2e8;
  --inset: #f5ede1;
  --raised: #ffffff;
  --ink: #002159;
  --muted: #67625d;
  --gold: #c58c23;
  --coral: #d8583f;
  --line: #e8e4df;
  --focus: #0951b1;
  /* the map: our content on a muted base */
  --sea: #e3e8eb;
  --land: #fbf8f3;
  --coast: #c9c2b8;
  --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, body { margin: 0; height: 100%; background: var(--page); color: var(--ink); }
body { font-family: var(--body-font); line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.app { position: fixed; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); }

/* header: where am I, how do I get back, where is the rest */
.head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--page); border-bottom: 1px solid var(--line); }
.head h1 { margin: 0; font-family: var(--head-font); font-weight: 500; font-size: 22px; line-height: 1.15; text-align: center; }
.back { justify-self: start; font-family: var(--label-font); font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.back-arrow { font-size: 24px; line-height: 1; margin-top: -2px; }
.back:hover .back-word, .back:hover .back-more { text-decoration: underline; }
.about-btn { justify-self: end; font-family: var(--label-font); font-size: 15px; background: none; border: 0; padding: 0 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

/* the map */
.view { position: relative; overflow: hidden; background: var(--sea); touch-action: none; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.map.dragging { cursor: grabbing; }
.land { fill: var(--land); stroke: var(--coast); stroke-width: .6; vector-effect: non-scaling-stroke; }
.m-old { fill: var(--ink); opacity: .5; }
.m-old.k-wr-m { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .55; }
.m-new { fill: var(--coral); }
.m-new.k-wr-m { fill: var(--page); stroke: var(--coral); stroke-width: 2.2; }
.m-new.k-nt-m { stroke: var(--page); stroke-width: 1; }
.m-old.k-nt-m { opacity: .6; }
.m-flat { fill: var(--ink); opacity: .78; }
.m-flat.k-wr-m { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.sel-ring { fill: none; stroke: var(--ink); stroke-width: 2; }
.lbl { font-family: var(--label-font); font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 3.5px; stroke-linejoin: round; }
.lbl.old { fill: var(--muted); font-size: 12px; }
.lbl.start { font-weight: 500; font-size: 14px; }

.zoom { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.zoom button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: var(--raised); border-radius: 4px; font-family: var(--label-font); font-size: 20px; line-height: 1; }
.zoom .zoom-reset { font-size: 14px; padding: 0 10px; }
.hint { position: absolute; left: 12px; top: 12px; margin: 0; font-family: var(--label-font); font-size: 13px; color: var(--muted); background: rgba(251, 248, 243, .9); padding: 6px 10px; border-radius: 4px; max-width: calc(100% - 210px); }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--label-font); font-size: 15px; color: var(--muted); }

/* the place card */
.card { position: absolute; left: 16px; bottom: 16px; width: min(400px, calc(100% - 32px)); max-height: calc(100% - 76px); overflow: auto; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 33, 89, .12); padding: 16px 18px 14px; }
.card-close { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); }
.card h2 { margin: 0 32px 2px 0; font-family: var(--head-font); font-weight: 500; font-size: 21px; line-height: 1.2; }
.card .c-ancient { margin: 0 0 8px; font-family: var(--label-font); font-size: 14px; color: var(--muted); }
.card .c-kind { margin: 8px 0 4px; font-family: var(--label-font); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.card blockquote { margin: 6px 0 6px; padding: 0; font-size: 17px; line-height: 1.45; }
.card blockquote p { margin: 0; }
.card cite { display: block; margin-top: 4px; font-style: normal; font-family: var(--label-font); font-size: 14px; color: var(--muted); }
.card .c-facts { margin: 4px 0 0; padding: 0; list-style: none; font-size: 16px; }
.card .c-facts li { margin: 2px 0; }
.card .c-src { margin: 10px 0 0; font-family: var(--label-font); font-size: 13px; color: var(--muted); line-height: 1.45; }
.card .c-src a { color: var(--muted); }
.card .c-list { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.card .c-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.card .c-list h3 { margin: 0 0 2px; font-family: var(--label-font); font-weight: 500; font-size: 15px; }

/* the band above the map: Play, and the centuries as the chart of how many records each holds; tap one to go there */
.cband { background: var(--band); border-bottom: 1px solid var(--line); padding: 6px 24px 4px; position: relative; z-index: 3; }
.cband-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; max-width: 1100px; margin: 0 auto; }
.chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 70px; align-items: end; }
.col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; border: 0; background: none; padding: 0; border-radius: 4px; }
.col:hover .b { opacity: .6; }
.col .n { font-family: var(--label-font); font-size: 12px; text-align: center; color: var(--muted); line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.col .b { display: block; margin: 0 4px; background: var(--ink); opacity: .32; border-radius: 1px; min-height: 2px; }
.col.early .b { background: none; border: 1.5px solid var(--ink); opacity: .5; }
.col .c { font-family: var(--label-font); font-size: 12px; text-align: center; color: var(--muted); margin-top: 3px; line-height: 1.1; }
.col.past .b { opacity: .5; }
.col[aria-pressed="true"] .b { background: var(--coral); opacity: 1; border-color: var(--coral); }
.col[aria-pressed="true"] .n, .col[aria-pressed="true"] .c { color: var(--ink); font-weight: 500; }

/* the band below the map: Back, Play, the century you are on (with its own mark), and a Next that names where it goes */
.stepper { background: var(--band); border-top: 1px solid var(--line); padding: 8px 24px 10px; position: relative; z-index: 3; }
.step-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: 1100px; margin: 0 auto; }
.step {
  min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--raised); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 400 16px/1.1 var(--body-font); color: var(--ink); white-space: nowrap;
}
.step .chev { font: 400 26px/1 var(--body-font); margin-top: -3px; }
.step.next { background: var(--ink); border-color: var(--ink); color: #fff; padding: 0 14px 0 20px; }
.step.next .step-word { display: flex; align-items: baseline; white-space: nowrap; }
.next-label { font: inherit; color: inherit; }
.next-label::after { content: ':\00a0'; }
.next-to { font: inherit; }
.step.next.end .next-label { display: none; }
.step.prev { padding: 0 16px 0 12px; }
.step:hover { border-color: var(--gold); }
.step:disabled { opacity: .4; cursor: default; }
.play { min-height: 48px; padding: 0 16px 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); color: var(--ink); font: 400 16px/1.1 var(--body-font); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.play:hover { border-color: var(--gold); }
.play-icon { font-size: 12px; width: 14px; text-align: center; }
.here { min-width: 0; position: relative; padding-left: 24px; }
.here-key { position: absolute; left: 2px; top: 7px; }
.here-name { margin: 0; font: 500 24px/1.15 var(--head-font); color: var(--ink); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.here-n { margin: 1px 0 0; font: 400 14px/1.25 var(--label-font); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key { flex: none; overflow: visible; }
.k-nt { fill: var(--coral); }
.k-wr { fill: var(--page); stroke: var(--coral); stroke-width: 2.2; }
.k-bp { fill: var(--coral); }

/* the words, after the controls: they scroll in their own band, so the map stays the largest thing */
.words { background: var(--page); border-top: 1px solid var(--line); max-height: 200px; overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.words p { margin: 0 auto; max-width: 760px; }
.w-kind { font-family: var(--label-font); font-size: 14px; color: var(--muted); }
.w-text { margin-top: 4px !important; font-size: 18px; line-height: 1.45; }

/* About */
.about { width: min(680px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 0; border-radius: 6px; padding: 0; background: var(--page); color: var(--ink); box-shadow: 0 10px 40px rgba(0, 33, 89, .25); }
.about::backdrop { background: rgba(0, 33, 89, .35); }
.about-in { position: relative; padding: 26px 30px 30px; font-size: 17px; line-height: 1.5; }
.about h2 { margin: 0 40px 10px 0; font-family: var(--head-font); font-weight: 500; font-size: 26px; }
.about h3 { margin: 22px 0 6px; font-family: var(--head-font); font-weight: 500; font-size: 19px; }
.about p { margin: 0 0 10px; }
.about ul { margin: 0; padding-left: 1.1em; }
.about li { margin: 0 0 8px; }
.about .kinds { list-style: none; padding: 0; }
.about .kinds li { padding-left: 24px; position: relative; }
.about .kinds .key { position: absolute; left: 0; top: 5px; }
.about .sources { font-size: 15px; }
.about-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); }

/* tablets and phones: the map keeps the screen, the bar stacks */
@media (max-width: 899px) {
  .cband { padding: 4px 12px 3px; }
  .cband-row { gap: 6px; }
  .chart { height: 58px; gap: 2px; }
  .stepper { padding: 6px 12px 8px; }
  .step-row { gap: 8px; }
  .step.prev { padding: 0; width: 44px; min-width: 44px; min-height: 44px; }
  .step.prev .step-word { display: none; }
  .play { padding: 0; width: 44px; min-height: 44px; justify-content: center; }
  .play-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step.next { max-width: 40vw; min-height: 44px; padding: 0 8px 0 14px; }
  .step.next .step-word { flex-direction: column; align-items: flex-start; text-align: left; white-space: normal; padding: 5px 0; }
  .next-label { font: 400 12.5px/1.2 var(--label-font); color: #c9d3e6; }
  .next-label::after { content: none; }
  .next-to { font: 400 16px/1.15 var(--body-font); }
  .here { padding-left: 20px; }
  .here-key { top: 5px; }
  .here-name { font-size: 19px; }
  .here-n { font-size: 13px; }
  .words { max-height: 25svh; padding: 10px 16px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .head { padding: 4px 8px; padding-top: max(4px, env(safe-area-inset-top)); gap: 6px; }
  .head h1 { font-size: 18px; }
  .back-more { display: none; }
  .back, .about-btn { font-size: 14px; }
  .w-kind { font-size: 13px; }
  .w-text { font-size: 16px; }
  .chart { height: 52px; gap: 1px; }
  .col .b { margin: 0 3px; }
  .col .n { font-size: 11px; }
  .col .c { font-size: 11px; }
  .hint { display: none; }
  .zoom { top: 8px; right: 8px; }
  .zoom button { min-width: 36px; height: 36px; }
  .card { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100% - 60px); padding: 14px 14px 12px; }
  .card h2 { font-size: 19px; }
  .card blockquote { font-size: 16px; }
  .about-in { padding: 20px 18px 24px; font-size: 16px; }
}
@media (max-width: 380px) {
  .cband { padding-left: 8px; padding-right: 8px; }
  .col .c, .col .n { letter-spacing: -0.03em; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* still mode (?still): the map alone, for the entry pictures */
html.still .app { grid-template-rows: minmax(0, 1fr); }
html.still .head, html.still .cband, html.still .stepper, html.still .words, html.still .zoom, html.still .hint, html.still .card { display: none !important; }
