:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #f1f6fb;
  --line: #d8e1eb;
  --line-strong: #c7d3df;
  --text: #162033;
  --muted: #66758a;
  --muted-light: #8795a8;
  --accent: #1769aa;
  --accent-dark: #0d568f;
  --accent-soft: #e9f3fb;
  --shadow: 0 12px 34px rgba(30, 55, 82, .12);
  --shadow-soft: 0 4px 16px rgba(30, 55, 82, .08);
  --timeline-h: 158px;
  --topbar-h: 82px;
}

* { box-sizing: border-box; }
html, body { height: 100%; width: 100%; max-width: 100vw; margin: 0; overflow: hidden; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }

.app-shell {
  height: 100%;
  display: grid;
  grid-template-rows: var(--topbar-h) minmax(0, 1fr) var(--timeline-h);
  background: var(--surface);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(18px);
  z-index: 50;
}
.brand-wrap { display: flex; align-items: center; min-width: 0; gap: 14px; }
.brand-logo { flex: 0 0 auto; display: block; width: 58px; height: 58px; border-radius: 12px; }
.brand-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy { min-width: 0; }
.eyebrow, .panel-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #62788e;
  font-weight: 750;
}
.topbar h1 {
  font-size: 21px;
  line-height: 1.18;
  margin: 4px 0 0;
  font-weight: 720;
  letter-spacing: -.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-meta { margin-top: 3px; font-size: 10px; color: var(--muted); line-height: 1.3; letter-spacing: .01em; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.language-picker { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.language-picker select { width: auto; min-width: 104px; margin: 0; }

.ghost-btn, .icon-btn, .round-btn, .play-btn, .all-years-btn {
  border: 1px solid var(--line-strong);
  color: #26364b;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ghost-btn { border-radius: 8px; padding: 9px 13px; font-size: 12px; font-weight: 650; }
.ghost-btn:hover, .icon-btn:hover, .round-btn:hover, .play-btn:hover {
  border-color: #9fb4c8;
  background: #f5f8fb;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.icon-btn { width: 38px; height: 38px; border-radius: 8px; font-size: 20px; align-items: center; justify-content: center; }
.mobile-only { display: none; }

select {
  display: block;
  width: 100%;
  margin-top: 5px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 30px 8px 9px;
  outline: none;
}
select:focus, input:focus { border-color: #75a8d1; box-shadow: 0 0 0 3px rgba(23, 105, 170, .12); }

.workspace { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 408px; overflow: hidden; }
.map-panel { position: relative; min-width: 0; overflow: hidden; touch-action: none; background: #edf3f8; }
.side-panel {
  min-width: 0;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; }
.current-year { font-size: 31px; font-weight: 760; letter-spacing: -.04em; margin-top: 3px; color: #1e3650; }
.controls { padding: 0 16px 13px; border-bottom: 1px solid var(--line); }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-box:focus-within { border-color: #75a8d1; box-shadow: 0 0 0 3px rgba(23, 105, 170, .1); }
.search-box span { color: #75879b; font-size: 19px; }
.search-box input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; box-shadow: none; }
.search-box input::placeholder { color: #8b99aa; }
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.select-row label { font-size: 11px; color: var(--muted); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #617187;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  cursor: pointer;
  transition: .15s ease;
}
.chip:hover { border-color: #aabac9; background: #f7f9fb; }
.chip.active {
  color: #26364b;
  font-weight: 700;
  border-color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-color) 42%, transparent);
}
.result-summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 17px 8px; font-size: 12px; color: var(--muted); }
.result-summary strong { color: var(--text); }
.event-list { overflow: auto; padding: 0 10px 20px; scrollbar-color: #c4d0dc transparent; }
.event-card {
  position: relative;
  padding: 13px 13px 13px 17px;
  margin: 7px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.event-card::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 4px; border-radius: 0 3px 3px 0; background: var(--cat); }
.event-card:hover, .event-card.active { background: #fbfdff; border-color: #aebfce; box-shadow: 0 5px 16px rgba(44, 68, 92, .09); transform: translateY(-1px); }
.event-card.active { outline: 2px solid rgba(23, 105, 170, .13); }
.event-card-head { display: flex; justify-content: space-between; gap: 8px; }
.event-date { font-size: 11px; color: var(--cat); font-weight: 800; }
.event-place { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.event-card h3 { font-size: 14px; line-height: 1.45; margin: 6px 0 4px; color: #172438; }
.event-card p { font-size: 12px; line-height: 1.55; color: #64758a; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.event-tags span { font-size: 10px; color: #66778c; background: #f1f5f8; border: 1px solid #e3e9ef; padding: 3px 6px; border-radius: 5px; }

.timeline-panel {
  position: relative;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  align-items: center;
  padding: 15px 24px 17px;
  gap: 24px;
}
.timeline-tools { display: grid; grid-template-columns: 40px 104px 40px minmax(170px, 1fr); align-items: center; gap: 7px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; font-size: 24px; }
.play-btn { height: 40px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.all-years-btn {
  height: 44px;
  border-color: #b7cce0;
  background: #f7fafc;
  color: var(--text);
  border-radius: 9px;
  padding: 5px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.all-years-btn span { font-size: 12px; font-weight: 800; }
.all-years-btn small { font-size: 9px; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.all-years-btn:hover { background: #f0f6fb; border-color: #8fb2cf; transform: translateY(-1px); }
.all-years-btn.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px rgba(23, 105, 170, .09); }
.all-years-btn.active small { color: #456983; }
.timeline-caption { grid-column: 1 / -1; margin-top: 5px; display: flex; flex-direction: column; font-size: 13px; font-weight: 750; color: #25364a; }
.timeline-caption small { font-weight: 400; color: var(--muted); font-size: 10px; margin-top: 3px; }
.timeline-main { position: relative; padding-top: 17px; }
.timeline-main input[type=range] { position: relative; z-index: 4; width: 100%; appearance: none; background: transparent; cursor: pointer; }
.timeline-main input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #cad5df; border-radius: 4px; }
.timeline-main input[type=range]::-moz-range-track { height: 4px; background: #cad5df; border-radius: 4px; }
.timeline-main input[type=range]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); margin-top: -9px; box-shadow: 0 0 0 5px rgba(23, 105, 170, .11); }
.timeline-main input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); }
.density-track { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: flex-end; gap: 1px; opacity: .72; }
.density-bar { flex: 1; min-width: 1px; background: #80a8c6; border-radius: 2px 2px 0 0; }
.timeline-ticks { display: flex; justify-content: space-between; color: #75869a; font-size: 10px; margin-top: 7px; }
.slider-status { margin-top: 8px; font-size: 10px; color: var(--accent-dark); text-align: center; }
.timeline-main input[type=range]:disabled { cursor: not-allowed; opacity: .25; }
.all-years-mode .density-track { opacity: .25; }
.all-years-mode .timeline-ticks { opacity: .48; }
.round-btn:disabled { opacity: .3; cursor: not-allowed; transform: none !important; box-shadow: none; }

.world-map { display: block; width: 100%; height: 100%; user-select: none; cursor: grab; }
.world-map.dragging { cursor: grabbing; }
.ocean { fill: #edf4f9; }
.country-layer path { fill: #d5e1eb; stroke: #ffffff; stroke-width: .75; vector-effect: non-scaling-stroke; transition: fill .16s ease; }
.country-layer path:hover { fill: #c2d3df; }
.map-grid path { fill: none; stroke: rgba(88, 119, 143, .16); stroke-width: .55; vector-effect: non-scaling-stroke; }
.marker-node, .cluster-node { cursor: pointer; filter: none; }
.marker-node .halo { fill: rgba(255, 255, 255, .9); stroke: rgba(65, 86, 105, .24); stroke-width: 1; }
.marker-node .core, .marker-node .diamond { stroke: #fff; stroke-width: 2.2; }
.marker-node.active .halo { fill: none; stroke: #162d43; stroke-width: 2; }
.marker-node:hover .halo { stroke: #183d5b; stroke-width: 1.7; }
.cluster-node .cluster-halo { fill: rgba(255, 255, 255, .96); stroke: rgba(38, 76, 108, .24); stroke-width: 1.2; }
.cluster-node .cluster-core { fill: #276f9f; stroke: #fff; stroke-width: 2.2; }
.cluster-node text { fill: #fff; font-weight: 800; font-size: 9px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.cluster-node:hover .cluster-halo { stroke: #173f5e; stroke-width: 1.8; }
.spider-line { stroke: rgba(52, 79, 103, .58); stroke-width: 1.15; stroke-linecap: round; pointer-events: none; }
.true-anchor { fill: #243f57; stroke: #fff; stroke-width: 1; pointer-events: none; }
.spider-group .marker-node { filter: drop-shadow(0 1px 2px rgba(24, 43, 61, .18)); }

.map-overlay { position: absolute; z-index: 500; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.stats-strip { top: 14px; left: 14px; display: flex; border-radius: 9px; overflow: hidden; }
.stats-strip div { padding: 10px 14px; border-right: 1px solid var(--line); min-width: 86px; }
.stats-strip div:last-child { border-right: 0; }
.stats-strip span { display: block; color: #1c3953; font-weight: 800; font-size: 18px; }
.stats-strip small { color: var(--muted); font-size: 9px; }
.legend { left: 14px; bottom: 39px; border-radius: 9px; padding: 8px 10px; display: grid; grid-template-columns: repeat(2, max-content); gap: 5px 12px; font-size: 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; color: #52677d; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.publication-notice {
  left: 14px;
  top: 100px;
  width: min(420px, calc(100% - 28px));
  padding: 11px 13px;
  display: grid;
  gap: 4px;
  border-left: 3px solid #2a6fa6;
  background: rgba(255,255,255,.96);
  color: #33475a;
  box-shadow: 0 7px 24px rgba(37,55,73,.10);
}
.publication-notice strong { font-size: 12px; color: #16283b; }
.publication-notice span { font-size: 11px; line-height: 1.45; }
.publication-notice small { color: #65788b; font-size: 10px; }
.location-note { left: 14px; bottom: 10px; border-radius: 7px; padding: 6px 9px; font-size: 9px; color: #617488; }
.map-error { position: absolute; z-index: 800; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff7f7; color: #7a2530; border: 1px solid #e6b8bd; padding: 18px; border-radius: 10px; max-width: 370px; text-align: center; box-shadow: var(--shadow); }

.map-popup { position: absolute; z-index: 850; width: min(320px, calc(100% - 24px)); max-height: 330px; overflow: auto; background: rgba(255, 255, 255, .98); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 9px; }
.map-popup-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.map-popup-item { width: 100%; text-align: left; border: 0; border-bottom: 1px solid #edf1f5; background: transparent; color: var(--text); padding: 9px 7px; cursor: pointer; }
.map-popup-item:last-child { border-bottom: 0; }
.map-popup-item:hover { background: #f5f8fb; }
.map-popup-item strong { display: block; font-size: 12px; line-height: 1.4; }
.map-popup-item span { font-size: 10px; color: var(--muted); }
.map-zoom-controls { position: absolute; right: 13px; top: 13px; z-index: 520; display: grid; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; box-shadow: var(--shadow-soft); }
.map-zoom-controls button { width: 38px; height: 36px; border: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); color: #263c50; font-size: 18px; cursor: pointer; }
.map-zoom-controls button:last-child { border-bottom: 0; font-size: 15px; }
.map-zoom-controls button:hover { background: #eef4f8; }

.detail-dialog, .about-dialog { width: min(720px, calc(100vw - 28px)); max-height: 86vh; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 30px 90px rgba(31, 50, 69, .24); padding: 0; }
.detail-dialog::backdrop, .about-dialog::backdrop { background: rgba(32, 44, 57, .48); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 14px; top: 12px; z-index: 2; border: 1px solid var(--line); background: #fff; color: #3a4d61; width: 36px; height: 36px; border-radius: 50%; font-size: 21px; cursor: pointer; }
.dialog-close:hover { background: #f3f6f9; }
.dialog-scroll, #detailContent { padding: 29px 30px 32px; overflow: auto; max-height: 86vh; }
.about-brand { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding: 0 48px 18px 0; margin: 0 0 20px; }
.about-brand img { width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.about-brand span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.badge { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: #5d7084; background: #f8fafc; }
.detail-dialog h2, .about-dialog h2 { font-size: 25px; line-height: 1.28; margin: 8px 45px 10px 0; color: #162438; }
.detail-dialog h3, .about-dialog h3 { font-size: 13px; margin: 22px 0 6px; color: #293f55; }
.detail-dialog p, .about-dialog p { color: #5d6f83; font-size: 14px; line-height: 1.75; }
.why-box { border-left: 3px solid var(--cat); background: #f8fafc; padding: 10px 13px; border-radius: 0 8px 8px 0; }
.source-link { display: inline-flex; margin-top: 10px; color: var(--accent-dark); text-decoration: none; border-bottom: 1px solid rgba(13, 86, 143, .28); padding-bottom: 2px; font-weight: 650; }
.source-link:hover { color: #073d68; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-grid section { border: 1px solid var(--line); background: #fafcfe; border-radius: 9px; padding: 12px; }
.method-grid h3 { margin: 0 0 5px; }
.method-grid p { font-size: 12px; margin: 0; line-height: 1.55; }
.data-note { border: 1px solid #e3d3a4; background: #fffbef; padding: 11px; border-radius: 8px; color: #655633 !important; }

@media (max-width: 1100px) {
  .language-picker span { display: none; }
  .language-picker select { min-width: 92px; }
  .timeline-panel { grid-template-columns: 410px minmax(0, 1fr); }
  .timeline-tools { grid-template-columns: 38px 96px 38px minmax(150px, 1fr); }
}
@media (max-width: 980px) {
  :root { --topbar-h: 76px; --timeline-h: 172px; }
  .workspace { grid-template-columns: 1fr; }
  .side-panel { position: absolute; z-index: 900; right: 0; top: var(--topbar-h); bottom: var(--timeline-h); width: min(420px, 92vw); transform: translateX(105%); transition: .24s ease; box-shadow: -20px 0 55px rgba(33, 50, 67, .18); }
  .side-panel.open { transform: translateX(0); }
  .mobile-only { display: inline-flex; }
  .timeline-panel { grid-template-columns: 390px minmax(0, 1fr); gap: 12px; padding-inline: 14px; }
  .topbar { padding-inline: 12px; }
  .topbar h1 { font-size: 18px; max-width: 390px; }
  .brand-logo { width: 52px; height: 52px; }
  .eyebrow { font-size: 8px; }
  .top-actions { gap: 6px; }
  .language-picker select { min-width: 86px; padding-inline: 8px; }
  .stats-strip div { min-width: 72px; padding: 8px 10px; }
}
@media (max-width: 780px) {
  :root { --timeline-h: 216px; --topbar-h: 76px; }
  .topbar { padding-inline: 10px; }
  .top-actions #fitBtn { display: none; }
  .timeline-panel { grid-template-columns: 1fr; align-content: center; gap: 7px; padding: 10px 12px 13px; }
  .timeline-tools { grid-template-columns: 38px 96px 38px 1fr; }
  .timeline-caption { grid-column: 1 / -1; margin-top: 4px; }
  .timeline-main { padding-top: 10px; }
  .all-years-btn { min-width: 0; padding-inline: 9px; }
  .all-years-btn small { display: none; }
  .legend { display: none; }
  .stats-strip { top: 10px; left: 10px; }
  .stats-strip div { min-width: 58px; padding: 7px 8px; }
  .stats-strip span { font-size: 15px; }
  .stats-strip small { font-size: 8px; }
  .location-note { left: 10px; }
  .method-grid { grid-template-columns: 1fr; }
  .dialog-scroll, #detailContent { padding: 24px 18px 28px; }
  .detail-dialog h2, .about-dialog h2 { font-size: 21px; }
}
@media (max-width: 560px) {
  .brand-wrap { gap: 7px; }
  .brand-logo { width: 42px; height: 42px; }
  .topbar h1 { font-size: 14px; max-width: 205px; }
  .top-actions #aboutBtn { display: none; }
  .language-picker select { min-width: 82px; font-size: 12px; }
  .timeline-tools { grid-template-columns: 36px 90px 36px minmax(105px, 1fr); }
  .all-years-btn span { font-size: 11px; }
  .timeline-caption span { font-size: 11px; }
  .stats-strip small { max-width: 58px; display: block; line-height: 1.1; }
  .about-brand img { width: 62px; height: 62px; }
}
@media (max-width: 430px) {
  .topbar h1 { font-size: 13px; max-width: 155px; }
  .top-actions .ghost-btn { font-size: 11px; }
  .stats-strip div:nth-child(3) { display: none; }
  .timeline-caption small { display: none; }
  .select-row { grid-template-columns: 1fr; }
  .event-card p { -webkit-line-clamp: 3; }
}


/* Standard geographic map interaction */
.map-panel { touch-action: auto; background: #edf3f7; }
.world-map { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; background: #edf3f7; }
.world-map:active { cursor: grabbing; }
.leaflet-container { font: inherit; color: var(--text); background: #edf3f7; outline: 0; }
.leaflet-tile-pane { display: none; }
.leaflet-control-attribution {
  margin: 0 5px 4px 0 !important;
  padding: 3px 6px !important;
  border-radius: 5px 0 0 0;
  background: rgba(255,255,255,.9) !important;
  color: #65788b !important;
  font-size: 9px !important;
  box-shadow: 0 0 0 1px rgba(85,105,124,.1);
}
.leaflet-control-attribution a { color: #375f7f; }
.leaflet-tooltip {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.4;
}
.leaflet-tooltip strong { font-size: 12px; }
.leaflet-tooltip span { color: var(--muted); }
.leaflet-popup-content-wrapper {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.99);
  box-shadow: var(--shadow);
  padding: 0;
}
.leaflet-popup-content { margin: 8px; min-width: 0; }
.leaflet-popup-tip { box-shadow: 1px 1px 0 rgba(68,89,108,.16); }
.leaflet-popup-close-button { color: #506579 !important; font-size: 21px !important; top: 4px !important; right: 5px !important; }

.atlas-marker-icon, .atlas-cluster-icon { background: transparent; border: 0; }
.atlas-marker-shell {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(48,70,91,.25);
  box-shadow: 0 2px 7px rgba(27,47,67,.24);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.atlas-marker-shell:hover { transform: scale(1.08); border-color: #294d6b; box-shadow: 0 3px 9px rgba(27,47,67,.3); }
.atlas-marker-shell.active { border: 2px solid #173b58; box-shadow: 0 0 0 3px rgba(23,59,88,.14), 0 3px 9px rgba(27,47,67,.28); }
.atlas-marker-core {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--marker-color);
  border: 2px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.035);
}
.atlas-marker-core.diamond { border-radius: 3px; transform: rotate(45deg); }
.atlas-cluster-shell {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #276f9f;
  border: 3px solid rgba(255,255,255,.98);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(29,55,78,.3), 0 0 0 1px rgba(32,65,92,.25);
  transition: transform .12s ease, background .12s ease;
}
.atlas-cluster-shell:hover { transform: scale(1.07); background: #1f628f; }
.atlas-cluster-shell.exact-site {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #245b83;
  border: 3px solid #5f91b6;
  box-shadow: 0 2px 7px rgba(29,55,78,.25);
}
.map-site-popup { max-height: 310px; overflow: auto; min-width: 240px; padding-right: 20px; }
.map-site-popup .map-popup-head { padding-right: 4px; font-weight: 700; color: #3f566c; }
.map-site-popup .map-popup-item { display: block; }
.map-site-popup .map-popup-item strong { padding-right: 4px; }
.map-site-popup .map-popup-item span { display: block; margin-top: 3px; }

@media (max-width: 780px) {
  .leaflet-control-attribution { max-width: 58vw; line-height: 1.25; }
  .location-note { right: 10px; max-width: calc(100% - 20px); }
}

@media (max-width: 760px) {
  .brand-meta { display: none; }
  .publication-notice { top: 92px; left: 10px; width: min(360px, calc(100% - 20px)); }
  .publication-notice span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .publication-notice { display: none; }
}
