/* The Bible places map (the whole Bible since 19 Nov 2026): the map page and the text under it. */

@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'); }
@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 Sectra'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.woff') format('woff'); }


/* Places in the Gospels and Acts (18 Nov 2026). Rebuilt as one layout the same day, at the owner's note that the map
   covered a third of a phone and the bars were stacked one fix on another.
   Ranked by what the reader came for: the land with the place on it gets the most room; then the place, its book and
   Previous and Next; then its verses; the search box; the way back, the title and About last and quietest.
   Laptops: one column on the left holds everything but the map (way back, title, search, books, the place, its
   verses), and the map takes the full height beside it.
   Phones: a two-line header and the search box above the map; under it a panel with the books and the place, which
   pulls up over the map to show the verses. */

:root {
  --page: #fffbf9;
  --band: #f8f2e8;
  --ink: #002159;
  --text: #002159;
  --muted: #56607a;
  --gold: #c58c23;
  --gold-ink: #8f6418;
  --line: #e6ded3;
  --rim: #cfc6b8;
  --focus: #0951b1;
  --paper: #efe5d3;
  --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; }
[hidden] { display: none !important; }

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

/* ---- header: one row. A back arrow beside the title, About at the right (owner, 18 Nov 2026). The addresses plugin
   still writes the way back's words ("Back to Interactive Bible", "Interactive Bible"); here they are the link's
   spoken name, and the arrow always points back. */
.head {
  grid-area: head; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 4px;
  padding: 6px var(--side) 10px; 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;
}
.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 search box */
.find-band { grid-area: find; padding: 0 var(--side) 12px; background: var(--page); position: relative; z-index: 19; }
.find { position: relative; }
.find-ico { position: absolute; inset-inline-start: 12px; top: 50%; margin-top: -10px; color: var(--gold); pointer-events: none; }
.find-field {
  width: 100%; min-height: 44px; margin: 0; padding: 0 12px; padding-inline-start: 40px; border: 1px solid var(--rim); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 400 16px/1.2 var(--body-font); -webkit-appearance: none; appearance: none;
}
.find-field::placeholder { color: var(--muted); opacity: 1; }
.find-field::-webkit-search-decoration { -webkit-appearance: none; }
.find-pop {
  position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 30; margin: 0; padding: 4px 0; list-style: none;
  max-height: min(360px, 52svh); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 33, 89, 0.18);
}
.find-pop li[data-id] { display: block; min-height: 44px; padding: 8px 14px; cursor: pointer; }
.find-pop li[aria-selected="true"] { background: var(--band); }
.fo-name { display: block; font: 400 17px/1.25 var(--body-font); color: var(--ink); }
.fo-name small { font: 400 14px/1.2 var(--label-font); color: var(--muted); }
.fo-books { display: block; margin-top: 2px; font: 400 13.5px/1.3 var(--label-font); color: var(--muted); }
.fo-none { padding: 10px 14px; font: 400 15px/1.4 var(--body-font); color: var(--muted); }

/* ---- 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; }
.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 zoom buttons, at the map's top corner */
.layers {
  position: absolute; inset-inline-start: 10px; top: 10px; z-index: 6; display: flex; align-items: center; padding: 2px; gap: 2px;
  background: rgba(255, 251, 249, 0.95); border: 1px solid var(--line); border-radius: var(--radius);
}
.layers-label { padding: 0 4px 0 8px; font: 400 13.5px/1 var(--label-font); color: var(--muted); white-space: nowrap; }
.layers button { min-height: 34px; padding: 0 9px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; font: 400 14px/1 var(--label-font); color: var(--ink); white-space: nowrap; }
.layers button:hover { background: var(--band); }
/* where a language's words do not fit on one line, "Zoom to" goes above the three buttons */
.layers.wrap { flex-wrap: wrap; max-width: calc(100% - 20px); }
.layers.wrap .layers-label { flex-basis: 100%; padding: 5px 8px 3px; }

/* the key and the scale, at the map's bottom corner */
.corner {
  position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 4; display: flex; align-items: center; gap: 12px;
  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;
}
.key { display: none; align-items: center; gap: 5px; white-space: nowrap; }
.key i { display: inline-block; width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.key i.k-unsure { border-style: dashed; background: transparent; }
.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; }

