/* FandomMap — direction "B" (CLAUDE.md §8). Poster-like, hard edges, one accent.
   Radii 0 everywhere. Borders 2px, never 1px. No shadow except the map hover card.
   Only --accent / --link carry colour, and accent.js sets both on <html>. */
:root {
  --bg: #0B0B10;
  --surface: #15151D;
  --surface-2: #22222F;
  --line: #1C1C26;
  --line-2: #26263A;
  --line-3: #3A3A50;
  --text: #F2F0F7;
  --text-2: #B8B4C8;
  --text-3: #8E89A3;
  --accent: #00E5A0;
  --link: #9CF5D6;
  --on-accent: #0B0B10;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
}
a { color: var(--link); }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────────────────────────────────────────────────── header */
.hdr {
  display: flex; align-items: center; gap: 28px; flex: none;
  height: 68px; padding: 0 var(--pad); border-bottom: 2px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 10px; flex: none;
  color: var(--text); text-decoration: none; text-transform: uppercase;
  font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: -0.5px;
}
.logo-map { color: var(--accent); }   /* the accent the visitor picked, like the mark */
.mark { display: inline-block; width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); }
.search {
  flex: 1 1 300px; max-width: 520px; min-width: 0; height: 42px; padding: 0 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--text-3);
}
.search:focus-within { border-color: var(--line-3); }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 15px;
}
.search input::placeholder { color: var(--text-3); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 12px 0 9px; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.swatches { display: flex; align-items: center; flex: none; }
/* a 22px drawn square inside a 44px touch target */
.swatch {
  width: 22px; height: 22px; padding: 0; margin: 0 7px; cursor: pointer; position: relative;
  border: 2px solid var(--line-2); transform: rotate(45deg);
}
.swatch::after { content: ""; position: absolute; inset: -13px; }
.swatch[aria-pressed="true"] { border-color: var(--text); }

/* narrow-screen menu: a <details> disclosure, so it works without script */
.mnav { display: none; position: relative; flex: none; }
.mnav summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-3); color: var(--text);
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { border-color: var(--accent); color: var(--accent); }
.mnav-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 1100; width: 240px;
  background: var(--surface); border: 2px solid var(--line-3);
}
.mnav-panel nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 18px; border-bottom: 2px solid var(--line);
  color: var(--text-2); text-decoration: none; text-transform: uppercase; letter-spacing: .6px; font-size: 14px; font-weight: 600;
}
.mnav-panel nav a:hover { color: var(--text); background: var(--surface-2); }
.mnav-panel nav a[aria-current] { color: var(--accent); }
/* "Share See you at…": a menu entry on phones only (wider screens keep the filter-bar chip) */
.mnav-share {
  display: none; width: 100%; align-items: center; min-height: 48px; padding: 0 18px; border: 0; border-bottom: 2px solid var(--line);
  background: none; color: var(--accent); font: inherit; text-align: left; cursor: pointer;
  text-transform: uppercase; letter-spacing: .6px; font-size: 14px; font-weight: 600;
}
.mnav-share:hover, .mnav-share:focus-visible { background: var(--surface-2); }
.mnav-panel .swatches { display: none; padding: 14px 12px; }

