/* The image viewer (assets/viewer.js), in the map's card and on the full page. */
.iv-frame { position: relative; width: 100%; background: #6b7280; border-radius: 6px; overflow: hidden; }
.iv-canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.iv-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.iv-lines polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.iv-casing-obs, .iv-casing-corr { stroke: rgba(0, 0, 0, 0.55); stroke-width: 4.5; }
.iv-casing-year { stroke: rgba(255, 255, 255, 0.85); stroke-width: 4; }
.iv-obs { stroke: #e026d4; stroke-width: 2.5; stroke-dasharray: 6 3; stroke-linecap: butt !important; }
.iv-corr { stroke: #ff3b3b; stroke-width: 2.5; }
.iv-year { stroke: #1b1f24; stroke-width: 2; stroke-dasharray: 0.5 4; }
.iv-casing-hist { stroke: rgba(0, 0, 0, 0.45); stroke-width: 3; }
.iv-hist { stroke-width: 1.5; }
.iv-casing-now { stroke: rgba(255, 255, 255, 0.9); stroke-width: 5; }
.iv-now { stroke-width: 2.5; }
.iv-chosen { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; }
.iv-pick { stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }

.iv-caption { margin: 6px 0 4px; font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; min-height: 2.9em; }
.iv-caption b { font-weight: 600; }
.iv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.iv-button { min-width: 34px; font: inherit; font-size: 13px; padding: 3px 8px; border-radius: 8px;
  border: 1px solid var(--line, #e3e7ec); background: var(--surface, #fff); color: var(--ink, #1c2530); cursor: pointer; }
.iv-slider { flex: 1 1 100px; min-width: 100px; }
select.iv-select { flex: 0 1 auto; min-width: 0; font-size: 12px; padding: 3px 6px; }
.iv-legend { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted, #5b6673); margin: 6px 0 2px; }
.iv-legend span { display: flex; align-items: center; gap: 8px; }
.iv-key { width: 26px; height: 0; border-top: 3px solid; flex: none; }
.iv-key-obs { border-color: #e026d4; border-top-style: dashed; }
.iv-key-corr { border-color: #ff3b3b; }
.iv-key-year { border-color: #1b1f24; border-top-style: dotted; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7); }
.iv-key-now { border-color: #cc4778; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(0, 0, 0, 0.25); }
.iv-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.iv-check input { margin: 0; accent-color: #cc4778; }
/* the years run left to right in every language, as on the charts */
.iv-bar-row { direction: ltr; justify-content: flex-start; font-variant-numeric: tabular-nums; padding-bottom: 13px; }
.iv-bar { position: relative; flex: 0 1 240px; height: 10px; border-radius: 3px; }
.iv-bar-mark { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
.iv-tick { position: absolute; top: 12px; transform: translateX(-50%); font-size: 10px; line-height: 1; }
.iv-tick::before { content: ""; position: absolute; left: 50%; top: -4px; height: 3px; border-left: 1px solid currentColor; }
.iv-hover-lines { pointer-events: none; }
/* the year of the line pointed at, on the image and on the map */
.iv-tip { position: absolute; z-index: 2; pointer-events: none; }
.iv-tip, .iv-tip-text { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 6px;
  font: 600 12px/1.4 var(--font, system-ui, sans-serif); font-variant-numeric: tabular-nums;
  background: rgba(17, 22, 27, 0.88); color: #fff; white-space: nowrap; }
.iv-tip i, .iv-tip-text i { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.iv-popup .maplibregl-popup-content { padding: 0; background: none; box-shadow: none; }
.iv-popup .maplibregl-popup-tip { display: none; }
.iv-tip[hidden] { display: none; }
