/* Where is Mount Sinai? A full-screen viewer that opens from an article on christianpure.com.
   Built from the live Ararat viewer (layout A: the land fills the screen, the place's words beneath).
   Brand type of 5 Nov 2026: GT Sectra for headings and Scripture, GT Pantheon Text for reading, GT Pantheon Micro for
   small text, labels and controls. The fonts load from the site itself. */

@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular-ext.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular-ext.woff2') format('woff2'); unicode-range: U+0100-0130,U+0132-0151,U+0154-02BA,U+02BD-02C5,U+02C7-02D9,U+02DB,U+02DD-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+0370-03FF,U+1E00-1EFF,U+2070-20AB,U+20AD-2115,U+2117-2121,U+2123-218F,U+219A-2211,U+2213-2214,U+2216-25FF,U+2700-27BF,U+E000-F8FF,U+FB05-FEFE,U+1F000-1FFFF; }
@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Medium.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Medium.woff2') format('woff2'); }
@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Medium-ext.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Medium-ext.woff2') format('woff2'); unicode-range: U+0100-0130,U+0132-0151,U+0154-02BA,U+02BD-02C5,U+02C7-02D9,U+02DB,U+02DD-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+0370-03FF,U+1E00-1EFF,U+2070-20AB,U+20AD-2115,U+2117-2121,U+2123-218F,U+219A-2211,U+2213-2214,U+2216-25FF,U+2700-27BF,U+E000-F8FF,U+FB05-FEFE,U+1F000-1FFFF; }
@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.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.woff2') format('woff2'); }
@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-ext.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular-Italic-ext.woff2') format('woff2'); unicode-range: U+0100-0130,U+0132-0151,U+0154-02BA,U+02BD-02C5,U+02C7-02D9,U+02DB,U+02DD-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+0370-03FF,U+1E00-1EFF,U+2070-20AB,U+20AD-2115,U+2117-2121,U+2123-218F,U+219A-2211,U+2213-2214,U+2216-25FF,U+2700-27BF,U+E000-F8FF,U+FB05-FEFE,U+1F000-1FFFF; }
@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'); }

/* One shell for every map (18 Nov 2026), after the Bible places map the owner approved that day.
   Ranked by what the reader came for: the land with the proposed mountains and the current one gets the most room;
   then the place's name with Previous and Next; then who proposed it and the case for and against, only when asked
   for; the way back, the title and About last and quietest.
   Phones: a one-row header, the map, and under it a panel that shows Previous and Next and the place's name; pulled up,
   it shows the rest. Laptops: one column on the left holds everything but the map; the map takes the full height. */

:root {
  --page: #fffbf9;
  --band: #f8f2e8;
  --ink: #002159;
  --text: #002b63;
  --muted: #56607a;
  --gold: #c58c23;
  --gold-ink: #8f6418;
  --line: #e6ded3;
  --rim: #cfc6b8;
  --focus: #0951b1;
  --paper: #efe5d3;
  --water: #3d6784;
  --sky-top: #e3e8ea;
  --sky-mid: #eceee9;
  --sky-low: #f6f0e5;
  --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;
  --radius: 4px; /* the design system's button.radius */
  --side: 16px;  /* the page's side gutter */
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); }
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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ================================================================ the frame: it fills the screen and never scrolls */
.app {
  display: grid; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; overflow: clip;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) var(--peek, 140px);
  grid-template-areas: "head" "map" "panel";
}

/* ---- header: one row. The way back, the title, About at the right. */
.head {
  grid-area: head; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 4px;
  padding: 6px var(--side) 6px; padding-top: max(6px, env(safe-area-inset-top));
  background: var(--page); position: relative; z-index: 20;
}
.back {
  display: inline-grid; place-items: center; width: 40px; height: 44px; margin-inline-start: -10px;
  color: var(--gold); text-decoration: none; border-radius: var(--radius);
}
.head a.back.cp-fwd { padding: 0; }
.head a.back.cp-fwd .back-arrow, .back-arrow { display: inline-grid; place-items: center; }
.head a.back .cp-fwd-arrow { display: none !important; }
.back-arrow .ico { width: 24px; height: 24px; }
.back:hover { color: var(--gold-ink); }
.back-words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.head h1 { margin: 0; min-width: 0; font: 400 20px/1.15 var(--head-font); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.head-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0 0 12px; border: 0; background: none; cursor: pointer;
  font: 400 15px/1.2 var(--label-font); color: var(--ink); text-decoration: none; white-space: nowrap;
}
[dir="rtl"] .head-btn { padding: 0 12px 0 0; }
.head-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.ico { display: block; flex: 0 0 auto; }
[dir="rtl"] .ico.flip { transform: scaleX(-1); }

