/* =========================================================================
   Dheshkronjë — design system
   Two themes: "Nata" (dark, default — map, 3D, cinema) and "Dita" (light,
   parchment — reading). Colours checked for WCAG AA text contrast.
   ========================================================================= */
:root, [data-theme="dark"] {
  --bg: #100d18; --bg-2: #171325; --bg-3: #1f1a31; --bg-glass: rgba(16, 13, 24, .86);
  --line: rgba(233, 214, 170, .14); --line-2: rgba(233, 214, 170, .26);
  --text: #f3ecdf; --text-2: #c9bfae; --text-3: #a39884;
  --gold: #d8b34f; --gold-ink: #1a1405; --gold-soft: rgba(216, 179, 79, .12);
  --clay: #e0906a; --red: #ee8a74; --blue: #9fc3de; --green: #9cc49a;
  --paper: #efe4cc; --paper-ink: #2a231d;
  --shadow: 0 18px 60px rgba(0, 0, 0, .45);
  --map-land: #1b1728; --map-water: #0b0a13;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4ecdd; --bg-2: #ebe1cc; --bg-3: #fbf7ef; --bg-glass: rgba(244, 236, 221, .9);
  --line: rgba(60, 40, 20, .14); --line-2: rgba(60, 40, 20, .26);
  --text: #221b15; --text-2: #594f45; --text-3: #665c51;
  --gold: #7a5a12; --gold-ink: #fbf7ef; --gold-soft: rgba(122, 90, 18, .1);
  --clay: #a4532b; --red: #6e1e2b; --blue: #2f5f7a; --green: #3d6b45;
  --paper: #fbf7ef; --paper-ink: #2a231d;
  --shadow: 0 18px 50px rgba(60, 40, 20, .18);
  --map-land: #efe6d3; --map-water: #cfdde0;
  color-scheme: light;
}
:root {
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 68px;
  --radius: 10px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
/* At least a screen tall, so the footer never sits in view while a page is still arriving (and then jumps). */
main { flex: 1; outline: none; }
/* The footer waits for the first page to be drawn (main.js), so it never sits in view and then jumps down. */
html:not(.rendered) .site-footer { display: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 1.15em; height: 1.15em; flex-shrink: 0; }
.inline-ico { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; }
/* Category colours are mixed with the text colour so labels stay readable in both themes. */
.tinted { color: color-mix(in srgb, var(--c, var(--gold)) 55%, var(--text)) !important; }
[data-theme="light"] .tinted { color: color-mix(in srgb, var(--c, var(--gold)) 35%, var(--text)) !important; }
.links h3 svg { width: 16px; height: 16px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
/* A page's heading takes the focus after a page change so screen readers start there (main.js); it is not a control. */
[tabindex="-1"]:focus-visible { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--gold); color: var(--gold-ink); padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.num, .code, time { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
/* Small labels are set in sentence case: they say what a thing is without shouting. The 3D collection keeps its
   capitals, because its catalogue plates are built that way. */
.eyebrow { font: 600 14px/1.4 var(--sans); color: var(--gold); }
.ex-brand .eyebrow, .ex-head .eyebrow, .ex-link-card .eyebrow, .ex-kthimi .eyebrow, .ex-film .eyebrow { font: 700 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--text-2); }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.prose { font: 400 19px/1.65 var(--serif); color: var(--text); }
.prose p { margin-bottom: .85em; }
.gold-period { color: var(--gold); }
.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 22px 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 20px; padding: 0 22px; background: var(--bg-glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
/* Moving between pages: one short cross-fade (main.js); the header stays where it is. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.3, .6, .2, 1); }
::view-transition-group(site-header) { animation: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
/* Mark = the Smira labyrinth (3-fold serpentine) with a globe at its heart; the dot is the place you enter by. */
.brand-mark { width: 42px; height: 42px; stroke: var(--gold); }
.brand-mark .bm-ring { stroke-width: 2.4; }
.brand-mark .bm-walls { stroke-width: 2.2; transform-origin: 32px 32px; }
.brand-mark .bm-globe { stroke-width: 1.5; }
.brand-mark .bm-dot { fill: var(--clay); stroke: none; }
/* Three-fold symmetry: a 120° turn ends exactly where it began, so the loop is seamless. */
.brand:hover .bm-walls, .brand:focus-visible .bm-walls { animation: bm-turn 1.6s var(--ease); }
@keyframes bm-turn { to { transform: rotate(120deg); } }
@media (prefers-reduced-motion: reduce) { .brand:hover .bm-walls, .brand:focus-visible .bm-walls { animation: none; } }
.brand-word { font: 500 24px/1 var(--display); letter-spacing: -.01em; }
.brand-period { color: var(--gold); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text-2); transition: color .2s, background .2s; }
.main-nav a svg { width: 18px; height: 18px; }
.main-nav a:hover { color: var(--text); background: var(--gold-soft); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tool-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); font: 700 13px var(--sans); letter-spacing: .04em; }
.tool-btn:hover { color: var(--text); border-color: var(--line-2); }
.tool-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }

.global-search { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; width: 300px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); transition: border-color .2s, width .3s var(--ease); }
.global-search:focus-within { border-color: var(--gold); width: 360px; }
.global-search > svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.global-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; }
.global-search input::placeholder { color: var(--text-3); }
.global-search kbd { font: 600 12px var(--sans); color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.suggest { position: absolute; top: calc(100% + 8px); right: 0; width: min(440px, 92vw); max-height: 70vh; overflow: auto; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.suggest a { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 8px; text-decoration: none; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--gold-soft); }
.suggest a svg { width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.suggest strong { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.suggest small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.35; }
.suggest .suggest-all { display: block; text-align: center; color: var(--gold); font-weight: 700; font-size: 14px; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; }
.suggest .empty { padding: 14px; color: var(--text-2); font-size: 14px; }

/* ---------- buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 10px; font: 700 15px var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--gold); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; text-decoration: none; font-size: 15px; }
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 14px var(--sans); color: var(--text-2); background: var(--bg-2); white-space: nowrap; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.chip .count { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.chip svg { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 13px/1.5 var(--sans); color: var(--text-2); white-space: nowrap; }
.badge b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 12px var(--sans); background: var(--gold-soft); color: var(--gold); }
.badge[data-ev="A"] b, .badge[data-ev="B"] b { background: rgba(156, 196, 154, .16); color: var(--green); }
.badge[data-ev="D"] b, .badge[data-ev="L"] b { background: rgba(224, 144, 106, .16); color: var(--clay); }
[data-theme="light"] .badge[data-ev="D"] b, [data-theme="light"] .badge[data-ev="L"] b { color: #8a4424; }
[data-theme="light"] .badge b { color: #664a0c; }
[data-theme="light"] .badge[data-ev="A"] b, [data-theme="light"] .badge[data-ev="B"] b { color: #2f5436; }
.badge[data-ev="I"] b { background: rgba(159, 195, 222, .16); color: var(--blue); }
.badge[data-ev="P"] b { background: transparent; color: var(--text-3); border: 1px dashed var(--line-2); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 6px; font: 700 13px/1.6 var(--sans); letter-spacing: .01em; background: var(--gold-soft); color: var(--gold); }

/* ---------- home ---------- */
/* The hero is the region written in the names of its places. On phones the names follow the words; on wide screens
   they fill the hero and the title is written on the Adriatic, where the map has no names. */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(36px, 6vh, 64px) 0 clamp(48px, 8vh, 80px); border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; }
.hero .namemap { order: 2; width: min(var(--wrap), calc(100% - 40px)); margin: 30px auto 0; }
@media (min-width: 961px) {
  .hero { min-height: calc(100svh - var(--header-h)); justify-content: center; padding: 56px 0 72px; }
  /* The sea under the words: the names fade out behind them, and the hero melts into the page below. */
  .hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 94%, transparent) 24%, color-mix(in srgb, var(--bg) 55%, transparent) 42%, transparent 58%),
      linear-gradient(0deg, var(--bg) 0%, transparent 16%); }
  /* The names lie under the sea's fade (z 0 < 1); the caption and its switch sit above it (z 2). */
  .hero .namemap { position: absolute; inset: 0; z-index: auto; width: auto; margin: 0; }
  .hero .nm-field { --nm-fill: 1; position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; }
  .hero .hero-copy { width: min(620px, 48%); margin-inline: max(20px, calc((100% - var(--wrap)) / 2)) 0; }
  .hero .nm-cap { position: absolute; z-index: 2; right: clamp(20px, 4vw, 56px); bottom: 30px; min-height: 0; max-width: 340px; margin: 0; text-align: right; }
  .hero .nm-cap p { margin-left: auto; }
  .hero .nm-modes { justify-content: flex-end; }
}
/* The archive's own search (explore.js); the home page's search lives in the header. */
.hero-search { position: relative; display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 30px 0 0; padding: 0 8px 0 18px; height: 58px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.hero-search:focus-within { border-color: var(--gold); }
.hero-search > svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 18px; }
.hero-search input::placeholder { color: var(--text-3); }
.hero-search .suggest { left: 0; right: 0; width: auto; text-align: left; }
/* The platform in one minute opens the hero (film.js, reel): its first frame, the word itself, with a play button.
   index.html's hero shell has the same. */
