/*
Theme Name: Happy Gigs
Theme URI: https://gigs.happymag.tv
Author: Happy Mag
Description: Map-first national gig guide. Brutalist, flat, no gradients. Theme is presentation only — all data logic lives in the Happy Gigs plugin.
Version: 0.13.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: happy-gigs
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #111111;
  --field: #F2A93B;      /* amber canvas */
  --blue: #2F6BFF;
  --red: #F04E23;
  --green: #23A94C;
  --purple: #B57BF6;
  --paper: #FFFFFF;

  --pin-venue: #C4C4BC;  /* grey: venue, nothing listed */
  --pin-upcoming: #FFD337; /* yellow: gigs coming up */
  --pin-today: #23A94C;  /* green: gig today */

  --radius-frame: 28px;
  --radius-card: 14px;
  --border: 2px solid var(--ink);
  --sidebar-w: 264px;

  --font-display: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-nav: "katarine-web", "Katarine", "Archivo", system-ui, sans-serif;
  --nav-grad: linear-gradient(90deg, #F2A93B, #F04E23);
  --nav-size: 15px;
  --nav-track: 0.12em;
  --nav-h: 64px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--field);
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Flat canvas (grid texture removed) */
.hg-grid-bg { background-color: var(--field); }

/* ---------- App shell ---------- */
.hg-app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  padding: 14px;
  gap: 14px;
}

/* ---------- Sidebar ---------- */
.hg-sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;
}
.hg-sidebar::-webkit-scrollbar { display: none; }

.hg-wordmark {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: .9;
  letter-spacing: -0.02em;
  padding: 6px 4px 10px;
}
.hg-wordmark span { display: block; font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; }

.hg-card {
  flex-shrink: 0;
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.hg-card--blue   { background: var(--blue);   color: #fff; }
.hg-card--red    { background: var(--red);    color: #fff; }
.hg-card--green  { background: var(--green);  color: var(--ink); }
.hg-card--purple { background: var(--purple); color: var(--ink); }
.hg-card--ink    { background: var(--ink);    color: #fff; }

.hg-card__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: var(--nav-size);
  letter-spacing: var(--nav-track);
  text-transform: uppercase;
}
.hg-card__arrow { transition: transform .15s ease; font-size: 18px; }
.hg-card.is-open .hg-card__arrow { transform: rotate(90deg); }

.hg-card__body { display: none; padding: 4px 12px 14px; max-height: 260px; overflow-y: auto; }
.hg-card.is-open .hg-card__body { display: block; }

.hg-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}
.hg-opt:hover { background: rgba(17,17,17,.08); }
.hg-card--blue .hg-opt:hover,
.hg-card--red .hg-opt:hover,
.hg-card--ink .hg-opt:hover { background: rgba(255,255,255,.16); }
.hg-opt input { accent-color: var(--ink); width: 16px; height: 16px; }
.hg-card--blue .hg-opt input,
.hg-card--red .hg-opt input { accent-color: #fff; }

.hg-opt--sub { padding-left: 26px; font-weight: 500; }

.hg-date-input, .hg-text-input {
  width: 100%;
  padding: 10px 12px;
  border: var(--border);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
}

.hg-cta {
  flex-shrink: 0;
  display: block;
  width: 100%;
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--field);
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: calc(var(--nav-size) + 1px);
  letter-spacing: var(--nav-track);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding: 16px;
}
.hg-cta:hover { background: var(--paper); color: var(--ink); }

.hg-legend { padding: 12px 16px 14px; font-size: 13px; font-weight: 600; display: grid; gap: 8px; }
.hg-legend__row { display: flex; align-items: center; gap: 10px; }
.hg-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); flex: 0 0 14px; }
.hg-dot--venue { background: var(--pin-venue); }
.hg-dot--upcoming { background: var(--pin-upcoming); }
.hg-dot--today { background: var(--pin-today); }

