/* The oldest copy of every New Testament book. A full-screen piece that opens from the article
   "Does the Original Bible Still Exist?". One row per book on a shared ruler of years, AD 1 to 420.
   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. Fonts load from the site. */

@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: #f1e7d8;     /* stone deep, a shade warmer for the writing band */
  --ink: #002159;
  --muted: #5d6275;
  --gold: #c58c23;
  --gold-ink: #8f6418;
  --line: #e6ded3;
  --rule: rgba(0, 33, 89, .10);
  --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;
  --name-w: 70px;      /* book name column (short names on phones) */
  --share-w: 46px;     /* share-of-book column */
  --row-h: 36px;
}
@media (min-width: 700px) { :root { --name-w: 150px; --share-w: 132px; --row-h: 34px; } }
@media (min-width: 1100px) { :root { --name-w: 210px; --share-w: 180px; --row-h: 42px; } }

* { 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; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 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, .title-long { display: none; }
.back-more { margin-left: .24em; }
.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: -.005em; }
.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); }
.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, .title-long { display: inline; }
  .title-short { display: none; }
  .head h1 { font-size: 24px; }
  .about-btn { justify-self: end; }
}

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

/* The finding: the answer in one sentence, then where the other seven stand. */
.finding { margin: 18px 0 10px; }
.finding h2 { margin: 0; font: 500 24px/1.18 var(--head-font); letter-spacing: -.01em; max-width: 30ch; text-wrap: balance; }
.finding .sub { margin: 8px 0 0; max-width: 68ch; font-size: 16.5px; line-height: 1.45; }
@media (min-width: 900px) { .finding { margin: 26px 0 14px; } .finding h2 { font-size: 34px; max-width: none; } .finding .sub { font-size: 18px; } }

/* Key */
.key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 8px; padding: 0; font: 400 14px/1.3 var(--label-font); color: var(--muted); }
.key li { display: inline-flex; align-items: center; gap: 8px; }
.k { display: inline-block; flex: none; width: 28px; height: 10px; border-radius: 2px; }
.k-first { background: var(--ink); }
.k-most { border: 2px solid var(--ink); background: var(--page); height: 10px; }
.k-dispute { height: 0; border-top: 2px dotted var(--gold-ink); border-radius: 0; }
.k-written { background: var(--band); height: 16px; }
@media (min-width: 900px) { .key { font-size: 15px; } }

/* The chart: one row per book, all on one ruler of years. The writing band and the century lines run
   behind every row, drawn by the rows container. */
.chart { position: relative; margin-top: 6px; }
.axis { position: sticky; top: 52px; z-index: 5; display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr) var(--share-w); background: var(--page); height: 30px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .axis { top: 57px; } }
.axis-foot { position: static; border-bottom: 0; border-top: 1px solid var(--line); }
.axis .track { position: relative; }
.axis .tick { position: absolute; bottom: 6px; transform: translateX(-50%); font: 400 13px/1 var(--label-font); color: var(--muted); white-space: nowrap; }
.axis-foot .tick { bottom: auto; top: 8px; }
.sh-long { display: none; }
@media (min-width: 700px) { .sh-long { display: inline; } .sh-short { display: none; } }
.axis .share-h { align-self: end; padding: 0 0 6px 10px; font: 400 13px/1 var(--label-font); color: var(--muted); white-space: nowrap; }
.axis .written-l { position: absolute; bottom: 6px; font: 500 13px/1 var(--label-font); color: var(--gold-ink); transform: translateX(-50%); white-space: nowrap; }

.rows { position: relative; }
.group { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr) var(--share-w); }
.group-name { grid-column: 1 / -1; margin: 0; padding: 14px 0 4px; font: 500 14px/1.2 var(--label-font); color: var(--muted); }
.row { display: contents; }
.rowbtn {
  grid-column: 1 / -1; display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr) var(--share-w); align-items: center;
  min-height: var(--row-h); width: 100%; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--rule); background: transparent; cursor: pointer; text-align: left;
}
.rowbtn:hover { background: rgba(197, 140, 35, .07); }
.rowbtn[aria-expanded="true"] { background: rgba(197, 140, 35, .10); }
.bk { padding-right: 8px; font: 400 15px/1.15 var(--body-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowbtn[aria-expanded="true"] .bk { font-weight: 500; }
.chev { display: inline-block; width: .9em; margin-right: .2em; color: var(--gold-ink); font: 500 1em/1 var(--label-font); transition: transform .15s ease; }
.rowbtn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.rowbtn:hover .bk-long, .rowbtn:hover .bk-short { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hint { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; font: 400 15px/1.35 var(--label-font); color: var(--ink); }
.hint .chev { width: auto; }
@media (min-width: 700px) { .bk { font-size: 16.5px; } }
.track { position: relative; height: 100%; min-height: var(--row-h); }
.track .written { position: absolute; top: 0; bottom: 0; background: var(--band); }
.track .cline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.bar { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 2px; }
.bar.first { background: var(--ink); z-index: 2; }
.bar.most { background: transparent; border: 2px solid var(--ink); z-index: 1; }
.bar.dispute { height: 0; margin-top: 9px; border-top: 2px dotted var(--gold-ink); border-radius: 0; z-index: 1; }
.bar .lab { position: absolute; top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--label-font); color: var(--ink); white-space: nowrap; }
.bar .lab.r { left: calc(100% + 6px); }
.bar .lab.l { right: calc(100% + 6px); }
.bar.most .lab { font-weight: 400; color: var(--muted); display: none; }
@media (min-width: 700px) { .bar.most .lab { display: block; } }
.bk-long { display: none; }
@media (min-width: 700px) { .bk-long { display: inline; } .bk-short { display: none; } }
@media (min-width: 700px) { .bar .lab { font-size: 14px; } }
.share { display: flex; align-items: center; gap: 8px; padding-left: 10px; font: 400 13.5px/1 var(--label-font); color: var(--ink); white-space: nowrap; }
.share .mini { display: none; position: relative; flex: none; width: 56px; height: 8px; border-radius: 1px; background: var(--line); overflow: hidden; }
.share .mini i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
@media (min-width: 700px) { .share { font-size: 14px; } .share .mini { display: block; } }

/* The detail opens under its row, across the full width. */
.detail { grid-column: 1 / -1; padding: 16px 0 26px; border-top: 1px solid var(--rule); }
.detail-grid { display: grid; gap: 18px 40px; }
/* Phones and tablets: the picture comes straight after the copy's name and description, before the facts. */
@media (max-width: 899px) {
  .detail-grid { display: flex; flex-direction: column; gap: 0; }
  .detail-grid > div { display: contents; }
  .d-kind, .d-title, .d-what { order: 1; }
  .figure { order: 2; margin: 4px 0 16px; }
  .facts, .links, .terms { order: 3; }
  .ribbon-wrap, .others { order: 4; }
  .ribbon-wrap:first-of-type { margin-top: 18px; }
}
@media (min-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-left: var(--name-w); } }
.d-kind { margin: 0; font: 400 14px/1.3 var(--label-font); color: var(--muted); }
.d-title { margin: 4px 0 6px; font: 500 22px/1.2 var(--head-font); }
.d-what { margin: 0 0 12px; max-width: 62ch; }
.facts { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 14.5px/1.4 var(--label-font); color: var(--muted); padding-top: 11px; }
.facts dd { font-size: 16px; line-height: 1.45; }
.facts .src { font: 400 13.5px/1.4 var(--label-font); color: var(--muted); }
.facts ul { margin: 6px 0 0; padding: 0; list-style: none; }
.facts li { margin: 4px 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } .facts dd { padding-top: 2px; } }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: 16px; }
.links a { display: inline-flex; align-items: center; min-height: 32px; }