.hero-reel { display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; margin: 0; padding: 6px 20px 6px 6px; border: 1px solid var(--line-2); border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 82%, transparent); text-align: left; transition: border-color .2s, transform .25s var(--ease); }
.hero-reel:hover { border-color: var(--gold); transform: translateY(-2px); }
.hero-reel-frame { position: relative; flex: none; width: 136px; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: #0c0a12; }
.hero-reel-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hero-reel:hover .hero-reel-frame img { transform: scale(1.06); }
.hero-reel .play { position: absolute; left: 7px; bottom: 7px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.hero-reel .play svg { width: 13px; height: 13px; margin-left: 2px; }
.hero-reel-text b { display: block; font: 500 clamp(19px, 1.6vw, 22px)/1.2 var(--display); color: var(--text); }
.hero-reel-text small { display: block; margin-top: 5px; font: 600 13px/1.3 var(--sans); color: var(--text-3); }
/* The four doors, each led by its symbol on its plate (doors.js); the symbol moves when its door is pointed at. */
.hero-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin-top: 30px; }
.hero-door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 4px 12px; border-radius: 16px; text-decoration: none; text-align: center; color: var(--text-2); font: 700 14px/1.25 var(--sans); transition: color .2s, background .2s; }
.hero-door .sym { --sym-w: 78px; transition: transform .35s var(--ease); }
.hero-door .sym-plate { box-shadow: inset 0 0 0 1px rgba(241, 152, 38, .16), 0 10px 26px -12px rgba(0, 0, 0, .6); }
.hero-door:hover, .hero-door:focus-visible { color: var(--gold); background: var(--gold-soft); }
.hero-door:hover .sym, .hero-door:focus-visible .sym { transform: translateY(-4px); }
/* Wide screens: the hero holds only the film and the four doors, so the doors can be big. */
@media (min-width: 961px) { .hero-door { font-size: 15px; } .hero-door .sym { --sym-w: 96px; } }
.nowrap { white-space: nowrap; }

/* The name-map: the region written in the names of its places (assets/js/namemap.js). Upright = today, italic = ancient. */
.namemap { position: relative; min-width: 0; margin: 0; }
.nm-field { position: relative; width: 100%; aspect-ratio: var(--nm-aspect, 1.091); } /* 1.091: namemap.js ASPECT, so nothing moves when it is set */
.nm { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; line-height: 1; pointer-events: none; opacity: var(--o, .6); transition: color .2s, opacity .45s var(--ease), transform .2s var(--ease); }
/* Sot / Në lashtësi: one time's names step forward, the other's fade to a trace. */
.nm-field[data-mode="now"] .nm-old, .nm-field[data-mode="old"] .nm-now { opacity: calc(var(--o, .6) * .1); }
.nm-field[data-mode="now"] .nm-now, .nm-field[data-mode="old"] .nm-old { opacity: min(1, calc(var(--o, .6) * 1.45)); }
.nm-modes { display: flex; gap: 6px; margin-top: 12px; }
.nm-modes button { padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-glass); color: var(--text-2); font: 500 13px/1.3 var(--sans); transition: color .2s, background .2s, border-color .2s; }
.nm-modes button + button { font: italic 400 15px/1.2 var(--serif); }
.nm-modes button:hover { color: var(--text); border-color: var(--gold); }
.nm-modes button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.nm-now { font: 500 1em/1 var(--display); color: var(--text); }
.nm-old { font: italic 400 1em/1 var(--serif); color: color-mix(in srgb, #cf9a5b 70%, var(--text)); }
[data-theme="light"] .nm-old { color: color-mix(in srgb, #cf9a5b 35%, var(--text)); }
.nm.is-hot { color: var(--gold); opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
.nm-field.has-hot .nm:not(.is-hot) { opacity: calc(var(--o, .6) * .5); }
.nm-field.is-live { cursor: pointer; }
/* One reveal on arrival, west to east like a line of writing. `backwards` so hover styles take over afterwards. */
.nm-field.reveal .nm { animation: nm-in .9s var(--ease) var(--d, 0ms) backwards; }
@keyframes nm-in { from { opacity: 0; filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .nm-field.reveal .nm { animation: none; } .nm { transition: none; } }
.nm-cap { min-height: 5.6em; margin-top: 14px; }
.nm-cap p { margin: 0; color: var(--text-3); font: 400 14px/1.55 var(--sans); max-width: 62ch; }
.nm-cap .nm-title { margin: 0 0 4px; color: var(--text); font: italic 500 22px/1.3 var(--display); }

.section { padding: clamp(56px, 9vh, 96px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head h2 { max-width: 24em; font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { max-width: 520px; color: var(--text-2); margin: 0; font: 400 19px/1.55 var(--serif); }

/* The three entrances as a contents page: name, what is behind it, how much. */
.index { border-top: 1px solid var(--line-2); }
.index-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr) 190px; gap: 8px clamp(24px, 4vw, 56px); align-items: baseline; padding: 28px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.index-row h3 { font-size: clamp(28px, 3vw, 38px); transition: color .2s; }
.index-row p { margin: 0; max-width: 50ch; color: var(--text-2); font: 400 19px/1.55 var(--serif); }
.index-count { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; color: var(--text-2); font-size: 14px; white-space: nowrap; }
.index-count b { font: 500 clamp(30px, 3vw, 40px)/1 var(--display); color: var(--text); font-variant-numeric: lining-nums; transition: color .2s; }
.index-row:hover h3, .index-row:hover .index-count b { color: var(--gold); }

.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.feature-visual { position: relative; aspect-ratio: 4 / 4.2; border-radius: 16px; background: radial-gradient(ellipse at 50% 55%, rgba(216, 179, 79, .16), transparent 65%), var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; overflow: hidden; }
.feature-visual img { width: 78%; height: 86%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transition: transform .5s var(--ease); }
.feature-visual:hover img { transform: scale(1.03) translateY(-4px); }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--line-2); border-style: solid; }
.corner.tl { top: 14px; left: 14px; border-width: 1px 0 0 1px; } .corner.br { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.corner.tr { top: 14px; right: 14px; border-width: 1px 1px 0 0; } .corner.bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.label { margin: 0; color: var(--gold); font: italic 500 20px/1.3 var(--serif); }
.feature h2 { font-size: clamp(38px, 4.8vw, 60px); margin: 8px 0 18px; }
.big-number { font: 500 clamp(64px, 9vw, 108px)/1 var(--display); color: var(--gold); font-variant-numeric: lining-nums; }
.progress-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.progress-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.progress-list b { font-variant-numeric: tabular-nums; }

/* Each journey drawn as its own route: the real positions of its stations, joined in order. */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.route { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--accent, var(--gold)); text-decoration: none; }
.route-glyph { width: 100%; height: 96px; stroke: var(--accent, var(--gold)); stroke-width: 1.5; }
/* On the journeys page each card shows its first photo with the route drawn over its foot. */
.route-visual { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--bg-2); }
.route-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.route-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 13, 24, 0) 40%, rgba(16, 13, 24, .88) 100%); }
.route-visual .route-glyph { position: absolute; left: 14px; right: 14px; bottom: 12px; width: auto; height: 74px; z-index: 1; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.route-visual.no-photo { aspect-ratio: auto; background: none; overflow: visible; }
.route-visual.no-photo::after { display: none; }
.route-visual.no-photo .route-glyph { position: static; height: 96px; }
.route:hover .route-visual img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .route-visual img { transition: none; } }
.route-glyph circle { fill: var(--bg); stroke-width: 1.6; }
.route-glyph circle.start { fill: var(--accent, var(--gold)); }
.route h2 { margin-top: 6px; font-size: 30px; }
.route p { margin: 0; color: var(--text-2); font: 400 18px/1.55 var(--serif); }
.route-meta { color: var(--text-3); font: 600 13px var(--sans); }
.route-go { margin-top: auto; padding-top: 6px; color: color-mix(in srgb, var(--accent, var(--gold)) 70%, var(--text)); font: 700 15px var(--sans); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.route:hover .route-go, .route:focus-visible .route-go { text-decoration-color: currentColor; }

/* The home page's journeys: an index of names in time order; the one under the pointer (or in focus) is shown beside
   it with its first photo and its route. */
.jx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.jx-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--line-2); }
.jx-list li { break-inside: avoid; }
.jx-item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 2px 11px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font: 500 clamp(19px, 1.5vw, 23px)/1.25 var(--display); transition: color .2s, border-color .2s; }
.jx-n { font: 600 13px/1 var(--sans); color: var(--text-3); }
.jx-item:hover, .jx-item:focus-visible, .jx-item.is-on { color: color-mix(in srgb, var(--accent) 78%, var(--text)); border-bottom-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.jx-preview { position: sticky; top: calc(var(--header-h) + 28px); }
.jx-card { display: grid; gap: 16px; color: var(--text); text-decoration: none; }
.jx-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.jx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.jx-card .route-glyph { height: 76px; }
.jx-themes { font: 600 14px/1.4 var(--sans); color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.jx-desc { font: 400 18px/1.55 var(--serif); color: var(--text-2); }
.jx-when { font: 600 13px/1.4 var(--sans); color: var(--text-3); }
/* Pointing at a journey draws its route, station by station, as a line is written. */
.jx-card .route-glyph polyline { stroke-dasharray: 1; stroke-dashoffset: 0; animation: jx-draw 1.1s var(--ease) both; }
.jx-card .route-glyph circle { animation: jx-dot .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 90ms + 250ms); }
@keyframes jx-draw { from { stroke-dashoffset: 1; } }
@keyframes jx-dot { from { opacity: 0; transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { .jx-card .route-glyph polyline, .jx-card .route-glyph circle { animation: none; } }
.jx-go { font: 700 15px var(--sans); color: color-mix(in srgb, var(--accent) 75%, var(--text)); }
[data-theme="light"] .route-go { color: color-mix(in srgb, var(--accent, var(--gold)) 40%, var(--text)); }
[data-theme="light"] .route-glyph { stroke: color-mix(in srgb, var(--accent, var(--gold)) 65%, var(--text)); }
[data-theme="light"] .route-glyph circle.start { fill: color-mix(in srgb, var(--accent, var(--gold)) 65%, var(--text)); }

/* How we work: a simple reading column. */
.method { max-width: 760px; }
.principle { padding: 24px 0; border-top: 1px solid var(--line-2); }
.principle:first-child { padding-top: 0; border-top: 0; }
.principle h3 { margin-bottom: 8px; font-size: 26px; }
.principle p { margin: 0; max-width: 50ch; color: var(--text-2); font: 400 18px/1.6 var(--serif); }
.legend-title { margin: 0 0 6px; color: var(--text-2); font: 600 15px var(--sans); }
.legend ul { margin: 0 0 18px; padding: 0; list-style: none; }
.legend li { --ev: var(--gold); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.legend li[data-ev="A"], .legend li[data-ev="B"] { --ev: var(--green); }
.legend li[data-ev="D"], .legend li[data-ev="L"] { --ev: var(--clay); }
.legend li[data-ev="I"] { --ev: var(--blue); }
.legend li[data-ev="P"] { --ev: var(--text-3); }
.legend .badge { justify-self: start; }
.legend li b { font: 500 22px/1 var(--display); font-variant-numeric: lining-nums; }
.legend-bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--ev) var(--w), var(--line) var(--w)); }

/* ---------- page headers ---------- */
.page-head { padding: 54px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(42px, 6vw, 72px); margin: 12px 0 14px; }
.page-head .lead { font: 400 20px/1.55 var(--serif); color: var(--text-2); max-width: 760px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--text-3); }

