/* ENF-873 venue opening. Every rule is scoped under .vo so nothing here can
   restyle another page; the palette lives in custom properties that venue.js
   also reads for the canvas map, so the map and the chrome share one theme. */
.vo {
  --vo-bg: #07101d;
  --vo-surface: #0d1a2c;
  --vo-surface-2: #14253b;
  --vo-line: #2a3e5a;
  --vo-line-strong: #6b819c;
  --vo-ink: #eef4fb;
  --vo-muted: #a7b8cc;
  --vo-accent: #2dd4bf;
  --vo-accent-hover: #5eead4;
  --vo-accent-active: #14b8a6;
  --vo-accent-ink: #04201c;
  --vo-accent-soft: rgba(45, 212, 191, 0.16);
  --vo-focus: #7dd3fc;
  --vo-map-land: #0b1728;
  --vo-map-road: #34475d;
  --vo-map-road-major: #61788e;
  --vo-map-rail: #4f5878;
  --vo-map-park: #10301f;
  --vo-map-coast: #66879a;
  --vo-map-building: #263c50;
  --vo-map-building-edge: #526b80;
  --vo-radius-s: 6px;
  --vo-radius-m: 10px;
  --vo-radius-l: 14px;
  --vo-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --vo-dur: 160ms;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--vo-bg);
  color: var(--vo-ink);
  font: 400 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
html[data-theme="light"] .vo {
  --vo-bg: #f3f6fa;
  --vo-surface: #ffffff;
  --vo-surface-2: #e8eef5;
  --vo-line: #cdd8e5;
  --vo-line-strong: #6a7d93;
  --vo-ink: #0b1626;
  --vo-muted: #44566c;
  --vo-accent: #0f766e;
  --vo-accent-hover: #115e59;
  --vo-accent-active: #134e4a;
  --vo-accent-ink: #ffffff;
  --vo-accent-soft: rgba(15, 118, 110, 0.12);
  --vo-focus: #0b5cad;
  --vo-map-land: #eef2f7;
  --vo-map-road: #bdc9d4;
  --vo-map-road-major: #879aac;
  --vo-map-rail: #a3a6bd;
  --vo-map-park: #d4eadb;
  --vo-map-coast: #607f94;
  --vo-map-building: #d1dce4;
  --vo-map-building-edge: #8ca0b1;
}
.vo *, .vo *::before, .vo *::after { box-sizing: border-box; }
.vo svg { flex: none; }
.vo a { color: inherit; }
.vo :focus-visible { outline: 3px solid var(--vo-focus); outline-offset: 2px; }

.vo-skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 2000;
  padding: 0.5rem 0.75rem; border-radius: var(--vo-radius-s);
  background: var(--vo-surface); color: var(--vo-ink);
}
.vo-skip:focus { top: 0.5rem; }

/* header */
.vo-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.625rem clamp(0.75rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-surface);
}
.vo-explore {
  margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0 0.875rem; border: 1px solid var(--vo-line-strong); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  transition: background-color var(--vo-dur) var(--vo-ease), border-color var(--vo-dur) var(--vo-ease);
}
.vo-explore:hover { background: var(--vo-surface-2); border-color: var(--vo-accent); }
.vo-explore:active { background: var(--vo-accent-soft); }
.vo-header-actions { display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;margin-inline-start:auto; }
.vo-header-actions button { cursor:pointer;font-family:inherit;background:var(--vo-surface);color:var(--vo-ink); }
.vo-panel .vo-eyebrow { margin:0;color:var(--vo-accent);font-size:.8125rem;font-weight:600; }
.vo-headline { margin:.5rem 0 1rem;font-size:clamp(2rem,3.2vw,3.25rem);line-height:1.08;letter-spacing:-.035em;max-inline-size:16ch; }
.vo-intro { margin:0;color:var(--vo-muted);max-inline-size:40ch; }
.vo-start-actions { display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-block:1.5rem; }
.vo-start-actions .vo-enter { inline-size:100%;font-family:inherit;font-size:1rem;font-weight:600;line-height:1.3;cursor:pointer; }
.vo-text-link { color:var(--vo-accent);text-decoration:underline;text-underline-offset:.2em; }
.vo-text-link:hover { color:var(--vo-ink); }
.vo-demo-note { margin:0;color:var(--vo-muted);font-size:.8125rem;line-height:1.5; }
.vo-location-details,.vo-about-demo { margin-block-start:1.5rem;border-block-start:1px solid var(--vo-line);padding-block-start:1rem; }
.vo-location-details summary,.vo-about-demo summary { min-block-size:2.75rem;cursor:pointer;font-weight:600; }
.vo-location-details .vo-title { font-size:1.5rem;margin-block:.75rem; }
.vo-about-demo p { font-size:.8125rem;color:var(--vo-muted); }
.vo-location-details .vo-steps { margin-block:1rem; }
.vo-start-actions button:focus-visible,.vo-text-link:focus-visible,.vo-header-actions button:focus-visible,
.vo-location-details summary:focus-visible,.vo-about-demo summary:focus-visible { outline:2px solid var(--vo-focus);outline-offset:3px; }
html[data-tour-active="true"] .vo-main { min-block-size:26rem; }

