/* Public keetz.app pages. Colours mirror the app's theme/tokens.ts so a shared
   link looks like the app it came from. */
/* Montserrat, served from keetz.app (static/keetz/fonts/, SIL Open Font
   License, see OFL.txt there) rather than from Google: one variable font
   file per character range, every weight from 400 to 800 in each. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/montserrat-latin.311d352d9323.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.d16dfe26bcd7.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0613;
  --surface: #231835;
  --surface-2: #34244c;
  --text: #f4edff;
  --muted: #9e90bb;
  --faint: #8678a1;
  --border: rgba(255, 255, 255, 0.14);
  --link: #d4bdff;
  --danger: #f28b6b;
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.link { color: var(--link); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.site-header {
  padding: 16px 20px;
  max-width: 760px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.brand img { border-radius: 8px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.event {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.event-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}
.event-body { padding: 24px; }
/* Venue and event names are often one long unbroken token. */
h1, .facts dd, .about { overflow-wrap: anywhere; }
.facts > div { min-width: 0; }

.event-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--link);
}
.tag-warn { color: var(--danger); }
.tag-muted { color: var(--muted); }

h1 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
  margin: 0 0 8px;
}
h2 { font-size: 18px; margin: 28px 0 8px; }
.host { color: var(--muted); margin: 0 0 20px; }
.host strong { color: var(--link); font-weight: 600; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}
.facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.facts dd { margin: 0; font-weight: 600; }
.facts dd .muted { font-weight: 400; }

.event-map {
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
}

