/*
 * Atlas of India — "Illuminated Atlas" visual system.
 * Ivory paper and indigo ink, gilded double rules, an engraved-looking sea with water-lined coasts, lapis rivers,
 * crimson seals and a calligraphic Devanagari mark. Layout follows the docked-panel + banded-timeline structure of
 * jiangshan-map (GPL-3.0).
 */
:root {
  --ink: #1f2236;
  --ink-2: #4a4660;
  --ink-3: #7b7690;
  --paper: #f4ecd8;
  --paper-2: #eadfc2;
  --paper-3: #dccfa6;
  --indigo: #1c2540;
  --indigo-2: #26335a;
  --indigo-3: #33447a;
  --gold: #b98a2f;
  --gold-2: #d9b25a;
  --gold-soft: rgba(185, 138, 47, .38);
  --crimson: #a3302a;
  --crimson-soft: rgba(163, 48, 42, .1);
  --lapis: #2b4a82;
  --sea-1: #14293b;
  --sea-2: #21506a;
  --hairline: rgba(31, 34, 54, .14);
  --card: rgba(246, 239, 222, .97);
  --card-shadow: 0 12px 32px rgba(10, 14, 30, .28), 0 1px 2px rgba(10, 14, 30, .2);
  --corner-radius: 10px;
  --display-stack: 'Cormorant Garamond', 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;
  --caps-stack: 'Cinzel', 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;
  --serif-stack: 'Noto Serif', 'Noto Serif Devanagari', Georgia, serif;
  --sans-stack: 'Noto Sans', 'Noto Sans Devanagari', 'Segoe UI', system-ui, sans-serif;
  --calligraphy-stack: 'Amita', 'Noto Serif Devanagari', var(--serif-stack);
  --panel-w: 410px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .32  0 0 0 0 .18  0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--sans-stack); color: var(--ink); background: var(--indigo); overflow: hidden; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#atlas-shell { width: 100%; height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }

/* ───────── header (indigo, gilded) ───────── */
#nav-bar {
  position: relative; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 18px;
  color: var(--paper); background: var(--grain), linear-gradient(180deg, #232e52, var(--indigo) 70%);
  border-bottom: 1px solid var(--gold); box-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 3px 14px rgba(10, 14, 30, .35);
}
#nav-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--gold-soft); pointer-events: none; }
.brand-group h1 { display: flex; align-items: center; gap: 12px; font-size: 1rem; line-height: 1; white-space: nowrap; }
.seal-mark { font-family: var(--calligraphy-stack); font-size: 31px; font-weight: 400; color: var(--gold-2); line-height: 1; text-shadow: 0 0 12px rgba(217, 178, 90, .35); }
.subtitle-mark { font-family: var(--caps-stack); font-size: 10.5px; font-weight: 500; color: rgba(244, 236, 216, .78); letter-spacing: .2em; text-transform: uppercase; }
html[lang='hi'] .subtitle-mark { letter-spacing: .04em; text-transform: none; font-size: 11.5px; }
.control-strip { min-width: 0; display: flex; align-items: center; gap: 6px; }
.toolbar-divider { width: 1px; height: 18px; background: var(--gold-soft); margin: 0 3px; flex-shrink: 0; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .03em;
  color: var(--paper); background: rgba(244, 236, 216, .06); border: 1px solid var(--gold-soft); white-space: nowrap; transition: all .15s;
}
.pill-btn:hover { border-color: var(--gold-2); background: rgba(217, 178, 90, .14); color: #fff; }
.pill-btn.on { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold-2); color: var(--indigo); font-weight: 600; }
.caret-mark { font-size: 10px; opacity: .8; }
.more { position: relative; }
.menu { position: absolute; right: 0; top: 38px; z-index: 950; display: flex; flex-direction: column; gap: 2px; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--gold); border-radius: var(--corner-radius); box-shadow: var(--card-shadow), inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold-soft); color: var(--ink); }
.menu[hidden] { display: none; }
.menu button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 6px; font-size: 13px; }
.menu button:hover { background: var(--crimson-soft); }
.menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; font-size: 13px; color: inherit; text-decoration: none; border-top: 1px solid var(--gold-soft); margin-top: 4px; }
.menu a:hover, .menu a:focus-visible { background: var(--crimson-soft); }
.menu a svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.p-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.menu button.on { color: var(--crimson); font-weight: 600; background: var(--crimson-soft); }

