/* The sky over Jerusalem. 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; }
}


@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 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'); }

:root { --night: #0a1230; --night-ink: #e9e4d6; --night-muted: #b6bccd; }
.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); }
body:not(.ready) #view { min-height: 70vh; }

/* The finding */
.finding { margin-top: var(--cp-gap-group, 24px); }
.finding h2 { margin: 0; max-width: 24ch; font: 500 var(--cp-font-title-1-size, 32px)/1.12 var(--head-font); text-wrap: balance; }
.finding .sub { margin: var(--cp-gap-label, 8px) 0 0; font-size: var(--cp-font-body-size); color: var(--muted); }
@media (min-width: 900px) { .finding { margin-top: 36px; } .finding h2 { max-width: 30ch; } }
#view { margin-top: var(--cp-gap-group, 24px); }

/* The frame: controls on the sky's top and bottom edges (owner's pick for maps, 7 Nov 2026) */
.frame { border-radius: var(--cp-radius-control, 4px); overflow: hidden; background: var(--night); }
.band { padding: 10px 12px; background: var(--night); color: var(--night-ink); }
.err { margin: 8px 0 0; font: 500 var(--cp-font-body-small-size, 15px)/1.4 var(--label-font); color: #9b2c1f; }

.sky-wrap { position: relative; line-height: 0; touch-action: pan-y; }
.sky-wrap canvas { display: block; width: 100%; cursor: grab; }
.sky-wrap canvas:focus-visible { outline-offset: -3px; }
.turn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 4px; background: rgba(10,18,48,.55); color: var(--night-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.turn-l { inset-inline-start: 8px; } .turn-r { inset-inline-end: 8px; }
.turn:hover { background: rgba(10,18,48,.8); }
.pop { position: absolute; z-index: 3; max-width: 260px; padding: 8px 12px; border-radius: 4px; background: var(--page); color: var(--ink); line-height: 1.35; font: 400 var(--cp-font-body-small-size, 15px)/1.35 var(--label-font); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.pop strong { display: block; font: 500 var(--cp-font-body-size, 17px)/1.25 var(--head-font); }

.time { position: relative; }
.t-lab { display: flex; gap: 8px; align-items: baseline; font: 400 var(--cp-font-body-small-size, 15px)/1.3 var(--label-font); color: var(--night-muted); }
.t-lab output { font: 500 var(--cp-font-title-3-size, 22px)/1.1 var(--head-font); color: var(--night-ink); }
.time input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: #c58c23; background: transparent; }
.t-marks { position: relative; height: 18px; font: 400 13px/1 var(--label-font); color: var(--night-muted); }
.t-marks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

/* Under the sky: the night's words, then what is up */
.under { display: grid; gap: var(--cp-gap-group, 24px); margin-top: var(--cp-gap-group, 24px); }
@media (min-width: 900px) { .under { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 48px; } }
.cap p { margin: 0 0 var(--cp-gap-label, 8px); }
.cap[hidden] + .up { grid-column: 1 / -1; }
.q { margin: var(--cp-gap-item, 16px) 0; padding: 0; }
.q p { margin: 0; font: italic 450 var(--cp-font-title-3-size, 22px)/1.4 var(--head-font); max-width: 46ch; }
.q 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); }
.more { font: 400 var(--cp-font-body-small-size, 15px)/1.4 var(--label-font); }
.up-h { margin: 0 0 var(--cp-gap-label, 8px); font: 500 var(--cp-font-heading-size, 19px)/1.25 var(--head-font); }
.up-l { list-style: none; margin: 0; padding: 0; }
.up-l li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--cp-font-body-small-size, 15px); }
.up-n { font-weight: 500; }
.up-w { color: var(--ink); }
.up-a { color: var(--muted); white-space: nowrap; font-family: var(--label-font); }
.up-x { margin: var(--cp-gap-label, 8px) 0 0; font-size: var(--cp-font-body-small-size, 15px); color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: var(--cp-gap-item, 16px); }
.fig { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 400 var(--cp-font-body-small-size, 15px)/1.2 var(--label-font); cursor: pointer; }
.fig input { width: 20px; height: 20px; accent-color: #002159; }
.limits { margin: var(--cp-gap-label, 8px) 0 0; font: 400 var(--cp-font-body-small-size, 15px)/1.45 var(--label-font); color: var(--muted); }

/* 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); }
.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; } }

[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) */
.sm-text { max-width: 72ch; margin: 0 auto; padding: 24px 16px 48px; }

/* The lens: the moon, or the sun in eclipse, seen close */
.lens { position: absolute; top: 12px; inset-inline-start: 60px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; pointer-events: none; }
.lens canvas { display: block; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.lens figcaption { max-width: 150px; padding: 2px 8px; border-radius: 4px; background: rgba(6,10,28,.62); text-align: center; font: 400 13px/1.3 var(--label-font); color: var(--night-ink); }

@media (max-width: 599px) {
  .finding h2 { font-size: var(--cp-font-title-2-size, 28px); }
  .up-l li { grid-template-columns: 5.4em minmax(0, 1fr) auto; }
  .lens { position: static; flex-direction: row; gap: 12px; padding: 10px 12px 0; background: var(--night, #0a1230); line-height: 1.3; }
  .lens figcaption { max-width: none; padding: 0; background: none; text-align: start; font-size: 15px; }
}

/* Choosing the night. Stone tiles as on the Holy Week page (D-058): limestone, and the picked one wheat stone
   with bold words. They sit against the sky so the choice and the picture read as one thing. */
.chips { display: flex; flex-wrap: wrap; gap: var(--cp-gap-bound, 4px) 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; 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;
}
.c-y { color: var(--cp-color-ink-muted, #67625d); font-weight: 400; white-space: nowrap; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.chips-story .chip { font-size: var(--cp-font-body-size, 17px); }
.row2 { min-height: 44px; }

/* The date fields: the house text field and dropdown, each with its label above it */
.when { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.when .cp-input { gap: 4px; }
.when .cp-select, .when .cp-input__control { height: 44px; min-height: 44px; padding-block: 0; font-size: var(--cp-font-body-size, 17px); font-family: var(--body-font); }
.when .cp-select, .when .cp-input__control { padding-inline: 10px; }
.w-d { width: 4.6em; } .w-m { width: 9.5em; } .w-y { width: 5.2em; } .w-e { width: 5.6em; }
.w-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.err { margin: 8px 0 0; font: 500 var(--cp-font-body-small-size, 15px)/1.4 var(--label-font); color: #9b2c1f; }

/* The tiles sit right above the sky (owner's pick, 23 Nov 2026) */
.pick { margin-bottom: 12px; }

/* Phones: each row of tiles is one line that slides sideways, so the sky stays near the top */
@media (max-width: 699px) {
  .pick .chips { flex-wrap: nowrap; overflow-x: auto; scroll-padding-inline: var(--cp-gutter, 20px); scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * var(--cp-gutter, 20px)); padding: 2px var(--cp-gutter, 20px); }
  .pick .chips::-webkit-scrollbar { display: none; }
  .pick .chip { flex: none; scroll-snap-align: start; }
  .chips-story .chip { font-size: var(--cp-font-body-small-size, 15px); }
  .when { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) 5em 5.4em; gap: 10px 8px; }
  .w-d, .w-m, .w-y, .w-e { width: auto; }
  .w-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .w-btns .cp-button { padding-inline: 6px; }
}
@media (max-width: 399px) {
  .when { grid-template-columns: 4em minmax(0, 1fr); }
  .w-btns { grid-template-columns: 1fr 1fr; } .w-btns #tonight { grid-column: 1 / -1; }
}

/* A date line can start with a weekday some languages write in lower case (mardi, вторник). */
.finding .sub::first-letter { text-transform: uppercase; }
/* Japanese and Chinese headings break between phrases, not inside a word. */
html[lang="ja"] .finding h2, html[lang="zh"] .finding h2 { word-break: auto-phrase; }