/* 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; width: 9px; height: 9px; left: -4.5px; top: -4.5px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.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.pos-below .stem { bottom: auto; top: 4px; }
.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.active .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.active .tagbox { font: 400 15px/1.15 var(--head-font); border-color: var(--ink); box-shadow: 0 1px 8px rgba(0, 33, 89, 0.18); }
.pin.region .dot, .pin.region .stem { display: none; }
.pin.region .tagbox { background: transparent; border: 0; padding: 0; color: #6b6150; font: italic 400 15px/1 var(--head-font); letter-spacing: 0.02em; text-shadow: 0 0 3px rgba(255, 251, 249, 0.95), 0 0 6px rgba(255, 251, 249, 0.8); transform: translate(-50%, 50%); bottom: 0; }
.pin.region.active .tagbox { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
#labels .pin .dot, #labels .pin .tagbox { pointer-events: auto; cursor: pointer; }
#labels .pin .dot::before { content: ''; position: absolute; inset: -12px; } /* a larger target than the dot */
.pin.unsure .dot { background: rgba(255, 251, 249, 0.6); border-style: dashed; }
.pin.unsure.active .dot { border-style: solid; background: var(--gold); }
.pin.dim .dot { width: 6px; height: 6px; left: -3px; top: -3px; border-width: 1.5px; opacity: 0.7; }
.pin.dim .tagbox { font-weight: 400; color: var(--muted); background: rgba(255, 251, 249, 0.8); }
.pin.dim.region .tagbox { color: #8d8576; background: transparent; }
.pin.alt .dot { background: transparent; border: 2px dashed var(--gold-ink); }
.pin.alt .tagbox { font: italic 400 13px/1.2 var(--label-font); color: var(--gold-ink); background: rgba(255, 251, 249, 0.9); border-style: dashed; }
.pin.alt .dot, .pin.alt .tagbox { pointer-events: none !important; cursor: default; }

/* ---- the panel: the books, the place with Previous and Next, then its verses */
.panel {
  grid-row: 3 / 5; 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); }

/* the five books: a segmented control */
.jwrap { flex: 0 0 auto; }
.journeys { display: flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; gap: 2px; background: #fff; }
.journeys button {
  flex: 1 1 auto; min-height: 38px; padding: 0 4px; border: 0; border-radius: 2px; background: transparent; cursor: pointer;
  font: 400 14.5px/1.1 var(--label-font); color: var(--ink); white-space: nowrap;
}
.journeys button:hover { background: var(--band); }
.bk-short { display: none; }
.journeys.tight .bk-long { display: none; }
.journeys.tight .bk-short { display: inline; }

/* Previous and Next: the design system's compact limestone buttons, the same size, the next place named in full */
.stepper { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 12px 0; }
.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 sign there is more; 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 .h { margin: 16px 0 4px; font: 500 14px/1.3 var(--label-font); color: var(--muted); }
.card-body .main-col > .h:first-child { margin-top: 0; }
.card-body .t { font: 400 16px/1.45 var(--body-font); color: var(--text); margin-top: 6px; }
.card-body .t:first-of-type { margin-top: 0; }
.card-body .sure { font-size: 16.5px; }
.card-body .note { color: var(--muted); font-size: 15px; }
.card-body .vs { list-style: none; margin: 0; padding: 0; }
.card-body .vs li { margin: 0 0 10px; }
.card-body .vs .q { font: 400 16px/1.45 var(--body-font); color: var(--text); }
.card-body .vs .q cite { display: block; margin-top: 3px; font: 400 13.5px/1.3 var(--label-font); font-style: normal; color: var(--muted); }
.card-body .vs mark { background: transparent; color: var(--ink); font-weight: 500; box-shadow: inset 0 -0.38em 0 rgba(197, 140, 35, 0.28); }
.card-body .more { margin: 4px 0 0; }
.card-body .legbox { margin-top: 16px; }
.card-body .legbox p { margin: 0 0 8px; font: 400 15px/1.45 var(--body-font); }
.card-body .links { list-style: none; margin: 0 0 6px; padding: 0; font: 400 15px/1.45 var(--body-font); }
.card-body .links li { margin: 0 0 4px; }
.card-body .links-row { font-size: 15px; }
.card-body .src-note { margin: 20px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font: 400 13.5px/1.4 var(--label-font); color: var(--muted); }
.card-body .src-note a { color: var(--muted); text-underline-offset: 2px; }
.card-body .to-list { margin-top: 16px; }
.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); }

