/* Fælles for kortversionerne kort-1.html … kort-5.html. Fotos vises originale (CLAUDE.md regel 1): kun beskåret for scanningskant. */
:root { --ink: #161616; --paper: #fafaf8; --mute: #74726c; --line: #e6e4de; --accent: #c8372d; --card: #fff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font: 400 15px/1.45 Inter, system-ui, sans-serif; }
body { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
a { color: inherit; }

/* ---------- Top ---------- */
.top { position: relative; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 24px; min-height: 60px; background: var(--paper); border-bottom: 1px solid var(--line); }
.top h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.versions { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: #efede8; overflow-x: auto; scrollbar-width: none; }
.versions::-webkit-scrollbar { display: none; }
.versions a { flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: #4a4843; white-space: nowrap; }
.versions a span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #dcd9d1; font-size: 11px; font-weight: 600; }
.versions a:hover { color: var(--ink); }
.versions a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.versions a[aria-current="page"] span { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .top { flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; } .top .flash { display: none; } .versions { order: 3; flex: 1 1 100%; margin: 0; } .versions a { padding: 6px 10px; } }

/* ---------- Kort ---------- */
.stage { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: 0 2px 8px rgba(0,0,0,.15) !important; }

/* Lille forklaring/værktøj i hjørnet (pr. version) */
.panel { position: absolute; z-index: 5; left: 16px; top: 16px; max-width: min(340px, calc(100% - 32px)); padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.96); box-shadow: 0 4px 18px rgba(0,0,0,.14); font-size: 13px; color: #3a3935; }
.panel b { color: var(--ink); font-weight: 600; }
.panel .row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.panel label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #efede8; }
.seg button { border: 0; padding: 5px 12px; border-radius: 999px; background: none; font: 500 13px Inter, sans-serif; color: #4a4843; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- Hover: kun plakaten (et klik går direkte til plakatsiden) ---------- */
.card { position: absolute; z-index: 30; pointer-events: none; visibility: hidden; } /* ingen opacity-fade: plakatens foto må ikke gøres gennemsigtigt */
.card.on { visibility: visible; }
.card .poster, .tile .poster, .ft .poster { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.tile .poster, .ft .poster { box-shadow: 0 1px 4px rgba(0,0,0,.18); }
@media (hover: none) { .card { display: none; } }

/* Beskåret småkopi: boksen har fotoets forhold efter beskæring; billedet flyttes, så scanningskanten ligger udenfor */
.crop { position: relative; overflow: hidden; display: block; }
.crop img { position: absolute; display: block; max-width: none; }

/* Liste over mange fotos på samme punkt (klynge der ikke kan deles mere) */
.sheet { position: absolute; z-index: 25; right: 16px; top: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); display: flex; flex-direction: column;
  border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(0,0,0,.25); transform: translateX(calc(100% + 24px)); transition: transform .2s ease; }
.sheet.on { transform: none; }
.sheet header { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sheet header button { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1efea; font-size: 18px; cursor: pointer; }
.sheet .grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; align-content: start; }
.tile { display: block; text-decoration: none; color: inherit; border-radius: 8px; }
.tile:hover .poster, .tile.hl .poster { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) { .sheet { left: 0; right: 0; top: 30%; bottom: 0; width: auto; border-radius: 16px 16px 0 0; transform: translateY(105%); } }

@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
/* Mobil: panelet fylder mindre */
@media (max-width: 760px) { .panel { left: 10px; top: 10px; max-width: 250px; padding: 9px 11px; font-size: 12px; } .panel .tip { display: none; } }