/* ---------- map view ---------- */
.map-view { position: relative; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow: hidden; background: var(--map-water); }
.map-view .map-canvas { position: absolute; inset: 0; } /* beats maplibre-gl.css (.maplibregl-map { position: relative }) */
.map-top { position: absolute; left: 16px; right: 16px; top: 14px; z-index: 5; display: flex; gap: 12px; align-items: flex-start; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.map-search { margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px; width: min(340px, 40vw); height: 44px; padding: 0 12px; border-radius: 12px; background: var(--bg-glass); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.map-search:focus-within { border-color: var(--gold); }
.map-search svg { width: 18px; height: 18px; color: var(--text-3); }
.map-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.map-search .suggest { left: 0; right: 0; width: auto; }
.map-tools { position: absolute; right: 16px; bottom: 34px; z-index: 8; display: flex; flex-direction: column; gap: 8px; }
.map-tools .tool-btn { background: var(--bg-glass); backdrop-filter: blur(10px); }
/* The time ruler: the map read era by era, left to right from antiquity to now (views/map.js). */
.time-ruler { position: absolute; z-index: 6; left: 16px; bottom: 34px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 96px); padding: 6px 8px 6px 18px; border-radius: 14px; background: var(--bg-glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.tr-title { font: italic 500 19px/1 var(--display); color: var(--text); }
.tr-track { position: relative; display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tr-track::-webkit-scrollbar { display: none; }
.tr-track::before { content: ''; position: absolute; left: 26px; right: 26px; top: 15px; height: 1px; background: linear-gradient(90deg, var(--line-2), color-mix(in srgb, var(--gold) 45%, var(--line-2))); }
.tr-stop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 12px 6px; color: var(--text-2); font: 500 13px var(--sans); white-space: nowrap; border-radius: 8px; transition: color .2s; }
.tr-stop::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px currentColor; transition: background .25s, box-shadow .25s, transform .25s var(--ease); }
.tr-stop.tr-all::before { border-radius: 2px; transform: rotate(45deg); }
.tr-stop:hover { color: var(--text); }
.tr-stop[aria-checked="true"] { color: var(--gold); }
.tr-stop[aria-checked="true"]::before { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); transform: scale(1.2); }
.tr-stop.tr-all[aria-checked="true"]::before { transform: rotate(45deg) scale(1.2); }
.tr-play { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); transition: background .2s, color .2s; }
.tr-play svg { width: 15px; height: 15px; }
.tr-play:hover { border-color: var(--gold); }
.tr-play[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
@media (prefers-reduced-motion: reduce) { .tr-stop::before { transition: none; } }
.map-legend { font-size: 13px; color: var(--text-2); }
.map-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; padding: 14px 20px; border-radius: 12px; background: var(--bg-glass); border: 1px solid var(--line); font-size: 15px; }