/* ---- the map */
.view {
  grid-area: map; position: relative; min-width: 0; min-height: 0; overflow: hidden; overflow: clip;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-low) 78%, #f8f2e8 100%);
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
#gl:active { cursor: grabbing; }
#gl:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; direction: ltr; }
.loading {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 24px; text-align: center; z-index: 20;
  font: 400 17px var(--body-font); color: var(--muted); background: var(--paper); transition: opacity 0.4s;
}
.loading.done { opacity: 0; pointer-events: none; }

/* the scale, the heights note and north, small in one corner (the land is turned, so north helps read it) */
.corner {
  position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 4; display: flex; align-items: center; gap: 10px;
  font: 400 12.5px/1 var(--label-font); color: var(--muted); pointer-events: none;
  background: rgba(255, 251, 249, 0.86); padding: 5px 8px; border-radius: 5px;
}
.scale { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.scale-line { display: inline-block; height: 6px; border: 1.5px solid #7d8496; border-top: 0; width: 60px; }
.corner-note { white-space: nowrap; }
.north { display: inline-flex; align-items: center; gap: 2px; line-height: 1; font-weight: 500; }
.north-arrow { display: inline-block; font-size: 13px; }
.view-note {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 6; margin: 0; max-width: min(460px, calc(100% - 32px));
  background: rgba(0, 33, 89, 0.88); color: #fff; font: 400 14px/1.35 var(--body-font); padding: 7px 12px; border-radius: 6px; text-align: center; pointer-events: none;
}

/* labels on the land: small on purpose, the one place small type belongs */
.pin { position: absolute; left: 0; top: 0; will-change: transform; }
.pin .dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px rgba(255, 251, 249, 0.92); }
.pin .stem { position: absolute; left: -0.5px; bottom: 4px; width: 1px; height: 18px; background: rgba(0, 33, 89, 0.5); }
.pin .tagbox {
  position: absolute; left: 0; bottom: 22px; transform: translateX(-50%); white-space: nowrap;
  font: 500 13px/1.2 var(--label-font); letter-spacing: 0.01em; color: var(--ink);
  background: rgba(255, 251, 249, 0.95); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px;
}
.pin .tagbox b { font-weight: 500; }
.pin .tagbox small { font-weight: 400; color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; }
.pin .tagbox .who { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: normal; max-width: 210px; }
.pin.pos-below .stem { bottom: auto; top: 4px; }
.pin.pos-above-far .stem { height: 48px; }
.pin.pos-above-far .tagbox { bottom: 52px; }
.pin.pos-below-far .stem { bottom: auto; top: 4px; height: 48px; }
.pin.pos-below-far .tagbox { bottom: auto; top: 52px; }
.pin.pos-below .tagbox { bottom: auto; top: 22px; }
.pin.pos-right .stem, .pin.pos-left .stem { display: none; }
.pin.pos-right .tagbox { bottom: auto; top: -12px; left: 11px; transform: none; }
.pin.pos-left .tagbox { bottom: auto; top: -12px; left: auto; right: 11px; transform: none; }
.pin.candidate .dot { width: 14px; height: 14px; left: -7px; top: -7px; background: var(--gold); border: 3px solid var(--ink); box-shadow: 0 0 0 2px rgba(255, 251, 249, 0.92); }
.pin.candidate .tagbox b { font: 400 15px/1.15 var(--head-font); letter-spacing: 0; }
.pin.candidate.active .tagbox { border-color: var(--ink); box-shadow: 0 1px 8px rgba(0, 33, 89, 0.18); }
.pin.active .tagbox { border-color: #b9c3d6; }
.pin.peak .dot { width: 0; height: 0; left: -5px; top: -7px; border-radius: 0; background: transparent; box-shadow: none; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #6f6a60; }
.pin.peak .tagbox { background: rgba(248, 242, 232, 0.9); font-weight: 400; }
.pin.church .dot { border-radius: 1px; width: 9px; height: 9px; left: -4.5px; top: -4.5px; }
.pin.site .dot { width: 6px; height: 6px; left: -3px; top: -3px; background: var(--gold-ink); }
.pin.site .tagbox { background: rgba(248, 242, 232, 0.9); font-weight: 400; font-size: 12.5px; padding: 2px 6px; }
.pin.site .tagbox em { font-style: normal; color: var(--gold-ink); margin-left: 5px; }
.pin.water .tagbox { background: transparent; border: 0; color: var(--water); font: italic 450 15px/1 var(--head-font); bottom: -8px; padding: 0; text-shadow: 0 0 3px rgba(255, 251, 249, 0.9); }
.pin.water .dot, .pin.water .stem { display: none; }

/* a picture that belongs to a place, on laptops (place.json "photos"; none at present) */
.inset {
  position: absolute; z-index: 5; margin: 0; inset-inline-end: 16px; top: 16px; width: 316px;
  background: var(--page); border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 7px; box-shadow: 0 2px 14px rgba(0, 33, 89, 0.1);
}
.inset img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--paper); }
.inset figcaption { font: 400 12.5px/1.3 var(--label-font); color: var(--muted); margin: 5px 2px 0; }
.inset figcaption a { color: inherit; }

/* ---- the panel: Previous and Next, the place, then its case */
.panel {
  grid-row: 2 / 4; grid-column: 1; align-self: end; position: relative; z-index: 12; overflow: hidden;
  display: flex; flex-direction: column; height: var(--peek, 140px);
  padding: 0 var(--side); padding-bottom: env(safe-area-inset-bottom);
  background: var(--page); border-top: 1px solid var(--line);
  transition: height 0.28s ease, border-radius 0.28s ease, box-shadow 0.28s ease;
}
.panel.open { height: 74%; border-top-color: transparent; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 24px rgba(0, 33, 89, 0.16); }
.grab { flex: 0 0 auto; display: grid; place-items: center; height: 24px; margin: 0 calc(-1 * var(--side)); padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; }
.grab::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: #c8beaf; }
.grab:hover::before { background: var(--gold); }

/* Previous and Next: the design system's compact limestone buttons, the same size, the next place named */
.stepper { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 2px 0 12px; }
.step.cp-button { min-height: 44px; height: 44px; gap: 6px; padding-inline: 10px 14px; font: 500 15px/1 var(--label-font); white-space: nowrap; }
.step.next.cp-button { justify-content: space-between; padding-inline: 14px 10px; min-width: 0; }
.step .ico { color: var(--gold); }
.step-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* the place's name heads what is under the panel's edge */
.here-name { margin: 0 0 12px; font: 400 21px/1.2 var(--head-font); color: var(--ink); letter-spacing: -0.01em; }

/* closed, the panel shows the first line under its edge; a tap on it pulls the panel up */
.card-body { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; padding: 14px 0 20px; border-top: 1px solid var(--line); cursor: pointer; }
.panel.open .card-body { overflow-y: auto; overscroll-behavior: contain; cursor: auto; }
.card-body p, .card-body blockquote { margin: 0; }
.card-body .lede { margin: 0 0 10px; font: 400 18px/1.3 var(--head-font); color: var(--ink); text-wrap: balance; }
.card-body .q { font: italic 450 17.5px/1.34 var(--head-font); color: var(--ink); letter-spacing: -0.005em; }
.card-body .q cite { display: block; margin-top: 3px; font: 400 13.5px/1.3 var(--label-font); font-style: normal; color: var(--muted); }
.card-body .t { font: 400 16px/1.45 var(--body-font); color: var(--text); margin-top: 8px; }
.card-body .facts { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font: 400 15px/1.35 var(--body-font); color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.card-body .facts li span { display: block; font: 400 13.5px/1.3 var(--label-font); color: var(--muted); }
.card-body .facts .btn { margin-top: 4px; }
.card-body .who-list { list-style: none; margin: 6px 0 0; padding: 0; }
.card-body .who-list li { font: 400 15px/1.38 var(--body-font); padding: 3px 0; }
.card-body .who-list b { font-weight: 500; color: var(--ink); }
.card-body .extra { padding-top: 6px; }
.card-body .extra .t { font-size: 15.5px; }
.btn {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--rim); display: inline-flex; align-items: center;
  background: #fff; font: 500 15px/1 var(--label-font); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--gold); }
.btn.on { border-color: var(--ink); }

/* the smallest phones */
@media (max-width: 380px) {
  :root { --side: 14px; }
  .stepper { gap: 6px; }
  .step.cp-button { padding-inline: 8px 12px; gap: 4px; }
  .step.next.cp-button { padding-inline: 12px 6px; }
  .head h1 { font-size: 18.5px; }
}

/* ================================================================ laptops and tablets on their side: the column on the
   left, the map the full height beside it */
@media (min-width: 900px) {
  :root { --side: 28px; }
  .app {
    grid-template-columns: clamp(380px, 30vw, 460px) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "head map" "step map" "card map";
  }
  .view { border-inline-start: 1px solid var(--line); }
  .head { padding: 16px var(--side) 0; }
  .head h1 { font-size: 20px; }
  .panel { display: contents; }
  .grab { display: none; }
  .stepper { grid-area: step; padding: 20px var(--side) 18px; }
  .here-name { font-size: 28px; margin-bottom: 14px; }
  .card-body { grid-area: card; overflow-y: auto; overscroll-behavior: contain; cursor: auto; padding: 18px var(--side) 28px; }
  .card-body .lede { font-size: 19px; }
  .corner { inset-inline-end: 16px; bottom: 14px; }
  .pin .tagbox { font-size: 14px; }
  .pin.candidate .tagbox b { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) { .loading, .panel { transition: none; } }

/* Hide (H): only the land */
.show-ui { display: none; }
.hide-ui .head, .hide-ui .panel, .hide-ui .inset { display: none !important; }
.hide-ui .view { grid-row: 1 / -1; grid-column: 1 / -1; border: 0; }
.hide-ui .show-ui {
  display: block; position: absolute; inset-inline-end: 12px; top: 12px; z-index: 16; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 251, 249, 0.95); font: 400 16px var(--body-font); color: var(--ink); cursor: pointer;
}

/* ================================================================ About this view */
dialog#about {
  width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); 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 { margin: 0; font: 400 24px/1.2 var(--head-font); color: var(--ink); letter-spacing: -0.01em; }
.about-body { padding: 4px 24px 28px; }
.about-body h3 { margin: 26px 0 8px; font: 400 21px/1.25 var(--head-font); color: var(--ink); }
.about-body p { font: 400 17px/1.5 var(--body-font); margin: 0 0 12px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font: 400 16px/1.4 var(--body-font); }
kbd {
  font: 500 13px/1 var(--label-font); min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 5px;
  border: 1px solid #d9d1c6; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink);
}
.sources, .more { padding-left: 20px; margin: 0; }
[dir="rtl"] .sources, [dir="rtl"] .more { padding-left: 0; padding-right: 20px; }
.sources li, .more li { font: 400 15.5px/1.45 var(--body-font); margin: 6px 0; overflow-wrap: anywhere; }
.more li { font-size: 16.5px; }
@media (max-width: 899px) {
  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-head h2 { font-size: 22px; }
  .about-body { padding: 2px 18px 28px; }
  .about-body p { font-size: 16.5px; }
}

/* the handle shows keyboard focus as a blue handle, not a ring the full width of the panel (18 Nov 2026) */
.grab:focus { outline: none; }
.grab:focus-visible::before { background: var(--focus, #0951b1); box-shadow: 0 0 0 3px rgba(9, 81, 177, 0.25); }
@media (hover: none) { .grab:hover::before { background: #c8beaf; } }