.about p { margin: 0 0 12px; color: var(--text); }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.btn-secondary {
  margin-top: 12px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.get-app {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.get-app h2 { margin-top: 0; font-size: 22px; }
.get-app p { margin: 0 0 12px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 32px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

/* ------------------------------------------------------------------ Radar
   The web Radar (templates/keetz/radar.html): map beside the event list on
   wide screens, map above the list on phones. */
.btn-small { padding: 9px 16px; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; }
.btn-small:disabled { opacity: 0.6; cursor: default; }

.radar-page .site-header {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.radar-page .site-footer { display: none; }

.radar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
}
.radar-map { min-height: 0; background: var(--surface-2); }
.radar-panel {
  overflow-y: auto;
  padding: 20px 20px 32px;
  background: var(--surface);
  border-left: 1px solid var(--border);
}
.radar-panel h1 { font-size: 24px; margin-bottom: 2px; }
.radar-panel > .muted { margin: 0 0 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip-on { background: #ffffff; border-color: #ffffff; color: var(--bg); }
.chip-on:hover { color: var(--bg); }

.event-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.event-row {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
}
.event-row:hover { border-color: var(--link); }
.event-row-name { display: block; font-weight: 700; overflow-wrap: anywhere; }
.event-row-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* A shout-out: a light paper ticket on the dark site, so it never reads as
   an event row. Built to the mock-up approved in the 2026-10-05 review; the
   colours are the app's `ticket` tokens (theme/tokens.ts). */
.shout-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 104px;
  border-radius: 16px;
  background: #fbf7ff;
  color: #0b0613;
  text-decoration: none;
}
.shout-row:hover { background: #eee6fa; }
.shout-main { min-width: 0; padding: 14px 16px; }
.shout-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f40a0;
}
.shout-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.shout-headline { display: block; margin: 6px 0; font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.shout-where { display: block; font-size: 13px; font-weight: 600; color: #3b2c52; overflow-wrap: anywhere; }
.shout-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-left: 2px dashed #cfc2e6;
  text-align: center;
}
.shout-stub-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7a6c96; }
.shout-stub-value { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.shout-stub-value small { font-size: 12px; font-weight: 700; }
/* The ticket notches at either end of the tear line, cut out with the
   colour behind the row (--notch; the page background unless a list sets
   its own). */
.shout-row::before, .shout-row::after {
  content: "";
  position: absolute;
  right: 95px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--notch, var(--bg));
}
.shout-row::before { top: -9px; }
.shout-row::after { bottom: -9px; }
.card .shout-row, .radar-panel .shout-row { --notch: var(--surface); }
.shout-urgent .shout-label,
.shout-urgent .shout-stub-value { color: #c2410c; }
.event-list-past .shout-row { opacity: 0.65; }

/* The same shout-out on the map: a labelled tag with a pointer whose tip is
   the venue, not a round chip. */
.map-tag {
  position: relative;
  transform: translateY(calc(-50% - 8px)); /* the marker is centred; lift it so the pointer's tip is the spot */
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid #5f40a0;
  background: #fbf7ff;
  color: #0b0613;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(11, 6, 19, 0.35);
}
.map-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: #fbf7ff;
  border-right: 2px solid #5f40a0;
  border-bottom: 2px solid #5f40a0;
  transform: translateX(-50%) rotate(45deg);
}
.map-tag small { margin-left: 6px; font-size: inherit; font-weight: 700; color: #7a6c96; }
.map-tag-urgent, .map-tag-urgent::after { border-color: #c2410c; }
.map-tag-urgent small { color: #c2410c; }

.cities { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; font-size: 14px; }

/* Markers: the app's event chip (dark disc, category-coloured ring, category
   glyph) and its count bubble. */
.map-chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(11, 6, 19, 0.9);
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.map-chip img { width: 17px; height: 17px; }
.map-cluster {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5f40a0;
  border: 3px solid #ffffff;
  color: #ffffff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 820px) {
  .radar { display: block; height: auto; }
  .radar-map { height: 52vh; }
  .radar-panel { border-left: 0; overflow: visible; }
}

/* ------------------------------------------------------------- site chrome */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.site-nav .nav-cta { background: #ffffff; color: var(--bg); }
.site-nav .nav-cta:hover { color: var(--bg); }

.site-footer nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer { padding-top: 8px; }

/* ------------------------------------------------------------- cards, forms */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.narrow { max-width: 440px; margin: 24px auto 0; }
.center { text-align: center; }
.small { font-size: 14px; }
.stack { display: grid; gap: 14px; margin: 16px 0; }
.danger { color: var(--danger); }

button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
button.btn:disabled { opacity: 0.55; cursor: default; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger) !important; }
.btn-going { background: var(--surface-2); color: var(--text); border: 1px solid var(--link) !important; }
button.btn-secondary { border: 1px solid var(--border); }
.card > .btn-secondary, .card form > .btn-secondary { margin-top: 0; }

.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  width: 100%;
}
.field input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.field input::placeholder { color: var(--faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 500; margin: 0; }
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.field textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; }
.choice input { accent-color: var(--link); }
.report-line { margin: 20px 0 0; font-size: 14px; }
.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(212, 189, 255, 0.12);
  color: var(--link);
  font-weight: 600;
}
#google-button { display: flex; justify-content: center; min-height: 44px; }

/* Checkbox chips (interests): the chip is the label, the box is hidden. */
.chip-check { display: inline-flex; padding: 0; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { padding: 7px 13px; border-radius: 999px; }
.chip-check:has(input:checked) { background: #ffffff; border-color: #ffffff; color: var(--bg); }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.profile-head h1 { margin: 0; font-size: 26px; }
.avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--bg);
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.event-list-past .event-row { opacity: 0.65; }
.card .event-list { margin-top: 12px; }

/* ------------------------------------------------------------- event actions */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; align-items: center; }
.actions form { margin: 0; }
.actions .btn-secondary { margin-top: 0; }

/* ------------------------------------------------------------- radar tools */
.radar-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.search {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
}
.search::placeholder { color: var(--faint); }
.radar-tools .btn-small { white-space: nowrap; margin-top: 0; }
button.btn.btn-small { font-size: 14px; font-weight: 600; padding: 9px 16px; }
.radar { height: calc(100vh - 72px); height: calc(100dvh - 72px); }

/* ------------------------------------------------------------- long-form text */
.prose h1 { margin-bottom: 4px; }
.prose h2 { margin-top: 28px; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .radar-tools { flex-direction: column; }
}

/* The venue pin on the event page's map. */
.map-pin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5f40a0;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* reCAPTCHA's floating badge is replaced by the text notice under the form,
   which Google's terms allow in its place. */
.grecaptcha-badge { visibility: hidden; }

/* ------------------------------------------------------------- consent */
/* The banner asking about Google's services (static/keetz/consent.js), and
   the notes that stand in for a map or a Google button until they are
   allowed. */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 14px;
}
.consent-banner p { margin: 0 0 12px; color: var(--text); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-placeholder {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.consent-placeholder p, .consent-note p { margin: 0; }
.consent-note {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.consent-note[hidden] { display: none; }

/* The bot trap on the email forms (keetzsite/bot_check.py): off screen for
   people, still in the page for scripts. Not display:none, which some
   scripts skip. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
