/* Interactive Bible Map (/bible-maps/maps.js): the map fills the screen; the controls float on it */
.jm {
  background: #eef3f7;
}
.jm-stage {
  position: relative;
  height: calc(100vh - 76px);
  height: calc(100dvh - 76px);
  min-height: 560px;
}
.jm-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #dfe8ee;
}
.jm-top {
  position: absolute;
  z-index: 500;
  top: 14px;
  left: 14px;
  right: 420px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.jm-top > * {
  pointer-events: auto;
}
.jm-h {
  width: 100%;
  margin: 0 0 2px;
  font: 800 22px/1.1 var(--display, var(--ui));
  color: var(--night, #0f3d7a);
  text-shadow:
    0 1px 0 #fff,
    0 0 12px rgba(255, 255, 255, 0.9);
}
.jm-who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.jm-p {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 29, 43, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink, #0f1d2b);
  font: 800 14px/1.2 var(--ui);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 29, 43, 0.12);
  backdrop-filter: blur(6px);
}
.jm-p.on {
  background: var(--night, #0f3d7a);
  border-color: var(--night, #0f3d7a);
  color: #fff;
}
.jm-p.jm-tl {
  background: linear-gradient(135deg, #f5d36b, #e0a92b);
  border-color: #c9962a;
  color: #2a1d00;
}
.jm-p.jm-tl.on {
  box-shadow:
    0 0 0 3px var(--night, #0f3d7a),
    0 2px 8px rgba(15, 29, 43, 0.2);
}
.jm-more-p select {
  min-height: 38px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 29, 43, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink, #0f1d2b);
  font: 700 14px/1 var(--ui);
  box-shadow: 0 2px 8px rgba(15, 29, 43, 0.12);
  max-width: 260px;
}
.jm-more-p select.on {
  background: var(--night, #0f3d7a);
  color: #fff;
}
/* the first-visit welcome */
.jm-intro {
  position: absolute;
  z-index: 700;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 24, 48, 0.45);
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}
.jm-intro.in {
  opacity: 1;
}
.jm-intro p {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font: 800 clamp(28px, 5vw, 52px) / 1.1 var(--display, var(--ui));
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(12px);
  transition: transform 1.2s ease;
}
.jm-intro.in p {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .jm-intro,
  .jm-intro p {
    transition: none;
  }
}
/* Back / Next on the map */
.jm-nav {
  position: absolute;
  z-index: 500;
  left: calc((100% - 400px) / 2);
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(15, 29, 43, 0.22);
}
.jm-nb {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #e8f1fa;
  color: var(--night, #0f3d7a);
  font: 800 16px/1 var(--ui);
  cursor: pointer;
}
.jm-nb-next {
  background: var(--night, #0f3d7a);
  color: #fff;
}
.jm-nb:disabled {
  opacity: 0.35;
  cursor: default;
}
.jm-pos {
  min-width: 96px;
  text-align: center;
  font: 700 14px/1.2 var(--ui);
  color: var(--ink, #0f1d2b);
}
/* the side panel */
.jm-side {
  position: absolute;
  z-index: 600;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 386px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
}
.jm-tools {
  display: flex;
  gap: 8px;
}
.jm-tb {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line, #d6e1e9);
  background: #fff;
  color: var(--night, #0f3d7a);
  font: 800 14px/1 var(--ui);
  cursor: pointer;
}
.jm-tb[aria-pressed='true'] {
  background: var(--night, #0f3d7a);
  color: #fff;
}
.jm-all {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line, #d6e1e9);
}
.jm-all summary {
  padding: 12px 16px;
  font: 800 14px/1.3 var(--ui);
  cursor: pointer;
}
.jm-all .jm-list {
  border: 0;
  border-top: 1px solid var(--line, #d6e1e9);
  border-radius: 0 0 18px 18px;
}
.jm-c-y {
  margin: 0 0 4px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff6dc;
  color: #6b4d00;
  font: 800 12px/1.4 var(--ui);
}
.jm-more {
  margin: 0 0 14px;
  border-radius: 12px;
  background: #f4f8fb;
}
.jm-more summary {
  padding: 10px 12px;
  font: 800 14px/1.3 var(--ui);
  color: var(--night, #0f3d7a);
  cursor: pointer;
}
.jm-more .jm-c-f {
  margin: 0;
  padding: 0 12px 12px;
}
.jm-note {
  margin: 0 auto;
  padding: 14px 20px 24px;
  font-size: 13px;
  color: var(--muted, #5b6b7b);
}
@media (max-width: 899px) {
  .jm-stage {
    height: auto;
    min-height: 0;
  }
  .jm-map {
    position: relative;
    inset: auto;
    height: 64vh;
    min-height: 380px;
  }
  .jm-top {
    right: 14px;
  }
  .jm-h {
    font-size: 18px;
  }
  .jm-who {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
  }
  .jm-p {
    flex: none;
  }
  .jm-nav {
    position: absolute;
    left: 50%;
    top: calc(64vh - 76px);
    bottom: auto;
  }
  .jm-side {
    position: static;
    width: auto;
    padding: 14px;
    overflow: visible;
  }
}
.jm-c {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line, #d6e1e9);
  border-top: 5px solid var(--c);
  box-shadow: 0 6px 24px rgba(15, 29, 43, 0.08);
}
.jm-c-k {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font: 700 13px/1.3 var(--ui);
  color: var(--c);
}
.jm-c-k span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font: 800 13px/1 var(--ui);
}
.jm-c h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}
.jm-c h2 small {
  font: 600 13px/1 var(--ui);
  color: var(--muted, #5b6b7b);
}
.jm-c-e {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}
.jm-c-f {
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.jm-c-f div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
}
.jm-c-f dt {
  font-weight: 700;
  color: var(--muted, #5b6b7b);
}
.jm-c-f dd {
  margin: 0;
}
.jm-c-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.jm-c-go {
  flex-wrap: wrap;
}
.jm-back {
  min-height: 44px;
}
.jm-list {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
  max-height: 340px;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line, #d6e1e9);
}
.jm-leg {
  padding: 10px 0 4px;
  font: 800 11px/1.3 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c);
}
.jm-s button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 4px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: 600 15px/1.3 var(--ui);
  text-align: left;
  cursor: pointer;
}
.jm-s button span {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--c);
  color: var(--c);
  font: 800 11px/1 var(--ui);
}
.jm-s.on button {
  background: rgba(91, 194, 247, 0.14);
  font-weight: 800;
}
.jm-s.on button span {
  background: var(--c);
  color: #fff;
}
/* the stops on the map */
.jm-d {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c);
  color: var(--c);
  font: 800 11px/1 var(--ui);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.jm-d.faint {
  width: 12px;
  height: 12px;
  border-width: 2px;
  background: var(--c);
  opacity: 0.35;
  box-shadow: none;
}
.jm-d.prev {
  opacity: 0.9;
}
.jm-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jm-d.past {
  background: var(--c);
  color: #fff;
  opacity: 0.75;
}
.jm-d.on {
  background: var(--c);
  color: #fff;
  border-color: #fff;
  transform: scale(1.35);
  box-shadow:
    0 0 0 3px var(--c),
    0 3px 10px rgba(0, 0, 0, 0.35);
  animation: jmPulse 1.8s ease-out infinite;
}
@keyframes jmPulse {
  0% {
    box-shadow:
      0 0 0 3px var(--c),
      0 0 0 3px var(--c);
  }
  100% {
    box-shadow:
      0 0 0 3px var(--c),
      0 0 0 16px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jm-d.on {
    animation: none;
  }
}
/* the Bible button on this page wears Heart Turn Global's colours */
.hb {
  --hb-pink: #5bc2f7;
  --hb-green: #1d5fb3;
}
/* the Bible button sits above the voice button; while the Bible is open, the page's voice button steps aside */
.hb-fab,
.hb-bar {
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px);
}
html.hb-lock .hv-btn,
html.hb-side .hv-btn {
  display: none;
}
@media (min-width: 900px) {
  /* on a wide screen the voice and Bible buttons sit left of the stop panel */
  body .hv-btn,
  .hb-fab,
  .hb-bar {
    right: 416px;
  }
}
.jm-whois {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--night, #0f3d7a);
  color: #fff;
}
.jm-whois p {
  margin: 0;
}
.jm-wi-n {
  font: 800 18px/1.2 var(--display, var(--ui));
}
.jm-wi-p {
  margin-top: 2px !important;
  font: 700 14px/1.4 var(--ui);
  color: #ffe08a;
}
.jm-wi-l {
  margin-top: 4px !important;
  font-size: 14px;
  line-height: 1.45;
}
.jm-wi-r {
  margin-top: 4px !important;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
/* ancient / modern */
html.jm-ancient .jm-map {
  background: #e8e0c8;
}
.jm-base {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(15, 29, 43, 0.12);
}
.jm-base button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink, #0f1d2b);
  font: 700 13px/1 var(--ui);
  cursor: pointer;
}
.jm-base button.on {
  background: #6b4d00;
  color: #fff;
}
/* hide / show the panel */
.jm-hide {
  align-self: flex-end;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line, #d6e1e9);
  border-radius: 999px;
  background: #fff;
  color: var(--night, #0f3d7a);
  font: 800 13px/1 var(--ui);
  cursor: pointer;
}
.jm-show {
  position: absolute;
  z-index: 600;
  top: 14px;
  right: 14px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--night, #0f3d7a);
  color: #fff;
  font: 800 14px/1 var(--ui);
  box-shadow: 0 4px 14px rgba(15, 29, 43, 0.25);
  cursor: pointer;
}
html.jm-hidepanel .jm-side {
  display: none;
}
html.jm-hidepanel .jm-top {
  right: 180px;
}
html.jm-hidepanel .jm-nav {
  left: 50%;
}
/* promises kept, and others who stood here */
.jm-pf {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6dc;
  border-left: 4px solid #e0a92b;
  font-size: 14px;
  line-height: 1.5;
}
.jm-pf p {
  margin: 0 0 6px;
}
.jm-pf p:last-child {
  margin: 0;
}
.jm-pf-h,
.jm-ot-h {
  font: 800 12px/1.3 var(--ui) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b4d00;
}
.jm-ot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.jm-ot-h {
  width: 100%;
  margin: 0;
  color: var(--muted, #5b6b7b);
}
.jm-ot-b {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line, #d6e1e9);
  background: #fff;
  color: var(--night, #0f3d7a);
  font: 700 13px/1.2 var(--ui);
  cursor: pointer;
}
.jm-ot-b small {
  font-weight: 600;
  color: var(--muted, #5b6b7b);
}
.jm-ot-b.same {
  border-color: #e0a92b;
  background: #fff6dc;
}
.jm-hear small {
  font-weight: 600;
  opacity: 0.75;
}
.jm-hear.on {
  background: var(--night, #0f3d7a);
  color: #fff;
}
/* the line of promise */
.jm-ln {
  margin: 0;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line, #d6e1e9);
  line-height: 2.1;
  font-size: 14px;
}
.jm-ln-b {
  padding: 3px 10px;
  border: 1px solid #c9962a;
  border-radius: 999px;
  background: #fff6dc;
  color: #4a3500;
  font: 700 13px/1.2 var(--ui);
  cursor: pointer;
}
.jm-ln-s {
  color: var(--muted, #5b6b7b);
  font-weight: 600;
}
.jm-ln-a {
  margin: 0 4px;
  color: #c9962a;
}
/* the quiz */
.jm-quiz {
  position: fixed;
  z-index: 9500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 24, 48, 0.55);
}
.jm-quiz-in {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 26px 22px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.jm-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eef3f7;
  color: var(--ink, #0f1d2b);
  font: 700 26px/1 var(--ui);
  cursor: pointer;
}
.jm-q-k {
  margin: 0 0 4px;
  font: 700 13px/1.3 var(--ui);
  color: var(--muted, #5b6b7b);
}
.jm-quiz h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.jm-q-e {
  font-size: 17px;
  line-height: 1.55;
}
.jm-q-o {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.jm-q-b {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line, #d6e1e9);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #0f1d2b);
  font: 700 16px/1.2 var(--ui);
  text-align: left;
  cursor: pointer;
}
.jm-q-b.right {
  border-color: #2f9e44;
  background: #e8f7ec;
}
.jm-q-b.wrong {
  border-color: #d6455d;
  background: #fdecef;
}
.jm-q-r {
  font: 800 16px/1.4 var(--ui);
}
.jm-q-go {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 899px) {
  .jm-hide,
  .jm-show {
    display: none;
  }
}
/* heartturnkids.org: the little walker, and brighter buttons */
.jm-walk {
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
.jm-kids .jm-p,
.jm-kids .jm-nb,
.jm-kids .jm-tb {
  font-family: 'Poppins', var(--ui);
}
.jm-kids .jm-nb-next,
.jm-kids .jm-p.on {
  background: #5b3fc4;
  border-color: #5b3fc4;
}
.jm-kids .jm-h {
  color: #5b3fc4;
}
/* (heartturnkids.org's styles don't hide [hidden] or .vh on their own) */
.jm [hidden] {
  display: none !important;
}
.jm .vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.jm-wi-b {
  margin-top: 4px !important;
  font: 700 13px/1.4 var(--ui);
  color: #bfe6ff;
}
/* each person's colour */
.jm-p:not(.jm-tl)::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--pc, #0f3d7a);
  vertical-align: 1px;
}
.jm-p.on:not(.jm-tl) {
  background: var(--pc, #0f3d7a);
  border-color: var(--pc, #0f3d7a);
}
.jm-p.on:not(.jm-tl)::before {
  background: #fff;
}
.jm-whois {
  border-left: 6px solid var(--pc, #0f3d7a);
}
/* the Bible open beside the map: the map and its buttons make room and stay behind it */
.jm-stage {
  isolation: isolate;
  z-index: 0;
}
@media (min-width: 900px) and (max-width: 1599px) {
  html.hb-side .jm-stage {
    margin-right: var(--hb-w, 440px);
  }
  html.hb-side .jm-side {
    display: none;
  }
  html.hb-side .jm-top {
    right: 14px;
  }
  html.hb-side .jm-nav {
    left: 50%;
  }
  html.hb-side .jm-show {
    display: none;
  }
}
.jm-cred {
  margin: 0 auto 24px;
  font-size: 13px;
  color: var(--muted, #5b6b7b);
}
.jm-cred summary {
  font-weight: 700;
  cursor: pointer;
}
.jm-cred p {
  margin: 8px 0 0;
  line-height: 1.55;
}
/* the names of each age on the ancient map */
.jm-era {
  display: inline-block;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font:
    italic 600 15px/1 Georgia,
    'Source Serif 4',
    serif;
  letter-spacing: 0.04em;
  color: #6b4d1a;
  text-shadow:
    0 0 3px #f4ecd6,
    0 0 6px #f4ecd6;
  pointer-events: none;
}
.jm-eran {
  width: 100%;
  margin: 0;
  font:
    italic 700 13px/1.3 Georgia,
    serif;
  color: #6b4d1a;
  text-shadow: 0 0 6px #fff;
}
/* the stop's verse */
.jm-vs {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8fb;
}
.jm-vs-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.jm-vsel {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line, #d6e1e9);
  border-radius: 8px;
  background: #fff;
  font: 700 13px/1 var(--ui);
}
.jm-vs-t {
  margin: 8px 0 0;
  font:
    16px/1.55 'Source Serif 4',
    Georgia,
    serif;
}
/* save this place, and the list */
.jm-save.on {
  background: #2f9e44;
  border-color: #2f9e44;
  color: #fff;
}
.jm-tr {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--line, #d6e1e9);
  font-size: 14px;
}
.jm-tr-none {
  margin: 8px 0 0;
  color: var(--muted, #5b6b7b);
}
.jm-tr-c {
  margin: 12px 0 4px;
  font: 800 12px/1.3 var(--ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #5b6b7b);
}
.jm-tr ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jm-tr li {
  padding: 8px 0;
  border-bottom: 1px solid #eef3f7;
}
.jm-tr li small {
  display: block;
  color: var(--muted, #5b6b7b);
}
.jm-tr li span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.jm-tr li a,
.jm-tr li button {
  border: 0;
  background: none;
  padding: 0;
  color: #1d5fb3;
  font: 700 13px/1.4 var(--ui);
  text-decoration: underline;
  cursor: pointer;
}
.jm-tr-go {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
/* the plain land-and-sea map under the ancient names gets a parchment tone */
html.jm-ancient .jm-map .leaflet-gl-layer,
html.jm-ancient .jm-map .maplibregl-canvas {
  filter: sepia(0.45) saturate(1.25) brightness(0.97);
}
/* All stops on the map */
.jm-nb-all {
  background: #fff6dc;
  color: #6b4d00;
}
.jm-nb-all[aria-pressed='true'] {
  background: #6b4d00;
  color: #fff;
}
/* compare */
.jm-cmpb {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b3fc4, #1d5fb3);
  color: #fff;
  font: 800 13px/1 var(--ui);
  box-shadow: 0 2px 8px rgba(15, 29, 43, 0.18);
  cursor: pointer;
}
html.jm-comparing .jm-nav,
html.jm-comparing #jmCard,
html.jm-comparing .jm-whois,
html.jm-comparing .jm-tools {
  display: none;
}
.jm-pk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  max-height: 46vh;
  overflow: auto;
  margin: 12px 0;
}
.jm-pk-i {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line, #d6e1e9);
  border-left: 5px solid var(--pc);
  border-radius: 10px;
  font: 700 14px/1.2 var(--ui);
  cursor: pointer;
}
.jm-pk-i input {
  width: 18px;
  height: 18px;
  accent-color: var(--pc);
}
.jm-pk-n {
  margin: 8px 0 0;
  color: #d6455d;
  font-weight: 700;
}
.jm-cm-l {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.jm-cm-k {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pc);
  color: #fff;
  font: 800 13px/1.4 var(--ui);
}
.jm-cx {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  max-height: 48vh;
  overflow: auto;
}
.jm-cx button {
  display: block;
  width: 100%;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid #eef3f7;
  background: none;
  color: inherit;
  font: 15px/1.35 var(--ui);
  text-align: left;
  cursor: pointer;
}
.jm-cx small {
  display: block;
  color: var(--muted, #5b6b7b);
}
.jm-cx-s {
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff6dc;
  color: #6b4d00;
  font: 800 11px/1.5 var(--ui);
}
.jm-x-m {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #e0a92b;
  background: rgba(255, 246, 220, 0.45);
  box-shadow: 0 0 0 2px #fff;
}
.jm-x-m.same {
  border-color: #d6455d;
  box-shadow:
    0 0 0 2px #fff,
    0 0 12px rgba(214, 69, 93, 0.7);
}
/* the top of the map: every name on one line (scrolls sideways if it must), then More people, the map
   switch, the age and Compare on the line below */
.jm-who {
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.jm-who .jm-p {
  flex: none;
  padding: 6px 11px;
  font-size: 13px;
}
.jm-eran {
  width: auto;
  order: 10;
}
/* ---------- the controls on top of the map: who you're following, the map style, and Compare ---------- */
.jm-ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.jm-person {
  --pc: #c9a227;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  border: 2px solid var(--pc);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(15, 29, 43, 0.14);
  cursor: pointer;
}
.jm-person::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pc);
}
.jm-ctl-l {
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5b6b7b);
}
.jm-person select {
  min-height: 38px;
  max-width: 230px;
  padding: 0 26px 0 2px;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f3d7a' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--night, #0f3d7a);
  font: 800 16px/1 var(--ui);
  cursor: pointer;
}
.jm-person select:focus-visible {
  outline: 2px solid var(--night, #0f3d7a);
  outline-offset: 2px;
  border-radius: 6px;
}
.jm-ctl .jm-base button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}
.jm-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  min-width: 42px;
  padding: 0 14px 0 11px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b3fc4, #1d5fb3);
  color: #fff;
  font: 800 13px/1 var(--ui);
  box-shadow: 0 2px 10px rgba(15, 29, 43, 0.2);
  cursor: pointer;
}
.jm-icon svg {
  flex: none;
}
.jm-eran {
  flex: 1 1 100%;
  order: 10;
}
.jm-grab {
  display: none;
}
.jm-stage,
.jm-top,
.jm-side,
.jm-nav {
  touch-action: manipulation;
}
/* tablets and laptops: the round buttons shrink to their icons (each name shows on hover), so the five of them fit
   on one row beside the person and the map style (26 Nov 2026: Groups made it wrap at 1280) */
@media (min-width: 900px) and (max-width: 1439px) {
  .jm-icon {
    padding: 0;
    justify-content: center;
  }
  .jm-icon-t {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
/* ---------- phones: the map fills the screen; the stop sits in a panel at the bottom you can pull up ---------- */
@media (max-width: 899px) {
  html,
  body {
    overflow-x: hidden;
  }
  .jm-stage {
    height: calc(100vh - var(--jm-hdr, 64px));
    height: calc(100dvh - var(--jm-hdr, 64px));
    min-height: 480px;
    overflow: hidden;
  }
  .jm-map {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }
  .jm-top {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }
  .jm-h {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .jm-ctl {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .jm-person {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 10px;
    gap: 6px;
  }
  .jm-ctl-l {
    display: none;
  }
  .jm-person select {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .jm-ctl .jm-base {
    flex: none;
  }
  .jm-ctl .jm-base button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 12px;
  }
  .jm-icon {
    flex: none;
    padding: 0;
    justify-content: center;
  }
  .jm-icon-t {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .jm-eran {
    position: absolute;
    top: 50px;
    left: 4px;
    font-size: 12px;
  }
  .jm-nav {
    top: auto;
    left: 50%;
    bottom: calc(38% + 10px);
    padding: 4px;
    gap: 4px;
    transition: bottom 0.25s ease;
  }
  .jm-nb {
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
  }
  .jm-pos {
    min-width: 74px;
    font-size: 13px;
  }
  .jm-side {
    position: absolute;
    z-index: 650;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 38%;
    padding: 0 10px 14px;
    overflow: auto;
    border-radius: 20px 20px 0 0;
    background: #eef3f7;
    box-shadow: 0 -6px 24px rgba(15, 29, 43, 0.2);
    transition: height 0.25s ease;
  }
  html.jm-sheet-up .jm-side {
    height: 86%;
  }
  html.jm-sheet-up .jm-nav {
    bottom: calc(86% + 10px);
    opacity: 0;
    pointer-events: none;
  }
  .jm-grab {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: none;
    margin: 0 -10px;
    padding: 8px 0 8px;
    border: 0;
    background: #eef3f7;
    color: var(--night, #0f3d7a);
    font: 800 13px/1 var(--ui);
    cursor: pointer;
  }
  .jm-grab i {
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: #9fb2c4;
  }
  .jm-kids .jm-grab,
  .jm-kids .jm-side {
    background: #f4f0ff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jm-side,
  .jm-nav {
    transition: none;
  }
}
@media (max-width: 899px) {
  /* Back / Next stay on one line */
  .jm-nb {
    white-space: nowrap;
    padding: 0 13px;
  }
  .jm-pos {
    white-space: nowrap;
    min-width: 0;
  }
  /* the voice and Bible buttons sit on the map, above Back / Next, not over the stop */
  .hv-tip {
    display: none !important;
  }
  body .hv-btn,
  body .hb-fab {
    bottom: calc((100dvh - var(--jm-hdr, 64px)) * 0.38 + 76px);
    transition: opacity 0.2s ease;
  }
  html.jm-sheet-up body .hv-btn,
  html.jm-sheet-up body .hb-fab {
    opacity: 0;
    pointer-events: none;
  }
  /* side by side: the Bible button left of the voice button */
  body .hb-fab {
    right: calc(max(16px, env(safe-area-inset-right)) + 76px);
  }
}
/* the map changing by itself (Creation: today's map, then the old map from Day 4): a short fade and one line */
html.jm-flash .jm-map .leaflet-gl-layer,
html.jm-flash .jm-map .maplibregl-canvas,
html.jm-flash .jm-map .leaflet-tile-pane {
  animation: jm-flash 0.9s ease;
}
@keyframes jm-flash {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
.jm-flash-n {
  position: absolute;
  z-index: 640;
  top: 100%;
  left: 50%;
  margin-top: 10px !important;
  transform: translateX(-50%);
  max-width: min(440px, calc(100% - 32px));
  margin: 0;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 250, 238, 0.97);
  border: 1px solid #e3cf9f;
  box-shadow: 0 4px 16px rgba(15, 29, 43, 0.18);
  color: #4a3511;
  font: 600 14px/1.4 var(--ui);
  text-align: center;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html.jm-flash .jm-map .leaflet-gl-layer,
  html.jm-flash .jm-map .maplibregl-canvas,
  html.jm-flash .jm-map .leaflet-tile-pane {
    animation: none;
  }
}
/* ---------- photos: a gallery on each stop; the viewer opens on the page (Pexels, Wikimedia Commons; credited) ---------- */
.jm-ph {
  margin: 0 0 14px;
}
.jm-ph-h {
  margin: 0 0 6px;
  font: 800 12px/1 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5b6b7b);
}
.jm-ph-s {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.jm-ph-t {
  flex: 0 0 132px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 29, 43, 0.14);
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: start;
}
.jm-ph-t img {
  display: block;
  width: 132px;
  height: 88px;
  object-fit: cover;
  background: #e6ecf1;
}
.jm-ph-t span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 5px 7px 6px;
  font: 700 11px/1.3 var(--ui);
  color: #23313f;
}
.jm-ph-t:focus-visible {
  outline: 3px solid var(--night, #0f3d7a);
}
.jm-gal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px 64px;
  background: rgba(5, 9, 14, 0.9);
}
.jm-gal[hidden] {
  display: none;
}
.jm-gal figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jm-gal img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 8px;
}
.jm-gal figcaption {
  color: #f1f5f9;
  font: 15px/1.45 var(--ui);
}
.jm-gal figcaption b {
  display: block;
  font-size: 17px;
}
.jm-gal figcaption span {
  display: block;
}
.jm-gal figcaption small {
  display: block;
  margin-top: 4px;
  color: #b8c4d0;
  font-size: 12px;
}
.jm-gal button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 400 30px/1 var(--ui);
  cursor: pointer;
}
.jm-gal button:hover {
  background: rgba(255, 255, 255, 0.28);
}
.jm-gal-x {
  top: 14px;
  right: 14px;
}
.jm-gal-p {
  left: 10px;
  top: 50%;
}
.jm-gal-n {
  right: 10px;
  top: 50%;
}
/* "See it today": Google's satellite view and Street View */
.jm-walk-yt {
  align-self: center;
  font: 700 14px/1.3 var(--ui);
  color: #0a6896;
  padding: 6px 4px;
}
/* Walk it today: the list of filmed walks, under region headings */
.jm-walks .jm-walks-g {
  margin: 10px 0 -2px;
  font: 800 13px/1.2 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6a00;
}
.jm-walks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.jm-walks button {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #d6e1e9;
  border-radius: 14px;
  background: #fff;
  color: #0f1d2b;
  font: 400 15px/1.4 var(--ui);
  cursor: pointer;
}
.jm-walks button:hover {
  background: #eef4fb;
}
.jm-walks b {
  font-size: 16px;
  color: #0f3d7a;
}
.jm-walks small {
  color: #4b5d6e;
  font-size: 13px;
}
.jm-live figcaption a {
  color: #9fd8ff;
}
.jm-live-b {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jm-live-b button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #c9d3de;
  border-radius: 999px;
  background: #fff;
  color: #0f3d7a;
  font: 700 14px/1.2 var(--ui);
  cursor: pointer;
}
.jm-live-b button:hover {
  background: #eef4fb;
}
.jm-live-b button:focus-visible {
  outline: 3px solid var(--night, #0f3d7a);
}
.jm-live figure {
  width: min(1100px, 100%);
}
.jm-live iframe {
  width: 100%;
  height: calc(100vh - 150px);
  border: 0;
  border-radius: 8px;
  background: #111;
}
@media (max-width: 899px) {
  .jm-gal {
    padding: 56px 8px 16px;
  }
  .jm-gal-p,
  .jm-gal-n {
    top: auto;
    bottom: 14px;
  }
}
/* ---------- the stop's panel on a wide screen: either side, any size (dragged, or set with the grip and corner) ---------- */
.jm-move,
.jm-rz {
  display: none;
}
@media (min-width: 900px) {
  .jm-side {
    width: var(--jm-pw, 386px);
    bottom: auto;
    height: var(--jm-ph, calc(100% - 28px));
    max-height: calc(100% - 28px);
  }
  html.jm-left .jm-side {
    right: auto;
    left: 14px;
  }
  .jm-top {
    right: calc(var(--jm-pw, 386px) + 34px);
  }
  html.jm-left .jm-top {
    left: calc(var(--jm-pw, 386px) + 34px);
    right: 14px;
  }
  html.jm-left .jm-nav {
    left: calc(50% + var(--jm-pw, 386px) / 2);
  }
  html:not(.jm-left) .jm-nav {
    left: calc(50% - var(--jm-pw, 386px) / 2);
  }
  .jm-side.jm-moving {
    opacity: 0.85;
    box-shadow: 0 10px 30px rgba(15, 29, 43, 0.35);
    transition: none;
  }
  .jm-move {
    position: sticky;
    top: 0;
    z-index: 3;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 26px;
    margin: 0 0 -4px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted, #5b6b7b);
    font: 700 11px/1 var(--ui);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: grab;
    touch-action: none;
  }
  .jm-move:active {
    cursor: grabbing;
  }
  .jm-move i {
    width: 26px;
    height: 4px;
    border-radius: 2px;
    background: #9fb2c4;
  }
  .jm-rz {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: block;
    flex: none;
    align-self: flex-start;
    width: 22px;
    height: 22px;
    margin: -22px 0 0 -2px;
    cursor: nesw-resize;
    touch-action: none;
    background: linear-gradient(225deg, transparent 50%, rgba(15, 61, 122, 0.55) 50%) no-repeat;
    border-radius: 0 0 0 10px;
  }
  html.jm-left .jm-rz {
    align-self: flex-end;
    margin: -22px -2px 0 0;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(15, 61, 122, 0.55) 50%) no-repeat;
    border-radius: 0 0 10px 0;
  }
  .jm-rz:focus-visible,
  .jm-move:focus-visible {
    outline: 2px solid var(--night, #0f3d7a);
  }
}
@media (min-width: 900px) {
  /* the panel hidden, or the Bible open beside the map: the controls and Back/Next use the whole width */
  html.jm-hidepanel .jm-top,
  html.hb-side .jm-top {
    left: 14px;
    right: 14px;
  }
  html.jm-hidepanel .jm-nav,
  html.hb-side .jm-nav {
    left: 50%;
  }
}

/* the Bible open on the left beside the map */
@media (min-width: 900px) and (max-width: 1599px) {
  html.hb-side.hb-left .jm-stage {
    margin-right: 0;
    margin-left: var(--hb-w, 440px);
  }
}
.jm-live-b button[data-lv='3d'] {
  border-color: #0f3d7a;
  background: #0f3d7a;
  color: #fff;
}
.jm-live-b button[data-lv='3d']:hover {
  background: #1d5fb3;
}
.jm-lv {
  margin: 10px 0 4px;
}
/* Google's own map in place of the Bible map (Google button) */
.jm-gmap {
  z-index: 1;
  background: #0b1220;
}
.jm-gmap[hidden] {
  display: none;
}
.jm-gm {
  position: absolute;
  inset: 0;
}
.jm-g-tools {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow:
    0 10px 30px rgba(6, 18, 36, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.jm-g-tools button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f2a4a;
  font: 700 14.5px/1 var(--ui, system-ui, sans-serif);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.jm-g-tools svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.jm-g-tools .jm-gt-sv svg {
  fill: currentColor;
  stroke: none;
}
/* the two ways to see it today, in colour; the way back, quiet */
.jm-g-tools .jm-gt-p {
  background: linear-gradient(180deg, #1c5aa6, #0f3d7a);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15, 61, 122, 0.35);
}
.jm-g-tools .jm-gt-sv {
  background: linear-gradient(180deg, #ffd84d, #f2b705);
  color: #1b2a3a;
  box-shadow: 0 2px 6px rgba(160, 110, 0, 0.35);
}
.jm-g-tools .jm-gt-p:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 61, 122, 0.4);
}
.jm-g-tools .jm-gt-b:hover {
  background: rgba(15, 42, 74, 0.08);
}
.jm-g-tools button:focus-visible {
  outline: 3px solid #5bc2f7;
  outline-offset: 2px;
}
.jm-g-tools .jm-gt-busy {
  opacity: 0.7;
  cursor: progress;
}
/* in Street View: only the way back to the map stays */
.jm-g-sv .jm-g-tools [data-g3d],
.jm-g-sv .jm-g-tools [data-gback] {
  display: none;
}
@media (max-width: 899px) {
  .jm-g-tools {
    max-width: calc(100vw - 24px);
  }
  .jm-g-tools button {
    min-height: 42px;
    padding: 0 13px 0 10px;
    font-size: 13.5px;
  }
}
@media (max-width: 380px) {
  .jm-g-tools .jm-gt-b {
    padding: 0 10px;
    font-size: 0;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jm-g-tools button {
    transition: none;
  }
}
.jm-gnote {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font:
    600 14px/1.3 system-ui,
    sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.jm-lv-n {
  margin: 8px 0 0;
  font-size: 14px;
  color: #8a3b12;
}
.jm-live-b button.jm-lv-off {
  opacity: 0.6;
}
.jm-ph-c {
  display: block;
  margin-top: 4px;
  color: #667;
  font-size: 12px;
}
/* Street View and the 3D view: as big as the screen allows */
.jm-live {
  padding: 12px 60px 12px 12px;
}
.jm-live figure {
  width: min(1700px, 100%);
}
.jm-live iframe {
  height: calc(100vh - 110px);
  min-height: 320px;
}
.jm-base button[hidden] {
  display: none;
}
/* Finds and evidence: in a stop's card and in a person's card */
.jm-fd-i {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid #e3e8ef;
}
.jm-fd-i:first-of-type {
  border-top: 0;
}
.jm-fd-p {
  flex: 0 0 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf3;
  cursor: zoom-in;
}
.jm-fd-p img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jm-fd-i h4 {
  margin: 4px 0 4px;
  font-size: 15px;
  line-height: 1.3;
  color: #0f2a4a;
}
.jm-fd-i p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #2b3a4a;
}
.jm-fd-i .jm-fd-w {
  font-size: 13px;
  color: #5a6878;
}
.jm-fd-i a {
  font-size: 14px;
  font-weight: 700;
  color: #0f5fb3;
}
.jm-fd-s {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #e7eef8;
  color: #0f3d7a;
}
.jm-fd-found {
  background: #e3f4e8;
  color: #1d6b38;
}
.jm-fd-site {
  background: #e6f1fb;
  color: #0f5fb3;
}
.jm-fd-study {
  background: #fff1d6;
  color: #8a5a00;
}
.jm-fd-debated {
  background: #f1e9fb;
  color: #5b3a96;
}
.jm-fd-tradition {
  background: #f4efe6;
  color: #6b5328;
}
.jm-fd-witness {
  background: #fbeaea;
  color: #8a1f1f;
}
.jm-wi-f {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: #1b2a3a;
}
.jm-wi-f summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  cursor: pointer;
  font-weight: 700;
  color: #0f3d7a;
}
.jm-wi-fx {
  display: none;
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0f3d7a;
  color: #fff;
  font: 800 13px/1 var(--ui);
}
.jm-wi-f[open] .jm-wi-fx {
  display: inline-block;
}
.jm-wi-fl {
  max-height: min(48vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 8px;
  padding-right: 4px;
}
.jm-wi-fc {
  display: block;
  width: 100%;
  margin: 12px 0 4px;
  min-height: 42px;
  border: 1px solid #c9d3de;
  border-radius: 999px;
  background: #fff;
  color: #0f3d7a;
  font: 800 14px/1.2 var(--ui);
  cursor: pointer;
}
.jm-wi-fc:hover {
  background: #eef4fb;
}
.jm-wi-f .jm-fd-p {
  flex-basis: 72px;
  height: 72px;
}
/* each find kept alive (22 Nov 2026): the latest news, visitors' photos and videos, and adding yours */
.jm-fd-x:empty {
  display: none;
}
.jm-fd-x {
  margin-top: 8px;
}
.jm-fd-news summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #0f3d7a;
}
.jm-fd-news ul {
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
}
.jm-fd-news li {
  padding: 6px 0;
  border-top: 1px solid #eef2f6;
}
.jm-fd-news li a {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
}
.jm-fd-news small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #5a6878;
}
.jm-fd-i .jm-fd-vh {
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5a6878;
}
.jm-fd-m {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.jm-fd-m button {
  position: relative;
  flex: 0 0 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1b2a3a;
  cursor: pointer;
}
.jm-fd-m img,
.jm-fd-m video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.jm-fd-m i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 22px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.jm-fd-adds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.jm-cb .jm-fd-add {
  border-style: solid;
  border-color: #5bc2f7;
  background: #e9f6fe;
}
.jm-fd-nn {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #33475b;
}
.jm-cb-t {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: #33475b;
}
.jm-up form input[name='url'],
.jm-up form input[name='title'],
.jm-up form input[name='note'] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #c9d4e0;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}
.jm-fd-add {
  margin-top: 0;
  padding: 6px 12px;
  border: 1px dashed #9fb3c8;
  border-radius: 999px;
  background: #f6f9fc;
  color: #0f3d7a;
  font: 700 13px/1.2 var(--ui);
  cursor: pointer;
}
.jm-fd-add:hover {
  background: #e9f3fc;
  border-color: #5bc2f7;
}
.jm-mv .jm-mv-b img,
.jm-mv .jm-mv-b video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  margin: 0 auto;
  border-radius: 8px;
  background: #000;
}
.jm-mv button[hidden] {
  display: none;
}
.jm-gal .jm-mv-r {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #b8c4d0;
  font: inherit;
  text-decoration: underline;
}
.jm-up {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 9, 14, 0.6);
}
.jm-up[hidden] {
  display: none;
}
.jm-up-c {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: #fff;
  color: #1b2a3a;
  font: 15px/1.5 var(--ui);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.jm-up-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #1b2a3a;
  color: #fff;
  font: 400 22px/1 var(--ui);
  cursor: pointer;
}
.jm-up h3 {
  margin: 0 40px 6px 0;
  font-size: 19px;
  color: #0f2a4a;
}
.jm-up-f {
  margin: 0 0 12px;
  color: #5a6878;
  font-size: 14px;
}
.jm-up form label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
  font-size: 14px;
}
.jm-up form label small {
  font-weight: 400;
  color: #5a6878;
}
.jm-up form input[name='cap'] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #c9d4e0;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}
.jm-up-file {
  position: relative;
  padding: 18px;
  border: 2px dashed #9fb3c8;
  border-radius: 12px;
  text-align: center;
  color: #0f3d7a;
  cursor: pointer;
}
.jm-up-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.jm-up form .jm-up-ck {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
}
.jm-up-ck input {
  margin-top: 4px;
}
.jm-up-note {
  font-size: 12.5px;
  color: #5a6878;
}
.jm-up-bar {
  height: 6px;
  border-radius: 3px;
  background: #e3e8ef;
  overflow: hidden;
}
.jm-up-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #5bc2f7;
  transition: width 0.2s;
}
.jm-up-msg {
  min-height: 1.2em;
  font-size: 14px;
  color: #0f3d7a;
}
.jm-up-go {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #0f2a4a;
  color: #fff;
  font: 700 15px/1.2 var(--ui);
  text-decoration: none;
  cursor: pointer;
}
.jm-up-go:disabled {
  opacity: 0.6;
}
/* the social side (24 Nov 2026): the latest from visitors along the top, "I've been here" and Share on each stop */
.jm-latest {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.jm-latest::-webkit-scrollbar {
  display: none;
}
.jm-latest[hidden] {
  display: none;
}
.jm-lt-h {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 42, 74, 0.85);
  color: #fff;
  font: 700 11px/1.2 var(--ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jm-lt {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 230px;
  padding: 3px 10px 3px 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #1b2a3a;
  font: 13px/1.2 var(--ui);
  cursor: pointer;
}
.jm-lt:hover {
  background: #fff;
}
.jm-lt img,
.jm-lt i {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  background: #1b2a3a;
  color: #fff;
}
.jm-lt .jm-lt-n {
  background: #e9f6fe;
}
.jm-lt span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.jm-lt-first {
  padding: 7px 14px;
  color: #0f3d7a;
  font-weight: 700;
}
.jm-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
.jm-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #c9d4e0;
  border-radius: 999px;
  background: #fff;
  color: #0f2a4a;
  font: 700 13.5px/1.2 var(--ui);
  cursor: pointer;
}
.jm-act:hover {
  border-color: #5bc2f7;
  background: #f3faff;
}
.jm-act b {
  padding-left: 6px;
  border-left: 1px solid #c9d4e0;
}
.jm-been.on {
  border-color: #5bc2f7;
  background: #e9f6fe;
  color: #0f3d7a;
  cursor: pointer;
}
/* tapped by mistake: the same button takes it back */
.jm-been-u {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b9dcf3;
  color: #0f3d7a;
  font: 700 11.5px/1.3 var(--ui);
}
.jm-up-sw {
  margin-left: 6px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: #0f3d7a;
  font: 600 14px/1.2 var(--ui);
  text-decoration: underline;
  cursor: pointer;
}
.jm-up form input[name='name'],
.jm-up form input[name='email'],
.jm-up form input[name='password'] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #c9d4e0;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}
/* ---------- phones (15 Nov 2026): the person's name gets the whole top row; the map style and Compare go right,
   under it; the Bible and voice buttons stack at the right edge, leaving the middle of the map clear ---------- */
@media (max-width: 899px) {
  .jm-ctl {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }
  .jm-person {
    flex: 1 1 100%;
  }
  .jm-person select {
    font-size: 17px;
    text-overflow: ellipsis;
  }
  .jm-ctl .jm-base button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11.5px;
  }
  .jm-ctl .jm-icon {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
  body .hv-btn,
  body .hb-fab {
    right: max(8px, env(safe-area-inset-right));
  }
  body .hb-fab {
    bottom: calc((100dvh - var(--jm-hdr, 64px)) * 0.38 + 76px + 62px);
  }
}
/* little helps (maps.js tipShow): one quiet line about a control, for a couple of seconds */
.jm-tip {
  position: fixed;
  z-index: 2000;
  max-width: min(280px, calc(100vw - 20px));
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(11, 26, 42, 0.94);
  color: #eef4f9;
  font: 600 14px/1.4 var(--ui, system-ui, sans-serif);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.jm-tip.up {
  transform: translateY(4px);
}
.jm-tip.on {
  opacity: 1;
  transform: none;
}
.jm-tip::before {
  content: '';
  position: absolute;
  left: var(--ax, 50%);
  top: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}
.jm-tip.up::before {
  top: auto;
  bottom: -6px;
}
@media (prefers-reduced-motion: reduce) {
  .jm-tip {
    transition: none;
    transform: none;
  }
}
/* a shared find, opened from its link */
.jm-fd-hl {
  border-radius: 10px;
  box-shadow: 0 0 0 3px #5bc2f7;
}
.jm-intro p small {
  display: block;
  max-width: 34em;
  margin: 10px auto 0;
  font-size: 0.55em;
  font-weight: 600;
  line-height: 1.35;
}
/* the passport and trip groups (26 Nov 2026); the passport itself is assets/passport.css */
.jm-ps-n {
  margin: 0 0 10px;
  font-size: 14px;
}
.jm-ps-pl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 10px;
}
.jm-ps-pl button {
  padding: 5px 10px;
  border: 1px solid #c9d4e0;
  border-radius: 999px;
  background: #f6f9fc;
  color: #0f2a4a;
  font: 600 13px/1.2 var(--ui);
  cursor: pointer;
}
.jm-ps-pl button:hover {
  border-color: #5bc2f7;
}
.jm-ps-m {
  margin-bottom: 10px;
}
.jm-ps-hr {
  margin: 16px 0 10px;
  border: 0;
  border-top: 1px solid #e3e8ef;
}
.jm-ps-h {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f2a4a;
}
.jm-ps-f {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}
.jm-ps-f input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #c9d4e0;
  border-radius: 10px;
  font: inherit;
}
.jm-up a.jm-fd-add {
  text-decoration: none;
  display: inline-block;
}
.jm-up .muted {
  color: #5a6878;
  font-size: 13px;
}
/* the passport window: wider on computers, the whole screen on phones */
.jm-up-c.jm-up-pp {
  width: min(620px, 100%);
  padding: 14px 14px 18px;
  background: #eef1f5;
}
.jm-up-pp .jm-up-x {
  z-index: 2;
  top: 18px;
  right: 18px;
  background: rgba(233, 207, 134, 0.2);
  color: #f6dc93;
}
.jm-ps-sh {
  margin: 14px 0 4px;
  text-align: center;
}
.jm-ps-sh .jm-up-go {
  width: 100%;
  max-width: 360px;
}
.jm-ps-pv {
  margin: 8px auto 0;
  max-width: 420px;
  font-size: 13px;
  color: #5a6878;
}
.jm-ps-lk {
  padding: 0;
  border: 0;
  background: none;
  color: #1d4e89;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.jm-ps-out .jm-fd-adds {
  justify-content: center;
}
@media (max-width: 600px) {
  .jm-up {
    padding: 0;
    place-items: end stretch;
  }
  .jm-up-c {
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .jm-up-c.jm-up-pp {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom));
  }
  .jm-up-pp .jm-up-x {
    position: fixed;
    top: max(16px, calc(env(safe-area-inset-top) + 8px));
    right: 16px;
    background: rgba(12, 34, 64, 0.85);
  }
  .jm-ps-f {
    flex-wrap: wrap;
  }
  .jm-ps-f input {
    flex: 1 1 100%;
    font-size: 16px;
  }
  .jm-ps-f .jm-fd-add {
    flex: 1 1 100%;
  }
}
/* the voice button stays out of the way while a window is open */
html:has(.jm-up:not([hidden])) .hv-btn,
html:has(.jm-up:not([hidden])) .hv-tip {
  display: none !important;
}
/* groups on the map (26 Nov 2026): "With my group" and the Groups window */

.jm-fd-sh svg {
  vertical-align: -3px;
  margin-right: 4px;
}
.jm-up-c.jm-up-gp {
  width: min(560px, 100%);
}
.jm-up .jm-gp-pick label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  cursor: pointer;
}
.jm-gp-hd .jm-fd-add {
  flex: none;
  text-decoration: none;
}
.jm-gp-post .jm-up-go {
  margin: 0;
}
@media (max-width: 600px) {
  .jm-up-c.jm-up-gp {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}
/* finding and leading groups (26 Nov 2026) */

.jm-gp-askf .jm-up-go {
  justify-self: start;
  margin: 0;
}
.jm-gp-req .jm-up-go {
  margin: 0;
}
.jm-up .jm-gp-vis label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 6px;
  padding: 9px 12px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}
.jm-up .jm-gp-adult {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}
.jm-up .jm-gp-adult[hidden] {
  display: none;
}
/* ---------- phones, tidied (26 Nov 2026): more map. The old-map line, From visitors and Tour on a row of their own;
   From visitors pops up for five seconds and folds into its button; Back / Next in a small pill whose middle opens
   the rest; the stop's panel down to a peek; the voice button bottom left, the Bible bottom right ---------- */
.jm-row3,
.jm-navpop,
.jm-nb-more,
.jm-peek,
.jm-grab-a {
  display: none;
}
@media (max-width: 899px) {
  html.jm-phone {
    --jm-peek: calc(66px + env(safe-area-inset-bottom));
  }
  /* the controls: the select, then the map style and the round buttons, then a slim row */
  html.jm-phone .jm-ctl {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  html.jm-phone .jm-row3 {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
  }
  .jm-row3-e {
    flex: 1 1 auto;
    min-width: 0;
  }
  html.jm-phone .jm-row3 .jm-eran {
    position: static;
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 250, 238, 0.88);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .jm-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 42, 74, 0.88);
    color: #fff;
    font: 700 12px/1 var(--ui);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }
  .jm-chip b {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    color: #0f2a4a;
    font: 900 11px/1 var(--ui);
  }
  .jm-chip-n::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f5b83d;
  }
  .jm-chip-ping {
    animation: jm-ping 0.9s ease;
  }
  @keyframes jm-ping {
    40% {
      transform: scale(1.15);
      box-shadow: 0 0 0 8px rgba(245, 184, 61, 0.35);
    }
  }
  /* From visitors: not on the map; a pop-up under the row, then folded into its button */
  html.jm-phone .jm-latest {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 6px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(15, 29, 43, 0.25);
    flex-wrap: nowrap;
    transform-origin: right top;
    transition:
      opacity 0.4s ease,
      transform 0.45s ease;
  }
  html.jm-phone:not(.jm-lt-show):not(.jm-lt-open) .jm-latest {
    display: none;
  }
  html.jm-lt-fold .jm-latest {
    opacity: 0;
    transform: translate(-20px, -40px) scale(0.15);
  }
  html.jm-phone .jm-latest .jm-lt {
    box-shadow: none;
    background: #eef3f7;
  }
  html.jm-phone .jm-latest .jm-lt-first {
    white-space: normal;
    text-align: left;
    max-width: none;
    flex: 1 1 auto;
  }
  /* the stop's panel: a peek with an arrow and what's in it; pull it up for the rest */
  html.jm-phone .jm-side {
    height: var(--jm-peek);
    overflow: hidden;
    padding-bottom: 0;
  }
  html.jm-phone.jm-sheet-up .jm-side {
    height: 86%;
    overflow: auto;
    padding-bottom: 14px;
  }
  html.jm-phone .jm-grab {
    padding: 7px 14px 10px;
    gap: 3px;
  }
  html.jm-phone .jm-grab span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
  }
  html.jm-phone .jm-grab-a {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-left: 2.5px solid currentColor;
    border-top: 2.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }
  html.jm-phone.jm-sheet-up .jm-grab-a {
    margin-top: -4px;
    transform: rotate(225deg);
  }
  html.jm-phone .jm-grab span {
    flex-direction: row;
  }
  html.jm-phone .jm-peek {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #5b6b7b;
    font: 500 12.5px/1.2 var(--ui);
  }
  html.jm-phone.jm-sheet-up .jm-peek {
    display: none;
  }
  /* Back / Next: a small pill; its middle opens All stops, Play and the list */
  html.jm-phone .jm-nav {
    bottom: calc(var(--jm-peek) + 12px);
    padding: 4px;
    gap: 2px;
  }
  html.jm-phone .jm-nb-t {
    display: none;
  }
  html.jm-phone .jm-nav > .jm-nb:not(.jm-nb-more) {
    width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
  }
  html.jm-phone .jm-nb-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #eef3f7;
    color: #0f2a4a;
    cursor: pointer;
  }
  html.jm-phone .jm-nb-more .jm-pos {
    min-width: 0;
    font: 800 14px/1 var(--ui);
  }
  .jm-more-a {
    width: 7px;
    height: 7px;
    margin-top: 3px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  html.jm-navpop-on .jm-more-a {
    margin-top: -3px;
    transform: rotate(225deg);
  }
  html.jm-phone .jm-navpop {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    display: grid;
    gap: 4px;
    width: min(290px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 29, 43, 0.28);
  }
  html.jm-phone .jm-navpop[hidden] {
    display: none !important;
  }
  .jm-navpop-h {
    margin: 0 4px 4px;
    color: #5b6b7b;
    font: 800 11px/1.2 var(--ui);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .jm-navpop button {
    display: grid;
    gap: 2px;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    background: #eef3f7;
    color: #0f2a4a;
    text-align: left;
    cursor: pointer;
  }
  .jm-navpop b {
    font: 800 15px/1.2 var(--ui);
  }
  .jm-navpop small {
    color: #5b6b7b;
    font: 500 12.5px/1.3 var(--ui);
  }
  /* the voice button bottom left, the Bible bottom right, level with the pill */
  html.jm-phone body .hv-btn {
    left: max(10px, env(safe-area-inset-left)) !important;
    right: auto !important;
    /* centred on the Back / Next pill (bottom: peek + 12px, 52px tall): the three on one line */
    bottom: calc(var(--jm-peek) + 13px) !important;
    width: 50px;
    height: 50px;
  }
  html.jm-phone body .hb-fab {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--jm-peek) + 11px) !important;
    width: 54px;
    height: 54px;
  }
  html.jm-phone .hv-card {
    left: 10px;
    right: auto;
    bottom: calc(var(--jm-peek) + 70px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jm-latest,
  .jm-grab-a,
  .jm-more-a,
  .jm-chip-ping {
    transition: none;
    animation: none;
  }
}
@media (max-width: 899px) {
  /* phones zoom with two fingers; the + and − would sit under the voice button */
  html.jm-phone .jm-map .leaflet-control-zoom {
    display: none;
  }
}

/* ---------- phones (26 Nov 2026): the person and the map style on one row at the top; every tool in a slim rail down
   the right edge of the map (assets: phoneBar, phoneRail in maps.js); Google's own buttons off. Nothing overlaps. ---------- */
.jm-basebtn,
.jm-rail {
  display: none;
}
@media (max-width: 899px) {
  html.jm-phone .jm-ctl {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  html.jm-phone .jm-ctl .jm-person {
    flex: 1 1 auto;
    min-width: 0;
  }
  html.jm-phone .jm-row3,
  html.jm-phone .jm-ctl .jm-icon {
    display: none !important;
  }
  html.jm-phone .jm-basebtn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 12px 0 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    color: #0f2a4a;
    font: 800 14px/1 var(--ui);
    box-shadow: 0 2px 10px rgba(15, 29, 43, 0.2);
    cursor: pointer;
  }
  html.jm-phone .jm-basebtn i {
    width: 7px;
    height: 7px;
    margin: -3px 0 0 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  html.jm-base-open .jm-basebtn i {
    margin-top: 3px;
    transform: rotate(225deg);
  }
  /* the three map styles: a small menu under the pill */
  html.jm-phone .jm-ctl .jm-base {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    min-width: 210px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 29, 43, 0.3);
  }
  html.jm-phone.jm-base-open .jm-ctl .jm-base {
    display: flex;
  }
  html.jm-phone .jm-ctl .jm-base button {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    text-align: left;
  }
  html.jm-phone .jm-ctl .jm-base button[hidden] {
    display: none;
  }
  html.jm-phone .jm-ctl .jm-base .jm-eran {
    position: static;
    display: block;
    margin: 4px 8px;
    padding: 0;
    background: none;
    color: #6b5a33;
    font: italic 600 12.5px/1.35 var(--ui);
    white-space: normal;
  }
  html.jm-phone .jm-ctl .jm-base .jm-eran[hidden] {
    display: none;
  }
  /* the tool rail */
  html.jm-phone .jm-rail {
    position: absolute;
    z-index: 520;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-height: calc(100% - 240px); /* maps.js sets it to stop above the Bible button */
    overflow-x: visible;
    overflow-y: auto;
    scrollbar-width: none;
    /* room for the buttons' shadows inside the scrolling rail */
    padding: 6px 10px 12px;
    margin-right: -10px;
  }
  .jm-rail button {
    flex: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    color: #0f2a4a;
    box-shadow: 0 2px 10px rgba(15, 29, 43, 0.25);
    cursor: pointer;
    -webkit-touch-callout: none;
    user-select: none;
    transition:
      width 0.22s ease,
      border-radius 0.22s ease,
      background 0.15s ease;
  }
  .jm-rail button[hidden],
  .jm-rail:not(.jm-rail-open) [data-rail='reset'],
  .jm-rail:not(.jm-rail-open) [data-rail='tour'] {
    display: none;
  }
  .jm-rail .jm-rail-all {
    background: #0f2a4a;
    color: #fff;
  }
  .jm-rail button[data-rail='3d'],
  .jm-rail button[data-rail='sv'] {
    background: #1c5aa6;
    color: #fff;
  }
  .jm-rail button[data-rail='sv'] {
    background: #f2b705;
    color: #1b2a3a;
  }
  .jm-rail svg {
    flex: none;
  }
  .jm-rail-t {
    display: none;
  }
  /* all open: each one with its name and what it does */
  .jm-rail.jm-rail-open button,
  .jm-rail button.jm-rail-peek {
    justify-content: flex-start;
    gap: 10px;
    width: min(272px, calc(100vw - 28px));
    padding: 0 14px 0 11px;
    border-radius: 14px;
    height: auto;
    min-height: 48px;
  }
  .jm-rail.jm-rail-open .jm-rail-t,
  .jm-rail .jm-rail-peek .jm-rail-t {
    display: grid;
    gap: 1px;
    padding: 7px 0;
    text-align: left;
  }
  .jm-rail-t b {
    font: 800 14.5px/1.2 var(--ui);
  }
  .jm-rail-t small {
    font: 500 12px/1.3 var(--ui);
    opacity: 0.8;
  }
  .jm-rail-open {
    padding: 8px;
    margin: -8px;
    border-radius: 20px;
    background: rgba(15, 29, 43, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .jm-rail .jm-dot::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f5b83d;
  }
  .jm-rail button:focus-visible {
    outline: 3px solid #5bc2f7;
    outline-offset: 2px;
  }
  /* Google's map on phones: the page's 3D / Street View bar gives way to the rail; only the way back from Street View */
  html.jm-phone .jm-g-tools {
    display: none;
  }
  html.jm-phone .jm-g-sv .jm-g-tools {
    display: flex;
    top: 12px;
    bottom: auto;
  }
}
@media (max-width: 899px) and (max-height: 700px) {
  .jm-rail button {
    width: 40px;
    height: 40px;
  }
  html.jm-phone .jm-rail {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jm-rail button {
    transition: none;
  }
}
/* phones: where they are, at the top left of the map, and the way into its story */
.jm-here {
  display: none;
}
@media (max-width: 899px) {
  html.jm-phone .jm-here {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 70px);
    margin-top: 8px;
    padding: 0 14px 0 11px;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #0f2a4a;
    color: #fff;
    font: 600 13.5px/1.2 var(--ui);
    box-shadow: 0 4px 14px rgba(15, 29, 43, 0.3);
    cursor: pointer;
  }
  html.jm-phone .jm-here b {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
  }
  html.jm-phone .jm-here span {
    flex: none;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    color: #9fd8ff;
    font-weight: 800;
  }
  html.jm-phone.jm-sheet-up .jm-here {
    visibility: hidden;
  }
  /* the note on dates, at the foot of the stop's panel */
  html.jm-phone .jm-side .jm-note {
    margin: 18px 4px 6px;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #5b6b7b;
  }
  html.jm-phone.jm-sheet-up .jm-side {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 899px) {
  html.jm-phone.jm-sheet-up .jm-rail {
    visibility: hidden;
  }
}
/* whose stop, and which ("Jesus’ 5th stop"): a flash in the middle of the map for three seconds, then gone;
   it never takes a tap */
.jm-stopn {
  position: absolute;
  z-index: 700;
  left: 50%;
  top: 24%; /* above where the new stop settles (the middle), so it never sits on the dot */
  max-width: calc(100% - 140px);
  margin: 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(15, 42, 74, 0.86);
  color: #fff;
  font: 800 clamp(17px, 2.4vw, 24px) / 1.2 var(--display, var(--ui));
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 26px rgba(15, 29, 43, 0.3);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.jm-stopn.on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
@media (min-width: 900px) {
  /* the middle of the open map, beside the stop's panel */
  html:not(.jm-hidepanel):not(.jm-left) .jm-stopn {
    left: calc(50% - var(--jm-pw, 386px) / 2);
  }
  html.jm-left:not(.jm-hidepanel) .jm-stopn {
    left: calc(50% + var(--jm-pw, 386px) / 2);
  }
}
html.jm-sheet-up .jm-stopn {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .jm-stopn {
    transition: opacity 0.2s linear;
    transform: translate(-50%, 0);
  }
}
/* phones: whose stop, and which, just above the stop counter (it stays) */
.jm-stopp {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  max-width: min(320px, calc(100vw - 150px));
  margin: 0;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f2a4a;
  font: 700 12.5px/1.3 var(--ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(15, 29, 43, 0.12);
  pointer-events: none;
}
html.jm-navpop-on .jm-stopp,
html.jm-sheet-up .jm-stopp {
  visibility: hidden;
}
/* the album of everything visitors have added */
.jm-lt-album {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f2a4a !important;
  color: #fff !important;
  font-weight: 800;
}
.jm-al-lede {
  margin: 0 0 12px;
  color: #3b4a5c;
  font-size: 14.5px;
}
.jm-al {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.jm-al figure {
  margin: 0;
}
.jm-al-p {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1b2a3a;
  cursor: pointer;
}
.jm-al-p img,
.jm-al-p video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.jm-al-p i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-style: normal;
  font-size: 26px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.jm-al figcaption {
  display: grid;
  margin-top: 5px;
}
.jm-al-go {
  padding: 0;
  border: 0;
  background: none;
  color: #1d4e89;
  font: 700 13px/1.3 var(--ui);
  text-align: left;
  cursor: pointer;
}
.jm-al figcaption small {
  color: #5a6878;
  font-size: 12px;
}
/* the new stop's dot: hidden until the line reaches it, then a soft pop (the scale property, so the current stop's own
   larger size, set with transform, is kept) */
.jm-d.jm-d-wait {
  opacity: 0;
  scale: 0.3;
}
.jm-d.jm-d-pop {
  animation: jm-dpop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes jm-dpop {
  from {
    opacity: 0;
    scale: 0.3;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jm-d.jm-d-pop {
    animation: none;
  }
}
/* Refresh map: at the bottom with Back, Next and All stops, where it makes sense (26 Nov 2026), on phones too */
.jm-nb-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef3f8;
  color: #0f2a4a;
}
.jm-nb-reset:hover {
  background: #dfe9f3;
}
@media (min-width: 900px) {
  .jm-ctl .jm-reset {
    display: none;
  }
}
@media (min-width: 900px) and (max-width: 1239px) {
  /* a narrower screen: just the arrow (its name on hover), and the bar a little tighter so it clears the voice
     button beside it */
  .jm-nb-reset span {
    display: none;
  }
  .jm-nav {
    gap: 4px;
    padding: 5px;
  }
  .jm-nav .jm-nb {
    min-height: 44px;
    padding: 0 13px;
    font-size: 15px;
  }
  .jm-nav .jm-nb-reset {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}
/* phones (27 Nov 2026): Refresh map right beside the 1 / 58 pill, an arrow only (its name for screen readers) */
@media (max-width: 899px) {
  html.jm-phone .jm-nav > .jm-nb-reset {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    background: #eef3f8;
    color: #0f2a4a;
  }
  html.jm-phone .jm-nb-reset span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  html.jm-phone .jm-nb-reset svg {
    width: 19px;
    height: 19px;
  }
}
/* the narrowest wide screens: the voice button just above the bottom bar, not against it */
@media (min-width: 900px) and (max-width: 1039px) {
  body .hv-btn {
    bottom: 92px !important;
  }
}
/* Wide screens (27 Nov 2026): the stop's panel and the Bible are windows that move anywhere (kids/float-win.js). The
   map's controls, Back/Next and the stop's name sit in the part of the map neither covers (--jm-ol, --jm-or: how much
   of the map's left and right they cover, set by maps.js occlude()). The panel no longer hides when the Bible opens. */
@media (min-width: 900px) {
  html .jm-top,
  html.jm-left .jm-top,
  html.jm-hidepanel .jm-top,
  html.hb-side .jm-top {
    left: calc(var(--jm-ol, 0px) + 14px);
    right: calc(var(--jm-or, 400px) + 14px);
  }
  html .jm-nav,
  html.jm-left .jm-nav,
  html:not(.jm-left) .jm-nav,
  html.jm-hidepanel .jm-nav,
  html.hb-side .jm-nav {
    left: calc(50% + (var(--jm-ol, 0px) - var(--jm-or, 400px)) / 2);
  }
  html .jm-stopn,
  html:not(.jm-hidepanel):not(.jm-left) .jm-stopn,
  html.jm-left:not(.jm-hidepanel) .jm-stopn {
    left: calc(50% + (var(--jm-ol, 0px) - var(--jm-or, 400px)) / 2);
  }
  html.hb-side .jm-stage {
    margin-right: 0;
  }
  html.hb-side .jm-side {
    display: flex;
  }
  html.jm-hidepanel .jm-side {
    display: none;
  }
  .jm-side .jm-rz {
    display: none;
  }
}
/* little open map left between the windows: Back/Next as tight as on a narrow screen */
@media (min-width: 900px) {
  html.jm-tight .jm-nb-reset span {
    display: none;
  }
  html.jm-tight .jm-nav {
    gap: 4px;
    padding: 5px;
  }
  html.jm-tight .jm-nav .jm-nb {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
  html.jm-tight .jm-nav .jm-nb-reset {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}
/* the old map's peoples after Babel, by Noah's sons (Genesis 10) */
.jm-era-s {
  color: #2f6b2a;
}
.jm-era-h {
  color: #8a3b1c;
}
.jm-era-j {
  color: #24508a;
}
.jm-era.jm-era-s,
.jm-era.jm-era-h,
.jm-era.jm-era-j {
  font-size: 13px;
}
.jm-era-key {
  display: inline-flex;
  gap: 6px;
  margin-left: 4px;
  font-style: normal;
}
.jm-era-key i {
  font-style: normal;
  font-weight: 800;
}
/* before creation: nothing on the old map yet */
.jm-void .leaflet-tile-pane {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.jm-void {
  background: radial-gradient(circle at 50% 45%, #2a2418 0%, #14110b 70%) !important;
}
.jm-void .jm-era {
  display: none;
}
.jm-void-m {
  position: absolute;
  z-index: 450;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  width: min(460px, 82%);
  margin: 0;
  text-align: center;
  color: #f4ecd6;
  font: 400 17px/1.5 var(--read, Georgia, serif);
  pointer-events: none;
}
.jm-void-m b {
  display: block;
  margin-bottom: 8px;
  font: 800 19px/1.3 var(--ui);
}
.jm-void-m[hidden] {
  display: none;
}
.jm-c-a {
  margin: -4px 0 10px;
  font: 600 13px/1.4 var(--ui);
  color: #5b6b7a;
}
/* plan a visit: the stop's button, the list, the stars on the map (only when asked for) */
.jm-plan-b.on {
  background: #fff6dd;
  border-color: #e3c46f;
  color: #6b4d1a;
}
.jm-plan {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: plan;
  display: grid;
  gap: 6px;
}
.jm-plan li {
  display: flex;
  align-items: stretch;
  gap: 6px;
  counter-increment: plan;
}
.jm-plan-go {
  flex: 1;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--line, #d6e1e9);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
  font: 700 15px/1.3 var(--ui);
  color: var(--ink, #0f1d2b);
}
.jm-plan-go::before {
  content: counter(plan);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c4891a;
  color: #fff;
  font: 800 11px/1 var(--ui);
}
.jm-plan-go:hover {
  border-color: #c4891a;
}
.jm-plan-go small {
  font: 500 12.5px/1.3 var(--ui);
  color: var(--muted, #5b6b7b);
}
.jm-plan-x {
  flex: none;
  width: 44px;
  border: 1px solid var(--line, #d6e1e9);
  border-radius: 12px;
  background: #fff;
  color: var(--muted, #5b6b7b);
  font-size: 20px;
  cursor: pointer;
}
.jm-planpin {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff6dd;
  border: 1.5px solid #c4891a;
  color: #c4891a;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 29, 43, 0.25);
}
.jm-flash-n .jm-flash-a {
  pointer-events: auto;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #0f3d7a;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
/* the words over the empty map stay readable */
html.jm-voidon .jm-h,
html.jm-voidon .jm-eran {
  color: #f4ecd6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
/* One button system on the map (27 Nov 2026): every action on a stop is the same white outlined pill; anything that
   is switched on ("I've been here", "On my visit plan", a map setting) is the same light blue; the one main action in a
   window is navy (.jm-up-go). No more gold, tinted, dashed and plain buttons side by side. */
.jm-act.jm-act.jm-act-g,
.jm-act.jm-act.jm-plan-b {
  border-color: #c9d4e0;
  background: #fff;
  color: #0f2a4a;
}
.jm-act.jm-act.jm-act-g:hover,
.jm-act.jm-act.jm-plan-b:hover {
  border-color: #5bc2f7;
  background: #f3faff;
}
.jm-act.jm-act.jm-plan-b.on,
.jm-act.jm-been.on {
  border-color: #5bc2f7;
  background: #e9f6fe;
  color: #0f3d7a;
}
.jm-fd-add.jm-fd-add,
.jm-cb .jm-fd-add.jm-fd-add {
  padding: 7px 14px;
  border: 1px solid #c9d4e0;
  border-radius: 999px;
  background: #fff;
  color: #0f2a4a;
  font: 700 13px/1.2 var(--ui);
}
.jm-fd-add.jm-fd-add:hover,
.jm-cb .jm-fd-add.jm-fd-add:hover {
  border-color: #5bc2f7;
  background: #f3faff;
}
.jm-fd-add.jm-fd-add[aria-pressed='true'] {
  border-color: #5bc2f7;
  background: #e9f6fe;
  color: #0f3d7a;
}

/* comparing: a way out always in sight (29 Nov 2026) */
.jm-cm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.jm-cm-x {
  flex: none;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #c9d3de;
  border-radius: 999px;
  background: #fff;
  color: #0f3d7a;
  font: 800 13px/1 var(--ui);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.jm-cmp-out {
  position: absolute;
  z-index: 1001;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #0f3d7a;
  color: #fff;
  font: 800 16px/1 var(--ui);
  box-shadow: 0 8px 24px rgba(4, 20, 45, 0.35);
  cursor: pointer;
}
.jm-cmp-out span {
  font-size: 22px;
  line-height: 1;
}
.jm-cmp-out[hidden],
html:not(.jm-comparing) .jm-cmp-out {
  display: none;
}
@media (max-width: 700px) {
  .jm-cmp-out {
    bottom: 96px;
  }
}

/* Tours, Street View and the 3D view: the whole screen, with a clear Close box at the top */
.jm-live {
  padding: 0;
  display: block;
  background: #05090e;
}
.jm-live figure {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  gap: 0;
}
.jm-live figcaption {
  order: -1;
  flex: none;
  min-height: 60px;
  padding: 10px 130px 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0b1420;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.jm-live figcaption b {
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jm-live figcaption small {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jm-live iframe {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 0;
  background: #000;
}
.jm-gal.jm-live .jm-live-x {
  top: 10px;
  right: 12px;
  width: auto;
  height: 40px;
  padding: 0 16px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  color: #0b1420;
  font: 700 15px/1 var(--ui);
}
.jm-gal.jm-live .jm-live-x span {
  font-size: 22px;
  font-weight: 400;
}
.jm-gal.jm-live .jm-live-x:hover {
  background: #e6eef7;
}
.jm-gal.jm-live .jm-live-x:focus-visible {
  outline: 3px solid #9fd8ff;
  outline-offset: 2px;
}
html.jm-live-on,
html.jm-live-on body {
  overflow: hidden;
}
/* nothing floats over a tour: the voice button and its tip wait until it closes */
html.jm-live-on .hv-btn,
html.jm-live-on .hv-tip {
  display: none !important;
}
/* phones: the credit and its link wrap rather than being cut off */
@media (max-width: 600px) {
  .jm-live figcaption small {
    white-space: normal;
  }
}