/* ───────── stage ───────── */
#stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); min-height: 0; overflow: hidden; background: var(--sea-1); }
#stage.no-panel { grid-template-columns: minmax(0, 1fr); }
#map-wrap { position: relative; min-width: 0; min-height: 0; }
#map { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 50% 38%, var(--sea-2), var(--sea-1) 78%); }
#map-wrap::after { /* soft vignette */
  content: ''; position: absolute; inset: 0; z-index: 450; pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, transparent 52%, rgba(6, 10, 24, .38) 100%);
}
.base-relief .leaflet-tile-pane { filter: sepia(.38) saturate(.62) contrast(.94) brightness(1.04); }
.leaflet-shade-pane { mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
.graticule-label { color: rgba(244, 236, 216, .62); font: 600 9.5px var(--caps-stack); letter-spacing: .12em; white-space: nowrap; text-shadow: 0 0 3px #0b1424; pointer-events: none; }

/* gilded frame + corner brackets */
.frame { position: absolute; z-index: 480; inset: 8px; border: 1px solid var(--gold-2); pointer-events: none; box-shadow: 0 0 0 1px rgba(10, 14, 30, .5); }
.frame::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--gold-soft); }
.frame .c { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold-2); }
.frame .c::after { content: ''; position: absolute; width: 7px; height: 7px; background: var(--gold-2); transform: rotate(45deg); box-shadow: 0 0 6px rgba(217, 178, 90, .6); }
.frame .tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; } .frame .tl::after { top: -4px; left: -4px; }
.frame .tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; } .frame .tr::after { top: -4px; right: -4px; }
.frame .bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; } .frame .bl::after { bottom: -4px; left: -4px; }
.frame .br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; } .frame .br::after { bottom: -4px; right: -4px; }

/* cartouche (era title) */
.cartouche {
  position: absolute; z-index: 520; top: 20px; left: 50%; transform: translateX(-50%); min-width: 0; padding: 6px 38px 7px; text-align: center; pointer-events: none;
  background: var(--grain), linear-gradient(180deg, #f8f1de, var(--paper-2)); border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold), 0 10px 24px rgba(0, 0, 0, .4);
}
.cartouche::before, .cartouche::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px; background: var(--crimson); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }
.cartouche::before { left: 10px; } .cartouche::after { right: 10px; }
.ct-year { font-family: var(--caps-stack); font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--crimson); text-transform: uppercase; }
.ct-name { font-family: var(--display-stack); font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--ink); margin-top: 1px; }
html[lang='hi'] .ct-year { letter-spacing: .06em; }

/* compass */
.compass { position: absolute; z-index: 470; right: 26px; top: 26px; width: 92px; height: 92px; padding: 6px; color: var(--gold-2); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(22, 32, 58, .9) 0 62%, rgba(22, 32, 58, .78) 100%); border: 1px solid var(--gold); box-shadow: 0 0 0 3px rgba(22, 32, 58, .35), 0 6px 16px rgba(0, 0, 0, .45); }

/* floating search */
.search { position: absolute; z-index: 600; top: 22px; left: 22px; width: min(300px, calc(100% - 44px)); }
.search input {
  width: 100%; height: 36px; padding: 0 16px; font: inherit; font-size: 12.5px; color: var(--ink); background: var(--grain), rgba(246, 239, 222, .96);
  border: 1px solid var(--gold); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); outline: none;
}
.search input::placeholder { color: var(--ink-3); font-style: italic; }
.search input:focus { box-shadow: 0 0 0 3px rgba(217, 178, 90, .5), 0 4px 14px rgba(0, 0, 0, .35); }
#results { position: absolute; top: 42px; left: 0; right: 0; max-height: 55vh; overflow: auto; padding: 5px; background: var(--card); border: 1px solid var(--gold); border-radius: var(--corner-radius); box-shadow: var(--card-shadow); }
#results[hidden] { display: none; }
#results button { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: left; border: 0; background: transparent; border-radius: 6px; padding: 8px 10px; }
#results button:hover { background: var(--crimson-soft); }
#results b { font-size: 14px; font-weight: 700; font-family: var(--display-stack); }
#results span { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; letter-spacing: .04em; }
#results .none { padding: 10px; font-size: 13px; color: var(--ink-3); }