/* ───────────────────────────────────────────────────────── filter bar */
.filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: none;
  padding: 10px var(--pad); border-bottom: 2px solid var(--line);
}
.ftoggle { display: none; }              /* phones only, see the 600px block */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .sel select {
  min-height: 36px; padding: 7px 12px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--text);
  font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.chip:hover, .sel select:hover { border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sel { position: relative; display: inline-flex; }
.sel select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F2F0F7' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sel select.on { border-color: var(--accent); color: var(--accent); }
.sel option { background: var(--surface); color: var(--text); text-transform: none; font-weight: 400; }
.sep { width: 2px; height: 22px; background: var(--line-2); margin: 0 4px; }
.count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-3); }
/* shown only while something narrows the map (app.js updateBadge) */
.fclear {
  margin-left: auto; min-height: 36px; padding: 7px 12px; cursor: pointer;
  background: transparent; border: 2px solid var(--accent); color: var(--accent); font: inherit;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.fclear:hover { background: var(--accent); color: var(--on-accent); }
.fclear[hidden] { display: none; }
.fclear + .count { margin-left: 0; }

/* ── list pickers (Type, Fandom): a button styled like the selects, a panel of rows under it.
   Desktop: the panel floats over the map (the bar sits above .stage in z-order).
   Phones (600px block): the panel joins the flow of the open filter panel instead. */
.filters { position: relative; z-index: 700; }
.pick { position: relative; display: inline-flex; }
.pick-btn {
  min-height: 36px; max-width: 230px; padding: 7px 34px 7px 12px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--text); font: inherit;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F2F0F7' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.pick-btn:hover { border-color: var(--line-3); }
.pick-btn.on, .pick-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.pick-panel {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 1200; width: 330px;
  background: var(--surface); border: 2px solid var(--line-3); box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.pick-panel[hidden] { display: none; }
.pick-q {
  display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 14px;
  background: var(--bg); border: 0; border-bottom: 2px solid var(--line-2); color: var(--text); font: inherit; font-size: 14px; outline: 0;
}
.pick-q::placeholder { color: var(--text-3); }
.pick-list { max-height: min(440px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.pick-empty { margin: 0; padding: 14px 12px; color: var(--text-3); font-size: 13px; }

/* the one-colour type marks: an alpha-mask PNG painted with the current colour */
.ti { display: inline-block; width: 32px; height: 32px; background: currentColor;
  -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat; }
.ti-comic { --ti: url(/assets/types/comic.png); }
.ti-anime { --ti: url(/assets/types/anime.png); }
.ti-gaming { --ti: url(/assets/types/gaming.png); }
.ti-tabletop { --ti: url(/assets/types/tabletop.png); }
.ti-scifi { --ti: url(/assets/types/scifi.png); }
.ti-horror { --ti: url(/assets/types/horror.png); }
.ti-furry { --ti: url(/assets/types/furry.png); }
.ti-cosplay { --ti: url(/assets/types/cosplay.png); }
.ti-film_tv { --ti: url(/assets/types/film_tv.png); }
.ti-maker { --ti: url(/assets/types/maker.png); }

/* tiles, shared by the treemap and the grid */
.pick-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 6px; box-sizing: border-box; cursor: pointer; overflow: hidden;
  background: var(--surface-2); border: 2px solid var(--surface); color: var(--text); font: inherit; text-align: center;
}
.pick-tile:hover { background: var(--line-2); }
.pick-tile[hidden] { display: none; }
.pick-tile[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.pick-tile[aria-selected="true"] .pick-c, .pick-tile[aria-selected="true"] .pick-n, .pick-tile[aria-selected="true"] .pick-ph { color: var(--on-accent); }
.pick-tile .pick-art { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.pick-tile[aria-selected="true"] .pick-art { color: var(--on-accent); }
.pick-n { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-c { font-size: 11px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Type: a grid of equal poster buttons (user, 2026-10-07: equal, not a treemap). The mark
   fills the right of the tile, the name sits top-left in the logo's display face sized to
   the tile, the count right under it; where name and mark overlap, the name's stroke (the
   tile's own colour, --tile) keeps both legible. (.pick-map is the submit page's map.) */
#p-types .pick-panel { width: 440px; }
.pick-poster { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface); }
.pick-poster .pick-tile { --tile: var(--surface-2); position: relative; height: 82px; display: block; padding: 0; text-align: left; background: var(--tile); }
.pick-poster .pick-tile:hover { --tile: var(--line-2); }
.pick-poster .pick-tile[aria-selected="true"] { --tile: var(--accent); }
.pick-poster .pick-art { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); height: 74%; aspect-ratio: 1; display: block; }
.pick-poster .pick-art .ti { width: 100%; height: 100%; }
.pick-poster .pick-tile[aria-selected="true"] .pick-art { opacity: .55; }
.pick-poster .pick-n, .pick-poster .pick-c {
  position: absolute; left: 10px; right: 4px; white-space: nowrap; overflow: visible; text-overflow: clip;
  paint-order: stroke fill; -webkit-text-stroke: 5px var(--tile); z-index: 1;
}
.pick-poster .pick-n {
  top: 9px; font-family: var(--display); font-weight: 900; letter-spacing: -.04em; line-height: 1;
  font-size: var(--fs, 20px);            /* set per tile by app.js from the tile's own size */
  -webkit-text-stroke-width: .16em;
}
.pick-poster .pick-c { top: calc(9px + var(--fs, 20px) * 1.15); font-size: 12px; -webkit-text-stroke-width: 4px; }

/* Fandom: the logo grid. Big logo, small name; no logo → the name fills the box. */
#p-fandoms .pick-panel { width: 440px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.pick-grid .pick-tile { height: 112px; justify-content: flex-start; padding: 6px 6px 5px; }
.pick-grid .pick-art { width: 100%; height: 66px; flex: none; background: var(--bg); padding: 6px; box-sizing: border-box; }
.pick-grid .pick-tile[aria-selected="true"] .pick-art { background: color-mix(in srgb, var(--on-accent) 22%, var(--accent)); }
.pick-grid .pick-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pick-grid .pick-art img.photo { width: 100%; height: 100%; object-fit: cover; }
.pick-grid .noart .pick-art { height: 92px; }
.pick-grid .noart .pick-n { display: none; }
.pick-ph { font-family: var(--display); font-weight: 800; font-size: 11px; line-height: 1.2; letter-spacing: -.2px; text-transform: uppercase; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-grid .pick-c { position: absolute; }   /* reset below: the count sits in the corner */
.pick-grid .pick-tile { position: relative; }
.pick-grid .pick-c { top: 4px; right: 6px; background: var(--surface); padding: 0 4px; }
.pick-grid .pick-tile[aria-selected="true"] .pick-c { background: var(--accent); }
/* Guest: portraits, so the box is taller and the photo fills it */
#p-guests .pick-panel { width: 440px; }
#p-guests .pick-grid .pick-tile { height: 136px; }
#p-guests .pick-grid .pick-art { height: 90px; padding: 0; }
#p-guests .pick-grid .noart .pick-art { height: 116px; padding: 6px; }
.pick-foot { display: flex; justify-content: space-between; border-top: 2px solid var(--line-2); }
.pick-foot button {
  min-height: 42px; padding: 10px 14px; cursor: pointer; background: transparent; border: 0; color: var(--text-2);
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.pick-foot button:hover { color: var(--text); }
.pick-foot .pick-done { color: var(--accent); }

/* ───────────────────────────────────────────────────────── map + rail */
body.home { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.stage { display: flex; flex: 1; min-height: 0; }
/* isolate: Leaflet's panes and controls carry z-indexes up to 1000, and without a stacking
   context of their own they paint over the bottom sheet */
.mapwrap { position: relative; flex: 1; min-width: 0; background: #101018; isolation: isolate; }
#map { position: absolute; inset: 0; background: #101018; font-family: var(--body); }
/* globe view: the starfield tile app.js draws, under a faint accent nebula (the sphere itself
   is painted by MapLibre on top; its atmosphere halo comes from the style's sky) */
#map.space { background-color: #07070C; background-repeat: repeat; }
#map.space::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 25%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 75%, rgba(80, 120, 255, .10), transparent 70%);
}
.mapctl { position: absolute; right: 16px; top: 16px; z-index: 500; display: flex; flex-direction: column; gap: 6px; }
.mapctl button {
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--line-3); color: var(--text);
  font-size: 20px; font-weight: 700; line-height: 1;
}
.mapctl button:hover { border-color: var(--text-3); }
.mapctl button[hidden] { display: none; }

.rail {
  width: 400px; flex: none; min-height: 0; display: flex; flex-direction: column;
  background: var(--bg); border-left: 2px solid var(--line);
}
.rail-h {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  padding: 0 18px; min-height: 52px; border-bottom: 2px solid var(--line);
}
.rail-t { font-family: var(--display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.sort select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 0 0 8px; text-align: right;
  color: var(--text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.sort option { background: var(--surface); color: var(--text); }
.results { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.empty { padding: 28px 18px; color: var(--text-3); font-size: 14px; }
.show-all { display: block; width: calc(100% - 32px); margin: 12px 16px 18px; padding: 11px 14px; background: transparent;
  border: 2px solid var(--accent); color: var(--accent); font: 700 13px/1.2 "Space Grotesk", sans-serif; letter-spacing: .5px;
  text-transform: uppercase; cursor: pointer; }
.show-all:hover, .show-all:focus-visible { background: var(--accent); color: var(--on-accent); }

.row {
  display: flex; gap: 14px; width: 100%; padding: 14px 18px; cursor: pointer; text-align: left;
  background: transparent; border: 0; border-bottom: 2px solid var(--line); color: inherit;
  text-decoration: none;
}
.row:hover, .row.active { background: var(--surface); }
.date { width: 54px; flex: none; align-self: flex-start; text-align: center; border: 2px solid var(--line-2); padding: 6px 0; }
.row.active .date { border-color: var(--accent); }
.date .mon { display: block; font-size: 10px; line-height: 1.5; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.date .day { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; }
.date.tba .day { font-size: 12px; line-height: 1.65; }
.row-b { flex: 1; min-width: 0; }
.row-n { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-w { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.row-t { display: block; font-size: 12px; color: var(--text-3); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-top: 6px; }

/* ───────────────────────────────────────────────────────── pins
   Comic panels (user's pick, 2026-10-08, option B of _mockups/markers): ink outline and a
   hard black offset shadow. A cluster is a slightly tilted caption box with its count; a
   single event is a small inked diamond with a lighter shadow (user: "a bit less shadow on
   the diamond"). MapLibre positions the wrapper with its own transform, so the tilt lives on
   the inner element. */
.fm-pin-wrap { background: none; border: 0; isolation: isolate; }
.fm-pin {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: var(--accent); color: #000; border: 3px solid #000; box-shadow: 3px 3px 0 #000; transform: rotate(-4deg);
}
.fm-pin span { font-family: var(--display); font-weight: 900; font-size: 13px; line-height: 1; }
.fm-pin.one { transform: rotate(45deg); border-width: 2.5px; box-shadow: 2px 2px 0 #000; }
.fm-pin.active { outline: 3px solid var(--text); outline-offset: 3px; }
/* an edition in its 30-day grace after ending: an empty panel */
.fm-pin.past { background: var(--surface); border-color: var(--line-3); color: var(--text-3); }
/* Followed (option 1): a yellow comic explosion behind the pin, drawn per pin by app.js with
   uneven spikes so no two look stamped */
.fm-burst { position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none; overflow: visible;
  transform: translate(-50%, -50%) rotate(var(--r, -8deg)); }
.fm-burst polygon { fill: var(--burst, #FFE14D); stroke: #000; stroke-width: 3; stroke-linejoin: miter; }
.row.past { opacity: .6; }

/* hover / popup card — the one place a drop shadow is allowed */
/* Globe / Flat switch, top-left of the map */
.viewsw { position: absolute; left: 16px; top: 16px; z-index: 500; display: flex; }
.viewsw button {
  min-height: 40px; padding: 0 14px; cursor: pointer; background: var(--surface); border: 2px solid var(--line-3); color: var(--text-2);
  font-family: var(--display); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
}
.viewsw button + button { border-left: 0; }
.viewsw button:hover { color: var(--text); }
.viewsw button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.maplibregl-popup.fm-pop .maplibregl-popup-content {
  background: var(--surface); color: var(--text); border: 2px solid var(--line-3); border-radius: 0; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  padding: 14px; width: 262px; font-family: var(--body); line-height: 1.4;
}
.maplibregl-popup.fm-pop .maplibregl-popup-tip { display: none; }
.maplibregl-marker { cursor: pointer; }
.maplibregl-ctrl-attrib { background: rgba(11, 11, 16, .8) !important; color: var(--text-3) !important; font: 12px var(--body) !important; }
.maplibregl-ctrl-attrib a { color: var(--text-2) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.leaflet-popup.fm-pop .leaflet-popup-content-wrapper {
  background: var(--surface); color: var(--text); border: 2px solid var(--line-3); border-radius: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .55); padding: 0;
}
.leaflet-popup.fm-pop .leaflet-popup-content { margin: 14px; width: 242px !important; font-family: var(--body); line-height: 1.4; }
.leaflet-popup.fm-pop .leaflet-popup-tip-container { display: none; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; }
.tag.sm { font-size: 10px; font-weight: 800; padding: 3px 7px; }
.card-n { font-family: var(--display); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.3px; line-height: 1.15; }
.card-m { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.card-x { font-size: 12px; color: var(--accent); margin-top: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.card-l { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
/* a stack: several events at one venue, listed in one card */
.fm-pop .stack { list-style: none; margin: 6px 0 0; padding: 0; max-height: 280px; overflow-y: auto; }
.fm-pop .stack li + li { border-top: 2px solid var(--line); }
.fm-pop .stack a { display: block; padding: 9px 0; color: var(--text); text-decoration: none; }
.fm-pop .stack a:hover .card-n { color: var(--accent); }
.fm-pop .stack .card-n, .fm-pop .stack .card-m { display: block; }
.fm-pop > .maplibregl-popup-content > .card-x:first-child { margin-top: 0; }

.leaflet-container { background: #101018; }
.leaflet-container a { color: var(--link); }
.leaflet-control-attribution { background: rgba(11, 11, 16, .8) !important; color: var(--text-3) !important; font-size: 12px; }
.leaflet-control-attribution a { color: var(--text-2) !important; }

/* ───────────────────────────────────────────────────────── generated pages
   (pipeline/build_pages.py) — the con detail page, from the Detail B mockup. */
body.page { min-height: 100%; }
body.page .hdr { padding: 0 40px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--line);
  background: repeating-linear-gradient(135deg, var(--bg) 0 18px, #101018 18px 36px); }
.hero-glow { position: absolute; right: -60px; top: -80px; width: 520px; height: 520px; border-radius: 50%;
  background: var(--accent); opacity: .14; filter: blur(40px); }
.hero-in { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; padding-top: 56px; padding-bottom: 44px; }
.hero-main { flex: 1 1 560px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-o { border: 2px solid var(--line-3); color: #D6D2E4; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .98; letter-spacing: -2px; text-transform: uppercase; overflow-wrap: anywhere; }
.hero h1 .yr { color: var(--accent); white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.lbl { font-size: 11px; letter-spacing: 1.2px; color: var(--text-3); text-transform: uppercase; }
.fact .lbl { margin-bottom: 4px; }
.fact .val { font-weight: 700; font-size: 20px; line-height: 1.3; }
.fact .sub { font-size: 13px; color: var(--text-2); }
.fact .sub.ok { color: var(--accent); font-weight: 600; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; flex: 0 0 260px; }
.btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; padding: 14px 20px;
  border: 2px solid var(--line-3); color: var(--text); background: transparent; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0; padding: 18px 20px; }
.stay-btns { display: flex; flex-direction: column; gap: 8px; }
.stay-btns .btn { justify-content: center; text-align: center; font-size: 13px; padding: 12px; }
.btn-partner { justify-content: center; border-color: var(--accent); color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .8px; padding: 12px; }

.detail { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 44px; padding-bottom: 64px; }
.detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.detail h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: -0.5px; }
.about { margin: 0; font-size: 17px; line-height: 1.6; color: #D6D2E4; max-width: 680px; }
.meta { margin: 0; font-size: 14px; color: var(--text-3); }
.rail-d { flex: 1 1 320px; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.rail-card { background: var(--surface); border: 2px solid var(--line); padding: 20px; }
.rail-card-h { display: flex; justify-content: space-between; align-items: baseline; }
.rail-card h2 { margin: 0; font-size: 17px; letter-spacing: -0.3px; }
.rail-sub { margin: 6px 0 16px; font-size: 13px; color: var(--text-2); }
.venue { padding: 0; }
.venue-map { position: relative; height: 150px; background: #101018;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 26px 26px; }
.venue-map .mark { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%) rotate(45deg); z-index: 2;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
/* venue-map.js: real tiles replace the placeholder grid */
.venue-map { overflow: hidden; height: 180px; }
.venue-map.has-tiles { background-image: none; }
.vm-tiles { position: absolute; inset: 0; }
.vm-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.vm-credit { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 2px 6px; font-size: 10px; color: var(--text-3);
  background: rgba(11, 11, 16, .75); }
/* the list pages' map (venue-map.js drawList): the list's events as pins, framed to fit */
.list-head .list-cta { margin: 0; }
.list-map { position: relative; overflow: hidden; height: 340px; margin: 0 0 16px; border: 2px solid var(--line-3); background: #101018;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 26px 26px; }
.list-map.has-tiles { background-image: none; }
.lm-pin { position: absolute; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; text-decoration: none; }
.lm-pin.lm-many { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.lm-pin::before { content: ""; position: absolute; inset: 0; background: var(--accent); border: 2px solid var(--bg); transform: rotate(45deg);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.lm-pin span { position: relative; display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--on-accent); font: 800 11px/1 Unbounded, sans-serif; }
.lm-pin:hover { z-index: 3; }
.lm-pin:hover::before { border-color: var(--text); }
.lm-pin::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  display: none; white-space: nowrap; padding: 6px 10px; background: var(--surface); border: 2px solid var(--line-3);
  color: var(--text); font: 700 13px/1.2 "Space Grotesk", sans-serif; box-shadow: 0 14px 36px rgba(0, 0, 0, .55); }
.lm-pin:hover::after { display: block; }
@media (max-width: 640px) { .list-map { height: 240px; } }
.venue-b { padding: 14px 18px; }
.venue-n { font-weight: 700; font-size: 15px; }
.venue-a { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.links { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.rail-links { font-size: 13px; color: var(--text-3); display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.rail-links .links { margin-top: 0; }
/* section heading with a count ("Guests  18 announced") */
.sec-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
/* a by-country index's heading: the link to that country's own page for the date */
.sec-more { margin-left: auto; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; text-decoration: none; }
.sec-h h2 { margin: 0; }
.cnt { font-size: 14px; color: var(--text-3); font-weight: 600; }
.lead { margin: 18px 0 0; font-size: 17px; color: var(--text-2); max-width: 680px; }
.hero-sm .hero-in { padding-top: 44px; padding-bottom: 36px; }

/* guest cards: square placeholder (no photos until the image policy is settled, §11),
   name, kind. Grid 3 -> 2 -> 1 (§8). */
.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ggrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--surface); border: 2px solid var(--line); color: var(--text); text-decoration: none; }
.gcard:hover { border-color: var(--line-3); }
.gph { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); font-family: var(--display); font-weight: 800; font-size: 28px; color: #5E5976; }
.gb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gn { font-weight: 700; font-size: 16px; line-height: 1.3; }
.gk { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.gone { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.gone b { color: var(--text); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; margin-right: 4px; }
.gph { overflow: hidden; }
.gph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }

/* guest card with an in-character picture: crossfade person <-> character every few seconds.
   Pure CSS (the site carries no inline script); --d staggers neighbouring cards. */
.gph.swap { position: relative; }
.gph.swap img { position: absolute; inset: 0; }
.gph.swap .alt, .gph.swap .swap-tag { opacity: 0; animation: fm-swap 9s ease-in-out infinite; animation-delay: var(--d, 0s); }
.swap-tag { position: absolute; left: 8px; bottom: 8px; background: var(--accent); color: var(--on-accent);
  font-family: var(--body); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px; }
@keyframes fm-swap { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .gph.swap .alt, .gph.swap .swap-tag { animation: none; opacity: 0; }
}

/* hero picture on guest / franchise pages: square, hard edge */
.hero-pic { flex: 0 0 200px; width: 200px; height: 200px; border: 2px solid var(--line-3); background: var(--surface-2); overflow: hidden; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
/* a logo is shown whole on the dark ground; a dark mark (data-inv, tools/image_tone.py) is
   inverted with its hue put back, so black wordmarks read white and a dark blue one light blue */
.hero-pic img[data-role="logo"], .ft-art.logo img { object-fit: contain; padding: 16px; box-sizing: border-box; }
.ft-art.logo, .hero-pic.logo { background: radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--accent) 28%, var(--surface-2)), var(--surface-2) 70%); }
img[data-inv] { filter: invert(1) hue-rotate(180deg); }
.hero-sm .hero-in { align-items: center; }

/* guest page: the guest in their famous roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role { margin: 0; background: var(--surface); border: 2px solid var(--line); }
/* height:auto, or the width/height attributes win over aspect-ratio and cards come out uneven */
.role img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; display: block; }
.role figcaption { padding: 10px 12px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
@media (max-width: 600px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* franchise index tiles */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ftile { display: flex; flex-direction: column; gap: 12px; padding: 12px; background: var(--surface);
  border: 2px solid var(--line); color: var(--text); text-decoration: none; }
.ftile:hover { border-color: var(--line-3); }
.ft-art { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ft-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-type { padding: 12px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 19px;
  line-height: 1.02; text-transform: uppercase; letter-spacing: -0.5px; color: var(--text); overflow-wrap: anywhere; }
.ft-art.type { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface-2)), var(--surface-2) 60%);
  border-left: 6px solid var(--accent); }
.detail h2.sub { font-size: 17px; margin: 36px 0 14px; }

/* image credits (CC BY / BY-SA attribution) */
.credits { padding-top: 8px; padding-bottom: 24px; font-size: 12px; color: var(--text-3); }
.credits h2 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 8px; }
.credits ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.credits li { break-inside: avoid; margin-bottom: 4px; line-height: 1.5; }
.credits a { color: var(--text-2); }

/* compact cards after the headliners: small square left, text right */
.ggrid-sm { margin-top: 12px; }
.gcard.sm { flex-direction: row; align-items: center; gap: 12px; padding: 10px; }
.gcard.sm .gph { width: 48px; flex: none; font-size: 15px; }
.gcard.sm .gn { font-size: 14px; }
.gcard.sm .gk { font-size: 12px; }

.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { border: 2px solid var(--line-3); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 9px 14px; text-transform: uppercase; letter-spacing: .4px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.fchip:hover { border-color: var(--accent); color: var(--accent); }
.fchip .n { color: var(--text-3); font-weight: 600; }

/* dated con rows on guest / franchise pages — the map rail's .row, framed */
.rows { display: flex; flex-direction: column; border-top: 2px solid var(--line); }
.rows .row { padding-left: 4px; padding-right: 4px; }
.detail .meta { margin-top: 14px; }

.foot { border-top: 2px solid var(--line); padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: #5E5976; }
.foot a { color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
.foot a:hover { color: var(--text); }
/* the map home has no footer: the "Add a con" line sits at the foot of the results rail */
.rail-f { flex: none; padding: 12px 18px; border-top: 2px solid var(--line); font-size: 12px; color: var(--text-3); }
.rail-f a { color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
.rail-f a:hover { color: var(--text); }

/* ───────────────────────────────────────────────────────── submit form
   (submit.html / submit.js) — same tokens as the detail page; inputs are surface + 2px line. */
.form-wrap { max-width: 800px; padding-top: 40px; padding-bottom: 64px; }
.mode-note { font-size: 15px; }
.mode-note b { color: var(--text); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field > .lbl { display: block; }
.field > .lbl i { color: var(--accent); font-style: normal; }
.field > .lbl small { font-size: 11px; letter-spacing: .4px; text-transform: none; color: var(--text-3); }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font-size: 16px;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--line-3); }
.field input::placeholder, .field textarea::placeholder { color: #5E5976; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input[type="date"] { color-scheme: dark; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; min-width: 0; }
.field-hint { margin: -10px 0 18px; font-size: 13px; color: var(--text-3); min-height: 1em; }
.field-hint.addr-found { color: var(--accent); font-weight: 600; }
.field-hint.addr-none { color: var(--text-2); font-weight: 600; }
.pick-map { height: 300px; border: 2px solid var(--line-2); background: #101018; cursor: crosshair; }
/* Leaflet's stock zoom control, in the site's hard-edged dark style */
.pick-map .leaflet-bar { border: 2px solid var(--line-3); border-radius: 0; box-shadow: none; }
.pick-map .leaflet-bar a { background: var(--surface); color: var(--text); border-bottom: 2px solid var(--line-3); border-radius: 0 !important; width: 40px; height: 40px; line-height: 40px; font-size: 20px; }
.pick-map .leaflet-bar a:last-child { border-bottom: 0; }
.pick-map .leaflet-bar a:hover { background: var(--surface-2); }
.latlng-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.latlng-row input { flex: 1; min-width: 150px; }
.latlng-readout { font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.typeahead { position: relative; flex: 1; min-width: 150px; display: flex; }
.suggest-box {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1100; margin: 0; padding: 0; list-style: none;
  max-height: 260px; overflow-y: auto; background: var(--surface); border: 2px solid var(--line-3);
}
.suggest-box li { padding: 10px 14px; font-size: 15px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 2px solid var(--line); }
.suggest-box li:last-child { border-bottom: 0; }
.suggest-box li.hi, .suggest-box li:hover { background: var(--accent); color: var(--on-accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: var(--accent); font-size: 15px; font-weight: 600; min-height: 1.5em; margin-bottom: 10px; }
.form-err a { color: var(--accent); }
.form-submit { display: inline-flex; min-width: 220px; justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.thanks { padding: 10px 0 20px; }
.thanks h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: -0.5px; }
.thanks p { margin: 0 0 18px; font-size: 17px; color: var(--text-2); max-width: 600px; }
.hidden { display: none !important; }
@media (max-width: 600px) {
  .field-row { flex-direction: column; gap: 0; }
  .pick-map { height: 240px; }
}
@media (max-width: 900px) {
  .rail-d { max-width: none; }
  .ggrid, .ggrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits ul { columns: 1; }
}
@media (max-width: 600px) {
  .hero-pic { flex-basis: 120px; width: 120px; height: 120px; }
}
@media (max-width: 420px) {
  .ggrid, .ggrid-4 { grid-template-columns: minmax(0, 1fr); }
  .gcard { flex-direction: row; align-items: center; }
  .gph { width: 56px; flex: none; font-size: 18px; }
  .swap-tag { display: none; }          /* no room on a 56px thumbnail; the picture still alternates */
}
@media (max-width: 600px) {
  body.page .hdr, .wrap { padding-left: 16px; padding-right: 16px; }
  /* scales with the phone so a long word ("CONVENTIONS") fits whole instead of breaking mid-word */
  .hero h1 { font-size: clamp(26px, 8.4vw, 40px); letter-spacing: -1px; }
  /* a by-country index: the 'X only' link goes under the country name, not beside it */
  .sec-h:has(.sec-more) { flex-wrap: wrap; row-gap: 4px; }
  .sec-more { flex-basis: 100%; margin-left: 0; }
  .hero-in { padding-top: 32px; padding-bottom: 28px; }
  .hero-cta { flex-basis: 100%; }
}

/* ───────────────────────────────────────────────────────── narrow
   Under 900px the rail becomes a bottom sheet behind a toggle. */
.listbtn { display: none; }
@media (max-width: 1100px) {
  .hdr { gap: 16px; }
  .nav { display: none; }
  .hdr > .swatches { margin-left: auto; }
  .mnav { display: block; }
}
@media (max-width: 899px) {
  .rail {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; width: auto; height: 62%;
    border-left: 0; border-top: 2px solid var(--line-3); transform: translateY(100%); visibility: hidden;
  }
  .stage { position: relative; }
  .stage.sheet .rail { transform: none; visibility: visible; }
  .listbtn {
    display: block; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 650;
    min-height: 44px; padding: 10px 22px; cursor: pointer;
    background: var(--accent); border: 0; color: var(--on-accent);
    font-family: var(--display); font-weight: 800; font-size: 13px; text-transform: uppercase;
  }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .hdr { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  /* no room for logo + four swatches + menu on a phone: the swatches move into the menu */
  .hdr > .swatches { display: none; }
  .mnav-panel .swatches { display: flex; }
  /* with the swatches gone nothing pushes the menu right on the content pages (user's
     screenshot, 2026-10-09); on the map the Filters button already takes the auto margin */
  .hdr > .mnav { margin-left: auto; }
  .hdr > .ftoggle ~ .mnav { margin-left: 0; }
  .mnav-share:not([hidden]) { display: flex; }
  .filters .chip.share-year { display: none; }
  /* A Filters button in the header, beside the menu, and a panel that opens under the
     search box. The old single scrolling row hid seven of the ten type chips with nothing
     to say "scroll me"; opened, the panel wraps every chip so they are all visible at once,
     and the map gets its full height back the moment it closes. No count up here: the
     List button already carries it. */
  .ftoggle {
    position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    padding: 0; margin-left: auto; cursor: pointer; flex: none;
    background: transparent; border: 2px solid var(--line-3); color: var(--text);
  }
  .ftoggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  .ftoggle svg, .fbadge { pointer-events: none; }   /* the button is always the click target */
  .fbadge { position: absolute; top: -9px; right: -9px; display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px; background: var(--accent); color: var(--on-accent);
    font-size: 12px; font-weight: 700; line-height: 1; }
  .fbadge[hidden] { display: none; }
  .filters { display: none; gap: 10px; }
  body.filters-open .filters { display: flex; }
  .filters .sep, .filters .count { display: none; }
  .fclear { flex-basis: 100%; order: 4; margin-left: 0; min-height: 44px; }
  .filters .sel { flex: 1 1 calc(50% - 5px); order: 3; }
  .filters .sel:first-child { flex-basis: 100%; order: 0; }
  .filters .sel select { width: 100%; }
  .chip, .sel select { min-height: 44px; }
  /* the two pickers share a row; an open panel takes the next row, in the flow (no overlay) */
  .pick { display: contents; }
  .pick-btn { flex: 1 1 calc(33.3% - 7px); max-width: none; min-height: 44px; order: 1; padding-right: 30px; }
  /* order 2: an open panel lands under all three buttons, never between them */
  .pick-panel { position: static; width: auto; flex-basis: 100%; order: 2; box-shadow: none; }
  .pick-list { max-height: 34vh; }
  /* the panel never takes the whole screen: it scrolls inside a cap, and the map below it
     stays visible (a tap there closes the panel, app.js setFiltersOpen) */
  body.filters-open .filters { max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; }
  /* while the panel is open the band of map below it is a "tap to close" target, so its
     own controls step aside */
  body.filters-open .viewsw, body.filters-open .mapctl { display: none; }
  .pick-poster .pick-tile { height: 54px; }
  .pick-grid .pick-tile { height: 104px; }
  .pick-grid .pick-art { height: 60px; }
  .pick-grid .noart .pick-art { height: 84px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rail { transition: transform .2s ease; }
}

/* iOS Safari zooms the whole page into a focused field set under 16px and leaves it zoomed
   (user report 2026-10-08: tapping the search box broke the layout). Touch screens get 16px
   in every text field and dropdown, which is the size Safari stops zooming at. */
@media (pointer: coarse) {
  .search input, .pick-q, .sel select, .sort select { font-size: 16px; }
}

/* list pages (/events/…): breadcrumb trail and the map link above the month sections */
.crumbs { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.list-cta { margin: 0 0 28px; }
.list-cta .btn { display: inline-flex; }

/* ───────────────────────────────────────────────────────── accounts + follows
   The header's outlined "Sign in" (follow.js renames it "Account" once signed in); under
   1100px it lives in the menu instead, like the nav. */
.acct-top { flex: none; border: 2px solid var(--line-3); color: var(--text); text-decoration: none; font-size: 13px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 9px 14px; }
.acct-top:hover { border-color: var(--accent); color: var(--accent); }
.mnav-panel nav .acct-link { border-top: 2px solid var(--line); }
@media (max-width: 1100px) { .acct-top { display: none; } }

/* Follow: outlined until followed, then the accent fill; the star carries the state too */
.btn-follow { justify-content: center; gap: 8px; margin-top: 18px; min-height: 44px; }
.hero-cta .btn-follow { margin-top: 0; }
/* Add to calendar: a <details> menu under the hero buttons, no script */
.cal-add { position: relative; }
.cal-add > summary { list-style: none; cursor: pointer; width: 100%; }
.cal-add > summary::-webkit-details-marker { display: none; }
.cal-add > summary::after { content: " \25BE"; }
.cal-menu { margin-top: 6px; background: var(--surface); border: 2px solid var(--line-3); display: flex; flex-direction: column; }
.cal-menu a { padding: 11px 14px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.cal-menu a + a { border-top: 2px solid var(--line); }
.cal-menu a:hover, .cal-menu a:focus-visible { background: var(--surface-2); color: var(--accent); }
/* Plan your trip (rail card) */
.trip .trip-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 2px solid var(--line); font-size: 14px; cursor: pointer; }
.trip .trip-row input { margin: 0; accent-color: var(--accent); flex: 0 0 auto; transform: translateY(1px); }
.trip .trip-l { flex: 1 1 auto; color: var(--text-2); }
.trip .trip-v { flex: 0 0 auto; font-weight: 700; color: var(--text); white-space: nowrap; }
.trip .trip-hotel { cursor: default; }
.trip .trip-hotel a { color: var(--accent); }
.trip .trip-more { border-top: 2px solid var(--line); }
.trip .trip-more > summary { list-style: none; cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--text); }
.trip .trip-more > summary::-webkit-details-marker { display: none; }
.trip .trip-more > summary::before { content: "+ "; color: var(--accent); }
.trip .trip-more[open] > summary::before { content: "\2212  "; }
.trip .trip-more .cnt { color: var(--text-3); font-weight: 600; margin-left: 4px; }
.trip .trip-gs { max-height: 360px; overflow-y: auto; padding-bottom: 6px; }
.trip .trip-g { padding: 7px 0; border-top: 1px solid var(--line); }
.trip .trip-gn { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.trip .trip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trip .trip-chip { cursor: pointer; }
.trip .trip-chip input { position: absolute; opacity: 0; pointer-events: none; }
.trip .trip-chip span { display: inline-block; padding: 4px 8px; border: 2px solid var(--line-3); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.trip .trip-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.trip .trip-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.trip .trip-total { display: flex; gap: 10px; padding: 12px 0 4px; margin-top: 6px; border-top: 2px solid var(--line-3); font-size: 15px; }
.trip .trip-total[hidden] { display: none; }
.trip .trip-total .trip-v { color: var(--accent); }
.trip .meta { margin-top: 10px; }
.cal-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 8px; }
.btn-follow[hidden] { display: none; }
/* the list star (fandoms index): a corner button beside the tile link, a chip's tail */
.ftile-w { position: relative; }
.fl-star { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0; border: 2px solid var(--line-3);
  background: var(--surface); color: var(--text-3); font-size: 17px; line-height: 1; cursor: pointer; }
.fl-star:hover, .fl-star:focus-visible { border-color: var(--text-2); color: var(--text); }
.fl-star[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fl-star[hidden] { display: none; }
.fchip-w { display: inline-flex; align-items: stretch; }
.gcard-w { position: relative; display: flex; }
/* search over the /guests/ and /fandoms/ cards (find.js) */
.finder { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.finder .search { flex: 1 1 auto; max-width: 520px; }
.find-n { flex: none; color: var(--text-3); font-size: 13px; }
.gcard-w[hidden], .ftile-w[hidden], .fchip-w[hidden], .ggrid[hidden], .fgrid[hidden], .fchips[hidden], h2.sub[hidden] { display: none; }
.gcard-w > .gcard { flex: 1 1 auto; min-width: 0; }
.gcard-w > .fl-star.sm { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 30px; height: 30px; margin: 0; }
.gcard-w > .gcard.sm { padding-right: 46px; }
.fl-star.sm { position: static; width: 30px; height: auto; font-size: 14px; margin-left: -2px; }
.btn-follow .fl-i { font-size: 16px; line-height: 1; }
.btn-follow[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero-main .btn-follow { display: inline-flex; }
.fl-hint { margin: 10px 0 0; font-size: 13px; color: var(--text-2); max-width: 420px; }
.chip.mine[hidden] { display: none; }

/* /account/ */
.acct-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 560px; }
.acct-form .field { flex: 1 1 260px; margin: 0; }
.acct-form .btn { min-height: 46px; }
.acct-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--accent); }
.acct-msg.bad { color: #FF8A8A; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-weight: 700; text-decoration: underline; }
.detail h3.sub { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); margin: 22px 0 10px; }
.fchip.fol { padding: 0 0 0 14px; gap: 0; }
.fchip.fol a, .fchip.fol span { color: inherit; text-decoration: none; padding: 9px 0; }
.fchip.fol .unf { min-width: 44px; min-height: 40px; background: none; border: 0; color: var(--text-3); font-size: 20px; cursor: pointer; }
.fchip.fol .unf:hover { color: var(--accent); }
.check { display: flex; gap: 12px; align-items: center; font-weight: 600; margin: 0 0 22px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
#home-field.off, #home-field.off + .field { opacity: .45; }
.home-now { font-weight: 700; }
.home-form { display: flex; gap: 10px; max-width: 460px; }
.home-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; background: var(--surface); border: 2px solid var(--line-2); color: var(--text); }
.home-results { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.home-results .chip { text-transform: none; letter-spacing: 0; }
#acct-out[hidden], #acct-in[hidden], #alerts[hidden], #danger[hidden] { display: none; }
@media (pointer: coarse) { .home-form input { font-size: 16px; } }
/* AniList import preview */
.imp-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.imp-row .home-form { flex: 1 1 280px; }
.imp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 14px 0 18px; }
.imp-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line-2); cursor: pointer; }
.imp-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.imp-item span { display: flex; flex-direction: column; min-width: 0; }
.imp-item small { color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }

/* Followed in the list and the card: an accent star and a "Following: …" line (the map pin
   gets the comic burst, see "pins") */

/* ───────────────────────────────────────────────────────── the list as a calendar
   Option C of _mockups/rail (user, 2026-10-08): month headings pinned while you scroll, the
   day big with its weekday, a "This weekend" tag, type icons + a size meter on the right,
   and for what you follow a comic burst naming it ("Aaron Paul!"). Scoped to .cal rows: the
   static pages' .rows keep the boxed date. */
.mhead { position: sticky; top: 0; z-index: 2; padding: 16px 18px 8px; background: linear-gradient(var(--bg) 78%, transparent);
  font-family: var(--display); font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: -.5px; }
.mhead small { font-family: var(--body); font-size: 11px; color: var(--text-3); letter-spacing: 1px; margin-left: 6px; }
.row.cal { align-items: center; padding: 12px 18px; }
.cal-d { flex: none; width: 40px; text-align: center; }
.cal-d b { display: block; font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; }
.cal-d i { display: block; font-style: normal; font-size: 10px; color: var(--text-3); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-top: 3px; }
.cal-d.tba b { font-size: 13px; }
.row.cal.active .cal-d b { color: var(--accent); }
.row-x { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.soon { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 2px 6px;
  background: var(--accent); color: var(--on-accent); }
.soon.later { background: none; color: var(--text-3); padding: 2px 0; }
/* sold out: outlined, not filled - information, not an alarm */
.sold { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 1px 6px;
  border: 2px solid var(--text-2); color: var(--text); }
.sold.part { border-color: var(--line-3); color: var(--text-2); }
.chip-o.sold-o { border-color: var(--text-2); color: var(--text); }
.pow { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; padding: 7px 18px;
  margin: 2px 6px; transform: rotate(-3deg); isolation: isolate; }
.pow svg { position: absolute; left: -6px; top: -8px; width: calc(100% + 12px); height: calc(100% + 16px); z-index: -1; overflow: visible; }
.pow polygon { fill: var(--burst, #FFE14D); stroke: #000; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.pow span { font-family: var(--display); font-weight: 900; font-size: 10.5px; letter-spacing: .2px; text-transform: uppercase; color: #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.cal-s { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; color: var(--accent); }
.cal-i { display: flex; gap: 5px; }
.cal-i .ti { width: 17px; height: 17px; }
.meter { display: flex; gap: 2px; }
.meter i { width: 5px; height: 10px; background: var(--line-3); }
.meter i.on { background: var(--text-2); }
.card-tags-x { margin-top: 10px; }
.card-fl { margin-top: 8px; font-size: 12px; color: var(--text-2); }
/* several names take turns in one burst (follow.js): a little comic pop on each change */
.pow.popping { animation: powpop .35s ease-out; }
@keyframes powpop { 0% { transform: rotate(-3deg) scale(.8); } 60% { transform: rotate(-3deg) scale(1.08); } 100% { transform: rotate(-3deg) scale(1); } }
/* event pages: what you follow here, under the Follow button; followed guests and fandoms marked */
.con-fol { margin-top: 4px; }
.con-fol[hidden] { display: none; }
.con-fol .pow span { font-size: 12px; max-width: 220px; }
.con-fol-l { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.gcard.is-fol { border-color: #000; box-shadow: 3px 3px 0 #000, 0 0 0 2px var(--burst, #FFE14D); }
.gcard.is-fol::before { content: "★ Following"; position: absolute; top: 8px; left: 8px; z-index: 2; padding: 2px 7px;
  background: var(--burst, #FFE14D); color: #000; border: 2px solid #000; font-family: var(--display); font-weight: 900;
  font-size: 10px; text-transform: uppercase; letter-spacing: .3px; }
.fchip.is-fol { background: var(--burst, #FFE14D); border-color: #000; color: #000; box-shadow: 2px 2px 0 #000; }
.fm-pop .stack .card-tags-x { margin: -2px 0 10px; }

/* "Share my con year" (poster.js) */
.chip.share-year { border-color: var(--accent); color: var(--accent); }
.chip.share-year:hover, .chip.share-year:focus-visible { background: var(--accent); color: var(--on-accent); }
.poster-dlg { max-width: min(560px, calc(100vw - 32px)); width: 100%; padding: 18px; background: var(--surface); color: var(--text);
  border: 2px solid var(--line-3); box-shadow: 6px 6px 0 #000; }
.poster-dlg::backdrop { background: rgba(0, 0, 0, .7); }
.poster-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.poster-h h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 20px; }
.poster-body img { display: block; width: 100%; height: auto; border: 2px solid #000; }
.poster-wait { padding: 60px 0; text-align: center; color: var(--text-2); }
.poster-acts { display: flex; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.poster-acts .btn[hidden] { display: none; }
.poster-pick .about { margin: 0 0 10px; }
.pick-ev { max-height: 52vh; overflow-y: auto; border-top: 2px solid var(--line); }
.pick-g { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.pick-row { text-transform: none; letter-spacing: 0; display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-row input { accent-color: var(--accent); transform: translateY(2px); }
.pick-d { flex: 0 0 92px; font-weight: 700; color: var(--accent); font-size: 13px; }
.pick-n { flex: 1 1 auto; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pick-n small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-3); font-size: 12px; }
.poster-dlg [hidden] { display: none !important; }

/* I'm going (event pages): filled once you're going, the count under it */
.btn-going { justify-content: center; gap: 8px; min-height: 44px; }
.btn-going[hidden], .going-n[hidden] { display: none; }
.btn-going .go-i { font-size: 15px; line-height: 1; }
.btn-going[aria-pressed="true"] { background: var(--burst, #FFE14D); border-color: #000; color: #000; box-shadow: 3px 3px 0 #000; }
.going-n { display: block; margin: -4px 0 2px; font-size: 13px; font-weight: 700; color: var(--text-2); text-align: center; }

/* ranked lists ("the biggest ...") */
.rk-list { list-style: none; margin: 0 0 18px; padding: 0; }
.rk-row { display: flex; align-items: stretch; gap: 12px; }
.rk-row .row { flex: 1 1 auto; min-width: 0; }
.rk { flex: 0 0 52px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900;
  font-size: 22px; color: var(--text-3); }
.rk-row:nth-child(-n+3) .rk { color: #000; background: var(--burst, #FFE14D); border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  flex-basis: 48px; height: 48px; align-self: center; }