/* tablets upright: the books keep the width their names need */
@media (min-width: 600px) and (max-width: 899px) { .journeys { max-width: 460px; } }

/* the smallest phones: the zoom label gives way to the three buttons */
@media (max-width: 380px) {
  :root { --side: 14px; }
  .layers-label { display: none; }
  .head h1 { font-size: 18.5px; }
  .journeys button { font-size: 14px; }
}

/* ================================================================ 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 auto auto minmax(0, 1fr);
    grid-template-areas: "head map" "find map" "books map" "step map" "card map";
  }
  .view { border-inline-start: 1px solid var(--line); }
  .head { padding: 16px var(--side) 0; }
  .head h1 { font-size: 20px; }
  .find-band { padding: 20px var(--side) 0; }
  .panel { display: contents; }
  .grab { display: none; }
  .jwrap { grid-area: books; padding: 12px var(--side) 0; }
  .journeys button { font-size: 15px; min-height: 38px; }
  .stepper { grid-area: step; padding: 14px 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 .t, .card-body .vs .q { font-size: 16px; }
  .layers { inset-inline-start: 16px; top: 16px; }
  .key { display: inline-flex; }
  .corner { inset-inline-end: 16px; bottom: 14px; }
  .pin .tagbox { font-size: 14px; }
}

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

/* Hide (H) and stills for the article (?still=1): only the land */
.show-ui { display: none; }
.hide-ui .head, .hide-ui .find-band, .hide-ui .panel, body.still .head, body.still .find-band, body.still .panel { display: none !important; }
.hide-ui .view, body.still .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;
}
body.still .corner, body.still .show-ui, body.still .loading, body.still .layers { display: none !important; }
body.still .app { min-height: 0; }

/* ================================================================ About this map */
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 { padding-left: 20px; margin: 0; }
[dir="rtl"] .sources { padding-left: 0; padding-right: 20px; }
.sources li { font: 400 15.5px/1.45 var(--body-font); margin: 6px 0; overflow-wrap: anywhere; }
@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 text under the map (reference.<lang>.html): the
   page reads without the map */