/* legend card */
.legend {
  position: absolute; z-index: 500; left: 22px; bottom: 22px; width: 270px; max-height: calc(100% - 150px); overflow: auto; padding: 13px 15px 14px;
  background: var(--grain), var(--card); border: 1px solid var(--gold); border-radius: var(--corner-radius);
  box-shadow: var(--card-shadow), inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold-soft); scrollbar-width: thin;
}
.legend[hidden] { display: none; }
.lg-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.lg-caret { color: var(--gold); font-size: 12px; }
.legend.collapsed { width: auto; min-width: 190px; padding: 9px 14px; }
.legend.collapsed .lg-body { display: none; }
.lg-title { font-family: var(--caps-stack); font-size: 9.5px; font-weight: 700; color: var(--crimson); letter-spacing: .2em; text-transform: uppercase; }
html[lang='hi'] .lg-title { letter-spacing: .04em; font-size: 11px; }
.lg-dots { display: flex; gap: 4px; margin: 7px 0 9px; flex-wrap: wrap; }
.lg-dots i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(31, 34, 54, .18); }
.lg-dots i.on { background: var(--crimson); box-shadow: 0 0 0 2px rgba(163, 48, 42, .25); }
.lg-dots i.past { background: var(--gold); }
.lg-era { font-family: var(--display-stack); font-size: 17px; font-weight: 700; line-height: 1.2; margin-bottom: 9px; color: var(--ink); }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.lg-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.3; cursor: pointer; padding: 2px 0; }
.lg-list li:hover { color: var(--crimson); }
.lg-list .chip { flex: none; width: 14px; height: 14px; border-radius: 2px; border: 1px solid rgba(31, 34, 54, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.lg-note { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--gold-soft); font-size: 10.5px; line-height: 1.5; color: var(--ink-3); }

/* reset + leaflet controls */
.reset-btn {
  position: absolute; z-index: 500; right: 22px; bottom: 22px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--indigo); background: linear-gradient(180deg, var(--gold-2), var(--gold)); border: 1px solid var(--gold-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.reset-btn:hover { filter: brightness(1.08); }
.leaflet-bottom.leaflet-right { bottom: 58px; right: 12px; }
.leaflet-bottom.leaflet-left { left: 262px; bottom: 12px; }
.leaflet-control-zoom, .leaflet-control-layers { border: 1px solid var(--gold) !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .4) !important; background: var(--card); }
.leaflet-control-zoom a { background: transparent; color: var(--ink); border-bottom: 1px solid var(--gold-soft) !important; font-family: var(--display-stack); }
.leaflet-control-zoom a:hover { background: var(--crimson-soft); }
.leaflet-control-scale-line { background: rgba(246, 239, 222, .85); border-color: var(--ink-2); color: var(--ink-2); font: 600 9.5px var(--caps-stack); letter-spacing: .08em; }
.leaflet-container { font-family: var(--sans-stack); background: var(--sea-1); }
.leaflet-control-attribution { background: rgba(14, 22, 40, .7) !important; color: rgba(244, 236, 216, .7) !important; font-size: 9px; }
.leaflet-control-attribution a { color: var(--gold-2) !important; }
.yearbig { display: none; }

/* ───────── docked side panel (ivory paper) ───────── */
.panel, .sheet {
  min-height: 0; overflow: auto; padding: 22px 26px 26px; color: var(--ink); background: var(--grain), linear-gradient(180deg, #f8f1de, var(--paper));
  border-left: 3px double var(--gold); scrollbar-width: thin; scrollbar-color: rgba(185, 138, 47, .55) transparent;
}
.sheet { position: absolute; z-index: 800; top: 0; right: 0; bottom: 0; width: var(--panel-w); box-shadow: -14px 0 36px rgba(10, 14, 30, .35); }
.sheet[hidden] { display: none; }
.p-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--gold); }
.p-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--gold-soft); }
.p-head h2 { font-family: var(--display-stack); font-size: 2.05rem; font-weight: 700; line-height: 1.04; color: var(--ink); letter-spacing: -.005em; }
html[lang='hi'] .p-head h2 { font-size: 1.7rem; line-height: 1.25; }
.p-years { flex: none; max-width: 38%; text-align: right; font-family: var(--caps-stack); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--crimson); line-height: 1.4; text-transform: uppercase; }
html[lang='hi'] .p-years { letter-spacing: .02em; font-size: 12.5px; }
.p-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 18px 0 4px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 2px; font-family: var(--caps-stack); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); background: var(--crimson-soft); border: 1px solid rgba(163, 48, 42, .28); }
.pill.soft { color: var(--ink-2); background: transparent; border-color: var(--gold-soft); font-weight: 600; }
html[lang='hi'] .pill { letter-spacing: .02em; text-transform: none; font-size: 11px; }
.p-tag { font-family: var(--display-stack); font-size: 1.28rem; font-weight: 500; font-style: italic; line-height: 1.4; color: var(--ink-2); margin: 12px 0 0; }
.p-story { font-family: var(--serif-stack); font-size: 14.2px; line-height: 1.85; color: var(--ink); margin: 14px 0 0; }
.p-story::first-letter { font-family: var(--display-stack); font-size: 3.1em; font-weight: 700; float: left; line-height: .82; padding: 5px 8px 0 0; color: var(--crimson); }
html[lang='hi'] .p-story::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; font-family: inherit; line-height: inherit; font-weight: inherit; }
.p-tools { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.mini-btn { height: 26px; padding: 0 13px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .04em; background: transparent; border: 1px solid var(--gold); color: var(--ink-2); }
.mini-btn:hover { background: var(--gold); color: var(--indigo); }
.panel h3, .sheet h4 {
  display: flex; align-items: center; gap: 10px; margin: 26px 0 11px; font-family: var(--caps-stack); font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
html[lang='hi'] .panel h3, html[lang='hi'] .sheet h4 { letter-spacing: .04em; font-size: 12px; }
.panel h3::before, .sheet h4::before { content: ''; flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--crimson); }
.panel h3::after, .sheet h4::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.panel ul, .sheet ul, .sheet ol { margin: 0; padding: 0; list-style: none; }
.panel li { font-size: 13px; line-height: 1.55; margin-bottom: 4px; }
.rulers li { font-family: var(--display-stack); font-size: 1.05rem; font-weight: 500; color: var(--ink-2); line-height: 1.4; padding-left: 14px; position: relative; }
.rulers li::before { content: '❧'; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .8em; }
.ev, .route {
  display: flex; gap: 13px; width: 100%; text-align: left; margin-bottom: 8px; padding: 10px 12px 10px 14px; position: relative; background: rgba(255, 253, 245, .6);
  border: 1px solid var(--gold-soft); border-radius: 3px; transition: all .15s;
}
.ev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.ev:hover, .route:hover { border-color: var(--gold); background: #fffdf5; box-shadow: 0 4px 12px rgba(31, 34, 54, .12); transform: translateY(-1px); }
.ev:hover::before { background: var(--crimson); }
.ev .yr { flex: none; width: 78px; font-family: var(--display-stack); font-size: 1.02rem; font-weight: 700; font-style: italic; color: var(--crimson); line-height: 1.25; }
.ev .tx b { display: block; font-family: var(--display-stack); font-size: 1.12rem; font-weight: 700; line-height: 1.22; color: var(--ink); }
.ev .tx span, .route .tx span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); font-weight: 400; }
.route .chip { flex: none; width: 4px; border-radius: 0; align-self: stretch; }
.route .tx b { font-family: var(--display-stack); font-size: 1.1rem; font-weight: 700; }
.places li { cursor: pointer; font-size: 12.5px; color: var(--ink-3); padding: 2px 0; }
.places li:hover { color: var(--ink); }
.places li b { color: var(--ink); font-weight: 700; font-family: var(--display-stack); font-size: 1.02rem; }
.p-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--gold-soft); font-size: 10.5px; line-height: 1.6; color: var(--ink-3); font-style: italic; }