.panel { position: absolute; z-index: 8; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100% - 24px)); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transform: translateX(calc(100% + 24px)); transition: transform .35s var(--ease); }
.panel.open { transform: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.panel-body { overflow-y: auto; padding: 20px; }
.panel-body h2 { font-size: 30px; margin: 10px 0 6px; }
.panel .sub { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.panel .desc { font: 400 18px/1.55 var(--serif); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); border: 1px solid var(--line); }
.icon-btn:hover { color: var(--text); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }
.map-list { position: absolute; inset: 0; z-index: 7; overflow-y: auto; background: var(--bg); padding: 24px 76px 90px 16px; }
.map-list ol { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; border-top: 1px solid var(--line-2); }

.maplibregl-ctrl-attrib { font: 12px var(--sans) !important; background: var(--bg-glass) !important; color: var(--text-2) !important; }
.maplibregl-ctrl-attrib a { color: var(--text-2) !important; }
.maplibregl-popup-content { background: var(--bg-3) !important; color: var(--text) !important; border: 1px solid var(--line-2); border-radius: 10px !important; padding: 8px 12px !important; font: 600 14px var(--sans); box-shadow: var(--shadow) !important; }
.maplibregl-popup-tip { border-top-color: var(--bg-3) !important; border-bottom-color: var(--bg-3) !important; }
.maplibregl-popup-content small { display: block; color: var(--text-2); font-weight: 500; font-size: 12px; }

/* ---------- connections ("Çfarë lidhet këtu?") ---------- */
.links { display: grid; gap: 18px; margin-top: 22px; }
.links h3 { font: 600 15px var(--sans); color: var(--gold); display: flex; align-items: center; gap: 8px; }
.links h3 small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-3); font-size: 12px; }
.link-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.link-list a, .link-list button { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; text-decoration: none; text-align: left; }
.link-list a:hover, .link-list button:hover { background: var(--gold-soft); }
.link-list .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); }
.link-list .ico svg { width: 15px; height: 15px; color: var(--gold); }
.link-list strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 700; }
.link-list small { display: block; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.link-list .why { font-size: 12px; color: var(--text-3); font-weight: 600; white-space: nowrap; }

/* ---------- archive / search ---------- */
.archive { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; padding: 34px 0 70px; }
.archive-search { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); margin-top: 26px; max-width: 760px; }
.archive-search:focus-within { border-color: var(--gold); }
.archive-search svg { width: 21px; height: 21px; color: var(--gold); }
.archive-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 18px; }
.facets { display: grid; gap: 24px; align-content: start; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.facet h2 { font: 600 15px var(--sans); color: var(--text-2); margin-bottom: 10px; }
.facet-list { display: grid; gap: 4px; }
.facet-list button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 15px; color: var(--text-2); text-align: left; }
.facet-list button:hover { background: var(--gold-soft); color: var(--text); }
.facet-list button[aria-pressed="true"] { background: var(--gold-soft); color: var(--text); font-weight: 700; box-shadow: inset 2px 0 0 var(--gold); }
.facet-list .count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.facet-select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); font-size: 15px; }
.facet-select:hover { border-color: var(--gold); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--text-2); font-size: 15px; flex-wrap: wrap; }
/* Results read as a catalogue list: one hairline between records, no boxes. */
.results { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line-2); }
.result { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 22px 6px; border-bottom: 1px solid var(--line); transition: background .2s; }
.result:hover { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.result .type-ico { width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold); }
.result .type-ico svg { width: 22px; height: 22px; }
.result h3 { font-size: 23px; line-height: 1.2; }
.result h3 a { text-decoration: none; }
.result h3 a:hover { color: var(--gold); }
.result .sub { font-size: 14px; color: var(--text-2); margin: 4px 0 6px; }
.result .snippet { font: 400 17px/1.5 var(--serif); color: var(--text); margin: 0; }
.result mark { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.result .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.result-actions { display: flex; flex-direction: column; gap: 6px; }
.more { display: flex; justify-content: center; margin-top: 22px; }
.empty-state { padding: 40px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; color: var(--text-2); }

/* ---------- record page ---------- */
.record { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); padding: 34px 0 80px; }
.record-head { margin-bottom: 22px; }
.record-head h1 { font-size: clamp(40px, 5.6vw, 68px); margin: 12px 0 10px; }
.record-head .sub { font-size: 17px; color: var(--text-2); margin-bottom: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 28px 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 14px/1.6 var(--sans); color: var(--text-3); }
.facts dd { margin: 0; font: 400 18px/1.55 var(--serif); overflow-wrap: anywhere; }
.facts dd.unknown { color: var(--text-3); font-style: italic; }
.callout { padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; margin: 24px 0; font-size: 15px; }
.callout strong { display: block; margin-bottom: 4px; }
.sources { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.sources a { display: inline-flex; gap: 8px; align-items: flex-start; color: var(--text); text-decoration: none; font-size: 15px; }
.sources a svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.sources a:hover { color: var(--gold); text-decoration: underline; }
.aside-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.mini-map { height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--map-water); position: relative; margin-bottom: 12px; }
.mini-map .maplibregl-ctrl-attrib { font-size: 10px !important; }
.lang-note { font-size: 13px; color: var(--text-3); margin-top: -8px; }
/* English-language records on the Albanian site: the Albanian summary, then the source's own words. */
.sq-summary .prose { margin: 0; }
.sq-credit { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }
.sq-credit a { color: var(--text-2); text-decoration-color: var(--line); text-underline-offset: 3px; white-space: nowrap; }
.sq-credit a:hover { color: var(--gold); }
.sq-credit svg { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }
.source-head { font: 600 15px var(--sans); color: var(--gold); margin: 34px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.source-head + .lang-note { margin-top: -8px; }
[lang="en"].prose { color: var(--text-2); }
.aka { margin: -6px 0 12px; max-width: 60ch; font: italic 400 18px/1.5 var(--serif); color: var(--text-2); }
/* The record in time (views/record.js): five eras as five equal steps, the record's lit, its own years a gold bar. */
.when { max-width: 520px; margin: 4px 0 18px; }
.when-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; --s0: 0; --s1: .2; --s2: .4; --s3: .6; --s4: .8; --w0: .2; --w1: .2; --w2: .2; --w3: .2; --w4: .2; }
/* On a phone the first era gets a little more room for its name (Parahistoria); the bar follows (--s, --w). */
@media (max-width: 560px) { .when-track { grid-template-columns: minmax(0, 1.22fr) repeat(4, minmax(0, 1fr)); --s1: .2337; --s2: .4253; --s3: .6169; --s4: .8084; --w0: .2337; --w1: .1916; --w2: .1916; --w3: .1916; --w4: .1916; } }
.when-era i { display: block; height: 2px; border-radius: 2px; background: var(--line-2); }
.when-era.on i { background: color-mix(in srgb, var(--gold) 50%, transparent); }
.when-era b { display: block; margin-top: 8px; font: 500 12px/1.2 var(--sans); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when-era.on b { color: var(--text-2); }
.when-span { position: absolute; top: -3px; height: 8px; border-radius: 8px; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.section-title { font: 600 15px var(--sans); color: var(--gold); margin: 34px 0 6px; }
.origin-note { margin: 0 0 4px; max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cite-box { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text-2); margin-top: 10px; }
.cite-box code { flex: 1; font: 14px/1.5 var(--sans); overflow-wrap: anywhere; }

/* ---------- journeys ---------- */
.journey { position: relative; }
.journey .journey-map { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 0; background: var(--map-water); }
.journey-rail { position: sticky; top: var(--header-h); z-index: 6; display: flex; gap: 2px; overflow-x: auto; padding: 0 60px 0 12px; background: var(--bg-glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.journey-rail::-webkit-scrollbar { display: none; }
.journey-rail button { flex-shrink: 0; padding: 12px 14px 10px; text-align: left; color: var(--text-3); border-bottom: 2px solid transparent; max-width: 220px; }
.journey-rail button b { display: block; font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey-rail button span { display: block; margin-top: 1px; font: 400 13px var(--sans); font-variant-numeric: lining-nums; color: var(--text-3); }
.journey-rail button:hover { color: var(--text); }
.journey-rail button[aria-current="step"] { color: var(--text); border-bottom-color: var(--jcol, var(--gold)); }
.journey-rail button.done { color: var(--text-2); }
.journey-progress { position: fixed; left: 0; top: var(--header-h); height: 2px; background: var(--gold); z-index: 7; width: 0; transition: width .4s var(--ease); }
.journey-close { position: fixed; right: 14px; top: calc(var(--header-h) + 8px); z-index: 8; }
.tool-btn.journey-close { background: var(--bg); }
/* The station names fade out before the close button instead of running under it. */
.journey-close::before { content: ''; position: absolute; right: calc(100% + 1px); width: 64px; top: -8px; bottom: -11px; background: linear-gradient(90deg, transparent, var(--bg) 70%); pointer-events: none; }
.journey-close::after { content: ''; position: absolute; left: calc(100% + 1px); width: 24px; top: -8px; bottom: -11px; background: var(--bg); pointer-events: none; }
.journey-steps { position: relative; z-index: 2; width: min(520px, calc(100% - 32px)); margin-left: clamp(16px, 5vw, 70px); padding: 30vh 0 60vh; display: grid; gap: 60vh; pointer-events: none; }
.step { pointer-events: auto; padding: 28px 30px; border-radius: 16px; background: var(--bg-glass); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: var(--shadow); border-left: 3px solid var(--jcol, var(--gold)); opacity: .8; transition: opacity .4s; }
/* The stations around the one being read step back, but stay readable (contrast above 4.5:1). */
.step.active { opacity: 1; }
.step .tag { background: color-mix(in srgb, var(--jcol, var(--gold)) 16%, transparent); color: var(--jcol, var(--gold)); }
.step h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 14px 0 6px; }
.step h2 em, .journey-intro h1 em { color: var(--jcol, var(--gold)); font-style: italic; }
.step .years { font: 700 13px var(--sans); letter-spacing: .08em; color: var(--text-2); font-variant-numeric: lining-nums; }
.step .place { font: italic 400 18px var(--serif); color: var(--jcol, var(--gold)); margin-bottom: 12px; }
.step .text { font: 400 19px/1.6 var(--serif); }
.step blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--line-2); font: italic 400 18px/1.55 var(--serif); color: var(--text-2); }
.step .stop-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.step details { margin-top: 14px; }
.step summary { cursor: pointer; font: 600 14px var(--sans); color: var(--jcol, var(--gold)); padding: 6px 0; }
.step details .stop-list { margin-top: 6px; }
.step .stop-list button { width: 100%; text-align: left; display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 15px; }
.step .stop-list button:hover { background: var(--gold-soft); }
.step .stop-list i { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--jcol, var(--gold)); flex-shrink: 0; }
.step .stop-list small { display: block; color: var(--text-2); font-size: 13px; }
.journey-intro h1 { font-size: clamp(42px, 5vw, 64px); margin: 12px 0 14px; }
.journey-intro .quote { font: italic 400 20px/1.55 var(--serif); color: var(--text-2); border-left: 2px solid var(--jcol, var(--gold)); padding-left: 16px; margin: 18px 0; }
.step .source { font-size: 14px; color: var(--text-2); }
.journey-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.journey-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.journey-end { text-align: left; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: 0 0 0 0 var(--c, var(--gold)); animation: pulse 2.2s infinite; border: 2px solid rgba(255, 255, 255, .8); }
.pulse.key { width: 18px; height: 18px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, #d8b34f) 70%, transparent); } 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- 3D collection explorer (reference layout: plate · stage · find-site map · gallery) ---------- */
.explorer { --ex-bg: #211b16; --ex-panel: #2a231c; --ex-line: rgba(214, 190, 140, .16); --ex-text: #efe6d4; --ex-muted: #c2b59c; --ex-gold: #d8b34f; background: var(--ex-bg); color: var(--ex-text); }
[data-theme="light"] .explorer { --ex-bg: #efe5d2; --ex-panel: #f7f0e2; --ex-line: rgba(70, 50, 25, .16); --ex-text: #231c15; --ex-muted: #5c5146; --ex-gold: #7a5a12; }
.ex-bar { display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--ex-line); flex-wrap: wrap; }
.ex-brand { display: flex; flex-direction: column; line-height: 1.2; min-width: 150px; }
.ex-brand .eyebrow { color: var(--ex-gold); }
.ex-brand strong { font: 500 20px var(--display); }
.ex-filters { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.ex-chip { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; padding: 8px 10px 6px; border-radius: 10px; color: var(--ex-muted); font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; }
.ex-chip svg { width: 20px; height: 20px; }
.ex-chip .num { font-size: 12px; opacity: .8; }
.ex-chip:hover { color: var(--ex-text); }
.ex-chip[aria-pressed="true"] { color: var(--ex-gold); border-color: var(--ex-line); background: color-mix(in srgb, var(--ex-gold) 10%, transparent); }
.ex-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--ex-line); border-radius: 10px; width: 240px; color: var(--ex-muted); }
.ex-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ex-text); font-size: 14px; }
.ex-search:focus-within { border-color: var(--ex-gold); }