/* ---------- Sidebar search ---------- */
.hg-search { position: relative; flex-shrink: 0; }
.hg-search__input {
  width: 100%;
  padding: 13px 15px;
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
}
.hg-search__input:focus { outline: none; box-shadow: none; }
.hg-search__list {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  z-index: 1100;
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  overflow: hidden;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}
.hg-search__list.is-open { display: block; }
.hg-search__list li { padding: 10px 14px; font-weight: 600; font-size: 14px; cursor: pointer; border-top: 1px solid rgba(17,17,17,.1); }
.hg-search__list li:first-child { border-top: 0; }
.hg-search__list li:hover, .hg-search__list li.is-active { background: var(--ink); color: #fff; }

/* ---------- Map frame ---------- */
.hg-mapwrap {
  position: relative;
  flex: 1;
  border: var(--border);
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--paper);
}
#hg-map { position: absolute; inset: 0; z-index: 1; }

/* Leaflet chrome, flattened */
.leaflet-container { font-family: var(--font-body); }
.leaflet-bar { border: var(--border) !important; border-radius: 10px !important; box-shadow: none !important; overflow: hidden; }
.leaflet-bar a { color: var(--ink) !important; font-weight: 800; }
.leaflet-popup-content-wrapper {
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  background: var(--paper);
}
.leaflet-popup-tip { border: var(--border); box-shadow: none; background: var(--paper); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font-body); }

