/* When did Jesus die? Header, fonts and tokens as on the site's other interactive pieces.
   Type: GT Sectra for headings, GT Pantheon Text for reading, GT Pantheon Micro for small text and labels.
   Sizes are the Theme Editor steps (D-054); spaces are the spacing roles (D-055). */

@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: 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: var(--cp-color-surface-page, #fbf8f3);
  --raised: var(--cp-color-surface-raised, #ffffff);
  --inset: var(--cp-color-surface-inset, #f5ede1);
  --ink: var(--cp-color-ink, #002159);
  --muted: var(--cp-color-ink-muted, #67625d);
  --gold: var(--cp-color-accent-gold, #c58c23);
  --gold-ink: var(--cp-color-ink-gold, #9b6c20);
  --line: #e6ded3;
  --rule: rgba(0, 33, 89, .10);
  --focus: #2d6db0;
  --wheat: #f5e9cf;
  --friband: rgba(197, 140, 35, .10);
  --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; }
[hidden] { display: none !important; }
.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 */
.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 0; font: 400 16px/1 var(--body-font); color: var(--ink); text-decoration: none; white-space: nowrap; }
.back-arrow { display: inline-flex; color: var(--gold-ink); }
.back-more { display: none; margin-inline-start: .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; font: 500 16px/1.15 var(--head-font); text-wrap: balance; }
@media (min-width: 900px) {
  .head h1 { white-space: nowrap; }
  .head { padding: 6px 24px; grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr); }
  .back { font-size: 17px; }
  .back-more { display: inline; }
  .head h1 { font-size: 24px; }
  .about-btn { justify-self: end; }
}


/* Scripture in GT Sectra Regular Italic, as the prayer unit sets spoken words (D-056); italics are registered at weight + 50 */
@font-face { font-family: 'GT Sectra'; font-style: italic; font-weight: 450; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.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'); }
@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'); }

.page { max-width: 1240px; margin: 0 auto; padding: 0 var(--cp-gutter, 20px) var(--cp-gap-section, 64px); }
@media (min-width: 900px) { .page { padding-inline: 32px; } }
.page p { max-width: 70ch; }
body { font-size: var(--cp-font-body-size, 17px); }

/* The answer */
.finding { margin-top: var(--cp-gap-group, 24px); }
.finding h2 { margin: 0; max-width: 22ch; font: 500 var(--cp-font-title-1-size, 32px)/1.12 var(--head-font); text-wrap: balance; }
.finding .sub { margin: var(--cp-gap-item, 16px) 0 0; font-size: var(--cp-font-body-size); color: var(--muted); }
@media (min-width: 900px) { .finding { margin-top: 40px; } .finding h2 { max-width: 26ch; } }

/* Chips: stone tiles; the picked one wheat stone with bold words (D-058) */
.chips { display: flex; flex-wrap: wrap; gap: var(--cp-gap-bound, 4px); margin: 0; padding: 0; border: 0; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px /* cp-space: tap height */; padding: 0 var(--cp-inset-field, 16px);
  border: 1px solid var(--cp-color-line-gold, rgba(171,127,54,.32)); border-radius: var(--cp-radius-control, 4px); cursor: pointer;
  background-color: var(--cp-button-limestone-ground, #f8f2e8);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--cp-button-limestone-highlight, #fff) 35%, transparent), transparent 60%), url("/wp-content/mu-plugins/christianpure-design-system/assets/textures/limestone-button.jpg");
  background-size: auto, var(--cp-button-limestone-tile, 360px); background-position: 0 0, center;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--cp-button-limestone-shade, #372711) 14%, transparent);
  color: var(--cp-button-limestone-label, #002159); font: 400 var(--cp-font-body-small-size, 15px)/1.15 var(--label-font); white-space: nowrap;
}
@media (hover: hover) { .chip:hover { border-color: var(--cp-button-limestone-rim, #ab7f36); } }
.chip[aria-pressed="true"] {
  border-color: var(--cp-button-limestone-rim, #ab7f36); background-color: var(--cp-color-band-wheat-fill, #f5e9cf);
  background-image: url("/wp-content/mu-plugins/christianpure-design-system/assets/textures/limestone-button.jpg"); background-size: var(--cp-button-limestone-tile, 360px); background-blend-mode: multiply;
  color: var(--cp-color-band-wheat-ink, #002159); font-weight: 500;
}
@media (max-width: 599px) { .chips-stop .chip, .chips-year .chip, .chips-timing .chip { flex: 1 1 auto; padding: 0 12px; } .chips-timing .chip { white-space: normal; text-align: center; } }

/* One moment of the day: the time, then the passage */
.stop-panel { display: grid; gap: var(--cp-gap-item, 16px); padding: var(--cp-gap-group, 24px) 0 0; }
@media (min-width: 900px) { .stop-panel { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 48px; } }
.sp-when p { margin: 0; }
.sp-name { font: 500 var(--cp-font-label-size, 14px)/1.3 var(--label-font); color: var(--gold-ink); }
.sp-time { margin-top: var(--cp-gap-bound, 4px) !important; font: 500 var(--cp-font-title-2-size, 28px)/1.15 var(--head-font); white-space: nowrap; }
.sp-day { margin-top: var(--cp-gap-bound, 4px) !important; font-size: var(--cp-font-body-small-size, 15px); color: var(--muted); }
.sp-quote { margin: 0 0 var(--cp-gap-item, 16px); padding: 0; }
.sp-quote p { margin: 0; font: italic 450 var(--cp-font-title-3-size, 22px)/1.4 var(--head-font); max-width: 46ch; }
.sp-quote cite { display: block; margin-top: var(--cp-gap-label, 8px); font: 400 var(--cp-font-body-small-size, 15px)/1.3 var(--label-font); font-style: normal; color: var(--gold-ink); }
.sp-note { margin: 0 0 var(--cp-gap-label, 8px); }

/* SVG words: on the flat stone ground only, never on the sky */
svg text { font-family: var(--label-font); fill: #4c3f2c; }
.sv-t { font-size: 14px; }
.sv-num { font-size: 15px; fill: #7a6a52; }
.sv-g { fill: #4c3f2c; font-weight: 500; }
.sv-on { fill: #a33f2b; font-weight: 500; }

/* ---------- A: the day across the sky ---------- */
#view { margin-top: var(--cp-gap-group, 24px); }
.a-top { margin-bottom: var(--cp-gap-item, 16px); }
.a-fig { margin: 0; }
.a-svg { width: 100%; line-height: 0; border-radius: var(--cp-radius-control, 4px); overflow: hidden; }
.a-svg svg { display: block; width: 100%; height: auto; }
.a-stops { margin-top: var(--cp-gap-item, 16px); }

/* ---------- Shared lower sections ---------- */
.sec { margin-top: var(--cp-gap-section, 56px); }
.sec-h { margin: 0 0 var(--cp-gap-item, 16px); max-width: 30ch; font: 500 var(--cp-font-title-2-size, 28px)/1.15 var(--head-font); text-wrap: balance; }
.sec > p { margin: 0 0 var(--cp-gap-item, 16px); }
.why-ctl { margin: var(--cp-gap-group, 24px) 0 var(--cp-gap-item, 16px); }
.why-h { margin: 0 0 var(--cp-gap-label, 8px); font: 500 var(--cp-font-title-3-size, 22px)/1.25 var(--head-font); max-width: 40ch; }
.springs { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.springs li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: var(--cp-gap-item, 16px); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sp-y { font: 400 var(--cp-font-body-size, 17px)/1.3 var(--head-font); white-space: nowrap; }
.sp-d { display: flex; flex-direction: column; gap: 2px; }
.sp-e { font-size: var(--cp-font-body-small-size, 15px); color: var(--muted); }
.springs li { padding-inline-start: 12px; }
.springs li.fri, .springs li.fri-early { box-shadow: inset 3px 0 0 #c4553c; }
.springs strong { font-weight: 500; }
.why-note { margin: var(--cp-gap-item, 16px) 0 0; }
.who { display: grid; gap: var(--cp-gap-group, 24px); }
@media (min-width: 900px) { .who { grid-template-columns: 1fr 1fr; gap: 48px; } }
.who-c { padding-top: var(--cp-gap-item, 16px); border-top: 2px solid var(--ink); }
.who-c h3 { margin: 0 0 var(--cp-gap-label, 8px); font: 500 var(--cp-font-title-3-size, 22px)/1.2 var(--head-font); }
.who-c p { margin: 0 0 var(--cp-gap-label, 8px); }

/* The Passover finder: the question as a sentence with the year typed into it */
.finder { padding-top: var(--cp-gap-group, 24px); border-top: 1px solid var(--ink); }
.find { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cp-gap-label, 8px); margin-top: var(--cp-gap-item, 16px); font: 400 var(--cp-font-title-3-size, 22px)/1.2 var(--head-font); }
.find input, .find select { min-height: 44px; padding: 0 12px; border: 1px solid #b9b0a3; border-radius: 4px; background: var(--raised); font: 400 var(--cp-font-body-size, 17px)/1 var(--body-font); color: var(--ink); }
.find input { width: 5.5em; }
.find .cp-button { margin-inline-start: var(--cp-gap-label, 8px); }
.hint { margin: var(--cp-gap-label, 8px) 0 0; font: 400 var(--cp-font-body-small-size, 15px)/1.4 var(--label-font); color: var(--muted); }
.f-res { margin-top: var(--cp-gap-item, 16px); padding: var(--cp-inset-card, 24px); background: var(--raised); border: 1px solid var(--line); border-radius: 4px; max-width: 760px; }
.f-res p { margin: 0 0 var(--cp-gap-label, 8px); }
.f-head { font: 500 var(--cp-font-title-3-size, 22px)/1.25 var(--head-font); }
.err { margin: var(--cp-gap-label, 8px) 0 0; font: 500 var(--cp-font-body-small-size, 15px)/1.4 var(--label-font); color: #9b2c1f; }

/* Foot */
.foot { display: grid; gap: var(--cp-gap-group, 24px); margin-top: var(--cp-gap-section, 56px); padding-top: var(--cp-gap-item, 16px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr 1.4fr; gap: 48px; } }
.foot h2 { margin: 0 0 var(--cp-gap-label, 8px); font: 500 var(--cp-font-heading-size, 19px)/1.25 var(--head-font); }
.foot p { margin: 0 0 var(--cp-gap-label, 8px); font-size: var(--cp-font-body-small-size, 15px); }
.foot .cite { color: var(--muted); overflow-wrap: anywhere; }
.foot ol { margin: 0; padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 5px; font-size: var(--cp-font-body-small-size, 15px); line-height: 1.45; color: var(--muted); }

/* About */
dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100% - 48px); padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--page); color: var(--ink); }
dialog::backdrop { background: rgba(0, 33, 89, .45); }
.about-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--page); border-bottom: 1px solid var(--line); }
.about-head h2 { margin: 0; font: 500 var(--cp-font-title-3-size, 22px)/1.2 var(--head-font); }
.about-body { padding: 6px 20px 22px; }
.about-body h3 { margin: 18px 0 6px; font: 500 var(--cp-font-heading-size, 19px)/1.25 var(--head-font); }
.about-body p { margin: 0 0 10px; }
@media (max-width: 899px) { .about-btn { padding-inline: 12px; } }
.ab-short { display: none; }
@media (max-width: 599px) { .ab-long { display: none; } .ab-short { display: inline; } }

/* The Arabic page reads right to left */
[dir="rtl"] .springs li.fri, [dir="rtl"] .springs li.fri-early { box-shadow: inset -3px 0 0 #c4553c; }
[dir="rtl"] .back-arrow svg { transform: scaleX(-1); }

/* The page's words as plain text (reference.<lang>.html, put after </main> by the addresses plugin): read by search
   engines and shown only where the script does not run; app.js hides it once the view is drawn. */
.hw-text { max-width: 72ch; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.hw-text h2 { font: 500 var(--cp-font-title-2-size, 28px)/1.2 var(--head-font); margin: 8px 0 12px; }
.hw-text h3 { font: 500 var(--cp-font-title-3-size, 22px)/1.25 var(--head-font); margin: 32px 0 8px; }
.hw-text h4 { font: 500 var(--cp-font-heading-size, 19px)/1.3 var(--head-font); margin: 22px 0 6px; }
.hw-text blockquote { margin: 8px 0; font: italic 450 1em/1.45 var(--head-font); }
