/* NJ Beer Quest — dark, premium, mobile-first. Amber = list-beer stops, steel blue = popular stops. */
:root {
  --bg: #0c0e11;
  --surface: #16191f;
  --surface-2: #1d2128;
  --border: #2a2f38;
  --text: #f2ede6;
  --muted: #a8adb8;
  --amber: #f0a832;
  --amber-dark: #c98a1e;
  --steel: #7fb3d5;
  --steel-dark: #4f7fa3;
  --green: #7bc47f;
  --yellow: #e8c95a;
  --red: #e07856;
  --grey: #9aa0ab;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--steel); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }

/* Header + countdown */
.app-header { display: flex; align-items: center; gap: 14px; padding: 14px 16px 8px; text-align: left; }
.app-header h1 { margin: 0; font-size: 1.5rem; letter-spacing: 0.02em; line-height: 1.25; }
.site-pin { height: 126px; width: auto; display: block; flex: 0 0 auto; }
/* The revolving door (build #112): the header logo carries both
   regions' pins, front and back, and swivels on its vertical axis to
   switch environments. The container keeps the .site-pin sizing (its
   height is set by app.js to match the header text block). */
.logo-door { position: relative; aspect-ratio: 256 / 400; perspective: 700px; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.logo-door:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.door-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.6s ease; }
.door-inner.no-anim { transition: none; }
.logo-door.door-flipped .door-inner { transform: rotateY(180deg); }
.door-face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.door-back { transform: rotateY(180deg); }
.door-hint { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 6px); white-space: nowrap; font-size: 0.72rem; line-height: 1.3; color: var(--muted); background: var(--surface, #1d2126); border: 1px solid var(--border, #3a3f46); border-radius: 999px; padding: 3px 9px; z-index: 5; }
.banner-pin { width: 30px; height: 30px; flex: 0 0 auto; }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.edition { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.countdown-banner {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 24px); margin: 10px 12px 0;
  padding: 10px 12px; border: 1px solid var(--amber-dark); border-radius: 18px;
  background: #241b08; color: var(--text); text-align: left;
}
.countdown-banner:active { background: #33260c; }
/* The competition name always reads in full (Steve, 2026-11-27): the
   text wraps over as many lines as it needs and the pill sits under
   it, so nothing is ever clipped with an ellipsis at phone width. */
.countdown-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.countdown-text { font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.countdown-pill {
  flex: 0 0 auto; font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  background: var(--amber); color: #1a1200; border-radius: 999px; padding: 3px 8px;
}
.countdown-pill.announced { background: var(--green); color: #0d1f0e; }

/* Tabs */
.tab-bar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; gap: 6px; padding: 10px 12px;
  background: rgba(12, 14, 17, 0.96);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1 0 auto; padding: 9px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-weight: 600; font-size: 0.88rem; white-space: nowrap;
}
.tab-btn.active { background: var(--amber); border-color: var(--amber); color: #1a1200; }

main { padding: 14px 12px 4px; max-width: 720px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
h2 { font-size: 1.15rem; margin: 22px 0 8px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
.intro { color: var(--muted); margin: 4px 0 12px; }

/* Search tab */
.quest-counter { font-size: 1.05rem; font-weight: 700; margin: 0 0 18px; }
.counter-note { color: var(--muted); font-size: 0.88rem; margin: 2px 0 14px; }
.search-label { display: block; font-weight: 600; margin-bottom: 4px; }
.search-box {
  width: 100%; padding: 11px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.search-box::placeholder { color: #6f7580; }
.search-hint { color: var(--muted); font-size: 0.85rem; min-height: 1.2em; margin: 6px 0 4px; }
.style-group-title {
  margin: 20px 0 8px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border); font-size: 1.05rem;
}
.style-group-title .count { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* Beer cards */
.beer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 0 0 12px;
}
.beer-card.gone-flagged { border-color: var(--red); }
.beer-name { margin: 0 0 2px; font-size: 1.12rem; line-height: 1.3; }
.beer-style { color: var(--muted); margin: 0 0 8px; font-size: 0.92rem; }
.beer-brewery { font-weight: 700; margin: 0; }
.beer-address, .beer-hours { color: var(--muted); font-size: 0.9rem; margin: 2px 0; }
.beer-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; font-size: 0.9rem; }
.beer-meta .abv { font-weight: 600; }
.medal-flag {
  display: inline-block; background: #2a2110; border: 1px solid var(--amber-dark);
  color: var(--amber); border-radius: 999px; padding: 2px 9px;
  font-size: 0.8rem; font-weight: 700; margin: 0 6px 6px 0;
}
button.medal-flag { font-family: inherit; cursor: pointer; }
.freshness-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.badge {
  display: inline-block; border-radius: 999px; padding: 3px 10px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-fresh { background: #17351a; color: var(--green); border: 1px solid #2f6b34; }
.badge-aging { background: #3a2f10; color: var(--yellow); border: 1px solid #7a6420; }
.badge-stale { background: #3d1d16; color: var(--red); border: 1px solid #7a3a28; }
.badge-unverified { background: #22262d; color: var(--grey); border: 1px solid #4a505c; }
.badge-gone { background: #3d1d16; color: #ffb199; border: 1px solid var(--red); }
.last-checkin { color: var(--muted); font-size: 0.86rem; }
.taplist-note {
  background: var(--surface-2); border-left: 3px solid var(--steel);
  padding: 8px 10px; margin: 8px 0; font-size: 0.88rem; color: #d5dce4;
}
.beer-notes { color: var(--muted); font-size: 0.88rem; margin: 8px 0; }
.beer-source { color: #7d838e; font-size: 0.8rem; margin: 8px 0 0; }
.distance-line { font-size: 0.9rem; font-weight: 700; color: var(--steel); margin: 6px 0 0; }

.beer-actions { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.tick-btn {
  width: 100%; padding: 11px; border-radius: 10px; border: 1px solid var(--amber);
  background: transparent; color: var(--amber); font-weight: 700;
}
.tick-btn.ticked { background: var(--amber); color: #1a1200; }
.tick-count { text-align: center; color: var(--muted); font-size: 0.84rem; margin: 5px 0 10px; }

.gone-btn {
  width: 100%; padding: 9px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 0.9rem;
}
.gone-btn.reported { border-color: var(--red); color: #ffb199; }
.gone-count { text-align: center; color: var(--muted); font-size: 0.84rem; margin: 5px 0 0; }
.gone-count.flagged { color: #ffb199; font-weight: 700; }

/* Archive + about */
.archive {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; margin-top: 22px;
}
.archive summary { cursor: pointer; font-weight: 700; }
.archive p { color: var(--muted); font-size: 0.9rem; }
.archive-list { list-style: none; padding: 0; margin: 8px 0 0; }
.archive-list li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.archive-list li:first-child { border-top: none; }
.archive-list .reason { color: var(--muted); font-size: 0.86rem; display: block; }
.offlist-block { margin: 2px 0 16px; }
.offlist-block h3 { font-size: 0.92rem; margin: 10px 0 6px; color: var(--muted); font-weight: 600; }
.offlist-row { padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; margin-bottom: 6px; font-size: 0.92rem; }
.offlist-row .reason { color: var(--muted); font-size: 0.86rem; display: block; }
.about { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 6px; }
.about p { font-size: 0.94rem; }

/* Full list */
.sort-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sort-row label { font-weight: 600; }
.sort-row select {
  flex: 1; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
}
.sort-note { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; }
.sort-note.greyed { color: var(--grey); font-style: italic; }
/* competition filter dropdown (build #127): one shared deselection
   state, mirrored on the Beers tab and the Map tab. */
.comp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comp-row-label { font-weight: 600; }
.comp-dd { position: relative; flex: 1; }
.comp-btn {
  width: 100%; text-align: left; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; cursor: pointer;
}
.comp-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1300;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  max-height: 330px; overflow-y: auto;
}
.comp-opt {
  display: flex; align-items: center; gap: 8px; padding: 7px 6px;
  border-radius: 8px; cursor: pointer; line-height: 1.35;
}
.comp-opt:hover { background: rgba(255, 255, 255, 0.05); }
.comp-opt input { width: 17px; height: 17px; flex: none; accent-color: var(--amber); }
.comp-count { color: var(--muted); margin-left: auto; font-size: 0.88rem; }
.comp-reset {
  margin-top: 6px; padding: 6px; background: none; border: none;
  color: var(--steel); font: inherit; font-size: 0.92rem; cursor: pointer;
}
.distance-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; margin-bottom: 12px;
}
.distance-box label { font-weight: 600; display: block; margin-bottom: 6px; }
.distance-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.distance-controls input {
  flex: 1 1 110px; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); min-width: 0;
}
.distance-controls button {
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--amber);
  background: transparent; color: var(--amber); font-weight: 700;
}
.distance-status { color: var(--muted); font-size: 0.86rem; margin: 8px 0 0; }
.group-heading { margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.group-heading .count { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.winner-note {
  background: #221a08; border: 1px solid var(--amber-dark); border-radius: 10px;
  padding: 10px 12px; margin: 0 0 12px; font-size: 0.88rem;
}
.winner-note strong { color: var(--amber); }
.winner-note ul { margin: 6px 0 0; padding-left: 18px; }
.winner-note li { margin: 3px 0; }
.empty-note { color: var(--muted); padding: 18px 4px; }

/* Excursions + map */
#map { height: 380px; width: 100%; border-radius: var(--radius); z-index: 1; background: #10151a; }
.map-wrap { position: relative; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px;
  font-size: 0.85rem; color: var(--muted);
}
.legend-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px;
}
.legend-amber { background: var(--amber); }
.legend-blue { background: var(--steel); }
.legend-item { white-space: nowrap; }

/* Leaflet pin dots: plain coloured dots, no numbers. Labels appear at zoom >= 13 or when selected. */
.njbq-pin { background: transparent; border: none; }
.pin-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #0c0e11; box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.pin-amber .pin-dot { background: var(--amber); }
.pin-blue .pin-dot { background: var(--steel); }
.pin-selected .pin-dot { width: 18px; height: 18px; box-shadow: 0 0 0 2px #fff; }
.pin-label {
  display: none; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  background: rgba(12, 14, 17, 0.92); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px; font-size: 12px; font-weight: 600; white-space: nowrap;
  pointer-events: auto; cursor: pointer;
}
.pin-show-label .pin-label { display: block; }
.leaflet-tooltip.pin-label-tip {
  background: rgba(12, 14, 17, 0.92); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; box-shadow: none; font-weight: 600;
}
.leaflet-tooltip.pin-label-tip::before { display: none; }

.place-detail {
  background: var(--surface); border: 1px solid var(--amber-dark);
  border-radius: var(--radius); padding: 14px; margin: 14px 0;
  scroll-margin-top: 76px;
}
.place-detail.popular { border-color: var(--steel-dark); }
.place-detail h3 { margin-top: 0; }
.main-beer {
  background: #221a08; border: 1px solid var(--amber-dark);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
.main-beer .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber); }
.main-beer .name { font-size: 1.08rem; font-weight: 700; margin: 2px 0; }
.main-beer .style { color: var(--muted); font-size: 0.9rem; margin: 0; }
.place-detail p { margin: 6px 0; font-size: 0.94rem; }
.place-detail .list-beers { margin: 6px 0; padding-left: 18px; }
.secondary-btn {
  margin-top: 12px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600;
}

.excursion-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 0 0 12px;
}
.excursion-card h3 { margin: 0 0 2px; }
.excursion-region { color: var(--muted); font-size: 0.86rem; margin: 0 0 10px; }
.excursion-card h4 { margin: 12px 0 4px; font-size: 0.92rem; color: var(--amber); }
.excursion-card ul { margin: 0; padding-left: 18px; font-size: 0.92rem; }
.excursion-card li { margin: 6px 0; }
.excursion-card .reason { color: var(--muted); font-size: 0.86rem; display: block; }
.excursion-card .popularity { color: var(--steel); font-size: 0.86rem; }

.places-note { color: var(--muted); font-size: 0.88rem; margin: 0 0 8px; }
.places-list { list-style: none; padding: 0; margin: 0; }
.places-list li {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 12px; margin-bottom: 8px; cursor: pointer;
}
.places-list li.selected { border-color: var(--amber); }
.places-list li.selected.popular { border-color: var(--steel); }
.places-list .row-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.row-dot.amber { background: var(--amber); }
.row-dot.blue { background: var(--steel); }
.places-list .row-main { flex: 1; min-width: 0; }
.places-list .row-name { font-weight: 700; }
.places-list .row-sub { color: var(--muted); font-size: 0.86rem; }
.places-list .row-dist { flex: 0 0 auto; color: var(--steel); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* Events */
.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 0 0 12px;
  scroll-margin-top: 76px;
}
.event-card.card-flash { animation: cardflash 2.6s ease-out; }
.event-card h3 { margin: 0 0 2px; }
.event-organiser { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.event-card p { font-size: 0.94rem; margin: 6px 0; }
.event-when { font-weight: 700; }
.event-when .pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px;
  padding: 2px 8px; margin-left: 6px; vertical-align: 1px;
}
.pill-expected { background: #3a2f10; color: var(--yellow); }
.pill-announced { background: #17351a; color: var(--green); }
.judging-flag {
  background: var(--surface-2); border-left: 3px solid var(--yellow);
  padding: 8px 10px; font-size: 0.88rem; margin: 8px 0;
}
.recalibration { font-size: 0.9rem; color: #d5dce4; }
.recalibration strong { color: var(--amber); }

/* Suggest form (shown on every tab, below the main content) */
.suggest {
  max-width: 720px; margin: 26px auto 0; padding: 18px 12px 8px;
  border-top: 1px solid var(--border);
}
.suggest h2 { margin-top: 0; }
.suggest p { color: var(--muted); font-size: 0.94rem; }
.suggest form label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 0.92rem; }
.suggest form input, .suggest form textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
}
.suggest form button {
  margin-top: 14px; padding: 12px 20px; border-radius: 10px; border: none;
  background: var(--amber); color: #1a1200; font-weight: 700;
}
.form-message { margin-top: 10px; font-weight: 600; }
.form-message.ok { color: var(--green); }
.form-message.err { color: var(--red); }

.app-footer {
  max-width: 720px; margin: 0 auto; padding: 20px 12px 34px;
  color: #7d838e; font-size: 0.82rem; text-align: center;
}
.loading-error {
  max-width: 720px; margin: 12px auto; padding: 12px 14px;
  background: #3d1d16; border: 1px solid var(--red); border-radius: 10px; color: #ffb199;
}

@media (min-width: 640px) {
  .countdown-text { font-size: 0.95rem; }
  #map { height: 440px; }
}

/* merged Beers tab: style filter chips (2026-11-22) */
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.style-chip { background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; }
.style-chip.active { background: var(--amber); color: #1a1405; border-color: var(--amber); font-weight: 700; }

/* beer card: how-we-verified expander (2026-11-22) */
.verify { margin: 10px 0; border-top: 1px solid var(--border); padding-top: 8px; }
.verify summary { cursor: pointer; color: var(--amber); font-size: 0.88rem; font-weight: 600; }
.verify p { color: var(--muted); font-size: 0.88rem; margin: 6px 0; }
.verify .evidence { color: var(--text); }

/* beer card: jump to this brewery on the map (2026-11-23) */
.beer-map-link { margin: 6px 0 0; }
.map-link-btn { background: none; border: none; color: var(--steel); cursor: pointer; padding: 0; font-size: 0.9rem; text-decoration: underline; }

/* criteria strip + place kind + winner clarifier (2026-11-23) */
/* Collapsed preamble (builds #121/#122): the summary sentence stands
   on the beers page as a quiet line of text; "How the list works" sits
   on its own line beneath it as the one and only expand control (a
   steel text link with a single chevron). The native details marker
   is suppressed three ways (block summary, list-style, the marker
   pseudos) so no second triangle can appear beside ours. The full
   how-it-works story nests behind it. The whole block is absent in
   NYC (server-stripped, app-hidden). */
.preamble { margin: 6px 0 20px; }
.preamble summary { display: block; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.preamble summary::-webkit-details-marker { display: none; }
.preamble summary::marker { content: none; }
.preamble-text { font-weight: 400; }
.preamble-toggle { display: block; margin-top: 8px; color: var(--steel); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.preamble-chevron { display: inline-block; transition: transform 0.2s ease; }
.preamble[open ] .preamble-chevron { transform: rotate(180deg); }
.criteria { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.criteria h2 { margin: 0 0 8px; font-size: 1.05rem; }
.criteria ol { margin: 0; padding-left: 20px; color: var(--muted); }
.criteria li { margin: 6px 0; }
.criteria li strong { color: var(--text); }
.criteria-close { margin: 10px 0 0; color: var(--amber); font-weight: 600; }
.place-kind { color: var(--muted); }
.place-kind strong { color: var(--text); }
.winner-sub { color: var(--muted); font-size: 0.88rem; margin: 4px 0; }

/* side-quest beer box (informational, not a quest beer) */
.top-pour { border: 1px solid var(--steel); border-radius: var(--radius); padding: 10px 12px; margin: 12px 0; background: rgba(125, 184, 216, 0.07); }
.top-pour .label { color: var(--steel); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.top-pour .name { font-size: 1.15rem; font-weight: 700; margin: 2px 0; }
.top-pour .style { color: var(--muted); margin: 0; }
.top-pour-note { color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; }

/* jump links from brewery panel to a beer card + card flash (2026-11-23) */
.jump-link-btn { background: none; border: none; color: var(--steel); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.beer-jump { margin: 8px 0 0; }
.beer-card.card-flash { animation: cardflash 2.6s ease-out; }
@keyframes cardflash { 0%, 55% { box-shadow: 0 0 0 3px var(--amber); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

/* Quester Board (2026-11-23) */
.me-card { background: var(--surface); border: 1px solid var(--amber-dark); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; }
.me-label { margin: 0; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.me-name { margin: 2px 0 4px; font-size: 1.5rem; font-weight: 700; color: var(--amber); }
.me-stats { margin: 0 0 10px; color: var(--text); }
.me-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.me-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; }
.me-btn:hover { border-color: var(--amber-dark); }
.me-name-form { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.me-name-form[hidden] { display: none; }
.me-name-form input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; flex: 1 1 180px; }
.me-note { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.board-row.board-me { background: #2a2110; border-radius: 8px; }
.board-rank { color: var(--muted); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.board-name { background: none; border: none; color: var(--steel); font: inherit; font-weight: 600; padding: 0; text-align: left; text-decoration: underline; }
.board-nums { color: var(--muted); font-size: 0.9rem; flex: 1; }
.board-total { font-weight: 700; color: var(--amber); font-size: 1.1rem; margin-left: auto; white-space: nowrap; }
.quester-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.quester-detail-name { margin: 10px 0 2px; font-size: 1.35rem; color: var(--amber); }
.quester-entries { list-style: none; margin: 10px 0 0; padding: 0; }
.quester-entry { padding: 8px 0; border-bottom: 1px solid var(--border); }
.quester-entry:last-child { border-bottom: none; }
.entry-meta { display: block; color: var(--muted); font-size: 0.9rem; }
.entry-note { display: block; color: var(--muted); font-size: 0.9rem; font-style: italic; }
.kind-chip { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 0.8rem; border: 1px solid var(--border); }
.kind-confirmed { color: var(--green); border-color: var(--green); }
.kind-gone { color: var(--red); border-color: var(--red); }

/* Google Maps hold popup on map pins (2026-11-23) */
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-close-button { color: var(--muted) !important; }
.gmaps-pop { display: flex; flex-direction: column; gap: 7px; min-width: 170px; font-size: 0.95rem; }
.gmaps-pop-addr { color: var(--muted); }
.gmaps-link { color: var(--amber); font-weight: 700; text-decoration: none; }
.gmaps-details { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }

/* Top-pour recommendations (2026-11-23) */
.kind-top-pour { color: var(--steel); border-color: var(--steel); }
.kind-top-pour-pending { color: var(--steel); border-color: var(--steel); }
.pour-line { margin-top: 6px; }
.pending-pour { border: 1px dashed var(--steel); border-radius: 8px; padding: 6px 10px; margin-top: 8px; color: var(--steel); }
.pending-badge { display: inline-block; color: var(--yellow); border: 1px solid var(--yellow); border-radius: 999px; padding: 0 8px; font-size: 0.78rem; white-space: nowrap; }
.pending-line { display: block; margin-top: 4px; white-space: nowrap; }
.pending-count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.pour-actions { display: block; margin-top: 8px; }
.pour-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pour-form[hidden] { display: none; }
.pour-form input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; flex: 1 1 170px; }
.pour-hint { color: var(--muted); font-size: 0.85rem; flex-basis: 100%; }
.row-pour { color: var(--steel); font-size: 0.88rem; }
.row-pending { color: var(--steel); font-size: 0.88rem; font-style: italic; }

/* competition website links + NJ winners click-in (2026-11-24) */
.winners-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: var(--surface); }
.winners-edition, .winners-note { color: var(--muted); font-size: 0.88rem; margin: 0 0 6px; }
.winners-list { margin: 0; padding-left: 18px; }
.winners-list li { margin: 3px 0; line-height: 1.4; }
.win-medal { font-weight: 700; color: var(--amber); }
.win-cat { color: var(--muted); }
.no-winners { color: var(--muted); }

/* map list rows: quest beer amber, side-quest beer blue (Steve, 2026-11-25) */
.row-quest { color: var(--amber); font-weight: 600; font-size: 0.95rem; }

/* winners click-in sort (Steve, 2026-11-25) */
.winners-sort { margin: 2px 0 8px; font-size: 0.88rem; color: var(--muted); }
.winners-sort select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); margin-left: 4px; }

/* points rules + suggest-a-brewery (Steve, 2026-11-25) */
.points-rules { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: var(--surface); }
.points-rules h3 { margin: 2px 0 6px; font-size: 1rem; }
.points-rules ul { margin: 0; padding-left: 18px; }
.points-rules li { margin: 4px 0; line-height: 1.45; }
.suggest-kind { border: 1px solid var(--border); border-radius: 10px; margin: 0 0 10px; padding: 8px 12px; }
.suggest-kind legend { font-weight: 600; padding: 0 4px; }
.kind-option { display: block; margin: 6px 0; line-height: 1.4; }
.kind-hint { display: block; color: var(--muted); font-size: 0.88rem; margin-left: 24px; }
.entry-points { color: var(--amber); font-weight: 600; font-size: 0.85rem; }
.kind-gone-pending { color: var(--muted); border-color: var(--muted); }
.kind-suggestion { color: var(--amber); border-color: var(--amber); }

/* gone-report flag note on beer cards (Steve, 2026-11-25) */
.gone-warning { border: 1px solid var(--red); background: #3d1d16; color: #ffb199; border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; line-height: 1.45; margin: 8px 0; }
.gone-caveat { border: 1px solid #a97e1c; background: #3a2f14; color: #ffd97a; border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; line-height: 1.45; margin: 8px 0; }
.badge-caveat { background: #3a2f14; color: #ffd97a; border: 1px solid #a97e1c; }
.points-cta { margin: 10px 0 2px; }
#archive-list .revive-btn { margin-left: 6px; }
.revive-btn { margin-left: 6px; }

.winners-year { margin: 14px 0 2px; font-size: 1.05rem; }
/* per-edition nested sections inside the winners box (2026-11-26) */
.edition-section { margin: 8px 0; }
.edition-section > p { margin: 0; }
.edition-box { border-left: 3px solid var(--border); padding: 2px 0 2px 10px; margin: 6px 0 10px; }
.winners-medal { margin: 10px 0 4px; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; }
.winners-medal.m-gold { color: var(--amber); }
.winners-medal.m-silver { color: #c9d1d9; }
.winners-medal.m-bronze { color: #cf8a52; }
.winners-medal.m-other { color: var(--steel); }
.win-detail { color: var(--muted); }