/* The book ribbon: the whole book from first verse to last, the verses this copy holds marked in ink. */
.ribbon-wrap { margin: 0; }
.ribbon-h { margin: 0 0 6px; font: 500 15px/1.3 var(--label-font); }
.ribbon { position: relative; height: 26px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ribbon i { position: absolute; top: 0; bottom: 0; background: var(--ink); min-width: 1px; }
.ribbon.most i { background: var(--ink); opacity: .55; }
.ribbon .ch { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(251, 248, 243, .9); }
.ribbon-scale { position: relative; height: 16px; margin-top: 3px; font: 400 12.5px/1 var(--label-font); color: var(--muted); }
.ribbon-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ribbon-scale span:first-child { transform: none; }
.ribbon-cap { margin: 4px 0 18px; font: 400 14.5px/1.4 var(--label-font); color: var(--muted); }
.figure { margin: 0 0 18px; }
.figure img { display: block; max-width: 100%; height: auto; max-height: 340px; }
.figure.drawing img { background: transparent; }
.figure > a { display: inline-block; }
@media (min-width: 1100px) { .figure img { max-height: 440px; } }
.nopic { display: flex; max-width: 100%; align-items: center; justify-content: center; width: 220px; height: 150px; border: 1px dashed var(--line); border-radius: 4px; font: 400 14px/1.3 var(--label-font); color: var(--muted); }
.figure svg { display: block; max-width: 100%; height: auto; }
.figure figcaption { margin-top: 6px; font: 400 13.5px/1.4 var(--label-font); color: var(--muted); }
.others { margin: 0; font: 400 14.5px/1.45 var(--label-font); color: var(--muted); }
.others a { color: var(--muted); }

.terms { margin: 10px 0 0; max-width: 62ch; font: 400 13.5px/1.45 var(--label-font); color: var(--muted); }
.note { margin: 18px 0 0; max-width: 72ch; font: 400 14.5px/1.45 var(--label-font); color: var(--muted); }

/* About */
dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); }
dialog::backdrop { background: rgba(0, 20, 50, .35); }
.about-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: var(--page); border-bottom: 1px solid var(--line); }
.about-head h2 { margin: 0; font: 500 22px/1.2 var(--head-font); }
.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; cursor: pointer; }
.about-body { padding: 6px 18px 22px; font-size: 16.5px; }
.about-body h3 { margin: 18px 0 6px; font: 500 18px/1.25 var(--head-font); }
.about-body p { margin: 0 0 10px; max-width: 68ch; }
.about-body ul { margin: 0 0 10px; padding-left: 1.1em; }
.about-body li { margin: 3px 0; }
.about-body table { width: 100%; border-collapse: collapse; font: 400 14px/1.35 var(--label-font); }
.about-body th, .about-body td { text-align: left; vertical-align: top; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.about-body th { font-weight: 500; }

/* Desktop: the timeline's own text 20% larger (owner, 7 Nov 2026), so the chart uses the wide screen. */
@media (min-width: 1100px) {
  .key { font-size: 18px; }
  .k { width: 34px; height: 12px; } .k-most { height: 12px; } .k-written { height: 19px; }
  .axis { height: 36px; } .axis .tick, .axis .share-h, .axis .written-l { font-size: 15.5px; }
  .group-name { font-size: 17px; padding-top: 18px; }
  .bk { font-size: 20px; }
  .bar { height: 14px; margin-top: -7px; }
  .bar.dispute { margin-top: 11px; }
  .bar .lab { font-size: 17px; }
  .share { font-size: 17px; } .share .mini { width: 68px; height: 10px; }
  .hint { font-size: 17px; }
}

@media (prefers-reduced-motion: no-preference) { .detail { animation: open .18s ease-out; } @keyframes open { from { opacity: 0; } to { opacity: 1; } } }