.hg-pop__venue { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.05; margin-bottom: 2px; }
.hg-pop__meta { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.hg-pop__meta--today { color: var(--green); }
.hg-pop__act { font-size: 14px; font-weight: 600; padding: 3px 0; border-top: 1px solid rgba(17,17,17,.15); }
.hg-pop__none { font-size: 13px; color: rgba(17,17,17,.6); }
.hg-pop__link { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

/* Attribution: quiet, ink-toned */
.leaflet-control-attribution {
  background: transparent !important;
  font-size: 9px !important;
  color: rgba(17,17,17,.45) !important;
  padding: 2px 6px !important;
}
.leaflet-control-attribution a { color: rgba(17,17,17,.55) !important; text-decoration: none !important; }

/* Pin SVG */
.hg-pin { background: none; border: none; }
.hg-pin svg { display: block; }

/* ---------- Prompt gate ---------- */
.hg-gate {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vw;
  gap: 28px;
}
.hg-gate.is-hidden { display: none; }
.hg-gate__q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 14ch;
}
.hg-gate__inputwrap { position: relative; max-width: 520px; }
.hg-gate__input {
  width: 100%;
  padding: 18px 20px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
}
.hg-gate__input:focus { outline: none; }
.hg-gate__list {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  border: var(--border);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  display: none;
}
.hg-gate__list.is-open { display: block; }
.hg-gate__list li {
  padding: 12px 20px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  border-top: 1px solid rgba(17,17,17,.12);
}
.hg-gate__list li:first-child { border-top: 0; }
.hg-gate__list li:hover, .hg-gate__list li.is-active { background: var(--ink); color: #fff; }
.hg-gate__skip {
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Content pages (event / venue / submit) ---------- */
.hg-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px calc(96px + var(--ticker-h, 42px));
}
.hg-page__frame {
  border: var(--border);
  border-radius: var(--radius-frame);
  background: var(--paper);
  padding: clamp(24px, 5vw, 56px);
}
.hg-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 64px);
  line-height: .95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hg-eyebrow {
  font-family: var(--font-nav);
  font-size: 13px; font-weight: 600; letter-spacing: var(--nav-track); text-transform: uppercase;
  margin-bottom: 10px;
}
.hg-eyebrow a { color: inherit; text-decoration: none; }
.hg-eyebrow a:hover { text-decoration: underline; }
.hg-body p { font-size: 17px; line-height: 1.55; margin-bottom: 14px; }

.hg-form { display: grid; gap: 18px; margin-top: 8px; }
.hg-form label { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 6px; }
.hg-form .req { color: var(--red); }
.hg-form input[type="text"],
.hg-form input[type="email"],
.hg-form input[type="date"],
.hg-form select {
  width: 100%;
  padding: 14px 16px;
  border: var(--border);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  background: var(--paper);
}
.hg-form input:focus, .hg-form select:focus { outline: 4px solid var(--field); }
.hg-submitbtn {
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 16px;
}
.hg-submitbtn:hover { background: var(--ink); }
.hg-form__note { font-size: 13px; font-weight: 600; color: rgba(17,17,17,.65); }

/* Venue locked-in state */
.hg-venue-locked {
  border-color: var(--green) !important;
  box-shadow: inset 0 0 0 1px var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323A94C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.8l4.6 4.6L19.5 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 44px;
}
.hg-venue-locked--request { border-color: var(--red) !important; box-shadow: inset 0 0 0 1px var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F04E23'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 15h-2v-2h2zm0-4h-2V7h2z'/%3E%3C/svg%3E"); }

/* Typeahead for venue picker */
.hg-typeahead { position: relative; }
.hg-typeahead__list {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  z-index: 10;
  border: var(--border);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
  display: none;
  max-height: 260px;
  overflow-y: auto;
}
.hg-typeahead__list.is-open { display: block; }
.hg-typeahead__list li { padding: 11px 16px; font-weight: 600; cursor: pointer; border-top: 1px solid rgba(17,17,17,.1); }
.hg-typeahead__list li:first-child { border-top: 0; }
.hg-typeahead__list li:hover, .hg-typeahead__list li.is-active { background: var(--ink); color: #fff; }
.hg-typeahead__list li.hg-typeahead__request { font-weight: 800; color: var(--red); }
.hg-typeahead__list li.hg-typeahead__request:hover { background: var(--red); color: #fff; }


/* ---------- Top nav ---------- */
.hg-nav {
  height: var(--nav-h);
  background: var(--nav-grad);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 1200;
}
.hg-nav__brand { display: flex; align-items: center; text-decoration: none; }
.hg-nav__logoimg { height: var(--logo-h, 42px); max-height: none; width: auto; display: block; }
.hg-nav__logotext {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hg-nav__badge {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: var(--nav-track);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
}
.hg-nav__menu { flex: 1; min-width: 0; }
.hg-nav__list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.hg-nav__list a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: var(--nav-size);
  letter-spacing: var(--nav-track);
  text-transform: uppercase;
  border-radius: 10px;
}
.hg-nav__list a:hover { background: var(--ink); color: #fff; }
.hg-nav__actions { display: flex; gap: 8px; margin-left: auto; }
.hg-nav__btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.hg-nav__btn:hover { background: var(--ink); color: #fff; }
.hg-nav__burger { display: none; }

/* App layout accounts for the nav */
.hg-app { height: calc(100dvh - var(--nav-h) - var(--ticker-h, 42px)); }

/* ---------- Sitewide search overlay ---------- */
.hg-sitesearch {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 1150;
  background: var(--paper);
  border-bottom: var(--border);
  padding: 14px 18px;
}
.hg-sitesearch.is-open { display: block; }
.hg-sitesearch form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.hg-sitesearch input[type="search"] {
  flex: 1;
  padding: 13px 15px;
  border: var(--border);
  border-radius: var(--radius-card);
  font: inherit;
  font-weight: 700;
}
.hg-sitesearch input[type="search"]:focus { outline: none; }
.hg-sitesearch button {
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-nav);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--nav-track);
  font-size: var(--nav-size);
  padding: 0 22px;
}

/* ---------- Search results (index fallback) ---------- */
.hg-results { list-style: none; padding: 0; }
.hg-results li { border-top: 2px solid var(--ink); padding: 14px 2px; }
.hg-results li:last-child { border-bottom: 2px solid var(--ink); }
.hg-results a { font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink); }
.hg-results a:hover { text-decoration: underline; }
.hg-results .hg-results__meta { font-size: 13px; font-weight: 600; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Socials (sidebar) ---------- */
.hg-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 12px 14px;
}
.hg-social__link { color: #fff; display: flex; }
.hg-social__link svg { width: 20px; height: 20px; }
.hg-social__link:hover { color: var(--field); }

/* ---------- Venue page ---------- */
.hg-venue__photo img { width: 100%; height: auto; border: var(--border); border-radius: var(--radius-card); display: block; margin-bottom: 18px; }
.hg-venue__address { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.hg-venue__map { height: 300px; border: var(--border); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 26px; }
.hg-venue__subhead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hg-billing { display: flex; gap: 16px; border-top: 2px solid var(--ink); padding: 16px 2px; }
.hg-billing:last-child { border-bottom: 2px solid var(--ink); }
.hg-billing__date { font-family: var(--font-nav); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: var(--nav-track); flex: 0 0 92px; padding-top: 2px; }
.hg-billing__title { font-weight: 800; font-size: 22px; line-height: 1.1; }
.hg-billing__acts { font-weight: 600; font-size: 16px; }
.hg-venue__none { font-weight: 600; margin-bottom: 8px; }
.hg-venue__directions {
  display: inline-block;
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--field);
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: var(--nav-size);
  letter-spacing: var(--nav-track);
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 20px;
  margin-bottom: 26px;
}
.hg-venue__directions:hover { background: var(--paper); color: var(--ink); }
.hg-billing__tickets {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
}
.hg-venue__submitlink {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

/* ---------- Venue badges ---------- */
.hg-venue__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.hg-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hg-badge svg { width: 15px; height: 15px; }
.hg-badge em { font-style: normal; }
.hg-badge.is-unknown { color: #B9B9B0; }
.hg-badge.is-yes { color: var(--green); }
.hg-badge.is-no { color: #B9B9B0; text-decoration: line-through; text-decoration-thickness: 2px; }
.hg-venue__links { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hg-venue__site { font-weight: 700; color: var(--ink); }
.hg-venue__ig { color: var(--ink); display: flex; }
.hg-venue__ig:hover, .hg-venue__site:hover { opacity: .6; }

/* ---------- Tickertape ---------- */
.hg-ticker {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1190;
  height: var(--ticker-h, 42px);
  background: var(--ink);
  color: #fff;
  border-top: var(--border);
  display: flex;
  align-items: center;
}
.hg-ticker__scroll { flex: 1; overflow: hidden; display: flex; align-items: center; height: 100%; min-width: 0; }
.hg-ticker__cap {
  flex-shrink: 0;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 2px solid rgba(255,255,255,.35);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hg-ticker__track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  animation: hg-tick var(--ticker-dur, 40s) linear infinite;
  padding-left: 100%;
}
@media (hover: hover) {
  .hg-ticker:hover .hg-ticker__track { animation-play-state: paused; }
}
.hg-ticker__track a, .hg-ticker__track span {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--nav-track);
  text-transform: uppercase;
}
.hg-ticker__track a:hover { color: var(--field); }
@keyframes hg-tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .hg-ticker__track { animation: none; } }

/* ---------- Content pages with sidebar ---------- */
.hg-app--page { height: auto; min-height: calc(100dvh - var(--nav-h) - var(--ticker-h, 42px)); align-items: flex-start; }
.hg-app--page .hg-sidebar { position: sticky; top: calc(var(--nav-h) + 14px); max-height: calc(100dvh - var(--nav-h) - var(--ticker-h, 42px) - 28px); }
.hg-content { flex: 1; min-width: 0; }
.hg-content .hg-page__frame { max-width: 860px; margin: 0 auto 40px; }
.hg-opt--link { text-decoration: none; color: inherit; display: block; }
.hg-h1--sub { font-size: clamp(28px, 4.5vw, 48px); }
.hg-h1--venue { font-size: clamp(26px, 4vw, 44px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hg-billing__link { color: inherit; text-decoration: none; }
.hg-billing__link:hover { text-decoration: underline; }

/* ---------- Verification tick ---------- */
.hg-tick { display: inline-flex; width: 26px; height: 26px; color: #C9C9C1; flex-shrink: 0; }
.hg-tick.is-verified { color: #2F6BFF; }
.hg-tick svg { width: 100%; height: 100%; }

/* ---------- A11y & motion ---------- */
:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .hg-sidebar, .hg-mapwrap, .hg-app { min-width: 0; max-width: 100%; }
  .hg-search__list, .hg-gate__list { max-width: calc(100vw - 32px); }
  .hg-search__list li, .hg-gate__list li { word-break: break-word; white-space: normal; }
  .hg-nav__burger { display: flex; }
  .hg-nav__badge { border: 0; padding: 0; background: none; }
  .hg-nav__badge .hg-nav__badge-label { display: none; }
  .hg-nav__badge .hg-nav__badge-ver { font-size: 9px; opacity: .5; letter-spacing: .02em; }
  .hg-nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--paper);
    border-bottom: var(--border);
    padding: 8px;
  }
  .hg-nav__menu.is-open { display: block; }
  .hg-nav__menu .hg-nav__list { flex-direction: column; gap: 2px; }
  .hg-app { flex-direction: column; padding: 10px; padding-bottom: calc(12px + var(--ticker-h, 42px)); gap: 10px; height: auto; min-height: calc(100dvh - var(--nav-h)); }
  .hg-sidebar { width: 100%; flex: none; order: 2; position: static !important; max-height: none !important; }
  .hg-app--page { flex-direction: column; }
  .hg-content { order: 1; width: 100%; }
  .hg-mapwrap { order: 1; height: 62dvh; flex: none; }
  .hg-wordmark { font-size: 34px; }
  .hg-gate { padding: 24px; }
}


/* ---------- Filter pills (Increment 1) ---------- */
.hg-pillrow { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.hg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: inherit;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--nav-track);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.hg-pill:hover { background: rgba(17,17,17,.1); }
.hg-pill.is-active { background: var(--ink); color: var(--paper); }
.hg-card--blue .hg-pill, .hg-card--red .hg-pill, .hg-card--purple .hg-pill, .hg-card--green .hg-pill { border-color: currentColor; }
.hg-card--blue .hg-pill.is-active, .hg-card--red .hg-pill.is-active, .hg-card--purple .hg-pill.is-active { background: #fff; color: var(--ink); }
.hg-card--green .hg-pill.is-active { background: var(--ink); color: #fff; }

/* ---------- Version tag in beta badge ---------- */
.hg-nav__badge-ver { opacity: .6; font-weight: 600; }

/* ---------- Nearby note (gate geocode) ---------- */
.hg-nearby-note {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 900;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  max-width: 90%;
  text-align: center;
}
.hg-nearby-note.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Icon pills (directory feature filters) ---------- */
.hg-pill--icon svg { width: 14px; height: 14px; }

/* ---------- Venues directory ---------- */
.hg-dir { max-width: 1100px; margin: 0 auto 60px; }
.hg-dir__filters { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.hg-dir__count { font-family: var(--font-nav); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; opacity: .6; margin-bottom: 16px; }
.hg-dir__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hg-vcard {
  border: var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .12s;
}
.hg-vcard:hover { transform: translateY(-3px); }
.hg-vcard__photo { aspect-ratio: 16/10; background-size: cover; background-position: center; border-bottom: var(--border); }
.hg-vcard__photo--empty { background: repeating-linear-gradient(45deg, rgba(17,17,17,.05), rgba(17,17,17,.05) 10px, transparent 10px, transparent 20px); }
.hg-vcard__body { padding: 14px; }
.hg-vcard__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.15; }
.hg-vcard__loc { font-size: 13px; opacity: .6; font-weight: 600; margin-top: 3px; }
.hg-vcard__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.hg-vcard__badges .hg-badge { padding: 4px 6px; border-width: 2px; }
.hg-vcard__badges .hg-badge svg { width: 13px; height: 13px; }
.hg-vcard__badges .hg-badge em { display: none; }
.hg-dir__end { text-align: center; padding: 30px; font-weight: 700; opacity: .5; }
.hg-dir__sentinel { height: 1px; }

/* ---------- Top tickertape (Increment 5) ---------- */
.hg-ticker--top {
  position: sticky;
  top: var(--nav-h);
  bottom: auto;
  z-index: 1180;
  border-top: 0;
  border-bottom: var(--border);
}
.hg-ticker--top .hg-ticker__cap { display: none; }