/* layout: map leads, the panel carries the path */
.vo-main { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.vo-map-wrap { position: relative; min-height: clamp(16rem, 46svh, 30rem); background: var(--vo-map-land); overflow: hidden; }
.vo-map { position: absolute; inset: 0; background: var(--vo-map-land); font: inherit; }
.vo-map.leaflet-container { background: var(--vo-map-land); outline-offset: -3px; }
.vo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.vo-map[data-map-state="ready"] .vo-fallback { display: none; }

.vo-map-controls {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.375rem;
}
.vo-map-controls[hidden], .vo-ctl[hidden] { display: none; }
.vo-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.625rem;
  border: 1px solid var(--vo-line-strong); border-radius: var(--vo-radius-m);
  background: var(--vo-surface); color: var(--vo-ink);
  font-family: inherit; font-weight: 500; font-size: 0.875rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(2, 8, 20, 0.28);
  transition: background-color var(--vo-dur) var(--vo-ease), border-color var(--vo-dur) var(--vo-ease);
}
.vo-ctl svg, .vo-back svg, .vo-enter svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vo-ctl:hover { background: var(--vo-surface-2); border-color: var(--vo-accent); }
.vo-ctl:active { background: var(--vo-accent-soft); }
.vo-ctl:disabled { opacity: 0.5; pointer-events: none; }

.vo-status {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1000; margin: 0;
  max-inline-size: calc(100% - 9.5rem);
  padding: 0.375rem 0.625rem; border-radius: var(--vo-radius-s);
  background: var(--vo-surface); border: 1px solid var(--vo-line); color: var(--vo-ink);
  font-size: 0.8125rem; line-height: 1.3;
}
.vo-status[hidden] { display: none; }

.vo-attr {
  position: absolute; right: 0; bottom: 0; z-index: 1000; margin: 0;
  max-inline-size: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.375rem;
  padding: 0.25rem 0.5rem; border-top-left-radius: var(--vo-radius-s);
  background: var(--vo-surface); color: var(--vo-muted);
  font-size: 0.75rem; line-height: 1.5;
}
.vo-attr a { color: var(--vo-ink); text-underline-offset: 2px; display: inline-block; padding-block: 0.125rem; }
.vo-attr a:hover { color: var(--vo-accent); }

/* map labels, drawn by Leaflet as divIcons */
.vo .vo-label { background: none; border: 0; white-space: nowrap; }
.vo .vo-label span {
  display: inline-block; transform: translate(-50%, -50%);
  color: var(--vo-ink); font: 600 0.875rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 0 3px var(--vo-map-land), 0 0 6px var(--vo-map-land);
}
.vo .vo-label-minor span { color: var(--vo-muted); font-weight: 500; font-size: 0.75rem; }
.vo .vo-label-city span { font-size: 1.125rem; font-weight: 700; cursor: pointer; }
.vo .vo-label-venue span {
  transform: translate(-50%, 0.5rem); cursor: pointer; color: var(--vo-accent);
  padding: 0.5rem 0.75rem; border: 1px solid var(--vo-accent); border-radius: var(--vo-radius-s);
  background: var(--vo-surface); text-shadow: none; font-weight: 700;
}
.vo .vo-label-venue span::before {
  content: ""; position: absolute; left: calc(50% - 1px + var(--vo-label-shift, 0px)); bottom: 100%; height: 0.5rem;
  width: 2px; background: var(--vo-accent);
}
.vo .vo-label-venue[data-repositioned="true"] span::before { display: none; }
.vo .vo-label-road span { font-size: 0.6875rem; color: var(--vo-muted); font-weight: 500; }
.vo .vo-venue-shape { stroke: var(--vo-accent); fill: var(--vo-accent); fill-opacity: 0.12; stroke-width: 2; }
.vo-main:not([data-step="barcelona"]) .vo-venue-shape { fill-opacity: 0.12; stroke-width: 3; }
.vo .vo-north { color: var(--vo-muted); background: var(--vo-surface); padding: 0.375rem 0.625rem; border-radius: var(--vo-radius-s); font: 600 0.75rem/1.5 system-ui, sans-serif; }
.vo .leaflet-control-scale { margin-top: 0.5rem; }
.vo .leaflet-control-scale-line { color: var(--vo-ink); border-color: var(--vo-muted); background: var(--vo-surface); text-shadow: none; font: 500 0.6875rem/1.4 system-ui, sans-serif; }