.ex-main { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; min-height: calc(100vh - var(--header-h) - 190px); }
.ex-left, .ex-right { background: var(--ex-panel); padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; margin: 16px; border: 1px solid var(--ex-line); border-radius: 12px; }
.ex-label { margin: 0; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
.ex-code { margin: -6px 0 2px; font: 500 28px var(--display); font-variant-numeric: lining-nums; }
.plate { margin: 0; background: #efe3c8; color: #2a2118; padding: 10px; border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.plate-frame { border: 1px solid rgba(42, 33, 24, .45); outline: 1px solid rgba(42, 33, 24, .2); outline-offset: 3px; padding: 12px 12px 10px; text-align: center; }
.plate-top, .plate-foot { display: flex; justify-content: space-between; margin: 0; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.plate-foot { margin-top: 6px; letter-spacing: .06em; text-transform: none; gap: 8px; }
.plate-title { margin: 10px 0 0; font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: break-word; }
.plate-title.long { font-size: 19px; letter-spacing: .02em; }
.plate-foot .num { white-space: nowrap; }
.plate-sub { margin: 4px 0 6px; font: italic 400 16px var(--serif); }
.plate img { width: 100%; height: 190px; object-fit: contain; filter: sepia(.35) contrast(.95) drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.ex-facts { margin: 4px 0 0; display: grid; gap: 7px; font-size: 14px; }
.ex-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.ex-facts dt { color: var(--ex-muted); }
.ex-facts dd { margin: 0; }
.ex-note { margin: 0; font: 400 16px/1.55 var(--serif); color: var(--ex-text); }
.ex-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ex-gold); font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-top: 1px solid var(--ex-line); padding-top: 12px; }
.ex-more svg { width: 16px; height: 16px; }

.ex-stage { position: relative; display: flex; flex-direction: column; align-items: center; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--ex-gold) 14%, transparent), transparent 62%); }
.ex-head { text-align: center; padding: 26px 20px 0; z-index: 2; }
.ex-head .eyebrow { color: var(--ex-gold); }
.ex-title { font: 500 clamp(30px, 3.6vw, 46px)/1.05 var(--display); letter-spacing: .08em; text-transform: uppercase; margin: 8px 0 6px; }
.ex-sub { margin: 0; font: italic 400 17px var(--serif); color: var(--ex-muted); }
.ex-stage model-viewer { flex: 1; width: 100%; min-height: 440px; --poster-color: transparent; background: transparent; }
.ex-stage .corner { border-color: var(--ex-line); }
.ex-controls { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ex-line); border-radius: 12px; background: color-mix(in srgb, var(--ex-bg) 80%, transparent); z-index: 2; }
.ex-controls button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--ex-muted); }
.ex-controls button:hover, .ex-controls button[aria-pressed="true"] { color: var(--ex-gold); background: color-mix(in srgb, var(--ex-gold) 12%, transparent); }
.ex-controls button:disabled { opacity: .4; cursor: wait; }
.ex-controls svg { width: 18px; height: 18px; }
.ex-controls b { font-size: 12px; }
.ex-controls .sep { width: 1px; height: 18px; background: var(--ex-line); margin: 0 3px; }
.ex-caption { display: flex; align-items: center; gap: 8px; margin: 10px 0 16px; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-muted); z-index: 2; }
.ex-caption i { width: 7px; height: 7px; border-radius: 50%; background: var(--ex-gold); }
.ex-caption i.ok { background: #9cc49a; }
.ex-stage.expanded { position: fixed; inset: 0; z-index: 90; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--ex-gold) 16%, transparent), transparent 62%), var(--ex-bg); }
.ex-stage.expanded model-viewer { height: 100%; }

