/* BIBLICAL ARCHAEOLOGY (archaeology/archaeology.js): the finds in their photographs, a find's page, the timeline, the map,
   the digs, yours. The frame and the controls are nav/ui.css's (.ui-head, .ui-pills, .ui-list, .ui-chip, .ui-btn,
   .ui-fold, .ui-filter, .ui-toast); what's the app's own is the photographs: the wall of finds, the find of the day,
   the gallery and the photograph looked at closer, the ages laid side by side, and the pins on the map. */
.ar { position: fixed; inset: 0; z-index: 2147483000; background: var(--bg); color: var(--ink); overflow: hidden; opacity: 0; transition: opacity 0.18s ease; }
.ar.open { opacity: 1; }
.ar-box { position: absolute; inset: 0; display: flex; flex-direction: column; max-width: 1080px; margin: 0 auto; }
.ar .ui-head { flex: none; padding-top: calc(10px + env(safe-area-inset-top)); }
.ar-nav { flex: none; margin: 0 16px 8px; overflow-x: auto; scrollbar-width: none; }
.ar-nav::-webkit-scrollbar { display: none; }
.ar-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.ar-view[hidden] { display: none; }
.ar-lead { margin: 4px 0 12px; font: 15.5px/1.5 var(--sans); color: var(--muted); }
.ar-scope { margin: 0 2px 12px; font: 14.5px/1.5 var(--sans); color: var(--muted); }
.ar-vt-ref { display: inline-block; align-self: flex-start; margin: 1px 0 2px; font: 600 13px var(--sans); color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; } /* (a find's passage, on the timeline) */
.xp-noph { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 80%; text-align: center; color: #e2c98f; }
.xp-noph-ic { display: block; width: 64px; }
.xp-noph-ic svg, .xp-noph-ic .ar-ic { width: 100%; height: auto; }
.xp-noph p { margin: 0; font: 400 15px/1.45 var(--sans); color: rgba(243, 237, 226, 0.75); }
.xp-noph a { padding: 9px 16px; border: 1px solid rgba(226, 201, 143, 0.6); border-radius: 999px; color: #e2c98f; font: 700 14.5px var(--sans); text-decoration: none; }
.xp-it .xp-c-ref { color: #e2c98f; font-weight: 600; }
.xp[data-app="archaeology"] .xp-it small { font-size: 12.5px; line-height: 1.35; } /* (its passage and date, easier to read) */
.xp[data-app="archaeology"].is-mid .xp-it small { visibility: visible; } /* (and there as soon as the names are) */
.ar-order { margin: 2px 2px 10px; font: italic 500 13.5px/1.4 var(--serif); color: var(--muted); } /* (the finds in the Bible's order: said, over the wall) */
.ar-ct small.ar-ref-k { color: var(--ink); opacity: 0.75; } /* (the passage where Scripture first speaks of it, over its name) */
.ar-fine { margin: 14px 0 0; font: 13px/1.5 var(--sans); color: var(--muted); }
.ar-fine a { color: inherit; }
.ar-empty { margin: 30px 0; font: italic 15px var(--serif); color: var(--muted); text-align: center; }
.ar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ar-ages { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.ar-ages::-webkit-scrollbar { display: none; }
.ar-ages .ui-filter { flex: none; }
.ar .ui-label { margin: 18px 0 8px; }
.ar-ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ar-ic svg { width: 100%; height: 100%; }
.ar .ui-list { margin: 14px 0 0; }
.ar-fold-in { padding: 2px 14px 14px; }
.ar-more { text-decoration: none; }

/* ---- the find of the day */
.ar-today { position: relative; display: block; width: 100%; margin: 4px 0 16px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #2b2520; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: transparent; }
.ar-today-ph { display: block; aspect-ratio: 16 / 10; max-height: 46vh; width: 100%; }
.ar-today-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.ar-today:hover .ar-today-ph img { transform: scale(1.03); }
.ar-today-t { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 48px 18px 16px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78)); }
.ar-today-t small { font: 800 10.5px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #f0d9a6; }
.ar-today-t b { font: italic 600 24px/1.15 var(--serif); }
.ar-today-t em { font: 14px/1.45 var(--sans); font-style: normal; color: rgba(255, 255, 255, 0.86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- the wall: each find in its photograph */
.ar-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.ar-card { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.ar-ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--gold) 10%, var(--bg-raised)); color: var(--gold); box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.5); }
.ar-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ar-ph.is-none .ar-ic { width: 34px; height: 34px; opacity: 0.7; }
.ar-card:hover .ar-ph img { transform: scale(1.04); }
.ar-card:active .ar-ph { transform: scale(0.98); }
.ar-ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.ar-ct small { font: 700 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-ct b { font: 600 15px/1.25 var(--sans); }
.ar-ct em { font: 13px var(--sans); font-style: normal; color: var(--muted); }
.ar-wall.is-dim .ar-ph { filter: grayscale(0.6); opacity: 0.8; }
.ar-flag { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold, #221E19); font: 700 11px var(--sans); }
/* (a card as a row: a small photograph beside its name, in the timeline and on the map) */
.ar-card.is-row { flex-direction: row; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--rule); }
.ar-card.is-row .ar-ph { flex: none; width: 64px; aspect-ratio: 1; border-radius: 9px; }
.ar-card.is-row .ar-ct b { font-size: 14px; }

/* ---- a find's page */
.ar-find { max-width: 760px; margin: 0 auto; }
.ar-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; border-radius: 0; background: color-mix(in srgb, #000 82%, var(--bg)); }
.ar-gal::-webkit-scrollbar { display: none; }
.ar-slide { flex: none; width: 100%; margin: 0; scroll-snap-align: center; }
.ar-zoom { position: relative; display: grid; place-items: center; width: 100%; height: min(56vh, 520px); padding: 0; border: 0; background: none; cursor: zoom-in; }
.ar-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ar-slide.is-pano .ar-zoom img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.ar-copy, .ar-pano { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #221E19; font: 700 12px var(--sans); }
.ar-pano { left: auto; right: 12px; top: auto; bottom: 12px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.ar-galw { position: relative; }
.ar-gal-go { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; background: rgba(0, 0, 0, 0.52); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.15s ease; }
.ar-gal-go[hidden] { display: none; }
.ar-gal-go.is-prev { left: 4px; }
.ar-gal-go.is-next { right: 4px; }
.ar-gal-go svg { width: 22px; height: 22px; }
@media (hover: hover) { .ar-gal-go:hover { background: rgba(0, 0, 0, 0.72); } }
@media (min-width: 640px) { .ar-gal-go.is-prev { left: 12px; } .ar-gal-go.is-next { right: 12px; } }
.ar-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.ar-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: background 0.2s ease, transform 0.2s ease; }
.ar-dots i.is-on { background: var(--gold); transform: scale(1.2); }
.ar-cred { margin: 8px 0 0; font: 12.5px/1.45 var(--sans); color: var(--muted); }
.ar-cred a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); }
.ar-copy-t { color: var(--gold); }
.ar-noph { display: flex; align-items: center; gap: 12px; margin: 4px 0; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 8%, var(--bg-raised)); color: var(--muted); font: 14px/1.5 var(--sans); }
.ar-noph .ar-ic { width: 32px; height: 32px; color: var(--gold); }
.ar-noph a { color: var(--ink); }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 16px 0 10px; font: 600 13px var(--sans); color: var(--muted); }
.ar-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ar-meta .ar-ic { width: 17px; height: 17px; color: var(--gold); }
.ar-age { padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--ink); font: 600 12.5px var(--sans); cursor: pointer; }
.ar-says { margin: 0 0 14px; font: 19px/1.6 var(--serif); color: var(--ink); }
.ar-p { margin: 0 0 8px; font: 15.5px/1.55 var(--sans); color: var(--ink); }
.ar-note { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--coral-soft); font: 14.5px/1.5 var(--sans); color: var(--ink); border-radius: 0 8px 8px 0; }
.ar-bible { margin: 6px 0 4px; }
.ar-verse { margin: 0 0 12px; padding: 12px 16px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--gold) 7%, var(--bg-raised)); }
.ar-verse p { margin: 0 0 6px; font: italic 17px/1.6 var(--serif); }
.ar-verse cite { font: 700 12.5px var(--sans); font-style: normal; color: var(--gold); }
.ar-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 6px; font: 14.5px/1.5 var(--sans); }
.ar-dl dt { color: var(--muted); } .ar-dl dd { margin: 0; }
.ar-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 6px; }
.ar-step { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg-raised); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.ar-step.is-next { text-align: right; align-items: flex-end; }
.ar-step small { display: inline-flex; align-items: center; gap: 2px; font: 700 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ar-step small svg { width: 14px; height: 14px; }
.ar-step b { font: 600 14px/1.3 var(--sans); }
.ar-view.is-in-l > * { animation: ar-in-l 0.28s ease-out; }
.ar-view.is-in-r > * { animation: ar-in-r 0.28s ease-out; }
@keyframes ar-in-l { from { transform: translateX(36px); opacity: 0.2; } }
@keyframes ar-in-r { from { transform: translateX(-36px); opacity: 0.2; } }

/* ---- a photograph, looked at closer */
.ar-lb { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #0d0b09; color: #f3ede2; opacity: 0; transition: opacity 0.16s ease; }
.ar-lb[hidden] { display: none; }
.ar-lb.is-on { opacity: 1; }
.ar-lb-x { position: absolute; z-index: 2; top: calc(10px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: #fff; font: 300 28px/1 var(--sans); cursor: pointer; backdrop-filter: blur(6px); }
.ar-lb-n { position: absolute; z-index: 2; top: calc(20px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; font: 600 13px var(--sans); color: rgba(255, 255, 255, 0.75); pointer-events: none; transition: opacity 0.3s ease; }
.ar-lb-foot { transition: opacity 0.3s ease; }
.ar-lb.is-bare .ar-lb-foot, .ar-lb.is-bare .ar-lb-n { opacity: 0; pointer-events: none; }
.ar-lb.is-bare .ar-lb-x { opacity: 0.75; }
.ar-lb-sc { flex: 1; min-height: 0; height: 100%; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.ar-lb-sc img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ar-lb-sc.is-zoom { display: block; overflow: auto; cursor: zoom-out; }
.ar-lb-sc.is-zoom img { max-width: none; max-height: none; width: 260%; }
.ar-lb-sc.is-pano { display: block; overflow-x: auto; overflow-y: hidden; cursor: grab; }
.ar-lb-sc.is-pano img { max-width: none; max-height: none; height: 100%; width: auto; }
.ar-lb-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent); display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.ar-lb-foot p { flex: 1; margin: 0; text-align: center; font: 13px/1.45 var(--sans); color: rgba(255, 255, 255, 0.78); }
.ar-lb-foot a { color: inherit; }
.ar-lb-foot .ar-copy-t { color: #f0d9a6; }
.ar-lb-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.ar-lb-go[hidden] { visibility: hidden; display: grid; }
.ar-lb-go svg { width: 20px; height: 20px; }

/* ---- the timeline, upright: down the page, a rail on the left, each age a section with its name held at the top as you
   pass through it, the story's moments on the rail between the finds (archaeology.js drawTimeline). On its side, the
   explorer (nav/explore.css, and its world at the end of this file) */
.ar-tl-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 16px; }
.ar-tl-top .ar-lead { flex: 1 1 220px; margin: 0 0 8px; }
.ar-book { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; font: 700 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ar-book select { min-width: 180px; padding: 7px 10px; }
.ar-vt-ages { position: sticky; top: -4px; z-index: 3; margin: 0 -16px 6px; padding: 8px 16px; background: var(--bg); box-shadow: 0 8px 12px -12px rgba(0, 0, 0, 0.3); }
.ar-vt { position: relative; padding: 0 0 10px; }
.ar-vt::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 30px; width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--gold) 45%, var(--rule)); }
.ar-vt-era { position: relative; padding: 0 0 8px; }
.ar-vt-h { position: sticky; top: 42px; z-index: 2; display: flex; flex-direction: column; gap: 1px; margin: 0 -16px 6px; padding: 10px 16px 8px 40px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(4px); }
.ar-vt-h i { position: absolute; left: 21px; top: 14px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.ar-vt-h b { font: italic 600 19px/1.2 var(--serif); }
.ar-vt-h small { font: 700 11.5px var(--sans); letter-spacing: 0.04em; color: var(--gold); }
.ar-vt-f { position: relative; display: flex; gap: 12px; align-items: flex-start; width: 100%; margin: 0 0 12px; padding: 0 0 0 34px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ar-vt-dot { position: absolute; left: 7px; top: 30px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--gold); }
.ar-vt-f .ar-ph { flex: none; width: 104px; aspect-ratio: 4 / 3; border-radius: 12px; }
.ar-vt-f .ar-ct { flex: 1; min-width: 0; padding: 2px 0 0; }
.ar-vt-f .ar-ct small { text-transform: none; letter-spacing: 0; font: 600 12px var(--sans); color: var(--gold); }
.ar-vt-f .ar-ct b { font: 600 15.5px/1.3 var(--sans); }
.ar-vt-f .ar-ct em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font: 13.5px/1.4 var(--sans); color: var(--muted); }
.ar-vt-f:active .ar-ph { transform: scale(0.97); }
.ar-vt-ev { position: relative; display: flex; align-items: center; width: 100%; margin: 2px 0 14px; padding: 0 0 0 34px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.ar-vt-ev i { position: absolute; left: 6px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; transform: rotate(45deg); background: var(--bg); border: 2px solid var(--muted); }
.ar-vt-ev span { display: flex; flex-direction: column; gap: 1px; padding: 6px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 7%, var(--bg-raised)); }
.ar-vt-ev em { font: italic 600 15px/1.25 var(--serif); }
.ar-vt-ev small { font: 600 11.5px var(--sans); color: var(--muted); }
.ar-tl-none { margin: 0; font: italic 13.5px var(--serif); color: var(--muted); }
@media (min-width: 640px) { .ar-vt-f .ar-ph { width: 150px; } .ar-vt { max-width: 760px; } }

/* ---- the map */
.ar.is-map .ar-body { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.ar.is-map .ar-view[data-ar-v="map"] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ar-map-ages { margin-bottom: 10px; }
.ar-mapbox { position: relative; flex: 1; min-height: 280px; margin: 0 -16px; }
.ar-map { position: absolute; inset: 0; width: 100%; height: 100%; } .ar-mapbox > .ar-map.maplibregl-map { position: absolute; } /* (the map library makes it relative: held to the box, full size) */
.ar-pin { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--bg-raised); color: var(--gold); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); cursor: pointer; overflow: visible; }
.ar-pin img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ar-pin .ar-ic { width: 20px; height: 20px; }
.ar-pin b { position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--gold); color: var(--on-gold, #221E19); font: 800 12px/22px var(--sans); text-align: center; box-shadow: 0 0 0 2px #fff; }
.ar-pin.is-group { width: 50px; height: 50px; }
.ar-pin.is-sel { border-color: var(--gold); transform: scale(1.12); }
.ar-mcard { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 420px; max-height: 55%; overflow-y: auto; padding: 12px; border-radius: 16px; background: var(--bg); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.5); }
.ar-mcard[hidden] { display: none; }
.ar-mcard-at { margin: 0 30px 8px 2px; font: 700 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.ar-mcard > .ar-card { flex-direction: row; align-items: center; gap: 12px; }
.ar-mcard > .ar-card .ar-ph { flex: none; width: 96px; }
.ar-mcard-list { display: flex; flex-direction: column; gap: 8px; }
.ar-mcard-x { position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 22px/1 var(--sans); cursor: pointer; }

/* ---- the digs, and the latest */
.ar-news { display: flex; flex-direction: column; }
.ar-news-i { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.ar-news-i:last-child { border-bottom: 0; }
.ar-news-i small { display: block; margin: 0 0 3px; font: 12.5px var(--sans); color: var(--muted); }
.ar-news-i b { display: block; font: 600 15px/1.4 var(--sans); color: var(--ink); }
.ar-news-i i { display: inline-block; margin: 4px 6px 0 0; padding: 1px 7px; border-radius: 10px; background: var(--coral-soft); color: var(--gold); font: 600 12px var(--sans); font-style: normal; }
.ar-news-i:hover b { color: var(--gold); }
.ar-latest { margin-top: 22px; }

/* ---- yours */
.ar-yours-h { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 4px 0 6px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 8%, var(--bg-raised)); }
.ar-yours-h b { font: italic 600 19px/1.3 var(--serif); }
.ar-bar { align-self: stretch; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.ar-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold); }

/* ---- the toast, in the window's own place */
.ar .ui-toast { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 6; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
.ar .ui-toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.2s ease, transform 0.2s ease; }
/* (hidden between its moments: empty, it was a grey pill at the foot of every page. From the owner: "What is the grey pill…? Can it be removed?") */

@media (min-width: 640px) {
  .ar-wall { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px 16px; }
  .ar-gal { margin: 0; border-radius: 16px; }
  .ar-today-t b { font-size: 30px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .ar-today-ph { max-height: 60vh; }
  .ar-zoom { height: 62vh; }
}
@media (prefers-reduced-motion: reduce) { .ar-view.is-in-l > *, .ar-view.is-in-r > * { animation: none; } .ar-today-ph img, .ar-ph img { transition: none; } }

/* ---- in 3D: the find turned in the hand (archaeology/viewer3d.js), over the window, as a photograph looked at closer is */
.ar-3dtag { position: absolute; right: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(20, 16, 12, 0.72); color: #f3e3bd; font: 800 10.5px var(--sans); letter-spacing: 0.08em; }
.ar-3drow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 14px 0 0; }
.ar-3dbtn { display: inline-flex; align-items: center; gap: 8px; }
.ar-3dbtn svg { width: 19px; height: 19px; }
.ar-3drow small { font: 13px var(--sans); color: var(--muted); }
.a3 { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 42%, #3a332b 0%, #1d1915 62%, #121010 100%); color: #f3ede2; opacity: 0; transition: opacity 0.18s ease; }
.a3.is-on { opacity: 1; }
.a3-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 6px; }
.a3-t { min-width: 0; display: flex; flex-direction: column; }
.a3-t small { font: 800 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #e2c98f; }
.a3-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 600 20px/1.2 var(--serif); }
.a3-pick { flex: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 6px; }
.a3-pick:empty { display: none; }
.a3-pick::-webkit-scrollbar { display: none; }
.a3-pick .ui-filter { flex: none; background: rgba(255, 255, 255, 0.06); color: #f3ede2; border-color: rgba(255, 255, 255, 0.18); }
.a3-pick .ui-filter.is-on { background: rgba(226, 201, 143, 0.22); border-color: #e2c98f; }
.a3-stage { position: relative; flex: 1; min-height: 0; touch-action: none; }
.a3-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.a3-stage canvas:active { cursor: grabbing; }
.a3-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 13px var(--sans); color: rgba(255, 255, 255, 0.75); }
.a3-load[hidden] { display: none; }
.a3-load i { display: block; width: 180px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.a3-load b { display: block; width: 0; height: 100%; background: #e2c98f; transition: width 0.2s ease; }
.a3-rep { position: absolute; left: 12px; right: 12px; top: 6px; max-width: 520px; padding: 9px 12px; border-radius: 12px; background: rgba(166, 119, 58, 0.22); border: 1px solid rgba(226, 201, 143, 0.45); font: 13.5px/1.45 var(--sans); color: #f3ede2; }
.a3-rep[hidden] { display: none; }
.a3-rep b { color: #f0d9a6; }
.a3-hint { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font: 600 12.5px var(--sans); color: rgba(255, 255, 255, 0.55); pointer-events: none; transition: opacity 0.4s ease; }
.a3-hint.is-gone { opacity: 0; }
.a3-foot { flex: none; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); }
.a3-row { display: flex; align-items: center; gap: 10px; }
.a3-seg { flex: 1; max-width: 260px; }
.a3-seg button { flex: 1; }
.a3 .ui-seg { background: rgba(255, 255, 255, 0.08); }
.a3 .ui-seg button { color: #f3ede2; }
.a3 .ui-seg button.is-on { background: #f3ede2; color: #221e19; }
.a3-reset { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; padding: 0; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: none; color: #f3ede2; cursor: pointer; }
.a3-reset svg { width: 18px; height: 18px; }
.a3-light { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; font: 700 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #e2c98f; }
.a3-light[hidden] { display: none; }
.a3-light input { flex: 1; accent-color: #e2c98f; }
.a3-cred { margin: 10px 0 0; font: 12.5px/1.45 var(--sans); color: rgba(255, 255, 255, 0.62); }
.a3-cred a { color: inherit; }
.a3 .x-close { background: rgba(255, 255, 255, 0.08); color: #f3ede2; border-color: rgba(255, 255, 255, 0.25); }
@media (orientation: landscape) and (max-height: 500px) { .a3-card { left: auto; right: 12px; top: 8px; bottom: auto; width: 46%; max-height: 86%; } .a3-rep:not(.is-open) { max-width: 48%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: calc(2.9em + 18px); cursor: pointer; } .a3-top { padding-top: calc(6px + env(safe-area-inset-top)); } .a3-foot { padding-top: 4px; } .a3-cred { margin-top: 6px; } }
/* ---- the words on it: spots on the stone, the card that says what they say, and the chips to go to each (viewer3d.js, spotsPlace) */
.a3-spots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.a3-spot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; margin: -14px 0 0 -14px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; pointer-events: auto; transition: opacity 0.2s ease; }
.a3-spot.is-off { opacity: 0; pointer-events: none; }
.a3-spot i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #f0d9a6; background: rgba(240, 217, 166, 0.28); box-shadow: 0 0 0 4px rgba(240, 217, 166, 0.18); animation: a3-pulse 1.8s ease-in-out infinite; }
.a3-spot span { max-width: 150px; padding: 3px 9px; border-radius: 999px; background: rgba(20, 16, 12, 0.72); font: 700 12px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a3-spot.is-on i { background: #f0d9a6; animation: none; }
@keyframes a3-pulse { 50% { box-shadow: 0 0 0 10px rgba(240, 217, 166, 0.06); } }
.a3-card { position: absolute; left: 12px; right: 12px; bottom: 34px; max-width: 460px; max-height: 42%; overflow-y: auto; padding: 12px 36px 12px 14px; border-radius: 14px; background: rgba(18, 15, 12, 0.88); border: 1px solid rgba(240, 217, 166, 0.35); color: #f3ede2; backdrop-filter: blur(6px); }
.a3-card[hidden] { display: none; }
.a3-card b { display: block; margin: 0 0 4px; font: italic 600 18px/1.2 var(--serif); color: #f0d9a6; }
.a3-card p { margin: 0; font: 13.5px/1.45 var(--sans); }
.a3-card-refs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.a3-card-refs .ui-chip { background: rgba(255, 255, 255, 0.08); color: #f3ede2; border-color: rgba(255, 255, 255, 0.22); }
.a3-card-x { position: absolute; right: 6px; top: 4px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, 0.7); font: 22px/1 var(--sans); cursor: pointer; }
.a3-words { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 0; padding: 0 16px; }
.a3-words:empty { display: none; }
.a3-words::-webkit-scrollbar { display: none; }
.a3-words .ui-chip { flex: none; background: rgba(255, 255, 255, 0.06); color: #f3ede2; border-color: rgba(255, 255, 255, 0.18); }
@media (prefers-reduced-motion: reduce) { .a3-spot i { animation: none; } }


/* ---- finding the way: Back says where it goes (the part it came from, the find under the photograph or the 3D), as a phone's
   own apps do; a pill, as Memorize's hub button is (nav/ui.css .mz-hub). From the owner: "It's not so clear how to get back" */
.ar .ui-back, .a3 .ui-back { width: auto; padding: 0 12px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }
.ar .ui-back svg, .a3 .ui-back svg { width: 17px; height: 17px; flex: none; }
.ar .ui-back span, .a3 .ui-back span { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13.5px var(--sans); }
.a3 .ui-back span { max-width: 26vw; } /* (room for the model's name beside it) */
.a3 .ui-back { background: rgba(255, 255, 255, 0.08); color: #f3ede2; border-color: rgba(255, 255, 255, 0.25); }
.a3-top .a3-t { flex: 1; }
/* (a pinch on a page zooms the whole page; on the photographs it opens the one under the fingers instead, and the hint says to tap) */
.ar-gal { touch-action: pan-x pan-y; }
.ar-tap { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 700 12px var(--sans); pointer-events: none; }
.ar-slide.is-pano .ar-tap { display: none; }
/* (the photograph, close: pinched and slid, the picture moving, never the page) */
.ar-lb-sc { touch-action: none; overscroll-behavior: contain; grid-template-columns: 100%; grid-template-rows: 100%; } /* (a definite row, so the picture's max-height holds on a short, wide screen) */
.ar-lb-sc img { transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.ar-lb-sc.is-zoom { display: grid; overflow: hidden; cursor: grab; }
.ar-lb-sc.is-zoom img { max-width: 100%; max-height: 100%; width: auto; }
.ar-lb-sc.is-pano { touch-action: pan-x; }

/* ---- what a dig has found: a picture, a few words, and the rest at the dig's own page */
.ar-found { display: flex; flex-direction: column; gap: 12px; }
.ar-fd { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--rule); border-radius: 16px; background: var(--bg-raised); }
.ar-fd-ph { flex: none; display: grid; place-items: center; width: 92px; height: 92px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--gold) 10%, var(--bg)); color: var(--gold); cursor: default; }
button.ar-fd-ph { cursor: pointer; }
.ar-fd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-fd-ph.is-none .ar-ic { width: 30px; height: 30px; opacity: 0.7; }
.ar-fd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-fd-t small { font: 700 10.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.ar-fd-t b { font: italic 600 17px/1.25 var(--serif); }
.ar-fd-t p { margin: 2px 0 6px; font: 14.5px/1.5 var(--sans); color: var(--ink); }
.ar-fd-t .ar-chips { margin: 0; }
.ar-fd-more { text-decoration: none; }
.ar-fd-cred { margin: 6px 0 0; font: 11.5px/1.4 var(--sans); color: var(--muted); }
.ar-fd-cred a { color: inherit; }
@media (max-width: 420px) { .ar-fd-ph { width: 72px; height: 72px; } }

/* ---- the timeline, with a phone on its side, roamed with both thumbs (nav/explore.js, tlExplore): its world */
.xp-a-band { position: absolute; top: 0; height: 100%; background: rgba(243, 237, 226, 0.035); border-left: 1px dashed rgba(226, 201, 143, 0.18); }
.xp-a-band.is-alt { background: rgba(243, 237, 226, 0.065); }
.xp-a-line { position: absolute; height: 4px; border-radius: 2px; background: rgba(226, 201, 143, 0.55); }
.xp-a-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.xp-a-svg path { stroke: rgba(226, 201, 143, 0.4); stroke-width: 1.5; fill: none; }
.xp-a-svg circle { fill: #171411; stroke: #e2c98f; stroke-width: 2; }
.xp-a-ev { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; pointer-events: none; }
.xp-a-ev { gap: 2px; padding: 2px 8px; border-radius: 8px; background: rgba(23, 20, 17, 0.72); }
.xp-a-ev em { font: italic 600 15.5px/1.2 var(--serif); color: #f3ede2; }
.xp-a-ev small { font: 700 12px var(--sans); letter-spacing: 0.04em; color: rgba(226, 201, 143, 0.9); }
.xp-a-ev::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: calc(var(--h) - 18px); margin-top: 2px; background: rgba(243, 237, 226, 0.35); }
.xp.is-far .xp-a-ev { opacity: 0.45; }

/* on a phone on its side, after Its full page or Menu in the full-screen timeline: the way back to it */
.ar-xpback[hidden] { display: none; }
/* (.ar-xpback: Across the screen, first in the top bar: nav/explore.js pagePill) */