.rp { background: var(--page); color: var(--text); padding: 56px 24px 72px; font: 400 18px/1.55 var(--body-font); }
.rp__in { max-width: 44rem; margin: 0 auto; }
.rp a { color: var(--ink); text-underline-offset: 0.2em; }
.rp__back { margin: 0 0 32px; font-size: 16px; }
.rp__h { margin: 56px 0 8px; font: 400 32px/1.15 var(--head-font); color: var(--ink); }
.rp__in > .rp__h:first-of-type { margin-top: 0; }
.rp__sh { margin: 32px 0 8px; font: 400 22px/1.25 var(--head-font); color: var(--ink); }
.rp__lede { margin: 0 0 32px; }
.rp p { margin: 0 0 12px; }
.rp__j { margin: 48px 0 0; }
.rp__jh { margin: 0; font: 400 26px/1.2 var(--head-font); color: var(--ink); }
.rp__meta { font-size: 16px; }
.rp__map { display: block; width: 100%; height: auto; border-radius: 4px; }
.rp__do { margin: 12px 0 0; }
.rp__btn { display: inline-block; font: 500 15px/1.2 var(--body-font); color: var(--ink); background: none; border: 1px solid currentColor; border-radius: 4px; padding: 10px 14px; cursor: pointer; text-decoration: none; }
.rp__dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.rp__stops { margin: 24px 0 0; padding: 0 0 0 1.6em; }
[dir="rtl"] .rp__stops { padding: 0 1.6em 0 0; }
.rp__stops li { margin: 0 0 14px; }
.rp__place { font-weight: 500; color: var(--ink); }
.rp__ref { font-size: 16px; }
.rp__note { margin: 2px 0 0 !important; }
.rp__verse { margin: 2px 0 0 !important; font-size: 16px; }
.rp__sources { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.rp__sources li { margin: 0 0 8px; overflow-wrap: anywhere; }
.rp__muted { font-size: 16px; }
.rp__cite { overflow-wrap: anywhere; user-select: all; }
.rp__by { margin-top: 48px !important; font-size: 16px; }
@media (max-width: 640px) { .rp { padding: 40px 16px 56px; font-size: 17px; } .rp__h { font-size: 27px; } }

/* Printing: the text without the map; one journey on its own page when a journey's button was used. */
@media print {
  .app, dialog { display: none !important; }
  html, body { height: auto; background: #fff; }
  .rp { padding: 0; color: #000; font-size: 11pt; }
  .rp__in { max-width: none; }
  .rp__back, .rp__do, .rp__dl { display: none; }
  html[data-print] .rp__in > *:not(.is-print) { display: none !important; }
  html[data-print] .rp__j.is-print { margin: 0; }
  html[data-print] .rp__map { max-height: 9.5cm; width: auto; max-width: 100%; margin: 6pt 0; }
  html[data-print] .rp__verse { display: none; }
  html[data-print] .rp__stops { margin-top: 8pt; column-count: 2; column-gap: 14pt; font-size: 9pt; line-height: 1.25; }
  html[data-print] .rp__stops li { margin-bottom: 4pt; break-inside: avoid; }
  html[data-print] .rp__ref { font-size: 8.5pt; }
  html[data-print] .rp__j.is-print::after { content: "Free to copy for your church or class. Christian Pure, christianpure.com/pauls-missionary-journeys/"; display: block; margin-top: 8pt; font-size: 8pt; }
}
.rp__en { font-size: 15px; color: var(--muted); }
.rp__az .rp__place { text-decoration: none; }
.rp__az .rp__place:hover { text-decoration: underline; }
.rp__az .rp__note { font-size: 16px; color: var(--muted); }

/* ================================================================ the chosen book and zoom area (owner's pick, look B,
   18 Nov 2026): no fill; the chosen word in full ink with a gold line under it, the others quieter */
.journeys, .layers { background: rgba(255, 255, 255, 0.96); }
.journeys button, .layers button { color: var(--muted); position: relative; }
.journeys button[aria-selected="true"], .layers button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.journeys button[aria-selected="true"]::after, .layers button[aria-pressed="true"]::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--gold);
}

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

/* ================================================================ the book row for the whole Bible (owner's pick B,
   19 Nov 2026): sixty-six books do not fit the five-book control, so one button names the book and opens every book
   by part of the Bible. */
.jwrap { position: relative; }

.bk-pick {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--rim); border-radius: var(--radius); background: #fff; cursor: pointer; text-align: start;
}
.bk-pick:hover { border-color: var(--gold); }
.bk-pick-name { font: 500 16px/1.2 var(--label-font); color: var(--ink); }
.bk-pick-n { flex: 1 1 auto; font: 400 14px/1.2 var(--label-font); color: var(--muted); }
.bk-pick .ico { flex: 0 0 auto; color: var(--gold); transition: transform 0.2s ease; }
.bk-pick[aria-expanded="true"] .ico { transform: rotate(180deg); }
/* phones: the books rise as a sheet from the bottom, the page dimmed behind it */
.bk-sheet {
  position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 78vh; max-height: 78svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--page); border-radius: 14px 14px 0 0; box-shadow: 0 0 0 100vmax rgba(0, 33, 89, 0.3), 0 -6px 24px rgba(0, 33, 89, 0.16);
}
.bk-sheet-in { padding: 6px var(--side) calc(24px + env(safe-area-inset-bottom, 0px)); }
.bk-group h3 { margin: 16px 0 8px; font: 500 14px/1.3 var(--label-font); color: var(--muted); }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.bk-grid button {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; text-align: start;
  font: 400 15px/1.2 var(--label-font); color: var(--ink);
}
.bk-grid button small { flex: 0 0 auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-grid button:hover { border-color: var(--gold); }
.bk-grid button[aria-current="true"] { border-color: var(--gold); font-weight: 500; box-shadow: inset 0 -2px 0 var(--gold); }
/* laptops: the books drop down inside the left column */
@media (min-width: 900px) {
  .bk-sheet {
    position: absolute; inset: calc(100% + 6px) var(--side) auto; max-height: min(70vh, 640px);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 33, 89, 0.18);
  }
  .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .bk-pick .ico { transition: none; } }

body.bk-open .panel { z-index: 40; }

/* the A to Z list carries no numbers: with 1,246 places they only took width (and spilled past a phone's edge in
   Arabic), and an alphabetical order needs none (19 Nov 2026) */
.rp__stops.rp__az, [dir="rtl"] .rp__stops.rp__az { list-style: none; padding: 0; }