/* panel */
.vo-panel {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.25rem clamp(0.75rem, 3vw, 1.75rem) 0;
  background: var(--vo-bg); min-width: 0;
}
.vo-title {
  margin: 0; font-size: clamp(2rem, 1.2rem + 4vw, 3.25rem); line-height: 1.1;
  font-weight: 700; letter-spacing: -0.015em;
}
.vo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.vo-step {
  inline-size: 100%; min-height: 2.75rem; display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; text-align: start;
  border: 1px solid var(--vo-line); border-radius: var(--vo-radius-m);
  background: var(--vo-surface); color: var(--vo-ink);
  font-family: inherit; font-weight: 500; font-size: 0.9375rem; line-height: 1.25; cursor: pointer;
  transition: background-color var(--vo-dur) var(--vo-ease), border-color var(--vo-dur) var(--vo-ease);
}
.vo-step span:last-child { min-width: 0; overflow-wrap: anywhere; }
.vo-step-n {
  display: inline-grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem; flex: none;
  border-radius: 999px; border: 1px solid var(--vo-line-strong);
  font-size: 0.75rem; font-weight: 600; color: var(--vo-muted);
}
.vo-step:hover { background: var(--vo-surface-2); border-color: var(--vo-line-strong); }
.vo-step:active { background: var(--vo-accent-soft); }
.vo-step[data-done="true"] .vo-step-n { border-color: var(--vo-accent); color: var(--vo-accent); }
.vo-step[aria-current="step"] {
  background: var(--vo-accent-soft); border-color: var(--vo-accent);
  box-shadow: inset 4px 0 0 var(--vo-accent); font-weight: 700;
}
.vo-step[aria-current="step"] .vo-step-n { background: var(--vo-accent); border-color: var(--vo-accent); color: var(--vo-accent-ink); }