/* ───────── bottom dock: gilded banded timeline ───────── */
#dock {
  position: relative; z-index: 700; padding: 8px 18px 5px; color: var(--paper); background: var(--grain), linear-gradient(0deg, #1a2342, #232e52);
  border-top: 1px solid var(--gold); box-shadow: 0 -3px 14px rgba(10, 14, 30, .35);
}
#dock::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--gold-soft); pointer-events: none; }
.dock-row { display: flex; align-items: center; gap: 16px; }
.play-btn {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--indigo); border: 2px solid var(--gold-2);
  background: radial-gradient(circle at 35% 30%, #f1d58e, var(--gold)); box-shadow: 0 0 0 3px rgba(217, 178, 90, .18), 0 4px 12px rgba(0, 0, 0, .45);
}
.play-btn:hover { filter: brightness(1.08); }
.play-btn svg { width: 16px; height: 16px; fill: currentColor; }
.tl-wrap { position: relative; flex: 1; min-width: 0; padding-top: 25px; }
.tl { position: relative; height: 30px; display: flex; touch-action: none; cursor: pointer; border: 1px solid var(--gold); padding: 2px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.band { position: relative; flex: none; height: 100%; padding: 0; border: 0; border-right: 1px solid rgba(244, 236, 216, .45); border-radius: 0; font-family: var(--caps-stack); font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); white-space: nowrap; overflow: hidden; text-overflow: clip; opacity: .95; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 45%, rgba(0, 0, 0, .22)); pointer-events: none; }
.band:last-child { border-right: 0; }
.band:hover { filter: brightness(1.14); }
.band.on { box-shadow: 0 0 0 2px var(--gold-2), 0 0 14px rgba(217, 178, 90, .75); z-index: 2; opacity: 1; }
.band.past { opacity: .7; }
html[lang='hi'] .band { letter-spacing: 0; font-size: 10px; }
.tl-tip { position: absolute; top: 0; left: 0; transform: translateX(-50%); padding: 3px 12px; background: linear-gradient(180deg, #f8f1de, var(--paper-2)); color: var(--ink); border: 1px solid var(--gold); font-family: var(--display-stack); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; transition: left .25s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.tl-tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; width: 7px; height: 7px; background: var(--paper-2); border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); }
.tl-axis { position: relative; height: 17px; font-family: var(--caps-stack); font-size: 8.5px; letter-spacing: .08em; color: rgba(244, 236, 216, .62); }
.tl-axis span { position: absolute; top: 4px; transform: translateX(-50%); }
.tl-axis span::before { content: ''; position: absolute; left: 50%; top: -4px; width: 1px; height: 4px; background: var(--gold); }
.yearbox { flex: none; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--grain), var(--paper); border: 1px solid var(--gold); border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); color: var(--ink); }
.yearbox button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; font-size: 19px; line-height: 1; color: var(--ink-2); }
.yearbox button:hover { background: var(--crimson-soft); color: var(--crimson); }
#yearBox { min-width: 78px; text-align: center; font-family: var(--display-stack); font-size: 15px; font-weight: 700; }
.disclaimer { display: none; margin: 4px 0 0; text-align: center; font-size: 9.5px; color: rgba(244, 236, 216, .5); line-height: 1.4; letter-spacing: .02em; }

