/*
  Shared by both the map (app.css) and the standalone event page
  (event.php): theme tokens, base reset, and the plain single-event
  content styling. Nothing here assumes a fixed, non-scrolling viewport.
*/

:root {
  --bg: #0c0c0d;
  --surface: #18181b;
  --surface-2: #232326;
  --line: #303033;
  --text: #f2f1ee;
  --text-dim: #98979c;
  --accent: #f2f1ee;
  --radius: 0.75rem;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* ---------- Single-event content: shared by the map popup's target page ---------- */

.event-page {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.event-map-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.event-map-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.full-venue-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin: 0 0 0.25rem 0;
}

.full-venue-address {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

.full-event-image-link {
  display: block;
  margin-bottom: 1rem;
}

.full-event-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.full-event-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.full-event-time {
  display: block;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.full-event-time.is-now {
  color: var(--accent);
}

.full-event-time.is-now::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.5rem var(--accent);
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.full-event-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.full-event-description {
  white-space: pre-line;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}