/* Object studies: an archival paper surface beside the 3D object, in both site themes. */
.ex-stage [hidden] { display: none !important; }
.ex-views { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 18px 12px 8px; padding: 4px; border: 1px solid var(--ex-line); border-radius: 30px; z-index: 2; }
.ex-views button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 24px; color: var(--ex-muted); font-size: 13px; }
.ex-views svg { width: 16px; height: 16px; }
.ex-views button[aria-pressed="true"] { background: var(--ex-text); color: var(--ex-bg); }
.ex-views button:hover { box-shadow: inset 0 0 0 1px var(--ex-muted); }
.ex-media { display: flex; flex: 1; width: 100%; min-width: 0; min-height: 470px; }
.ex-source { margin: 18px; flex: 1; display: flex; flex-direction: column; background: #e1e1d6; color: #323b30; border-radius: 5px; overflow: hidden; min-width: 0; }
.ex-source-image { display: grid; place-items: center; flex: 1; padding: 22px; }
.ex-source img { display: block; max-width: 100%; width: 100%; height: clamp(400px, 55vh, 740px); object-fit: contain; }
.ex-source figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; background: #f2f1e9; font-size: 13px; }
.ex-source figcaption b { font: 500 21px var(--display); }
.ex-source figcaption small { display: block; margin-top: 4px; color: #626c5a; }
.ex-source figcaption a { color: #323b30; text-underline-offset: 5px; }
.ex-study { display: flex; flex: 1; padding: 18px; min-width: 0; }
.ex-study-paper { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; background: #f2f1e9; color: #323b30; padding: clamp(22px, 3vw, 48px); border-radius: 5px; }
.ex-study-kicker { display: flex; justify-content: space-between; gap: 8px; margin: 0; color: #626c5a; font: 600 11px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ex-study-paper h2 { margin: 16px 0 10px; font: 400 clamp(27px, 2.8vw, 42px)/1.15 var(--display); }
.ex-study-intro { max-width: 55ch; margin: 0 0 28px; color: #626c5a; font-size: 15px; line-height: 1.7; }
.ex-study-drawing { padding: 34px 0 28px; border-top: 1px solid #cbd0c2; }
.ex-study-drawing img { display: block; width: 100%; height: auto; }
.ex-study-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ex-study-parts figure { margin: 0; min-width: 0; }
.ex-study-parts figcaption { font: 500 10px/1.5 var(--sans); letter-spacing: .08em; color: #626c5a; margin-top: 16px; }
.ex-study-foot { border-top: 1px solid #cbd0c2; padding-top: 18px; color: #626c5a; font-size: 13px; line-height: 1.65; }
.ex-study-foot p { margin: 0 0 8px; }
.ex-study-foot b { font-weight: 700; }
.ex-study-foot .ex-study-scale { font-size: 11px; letter-spacing: .06em; }
.ex-study-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; font-size: 13px; }
.ex-study-actions a { color: #323b30; text-underline-offset: 5px; }
.ex-study-teaser { display: block; width: 100%; border-radius: 5px; padding: 18px; text-align: left; color: #323b30; background: #f2f1e9; }
.ex-study-teaser img { display: block; width: 100%; height: 115px; object-fit: contain; margin: 12px 0; }
.ex-study-teaser strong { display: block; font: 500 21px/1.2 var(--display); }
.ex-study-open { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #cbd0c2; margin-top: 14px; padding-top: 12px; font: 600 12px var(--sans); }
.ex-study-open svg { width: 17px; height: 17px; transition: transform .2s; }
.ex-study-teaser:hover .ex-study-open svg { transform: translateX(4px); }
.ex-stage[data-view="photo"] .ex-ar-note, .ex-stage[data-view="study"] .ex-ar-note { display: none; }
@media (max-width: 560px) {
  .ex-views { border-radius: 16px; gap: 2px; margin-inline: 8px; }
  .ex-views button { padding: 8px 10px; font-size: 12px; }
  .ex-views button svg { display: none; }
  .ex-study, .ex-source { margin: 0; padding: 12px; }
  .ex-source { margin: 12px; padding: 0; }
  .ex-source-image { padding: 12px; }
  .ex-source img { height: 460px; }
  .ex-source figcaption { padding: 16px; align-items: start; flex-direction: column; }
  .ex-study-paper { padding: 24px 18px; }
  .ex-study-intro { margin-bottom: 20px; }
  .ex-study-drawing { padding-top: 28px; }
  .ex-study-parts { grid-template-columns: 1fr; gap: 24px; }
  .ex-study-parts figure { width: 100%; max-width: 270px; margin-inline: auto; }
  .ex-study-parts figcaption { text-align: center; margin-top: 4px; }
}

.ex-name { font: 500 30px/1.1 var(--display); margin: -2px 0 0; }
.ex-latin { margin: -6px 0 0; font: italic 400 16px var(--serif); color: var(--ex-muted); }
.ex-kv { margin: 4px 0 0; display: grid; gap: 10px; font-size: 14px; }
.ex-kv dt { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ex-muted); }
.ex-kv dd { margin: 2px 0 0; font-weight: 600; }
.ex-kv dd small { display: block; font-weight: 500; color: var(--ex-muted); font-size: 12px; margin-top: 2px; }
.ex-kv a { color: var(--ex-text); }
.ex-map { position: relative; height: 230px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(70, 50, 25, .3); box-shadow: inset 0 0 0 4px #efe3c8; background: #efe6d3; }
.ex-map .maplibregl-ctrl-attrib { font-size: 10px !important; }
.ex-map[hidden], .ex-legend[hidden] { display: none; }
.ex-legend { display: flex; gap: 16px; margin: -2px 0 0; font-size: 12px; color: var(--ex-muted); }
.ex-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-find { background: #221b15; border: 2px solid #fbf7ef; box-shadow: 0 0 0 1px #221b15; }
.lg-inst { background: #fbf7ef; border: 2.5px solid #6e1e2b; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ex-line); border-radius: 8px; overflow: hidden; }
.ex-grid div { padding: 10px 12px; border-right: 1px solid var(--ex-line); border-bottom: 1px solid var(--ex-line); }
.ex-grid div:nth-child(2n) { border-right: 0; }
.ex-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.ex-grid span { display: block; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ex-muted); }
.ex-grid b { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; }

.ex-gallery { display: flex; align-items: stretch; gap: 8px; padding: 6px 16px 22px; border-bottom: 1px solid var(--ex-line); }
.ex-arrow { width: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: var(--ex-muted); border: 1px solid var(--ex-line); }
.ex-arrow:hover { color: var(--ex-gold); border-color: var(--ex-gold); }
.ex-track { flex: 1; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding: 2px; }
.ex-card { flex: 0 0 170px; scroll-snap-align: start; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--ex-line); border-radius: 10px; background: var(--ex-panel); color: var(--ex-text); text-decoration: none; padding: 8px 8px 10px; transition: border-color .2s, transform .2s var(--ease); }
.ex-card:hover { border-color: var(--ex-gold); transform: translateY(-2px); }
.ex-card[aria-pressed="true"] { border-color: var(--ex-gold); box-shadow: inset 0 -3px 0 var(--ex-gold); }
.ex-thumb { height: 108px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; border-radius: 6px; background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--ex-gold) 14%, transparent), transparent 70%); }
.ex-thumb img { height: 100%; width: 100%; max-height: 108px; object-fit: contain; display: block; }
.ex-thumb svg { width: 30px; height: 30px; color: var(--ex-gold); }
.ex-card-name { margin-top: 8px; font: 600 17px/1.15 var(--display); }
.ex-card-meta { margin-top: 3px; font-size: 12px; color: var(--ex-muted); }
.ex-card-more { border-style: dashed; }

.ex-links { padding: 40px 0 10px; }
.ex-links h2 { font-size: 34px; margin-bottom: 6px; }
.ex-link-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.ex-link-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--ex-line); border-radius: 12px; background: var(--ex-panel); text-decoration: none; color: var(--ex-text); transition: border-color .2s; }
.ex-link-card:hover { border-color: var(--ex-gold); }
.ex-link-card .eyebrow { color: var(--ex-gold); }
.ex-link-card strong { font: 500 20px/1.2 var(--display); }
.ex-link-card small { color: var(--ex-muted); font-size: 13px; line-height: 1.4; }
.ex-disclaimer { margin: 18px 0 0; font-size: 13px; color: var(--ex-muted); max-width: 820px; }
.ex-kthimi { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; padding: 34px 0 60px; }
.ex-kthimi .eyebrow { color: var(--ex-gold); }
.ex-kthimi .big-number { color: var(--ex-gold); margin: 6px 0 0; }
.ex-kthimi .prose { margin: 0; font-size: 18px; }
.ex-kthimi .btn-line { border-color: var(--ex-line); color: var(--ex-text); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; padding: 40px 0 80px; }
.about-grid h2 { font-size: 34px; margin: 44px 0 14px; }
.about-grid h2:first-child { margin-top: 0; }
.ev-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.ev-table td, .ev-table th { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ev-table th { font: 600 13px var(--sans); color: var(--text-3); }
.name-card { padding: 28px; border-radius: 14px; background: var(--paper); color: var(--paper-ink); position: sticky; top: calc(var(--header-h) + 20px); }
.name-card .word { font: 500 44px/1 var(--display); margin: 10px 0; }
.name-card .parts { font: italic 400 19px/1.5 var(--serif); }
.name-card .eyebrow { color: #7a5a12; }
.name-card p { font: 400 17px/1.6 var(--serif); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 34px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-grid h2 { font: 600 14px var(--sans); color: var(--text-3); margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-seal { width: 76px; height: 76px; stroke: var(--gold); flex-shrink: 0; }
.footer-name { font: 500 26px var(--display); color: var(--text); margin-bottom: 6px; }
.footer-meaning { font: italic 400 17px/1.5 var(--serif); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
body.fullscreen-view .site-footer { display: none; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 120; padding: 12px 20px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { padding: 80px 0; text-align: center; color: var(--text-2); }
.noscript { padding: 20px; text-align: center; }

/* ---------- restricted inventory: sign-in, access requests, administration ---------- */
.main-nav a[hidden], .form [hidden], .admin [hidden], .auth-wrap [hidden] { display: none !important; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font: 800 12px/1 var(--sans); }
.locked { display: grid; gap: 14px; justify-items: start; padding: 30px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--bg-2); }
.locked h1, .locked h2 { font-size: clamp(26px, 3vw, 34px); }
.locked p { margin: 0; max-width: 62ch; color: var(--text-2); font-size: 16px; }
.locked .locked-count { color: var(--text); font-size: 15px; }
.locked .locked-count b { font: 500 26px var(--display); margin-right: 4px; }
.locked-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex-shrink: 0; }
.locked-ico svg { width: 22px; height: 22px; }
.results .locked { margin: 0; }
.record-locked { padding: 34px 0 80px; display: grid; gap: 22px; }
.search-note { width: 100%; margin: 14px 0 0; text-align: center; color: var(--text-2); font-size: 15px; }
.more { flex-wrap: wrap; }
.auth-wrap { padding: 30px 0 80px; display: grid; gap: 22px; }
.auth-wrap > * { width: 100%; max-width: 760px; }
.main-nav a { white-space: nowrap; }
.form { display: grid; gap: 18px; }
.form .section-title { margin: 12px 0 -6px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field { display: grid; gap: 7px; }
.field label { font: 700 14px var(--sans); color: var(--text); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text); font: 400 16px/1.4 var(--sans); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.hint { margin: 0; font-size: 14px; color: var(--text-2); }
.err { margin: 0; font-size: 14px; font-weight: 700; color: var(--red); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 6px 12px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.check label { font-size: 15px; color: var(--text); line-height: 1.5; }
.check .err { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--gold); background: var(--bg-2); font-size: 15px; color: var(--text); }
.form-status[data-kind="error"] { border-left-color: var(--red); }
.form-status[data-kind="ok"] { border-left-color: var(--green); }
.form-done { display: grid; gap: 12px; justify-items: start; padding: 30px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.form-done h2 { font-size: 30px; }
.form-done p { margin: 0; color: var(--text-2); }
.account-card { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.account-card h2 { font-size: 26px; }
.admin { padding: 10px 0 80px; }
.admin-section { margin-top: 34px; }
.admin-section > h2 { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.admin-section > h2 .count { font: 700 14px var(--sans); color: var(--text-2); }
.admin-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.admin-item { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.admin-item-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.admin-item-head h3 { font-size: 22px; }
.admin-item-head small { font: 600 14px var(--sans); color: var(--text-2); }
.admin-item dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 15px; }
.admin-item dt { font: 700 12px/1.8 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.admin-item dd { margin: 0; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reject-box { display: grid; gap: 10px; justify-items: start; }
.reject-box .field { width: 100%; }
.admin-decided { margin-top: 16px; }
.admin-decided summary { cursor: pointer; font-weight: 700; color: var(--text-2); padding: 6px 0; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td.num { white-space: nowrap; }
.admin-table th { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.admin-table code, .admin-item code { font: 600 14px var(--sans); color: var(--text); }
.temp-pass { margin-top: 14px; }
.temp-pass .cite-box code { font: 700 20px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .06em; color: var(--text); }
@media (max-width: 560px) {
  .form .row2 { grid-template-columns: 1fr; }
  .admin-item dl { grid-template-columns: 1fr; gap: 0 0; }
  .admin-item dd { margin-bottom: 8px; }
  .locked, .form-done { padding: 22px; }
}

/* ---------- the dock (phones): the four doors at the foot of every page, each led by its symbol ----------
   (main.js, doors.js). Any door is one tap away, and so is the way back. Wider screens use the header. */
.dock { display: none; }
@media (max-width: 960px) {
  :root { --dock-h: 64px; --dock: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--dock); }
  .dock:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--dock); padding: 0 4px env(safe-area-inset-bottom, 0px); background: var(--bg-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .dock-door { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; text-decoration: none; color: var(--text-3); font: 700 11px/1.1 var(--sans); white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: color .2s; }
  .dock-door > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .dock-door .sym { --sym-w: 34px; transition: transform .2s var(--ease); }
  .dock-door .sym-plate { border-radius: 9px; }
  .dock-door:active .sym { transform: scale(.92); }
  .dock-door[aria-current="page"] { color: var(--gold); }
  .dock-door[aria-current="page"] .sym-plate { box-shadow: inset 0 0 0 1.5px var(--gold); }
  .dock-door[aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--gold); }
  .dock { transition: transform .35s var(--ease); }
  /* On the home page the doors are already on screen at the top: the dock waits until they scroll away (home.js). */
  .doors-in-view .dock { transform: translateY(105%); }
  /* While typing, the keyboard needs the room. */
  body:has(input:focus, textarea:focus) .dock { display: none; }
  /* Pages that fill the screen end above the dock. */
  .map-view { height: calc(100vh - var(--header-h) - var(--dock-h)); height: calc(100dvh - var(--header-h) - var(--dock)); }
  .toast { bottom: calc(var(--dock) + 16px); }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .global-search { width: 220px; } .global-search:focus-within { width: 280px; }
  .main-nav a { padding: 9px 10px; }
  .main-nav a svg { display: none; }
  /* The sign-in link becomes an icon here (its text stays for screen readers). */
  .main-nav .account-link svg { display: block; }
  .main-nav .account-link > span:not(.nav-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ex-main { grid-template-columns: 270px minmax(0, 1fr); }
  .ex-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}
/* Between the phone menu and the full header the bar was ~9 px too wide: a narrower search box keeps it on one line. */
@media (min-width: 961px) and (max-width: 1060px) {
  .global-search { width: 140px; }
  .global-search:focus-within { width: 200px; }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .menu-btn { display: grid; }
  .main-nav { position: fixed; left: 0; right: 0; top: var(--header-h); flex-direction: column; gap: 2px; margin: 0; padding: 12px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s var(--ease); z-index: -1; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px; font-size: 17px; }
  .main-nav a svg { display: block; }
  .main-nav .account-link > span:not(.nav-count) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .global-search { width: 44px; padding: 0; justify-content: center; border-color: var(--line); }
  .global-search input, .global-search kbd { display: none; }
  .global-search:focus-within, .global-search.open { position: fixed; left: 12px; right: 12px; top: 10px; width: auto; padding: 0 12px; height: 44px; z-index: 70; background: var(--bg-3); }
  .global-search.open input { display: block; }
  .routes, .method, .jx { grid-template-columns: minmax(0, 1fr); }
  .jx-preview { display: none; }
  .model-types { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 1fr; padding: 24px 0; }
  .index-count { justify-content: flex-start; }
  .feature { grid-template-columns: 1fr; }
  .archive { grid-template-columns: 1fr; }
  .facets { position: static; max-height: none; display: flex; overflow-x: auto; gap: 16px; }
  .facet { min-width: 220px; }
  .record { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .name-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .map-top { flex-wrap: wrap; left: 10px; right: 10px; top: 10px; gap: 8px; }
  .map-search { order: -1; width: 100%; margin-left: 0; }
  .pill-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pill-row::-webkit-scrollbar { display: none; }
  .map-tools { right: 10px; bottom: 104px; }
  .time-ruler { left: 10px; right: 10px; bottom: 34px; max-width: none; padding-left: 14px; gap: 8px; }
  .tr-title { font-size: 17px; }
  .tr-stop { padding-inline: 9px; }
  .panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62%; transform: translateY(calc(100% + 20px)); }
  .panel.open { transform: none; }
  .ex-bar { padding: 10px 12px; gap: 10px; }
  .ex-brand { display: none; }
  .ex-filters { order: 2; width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .ex-search { width: 100%; }
  .ex-main { grid-template-columns: 1fr; }
  .ex-stage { order: 1; min-height: 66vh; }
  .ex-left { order: 2; }
  .ex-right { order: 3; display: flex; align-items: stretch; }
  .ex-left, .ex-right { margin: 10px 12px; }
  .ex-gallery { padding: 6px 10px 18px; }
  .ex-arrow { display: none; }
  .ex-kthimi { grid-template-columns: 1fr; gap: 14px; }
  /* Phones: map fixed on top, story cards scroll below it (no overlap). */
  .journey .journey-map { bottom: auto; height: 44vh; top: calc(var(--header-h) + 52px); z-index: 3; }
  .journey-steps { width: 100%; margin: 0; padding: calc(44vh + 64px) 12px 50vh; gap: 22vh; }
  .step { background: var(--bg-2); backdrop-filter: none; box-shadow: none; }
}
@media (max-width: 560px) {
  .site-header { padding: 0 12px; gap: 8px; }
  .brand { gap: 8px; }
  .header-tools { gap: 6px; }
  .brand-word { font-size: 20px; }
  .brand-mark { width: 34px; height: 34px; }
  .tool-btn { width: 36px; height: 36px; }
  .ex-card { flex-basis: 140px; }
  .ex-thumb { height: 90px; }
  .result { grid-template-columns: 1fr; }
  .jx-list { columns: 1; }
  /* Phones: each journey is a row with its picture beside it, so the 33 fit in a few screens. */
  .routes { gap: 0; }
  .route { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 4px 14px; padding: 14px 0 16px; border-top-width: 1px; }
  .route-visual { grid-row: 1 / span 4; aspect-ratio: 1; border-radius: 8px; }
  .route-visual .route-glyph { left: 6px; right: 6px; bottom: 6px; height: 44px; }
  .route-visual.no-photo .route-glyph { height: 60px; }
  .route h2 { margin-top: 0; font-size: 22px; }
  .route p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; }
  .route-go { display: none; }
  .result .type-ico { display: none; }
  .result-actions { flex-direction: row; }
  .hero-search { height: 56px; }
  .hero-reel { gap: 12px; padding-right: 14px; }
  .hero-reel-frame { width: 112px; }
  .hero-doors { gap: 2px; margin-top: 22px; }
  .hero-door { gap: 8px; padding: 10px 2px; font-size: 12.5px; }
  .hero-door .sym { --sym-w: min(66px, 17vw); }
  .step { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   The films (assets/js/film.js: Kthimi Digjital, and Dheshkronjë in one minute):
   inline player with chapters, the same player in a dialog, and the silent 3D
   loop on the home page.
   ========================================================================= */
.film-head { max-width: 760px; margin-bottom: 20px; }
.film-head h2 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 12px; }
.film-head h3 { font-size: 30px; margin: 8px 0 10px; }
.film-lead { margin: 0; color: var(--text-2); font: 400 19px/1.55 var(--serif); }
.film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0c0a12; border: 1px solid var(--line); }
.film-frame .corner { z-index: 1; pointer-events: none; border-color: var(--gold); opacity: .75; }
.film-video { width: 100%; height: 100%; object-fit: contain; background: #0c0a12; }
.film-chapters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 8px; scrollbar-width: thin; }
.film-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--text-2); font: 600 13px var(--sans); white-space: nowrap; transition: border-color .2s, color .2s; }
.film-chip .num { color: var(--gold); font-weight: 700; }
.film-chip:hover, .film-chip[aria-current="true"] { border-color: var(--gold); color: var(--text); }
.film-note { margin: 6px 0 0; font-size: 14px; color: var(--text-3); }
.film-compact { margin: 26px 0 10px; }
.film-compact .film-head h2 { font-size: 30px; margin: 8px 0 10px; }

/* collection page: the film after the 1.247 block, and the button in the top bar */
.ex-film { padding: 6px 0 72px; }
.ex-film .eyebrow { color: var(--ex-gold); }
.ex-film .film-lead, .ex-film .film-note { color: var(--ex-muted); }
.ex-film .film-frame { border-color: var(--ex-line); }
.ex-film .film-chip { background: var(--ex-panel); border-color: var(--ex-line); color: var(--ex-muted); }
.ex-film .film-chip .num { color: var(--ex-gold); }
.ex-film .film-chip:hover, .ex-film .film-chip[aria-current="true"] { border-color: var(--ex-gold); color: var(--ex-text); }
.ex-film-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--ex-line); border-radius: 10px; color: var(--ex-text); font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ex-film-btn svg { width: 16px; height: 16px; color: var(--ex-gold); }
.ex-film-btn .num { color: var(--ex-gold); letter-spacing: 0; }
.ex-film-btn:hover { border-color: var(--ex-gold); }

/* home: the silent loop in the Collection 01 block, and its two buttons */
.feature-visual.has-loop { background: #171325; }
.feature-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-visual .corner { z-index: 1; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the dialog */
.film-dialog { width: min(1180px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: var(--shadow); overflow: auto; }
.film-dialog::backdrop { background: rgba(8, 6, 14, .84); }
.film-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 12px 22px; }
.film-dialog-bar .eyebrow { margin: 0 0 2px; }
.film-dialog-bar strong { font: 500 22px/1.2 var(--display); }
.film-dialog .film-frame { border-radius: 0; border-width: 1px 0; }
.film-dialog .film-chapters { padding: 12px 16px 16px; }
.film-close { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); }
.film-close:hover { border-color: var(--gold); }
@media (max-width: 640px) {
  .film-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .film-head h2 { font-size: 30px; }
  .film-lead { font-size: 17px; }
}

/* =========================================================================
   3D collection: the vitrine (views/collection.js). One object fills the screen; the other objects wait on a shelf
   right below it; its record, the find-site map, its connections and the Kthimi Digjital story fold away in drawers.
   It takes the site's own colours: the --ex-* names stay for the pieces it shares (plate, map, cards, studies).
   ========================================================================= */
.vitrine { --ex-bg: var(--bg); --ex-panel: var(--bg-2); --ex-line: var(--line); --ex-text: var(--text); --ex-muted: var(--text-2); --ex-gold: var(--gold); --shelf-h: 170px; color: var(--text); }
.vt-stage { position: relative; display: block; height: clamp(460px, calc(100svh - var(--header-h) - var(--shelf-h)), 980px); min-height: 0; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 46% 56% at 50% 56%, color-mix(in srgb, var(--gold) 17%, transparent), transparent 72%),
    linear-gradient(180deg, transparent 64%, color-mix(in srgb, var(--gold) 7%, transparent)), var(--bg); }
.vt-stage .ex-media { position: absolute; inset: 0; z-index: 1; min-height: 0; }
.vt-stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; flex: none; }
.vt-head { position: absolute; z-index: 2; left: clamp(20px, 3vw, 44px); top: clamp(18px, 3.4vh, 36px); max-width: min(36%, 440px); pointer-events: none; }
.vt-title { margin: 0; font: 500 clamp(32px, 3.6vw, 52px)/1.04 var(--display); }
/* Top right: the views of the object, and "Dallo rindërtimin" with what its blue means. */
.vt-tools { position: absolute; z-index: 3; right: clamp(16px, 2.4vw, 32px); top: clamp(16px, 3.2vh, 32px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: min(54%, 470px); }
.vt-stage .ex-views { margin: 0; background: var(--bg-glass); backdrop-filter: blur(8px); }
.vt-recon { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-glass); backdrop-filter: blur(8px); color: var(--text); font: 700 14px var(--sans); transition: border-color .2s, background .2s, color .2s; }
.vt-recon i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, #c08a52 0 50%, #59a6ff 50% 100%); box-shadow: 0 0 0 2px var(--bg); }
.vt-recon:hover { border-color: #59a6ff; }
.vt-recon[aria-pressed="true"] { background: #1f5fa8; border-color: #59a6ff; color: #fff; }
.vt-recon[aria-pressed="true"] i { background: #8cc4ff; }
.vt-recon-note { margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(89, 166, 255, .45); background: var(--bg-glass); backdrop-filter: blur(8px); font: 500 13px/1.5 var(--sans); color: var(--text); text-align: left; }
.vt-recon-note[hidden], .vt-recon[hidden] { display: none; }
.ex-link-card.is-static { cursor: default; }
.ex-link-card.is-static:hover { border-color: var(--ex-line); }
.vt-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.vt-bottom > * { pointer-events: auto; }
.vt-stage .ex-controls { background: var(--bg-glass); backdrop-filter: blur(8px); }
.vt-stage .ex-caption { margin: 9px 0 0; }
/* The source photograph and the studies are pages: they take what height they need, under the title. */
.vt-stage[data-view="photo"], .vt-stage[data-view="study"] { height: auto; min-height: clamp(460px, calc(100svh - var(--header-h) - var(--shelf-h)), 980px); }
.vt-stage[data-view="photo"] .ex-media, .vt-stage[data-view="study"] .ex-media { position: relative; inset: auto; padding: clamp(120px, 15vh, 150px) clamp(12px, 3vw, 44px) 28px; }
.vt-stage.expanded { height: auto; min-height: 0; }

/* The shelf: every object, the one shown marked in gold. */
.vt-shelf { padding: 12px 0 12px; border-bottom: 1px solid var(--line); }
.vt-shelf-row { display: flex; align-items: stretch; gap: 8px; padding: 0 16px; }
.vt-shelf .ex-track { gap: 8px; padding: 2px 2px 4px; scrollbar-width: none; }
.vt-shelf .ex-track::-webkit-scrollbar { display: none; }
.vt-shelf .ex-card { flex: 0 0 128px; min-width: 0; padding: 6px 7px 7px; border-radius: 12px; background: var(--bg-2); }
.vt-shelf .ex-thumb { height: 80px; }
.vt-shelf .ex-thumb img { max-height: 80px; }
.vt-shelf .ex-card-name { margin-top: 5px; font-size: 14.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-shelf .ex-card-meta { font-size: 11px; color: var(--text-2); }
.vt-shelf .ex-card-meta, .vt-shelf .ex-card-more .ex-card-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-shelf .ex-card-more { flex-basis: 180px; }
.vt-shelf .ex-card[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--bg-2)); box-shadow: none; }

/* The drawers: one line each until opened. */
.vt-drawers { padding: 6px 0 72px; }
.vt-drawer { border-bottom: 1px solid var(--line-2); }
.vt-drawer summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 22px; padding: 20px 4px; cursor: pointer; list-style: none; }
.vt-drawer summary::-webkit-details-marker { display: none; }
.vt-dt { margin: 0; font: 500 clamp(24px, 2.6vw, 32px)/1.15 var(--display); transition: color .2s; }
.vt-dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.4 var(--sans); color: var(--text-3); }
.vt-chev { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); transition: transform .3s var(--ease), border-color .2s; }
.vt-chev svg { width: 16px; height: 16px; transform: rotate(90deg); }
.vt-drawer[open] .vt-chev { transform: rotate(180deg); }
.vt-drawer summary:hover .vt-dt { color: var(--gold); }
.vt-drawer summary:hover .vt-chev { border-color: var(--gold); }
.vt-body { padding: 2px 4px 36px; }
.vt-drawer[open] .vt-body { animation: vt-open .35s var(--ease); }
@keyframes vt-open { from { opacity: 0; transform: translateY(-6px); } }
.vt-about { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px 44px; align-items: start; }
.vt-about-text { display: grid; gap: 16px; max-width: 660px; }
.vt-about .ex-note { font-size: 19px; }
.vt-place { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 22px 44px; align-items: start; }
.vt-place .ex-map { height: 340px; }
.vt-place .ex-legend { margin-top: 10px; }
.vt-none { max-width: 46ch; margin: 0; font: 400 19px/1.55 var(--serif); }
.vt-none[hidden] { display: none; }
.vitrine .ex-links { padding: 0; }
.vitrine .ex-kthimi { padding: 4px 0 30px; }
.vitrine .ex-film { padding: 0; }

@media (max-width: 960px) {
  .vitrine { --shelf-h: 160px; }
  .vt-stage { order: 0; display: flex; flex-direction: column; align-items: stretch; min-height: 0; height: max(430px, calc(100svh - var(--header-h) - var(--dock, 0px) - var(--shelf-h))); }
  .vt-head { position: static; max-width: none; padding: 14px 16px 0; }
  .vt-title { font-size: clamp(25px, 6.6vw, 34px); }
  .vt-tools { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; margin: 10px 12px 0; gap: 8px; }
  .vt-recon { min-height: 38px; padding: 0 14px 0 11px; font-size: 13px; }
  .vt-recon-note { flex-basis: 100%; padding: 8px 12px; font-size: 12.5px; }
  .vt-stage .ex-media { position: relative; inset: auto; flex: 1; min-height: 0; }
  .vt-bottom { position: static; padding: 0 0 10px; }
  .vt-stage[data-view="photo"], .vt-stage[data-view="study"] { height: auto; min-height: 0; }
  .vt-stage[data-view="photo"] .ex-media, .vt-stage[data-view="study"] .ex-media { padding: 0; }
  .vt-shelf { padding-top: 12px; }
  .vt-shelf-row { padding: 0 10px; }
  .vt-shelf .ex-card { flex-basis: 112px; }
  .vt-shelf .ex-thumb { height: 70px; }
  .vt-shelf .ex-thumb img { max-height: 70px; }
  .vt-about, .vt-place { grid-template-columns: minmax(0, 1fr); }
  .vt-about .plate { max-width: 320px; }
  .vt-place .ex-map { height: 260px; }
  .vt-drawer summary { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 16px 2px; }
  .vt-dd { grid-column: 1; grid-row: 2; }
  .vt-chev { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; }
  .vitrine .ex-kthimi { grid-template-columns: 1fr; gap: 12px; }
}

/* Stories page: the stories by era (assets/js/journey-groups.js). A bar of era buttons stays under the header. */
.jg-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg-glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.jg-nav .wrap { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.jg-nav .wrap::-webkit-scrollbar { display: none; }
.jg { padding: clamp(40px, 7vh, 72px) 0; }
.jg:last-of-type { border-bottom: 0; }
.jg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.jg-head h2 { font-size: clamp(30px, 3.8vw, 44px); }
.jg-head h2:focus { outline: none; }
.jg-head p { margin: 0; color: var(--text-3); font: 600 14px var(--sans); font-variant-numeric: tabular-nums; }