/* ───────── cards over the map: quiz + tour ───────── */
.quiz {
  position: absolute; z-index: 800; top: 22px; left: 50%; transform: translateX(-50%); width: min(540px, calc(100% - 60px)); padding: 16px 20px 15px;
  background: var(--grain), var(--card); border: 1px solid var(--gold); border-radius: var(--corner-radius);
  box-shadow: var(--card-shadow), inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold-soft);
}
.quiz[hidden] { display: none; }
.q-meta { font-family: var(--caps-stack); font-size: 9.5px; font-weight: 700; color: var(--crimson); letter-spacing: .18em; text-transform: uppercase; }
html[lang='hi'] .q-meta { letter-spacing: .03em; font-size: 11.5px; }
.quiz p { margin: 8px 0 8px; font-family: var(--display-stack); font-size: 1.28rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.quiz .hint { font-family: var(--sans-stack); font-size: 12px; color: var(--ink-3); font-style: italic; }
.quiz .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.quiz button { height: 30px; padding: 0 15px; border-radius: 999px; font-size: 12px; background: transparent; border: 1px solid var(--gold); color: var(--ink-2); }
.quiz button:hover { background: var(--gold); color: var(--indigo); }
.quiz button.on { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.tour { top: auto; bottom: 22px; }
.tour h4 { margin: 5px 0 3px; font-family: var(--display-stack); font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.tour p { font-family: var(--serif-stack); font-size: 13.5px; font-weight: 400; line-height: 1.65; margin-bottom: 8px; }
.tour .bar { height: 2px; background: var(--gold-soft); overflow: hidden; margin: 8px 0 11px; }
.tour .bar i { display: block; height: 100%; width: 100%; background: var(--crimson); transform-origin: left; animation: fill linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.toast { position: absolute; z-index: 900; left: 50%; top: 22px; transform: translate(-50%, -8px); background: var(--indigo); color: var(--paper); border: 1px solid var(--gold); font-size: 12px; padding: 7px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── map symbology ───────── */
.polity { transition: stroke-width .2s; }
.route-full { stroke-dasharray: 6 9; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -15; } }
.pulse span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold-2); background: rgba(217, 178, 90, .25); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.plabel {
  background: transparent; border: 0; box-shadow: none; font-family: var(--display-stack); font-size: 12.5px; font-weight: 700; color: var(--ink);
  text-shadow: 0 0 2px var(--paper), 0 0 3px var(--paper), 0 0 5px var(--paper), 0 0 8px var(--paper);
}
.plabel::before { display: none; }
.plabel.place { font-size: 13px; font-style: italic; }
.plabel.realm { font-family: var(--caps-stack); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; color: #2a2740; text-align: center; line-height: 1.5; }
.plabel.realm.rl-lg { font-size: 14px; letter-spacing: .34em; }
.plabel.realm.rl-md { font-size: 11.5px; letter-spacing: .24em; }
html[lang='hi'] .plabel.realm { text-transform: none; letter-spacing: .02em; font-family: var(--display-stack); font-size: 13px; }
html[lang='hi'] .plabel.realm.rl-lg { font-size: 17px; } html[lang='hi'] .plabel.realm.rl-md { font-size: 14.5px; }
.rlabel span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--display-stack); font-size: 12px; font-style: italic; font-weight: 600; color: #234a7a; text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 5px var(--paper); pointer-events: none; }
.rlabel.road span { color: #7a3f22; } .rlabel.canal span { color: #1c5f6b; font-style: normal; font-weight: 700; }
.hide-rlabels .rlabel { display: none; }

/* symbols (divIcons) */
.stopnum span { display: flex; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold-2); color: #fff; font-family: var(--display-stack); font-size: 12px; font-weight: 700; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

.leaflet-popup-content-wrapper { border-radius: 8px; background: var(--grain), var(--card); color: var(--ink); border: 1px solid var(--gold); box-shadow: var(--card-shadow), inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold-soft); }
.leaflet-popup-tip { background: var(--paper); border: 1px solid var(--gold); }
.leaflet-popup-content { margin: 14px 18px; font-size: 12.5px; line-height: 1.6; font-family: var(--serif-stack); }
.leaflet-popup-content b { display: block; font-family: var(--display-stack); font-size: 1.15rem; line-height: 1.2; color: var(--crimson); margin-bottom: 2px; }
.leaflet-popup-content i { color: var(--ink-3); font-family: var(--display-stack); font-size: 1rem; }
.trace-btn { margin-top: 9px; height: 26px; padding: 0 13px; border-radius: 999px; font-size: 11px; background: transparent; border: 1px solid var(--gold); color: var(--ink-2); font-family: var(--sans-stack); }
.trace-btn:hover { background: var(--gold); color: var(--indigo); }

/* ───────── sheets (trace, people, chart) ───────── */
.shead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--gold); position: relative; }
.shead::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--gold-soft); }
.shead h3 { display: block; margin: 0; padding: 0; font-family: var(--display-stack); font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--ink); }
.shead h3::before, .shead h3::after { display: none; }
.shead button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; padding: 0; color: var(--ink-2); }
.shead button:hover { background: var(--gold); color: var(--indigo); }
.ssub { font-family: var(--display-stack); font-style: italic; font-size: 1.05rem; color: var(--ink-3); margin: 12px 0 4px; }
.shint { font-family: var(--serif-stack); font-size: 13px; line-height: 1.7; margin: 12px 0; color: var(--ink-2); }
.shint.small { font-size: 11px; color: var(--ink-3); font-style: italic; }
.sbio { font-family: var(--serif-stack); font-size: 13.5px; line-height: 1.8; border-left: 3px solid var(--crimson); padding-left: 14px; margin: 14px 0; }
.srow { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.srow button { height: 30px; padding: 0 16px; border-radius: 999px; font-size: 12px; background: transparent; border: 1px solid var(--gold); color: var(--ink-2); }
.srow button:hover:not(:disabled) { background: var(--gold); color: var(--indigo); }
.srow button:disabled { opacity: .4; cursor: not-allowed; }
.strip { display: flex; gap: 2px; margin: 10px 0 12px; }
.strip i { flex: 1; height: 13px; cursor: pointer; opacity: .9; border: 1px solid rgba(31, 34, 54, .25); }
.strip i.cur { outline: 2px solid var(--crimson); outline-offset: 1px; }
.trows li { display: flex; gap: 14px; padding: 8px 4px; border-bottom: 1px solid var(--gold-soft); cursor: pointer; font-size: 12.5px; }
.trows li:hover { background: var(--crimson-soft); } .trows li.cur { background: rgba(185, 138, 47, .18); }
.trows li > b { width: 64px; flex: none; color: var(--crimson); font-family: var(--display-stack); font-weight: 700; font-style: italic; font-size: 1rem; }
.tchip { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 2px 0; font-weight: 600; }
.tchip i { width: 11px; height: 11px; display: inline-block; border: 1px solid rgba(31, 34, 54, .45); }
.tnone { color: var(--ink-3); font-style: italic; }
.tplace { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.here li { font-size: 12.5px; padding: 6px 2px; cursor: pointer; border-bottom: 1px dashed var(--gold-soft); }
.here li:hover { background: var(--crimson-soft); } .here b { color: var(--crimson); font-family: var(--display-stack); font-style: italic; font-size: 1rem; margin-right: 5px; }
.plist { margin: 8px 0 0; }
.plist li { display: flex; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--gold-soft); cursor: pointer; }
.plist li:hover { background: var(--crimson-soft); }
.plist b { display: block; font-family: var(--display-stack); font-size: 1.25rem; line-height: 1.15; }
.plist span:not(.chip) { font-size: 11.5px; color: var(--ink-3); }
.plist .chip { width: 12px; height: 12px; flex: none; transform: rotate(45deg); }
.stops li { display: flex; gap: 12px; padding: 8px 2px; cursor: pointer; font-size: 12.5px; line-height: 1.55; }
.stops li:hover { background: var(--crimson-soft); }
.stops em { color: var(--ink-3); font-size: 1rem; font-style: italic; font-family: var(--display-stack); }
.stops b { font-family: var(--display-stack); font-size: 1.1rem; }
.sn { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold-2); color: #fff; font-family: var(--display-stack); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.axis { display: flex; justify-content: space-between; font-family: var(--display-stack); font-style: italic; font-size: 1rem; color: var(--ink-3); margin-top: 12px; }
.brow { margin: 10px 0; } .bl { font-family: var(--display-stack); font-size: 1.15rem; font-weight: 700; }
.btrack { position: relative; height: 10px; background: var(--paper-3); margin: 4px 0; border: 1px solid var(--gold-soft); }
.btrack i { position: absolute; top: 0; bottom: 0; } .by { font-size: 11px; color: var(--ink-3); }
.chart { margin: 8px 0; }
.chart li { padding: 7px 4px; border-bottom: 1px solid var(--gold-soft); cursor: pointer; }
.chart li:hover { background: var(--crimson-soft); } .chart li.cur { background: rgba(185, 138, 47, .18); }
.chart .cl { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.chart .cl b { font-family: var(--display-stack); font-style: italic; font-size: 1.05rem; color: var(--crimson); } .chart .cl span { color: var(--ink-3); text-align: right; }
.chart .cbar { position: relative; height: 12px; margin-top: 4px; background: var(--paper-3); border: 1px solid var(--gold-soft); overflow: hidden; }
.chart .cbar i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .9; }
.chart .cbar em { position: absolute; right: 6px; top: 0; font-size: 9.5px; font-style: normal; line-height: 12px; color: var(--ink); font-weight: 600; }

/* ───────── accessibility ───────── */
button:focus-visible, input:focus-visible, a:focus-visible, .lg-list li:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .route-full { stroke-dasharray: none; }
}