/* schematic inset: hand-authored, never placed on the map */
.vo-inset {
  margin: 0; padding: 0.75rem; border: 1px dashed var(--vo-line-strong); border-radius: var(--vo-radius-l);
  background: var(--vo-surface);
  transition: border-color var(--vo-dur) var(--vo-ease);
}
.vo-inset-art { display: block; inline-size: 100%; block-size: auto; max-block-size: 13rem; }
.vo-inset-label { fill: var(--vo-muted); font: 600 12px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.vo-inset-hall-outline { fill: none; stroke: var(--vo-line-strong); stroke-width: 1.5; stroke-dasharray: 5 4; }
.vo-inset-blocks rect { fill: var(--vo-surface-2); stroke: var(--vo-line); stroke-width: 1; }
.vo-inset-street { stroke: var(--vo-line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.vo-inset-street-label { fill: var(--vo-muted); font: 600 10px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.vo-inset-booth-shape { fill: var(--vo-surface-2); stroke: var(--vo-line-strong); stroke-width: 1.5; }
.vo-inset-booth-label { fill: var(--vo-ink); font: 600 10.5px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[data-inset-step] { cursor: pointer; }
.vo-inset-note { margin-top: 0.5rem; color: var(--vo-muted); font-size: 0.8125rem; font-weight: 500; }
.vo-main[data-step="hall"] .vo-inset, .vo-main[data-step="booth"] .vo-inset { border-color: var(--vo-accent); }
.vo-main[data-step="hall"] .vo-inset-hall-outline { stroke: var(--vo-accent); stroke-width: 2.5; }
.vo-main[data-step="hall"] .vo-inset-label { fill: var(--vo-accent); }
.vo-main[data-step="booth"] .vo-inset-booth-shape { fill: var(--vo-accent); stroke: var(--vo-accent); }
.vo-main[data-step="booth"] .vo-inset-booth-label { fill: var(--vo-accent-ink); }

/* actions: Enter is never hidden behind map readiness */
.vo-actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: 0.5rem; align-items: stretch;
  margin-top: auto; padding: 0.75rem 0 max(0.75rem, env(safe-area-inset-bottom));
  background: var(--vo-bg); border-top: 1px solid var(--vo-line);
}
.vo-back, .vo-enter {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1rem; border-radius: var(--vo-radius-m);
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color var(--vo-dur) var(--vo-ease), border-color var(--vo-dur) var(--vo-ease);
}
.vo-back { background: transparent; color: var(--vo-ink); border: 1px solid var(--vo-line-strong); }
.vo-back:hover { background: var(--vo-surface-2); }
.vo-back:active { background: var(--vo-accent-soft); }
.vo-back:disabled { opacity: 0.5; pointer-events: none; }
/* .vo .vo-enter outranks the generic `.vo a { color: inherit }` above, which
   otherwise gave Enter page ink on the accent fill (1.6:1 in dark). */
.vo .vo-enter { flex: 1 1 auto; min-width: 0; background: var(--vo-accent); color: var(--vo-accent-ink); border: 1px solid var(--vo-accent); }
.vo .vo-enter:hover { background: var(--vo-accent-hover); border-color: var(--vo-accent-hover); color: var(--vo-accent-ink); }
.vo .vo-enter:active { background: var(--vo-accent-active); border-color: var(--vo-accent-active); color: var(--vo-accent-ink); }
.vo-main[data-step="booth"] .vo-enter { box-shadow: 0 0 0 3px var(--vo-accent-soft); }

@media (max-width: 420px) {
  .vo-explore { max-inline-size: 7rem; padding: 0 0.625rem; font-size: 0.8125rem; text-align: center; }
  .vo-ctl-text span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* ENF-873-R: on a phone, Hall 2 and Dell B131 are told by the schematic, not
   the map. The page is held to the viewport and the map takes only the room
   left after the inset, its caption and the actions, so the disclaimer is on
   screen before Enter without scrolling. venue.js resizes Leaflet before it
   frames the venue in the shorter map. Barcelona and Fira Gran Via keep the
   full map. */
@media (max-width: 899.98px) {
  .vo:has(.vo-main[data-step="hall"]), .vo:has(.vo-main[data-step="booth"]) { height: 100vh; height: 100dvh; }
  .vo-main[data-step="hall"], .vo-main[data-step="booth"] { grid-template-rows: minmax(6rem, 1fr) auto; }
  .vo-main[data-step="hall"] .vo-map-wrap, .vo-main[data-step="booth"] .vo-map-wrap { min-height: 6rem; }
  .vo-main[data-step="hall"] .vo-map-controls, .vo-main[data-step="booth"] .vo-map-controls { flex-direction: row; top: 0.5rem; right: 0.5rem; }
  .vo-main[data-step="hall"] #vo-zoom-in, .vo-main[data-step="hall"] #vo-zoom-out,
  .vo-main[data-step="booth"] #vo-zoom-in, .vo-main[data-step="booth"] #vo-zoom-out { display: none; }
  .vo-main[data-step="hall"] .leaflet-control, .vo-main[data-step="booth"] .leaflet-control { display: none; }
  .vo-main[data-step="hall"] .vo-status, .vo-main[data-step="booth"] .vo-status { top: 0.5rem; left: 0.5rem; }
  .vo-main[data-step="hall"] .vo-panel, .vo-main[data-step="booth"] .vo-panel { gap: 0.625rem; padding-top: 0.75rem; }
  .vo-main[data-step="hall"] .vo-title, .vo-main[data-step="booth"] .vo-title { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.25rem); }
  .vo-main[data-step="hall"] .vo-inset, .vo-main[data-step="booth"] .vo-inset { padding: 0.5rem 0.625rem; }
  .vo-main[data-step="hall"] .vo-inset-note, .vo-main[data-step="booth"] .vo-inset-note { margin-top: 0.25rem; }
  .vo-main[data-step="hall"] .vo-actions, .vo-main[data-step="booth"] .vo-actions { padding-top: 0.5rem; }
}
@media (min-width: 900px) {
  .vo-main { grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); }
  .vo-map-wrap { min-height: 0; }
  .vo-panel { overflow-y: auto; border-left: 1px solid var(--vo-line); padding-top: 2rem; }
  .vo-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .vo *, .vo *::before, .vo *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
