/* map.css — the map of the Bible lands (map.js). Every class starts with "mp-". Colours only from core's tokens. */
.mp-head { margin-bottom: 4px; }
.mp-find { position: relative; margin: 10px 0 8px; }
.mp-q { width: 100%; box-sizing: border-box; }
.mp-res { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r-2); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 18%, transparent); max-height: 340px; overflow: auto; }
.mp-ri { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; width: 100%; padding: 8px 10px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; border-radius: 6px; font: inherit; }
.mp-ri:hover, .mp-ri:focus-visible { background: var(--surface-2); }
.mp-ri b { font-size: 17px; }
.mp-rm { color: var(--muted); font-style: italic; }
.mp-rk { flex-basis: 100%; font: 12.5px var(--sans); color: var(--muted); }
.mp-none { padding: 8px 10px; color: var(--ink-2); font-size: 15px; }
.mp-views { margin: 0 0 8px; }

/* the stage */
.mp-stage { position: relative; height: min(64vh, 620px); min-height: 300px; border: 1px solid var(--border-2); border-radius: var(--r-2); overflow: hidden;
  background: color-mix(in srgb, var(--ul-blue) 16%, var(--paper)); touch-action: none; user-select: none; -webkit-user-select: none; }
.mp-svg { display: block; width: 100%; height: 100%; cursor: grab; }
.mp-svg:active { cursor: grabbing; }
.mp-sea { fill: color-mix(in srgb, var(--ul-blue) 16%, var(--paper)); }
.mp-land { fill: var(--surface); stroke: color-mix(in srgb, var(--ink) 32%, transparent); stroke-width: 0.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mp-lake { fill: color-mix(in srgb, var(--ul-blue) 26%, var(--paper)); stroke: color-mix(in srgb, var(--ul-blue) 45%, transparent); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.mp-river { fill: none; stroke: color-mix(in srgb, var(--ul-blue) 40%, var(--surface)); stroke-width: 0.8; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.mp-river.is-big { stroke: color-mix(in srgb, var(--ul-blue) 60%, var(--surface)); stroke-width: 1.4; }
.mp-route { fill: none; stroke: color-mix(in srgb, var(--rubric) 55%, transparent); stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linejoin: round; }
.mp-route.is-cur { stroke: var(--rubric); stroke-width: 2.4; }
.mp-dot { fill: var(--ink-2); stroke: var(--surface); stroke-width: 1.2; }
.mp-dot.k-water { fill: var(--ul-blue); }
.mp-dot.k-mount { fill: var(--gold); }
.mp-dot.k-later { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.4; }
.mp-dot.is-unsure { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.4; }
.mp-dot.is-warm { fill: color-mix(in srgb, var(--rubric) 60%, var(--paper)); stroke: var(--paper); }
.mp-dot.is-hot { fill: var(--rubric); stroke: var(--paper); stroke-width: 2; }
.mp-dot.is-hot.is-unsure, .mp-dot.is-warm.is-unsure { fill: var(--paper); stroke: var(--rubric); stroke-width: 2.4; }
.mp-dot.is-sel { stroke: var(--gold); stroke-width: 3; }
.mp-alt { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 2; }
.mp-lab { font: 500 12px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3.2px; stroke-linejoin: round; pointer-events: auto; cursor: pointer; }
.mp-lab.k-water { fill: color-mix(in srgb, var(--ul-blue) 75%, var(--ink)); font-style: italic; }
.mp-lab.is-warm { fill: color-mix(in srgb, var(--rubric) 80%, var(--ink)); }
.mp-lab.is-hot { font-size: 14px; font-weight: 700; fill: var(--rubric); }
.mp-lab.is-region { font: 600 10.5px var(--sans); letter-spacing: .14em; fill: var(--muted); stroke-width: 2.6px; }
.mp-zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.mp-zb { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); color: var(--ink); font: 600 20px/1 var(--sans); cursor: pointer; }
.mp-zb:hover { border-color: var(--gold-2); color: var(--rubric); }
.mp-credit { position: absolute; left: 6px; bottom: 4px; margin: 0; font: 10.5px var(--sans); color: var(--muted); background: color-mix(in srgb, var(--paper) 70%, transparent); padding: 1px 5px; border-radius: 4px; pointer-events: none; }

/* the time */
.mp-time { margin: 12px 0 4px; }
.mp-yrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mp-year { font-family: var(--display); font-size: 25px; font-weight: 600; color: var(--rubric); text-align: center; flex: 1; }
.mp-step[disabled] { opacity: .45; pointer-events: none; }
.mp-track { position: relative; margin: 6px 0 0; }
.mp-range { width: 100%; margin: 0; accent-color: var(--rubric); position: relative; z-index: 1; background: transparent; }
.mp-ticks { position: absolute; left: 8px; right: 8px; top: 50%; height: 12px; transform: translateY(-50%); pointer-events: none; }
.mp-ticks i { position: absolute; top: 0; width: 1px; height: 12px; background: color-mix(in srgb, var(--gold) 70%, transparent); }
.mp-scale { display: flex; justify-content: space-between; font: 11px var(--sans); color: var(--muted); margin: 2px 2px 0; }
.mp-scale span:nth-child(2) { margin-left: 6%; }
.mp-eras { margin-top: 10px; }

/* the event */
.mp-event { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--rubric); border-radius: var(--r-2); background: var(--surface); }
.mp-ewhen { font: 600 12.5px var(--sans); letter-spacing: .04em; color: var(--gold); text-transform: uppercase; }
.mp-eera { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.mp-et { font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.2; margin: 4px 0 0; }
.mp-ed { margin: 6px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.mp-eplaces { margin-top: 10px; }
.mp-erefs { margin: 10px 0 0; }
.mp-ref { color: var(--link); font: 13px var(--sans); white-space: nowrap; }
.mp-quote { margin: 10px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--gold-2); font-style: italic; color: var(--ink-2); line-height: 1.55; font-size: 16px; }
.mp-quote .mp-ref { font-style: normal; }
.mp-near { margin-top: 6px; }
.mp-elist { list-style: none; margin: 0; padding: 0; }
.mp-elist li + li { border-top: 1px solid var(--border); }
.mp-eb { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 2px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.mp-eb b { font-size: 17px; font-weight: 500; }
.mp-eb:hover b { color: var(--rubric); text-decoration: underline; }
.mp-ebw { font: 12px var(--sans); color: var(--muted); }
.mp-fine { font: 12.5px/1.5 var(--sans); color: var(--muted); margin: 14px 0 0; }
.mp-fine a { color: inherit; }

/* the place sheet */
.mp-sheet { padding-bottom: 6px; }
.mp-pk { margin: 0; font: 13.5px/1.5 var(--sans); color: var(--muted); }
.mp-pnow { margin: 8px 0 0; font-size: 16px; color: var(--ink-2); }
.mp-pnote { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.mp-vlist { list-style: none; margin: 0; padding: 0; }
.mp-vlist li { padding: 7px 0; border-top: 1px solid var(--border); line-height: 1.5; color: var(--ink-2); font-size: 15.5px; }
.mp-vlist li:first-child { border-top: 0; }
.mp-vref { font-variant: small-caps; letter-spacing: .03em; color: var(--rubric); text-decoration: none; font-weight: 600; white-space: nowrap; }
.mp-all { margin-top: 8px; }
.mp-all > summary { cursor: pointer; font: 600 13.5px var(--sans); color: var(--link); padding: 4px 0; }
.mp-books p { margin: 6px 0; line-height: 1.7; font-size: 15px; color: var(--ink-2); }
.mp-books b { font-variant: small-caps; letter-spacing: .03em; color: var(--rubric); margin-right: 4px; }
.mp-books a { color: var(--ink-2); }
.mp-pacts { margin-top: 14px; flex-wrap: wrap; }

@media (max-width: 520px) {
  .mp-stage { height: 58vh; min-height: 280px; }
  .mp-year { font-size: 21px; }
  .mp-et { font-size: 23px; }
  .mp-scale span:nth-child(2) { display: none; }
}

/* the key */
.mp-key { margin: 10px 0 0; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); padding: 2px 12px; }
.mp-key > summary { cursor: pointer; font: 600 13.5px var(--sans); color: var(--link); padding: 8px 0; }
.mp-keyl { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; }
.mp-keyl li { display: flex; align-items: center; gap: 8px; font: 13.5px/1.35 var(--sans); color: var(--ink-2); }
.mp-sw { flex: 0 0 34px; overflow: visible; }
.mp-sw .mp-land { stroke-width: 0.8; }
.mp-key .mp-fine { margin: 4px 0 8px; }