/* ───────── embed ───────── */
.embed #nav-bar, .embed .panel, .embed .disclaimer, .embed .sheet, .embed .search, .embed .legend { display: none !important; }
.embed #stage { grid-template-columns: minmax(0, 1fr); }

/* ───────── responsive ───────── */
@media (max-width: 1280px) { .compass { width: 72px; height: 72px; } }
@media (max-width: 1100px) {
  :root { --panel-w: 350px; } .subtitle-mark { display: none; } .compass { display: none; }
  .search { width: min(250px, calc(100% - 44px)); }
  .cartouche { top: 66px; left: 22px; transform: none; min-width: 0; max-width: calc(100% - 44px); text-align: left; padding: 6px 30px 7px 16px; }
  .cartouche::before { display: none; } .cartouche::after { right: 10px; }
  .legend { max-height: calc(100% - 190px); width: 240px; }
}
@media (max-width: 800px) {
  #stage { grid-template-columns: minmax(0, 1fr); }
  .panel, .sheet { position: absolute; z-index: 700; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 42%; border-left: 0; border-top: 3px double var(--gold); box-shadow: 0 -10px 28px rgba(10, 14, 30, .4); padding: 16px 18px 20px; }
  .sheet { max-height: 55%; z-index: 800; }
  .legend, .compass { display: none; }
  .tour { bottom: calc(42% + 14px); }
  #nav-bar { padding: 6px 10px; } .control-strip { overflow-x: auto; scrollbar-width: none; } .control-strip::-webkit-scrollbar { display: none; }
  .search { left: 16px; width: calc(100% - 32px); top: 16px; }
  .cartouche { top: 60px; min-width: 190px; max-width: calc(100% - 40px); padding: 5px 28px 6px; }
  .ct-name { font-size: 16px; }
  .yearbox { display: none; }
  .disclaimer { display: none; }
  .reset-btn { bottom: calc(42% + 14px); right: 16px; }
  .leaflet-bottom.leaflet-right { bottom: calc(42% + 52px); }
  .leaflet-bottom.leaflet-left { left: 8px; bottom: calc(42% + 8px); }
  .frame { inset: 5px; }
}

/* sea names + galleons (antique basemap only) */
.sea-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--display-stack); font-style: italic; font-weight: 600; font-size: 19px; letter-spacing: .5em; text-transform: uppercase; color: rgba(196, 221, 230, .5); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); pointer-events: none; }
html[lang='hi'] .sea-label span { letter-spacing: .12em; text-transform: none; font-size: 21px; }
.base-relief .sea-label, .base-relief .ship { display: none; }
.ship svg { width: 40px; height: 34px; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); animation: bob 5.5s ease-in-out infinite; opacity: .9; }
.ship.flip svg { animation-name: bobflip; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-2.5px) rotate(1.5deg); } }
@keyframes bobflip { 0%, 100% { transform: scaleX(-1) translateY(0) rotate(-1.5deg); } 50% { transform: scaleX(-1) translateY(-2.5px) rotate(1.5deg); } }
@media (max-width: 800px) { .sea-label span { font-size: 13px; letter-spacing: .3em; } .ship svg { width: 28px; height: 24px; } }


/* ───────── shared pictogram style ───────── */
.mk svg, .dg svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1.5px 1.5px rgba(10, 14, 30, .5)); }
.mk { cursor: pointer; transition: transform .15s; } .mk:hover { z-index: 9999 !important; }
.dg-mtn svg { filter: drop-shadow(0 1px 1px rgba(10, 14, 30, .3)); opacity: .8; }
.dg-tree svg { filter: drop-shadow(0 1px 1px rgba(10, 14, 30, .35)); }
.dg.emblem svg { filter: drop-shadow(0 2px 3px rgba(10, 14, 30, .55)); cursor: pointer; }
.dg { animation: popin .35s ease-out both; } @keyframes popin { from { opacity: 0; transform-origin: 50% 90%; } to { opacity: 1; } }
.range-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--display-stack); font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: .38em; text-transform: uppercase; color: #5b4a30; opacity: .75; text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper); pointer-events: none; }
.range-label.forest span { font-size: 12px; letter-spacing: .2em; color: #3f6a3a; }
html[lang='hi'] .range-label span { text-transform: none; letter-spacing: .08em; font-size: 17px; }
.traveler .tv { display: block; width: 100%; height: 100%; animation: trot .6s ease-in-out infinite; }
.traveler.walker .tv { animation-duration: .8s; } .traveler.ship .tv { animation: bobtrav 2.6s ease-in-out infinite; } .traveler.lorry .tv { animation-duration: .35s; }
.traveler svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px rgba(10, 14, 30, .55)); transform-origin: 50% 90%; }
.traveler.flip svg { transform: scaleX(-1); }
@keyframes trot { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
@keyframes bobtrav { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
.ship svg { width: 46px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.cartouche::before, .cartouche::after { display: none; }
.cartouche { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold), 0 8px 18px rgba(0, 0, 0, .4); }
.ct-year { font-size: 11px; letter-spacing: .3em; }

/* ───────── declutter: folding sections, quiet legend ───────── */
details.sec { margin-top: 18px; border-top: 1px solid var(--gold-soft); padding-top: 4px; }
details.sec summary { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; list-style: none; font-family: var(--caps-stack); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
details.sec summary::-webkit-details-marker { display: none; }
details.sec summary::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--crimson); }
details.sec summary::after { content: '▸'; margin-left: auto; color: var(--ink-3); font-size: 12px; transition: transform .15s; }
details.sec[open] summary::after { transform: rotate(90deg); }
details.sec summary em { font-style: normal; color: var(--ink-3); letter-spacing: 0; font-family: var(--sans-stack); font-weight: 500; }
html[lang='hi'] details.sec summary { letter-spacing: .03em; font-size: 12.5px; }
.legend { width: 230px; padding: 10px 14px 11px; }
.legend.collapsed { padding: 8px 14px; min-width: 150px; }
.lg-list li.sel { color: var(--crimson); font-weight: 600; }

/* realm card */
.rstat { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; font-size: 12.5px; color: var(--ink-2); }
.rstat b { font-family: var(--display-stack); font-size: 1.2rem; color: var(--ink); }
.swatch { width: 18px; height: 18px; border: 1px solid rgba(31, 34, 54, .5); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); flex: none; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.chips2 button { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; background: transparent; border: 1px solid var(--gold); }
.chips2 button:hover { background: var(--gold); color: var(--indigo); }
.chips2 i { width: 11px; height: 11px; border: 1px solid rgba(31, 34, 54, .45); display: inline-block; }
.polity { cursor: pointer; }

/* place popups with a photo + description */
.wk { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gold-soft); }
.wk img { display: block; width: 100%; max-height: 140px; object-fit: cover; border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold-soft); margin: 4px 0 10px; background: var(--paper-2); }
.wk p { margin: 0 0 6px; font-size: 12px; line-height: 1.6; color: var(--ink); }
.wk a { font-family: var(--caps-stack); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); text-decoration: none; font-weight: 700; }
.wk a:hover { text-decoration: underline; }
.wk small { display: block; margin-top: 6px; font-size: 9.5px; color: var(--ink-3); font-style: italic; }
.wk-load { margin-top: 8px; font-size: 11.5px; font-style: italic; color: var(--ink-3); }

/* collision avoidance + clickable scenery */
.leaflet-marker-icon.dc-hide, .leaflet-tooltip.dc-hide { opacity: 0 !important; pointer-events: none !important; transition: opacity .15s; }
.dg-mtn, .dg-tree { cursor: pointer; }
.dg-mtn:hover svg, .dg-tree:hover svg { opacity: 1; transform: translateY(-2px); transition: transform .12s; }
.leaflet-popup-content .also { margin: 6px 0 0; padding: 5px 8px; font-size: 11.5px; line-height: 1.45; background: rgba(185, 138, 47, .12); border-left: 2px solid var(--gold); }
.leaflet-popup-content .also b { display: inline; font-size: .95rem; margin: 0 4px 0 0; }
.wk-t { font-family: var(--caps-stack); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.traveler.follower svg { filter: drop-shadow(0 1px 1.5px rgba(10, 14, 30, .5)); }
.traveler.soldier .tv { animation-duration: .5s; }

/* traveller caption: what it is and where it is now */
.leaflet-tooltip.trav-label { max-width: 230px; white-space: normal; padding: 4px 9px 5px; text-align: center; color: var(--ink); background: var(--grain), var(--paper); border: 1px solid var(--gold); border-radius: 3px; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.leaflet-tooltip.trav-label::before { border-top-color: var(--gold); }
.trav-label b { display: block; font-family: var(--display-stack); font-size: 12.5px; line-height: 1.15; color: var(--crimson); }
.trav-label span { display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.3; color: var(--ink-2); font-style: italic; }

/* tiny wars */
.bt svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1.5px 1.5px rgba(10, 14, 30, .5)); cursor: pointer; }
.bt { cursor: pointer; }
.leaflet-popup-content .war { margin: 4px 0 2px; font-family: var(--display-stack); font-size: 1.05rem; font-weight: 700; } .war em { font-style: italic; font-weight: 500; color: var(--ink-3); }
.leaflet-popup-content .victor { font-size: 12px; margin-bottom: 4px; } .victor strong { color: var(--crimson); }
.leaflet-tooltip.trav-label { width: max-content; min-width: 150px; }

/* concise traveller caption: one line, no box */
.leaflet-tooltip.trav-label { width: max-content; min-width: 0; max-width: none; white-space: nowrap; padding: 0; background: transparent; border: 0; box-shadow: none; font-size: 10.5px; font-style: italic; color: var(--ink-2); text-shadow: 0 0 2px var(--paper), 0 0 3px var(--paper), 0 0 5px var(--paper), 0 0 8px var(--paper); }
.leaflet-tooltip.trav-label::before { display: none; }
.trav-label b { display: inline; font-family: var(--display-stack); font-style: normal; font-size: 12px; color: var(--crimson); }
