.adult { display: inline-block; padding: 4px 10px; border-radius: 12px; border: var(--o); color: var(--muted); margin: -8px 0 16px; }

.superlatives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.superlatives div { background: var(--panel); border: var(--o); border-radius: 12px; padding: 10px 12px; }
.superlatives span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.superlatives b { font-size: 15px; }

.sortbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.beer { background: var(--panel); border: var(--o); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; margin-bottom: 14px; }
.beer h3 { font-family: var(--font-hand); font-weight: 400; font-size: 24px; }
.beer-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.beer h3 { margin: 0; font-size: 17px; }
.beer .sub { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.stat { border: var(--o); border-radius: 12px; padding: 7px 9px; }
.stat span { display: block; font-size: 11px; color: var(--muted); }
.stat b { font-size: 15px; }
.meter { height: 5px; border-radius: 12px; background: var(--line); margin-top: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--hi); }
.best { font-size: 13px; color: var(--muted); margin: 0; }
.best b { color: var(--text); font-weight: 600; }

.rate { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: grid; gap: 12px; }
.rate fieldset { border: 0; margin: 0; padding: 0; }
.rate legend, .rate label { font-size: 13px; color: var(--muted); }
.stars { display: flex; gap: 4px; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 26px; line-height: 1; cursor: pointer; color: var(--line); }
.stars label.on { color: #e8b100; }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 12px; }
.slider-row { display: grid; gap: 4px; }
.slider-row input { width: 100%; accent-color: var(--accent); }
.slider-row output { font-weight: 600; color: var(--text); font-size: 14px; }
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate-grid label { display: grid; gap: 4px; }
.rate .msg { margin: 0; font-size: 13px; color: var(--accent); min-height: 1em; }

.suggest { margin-top: 24px; }
.suggest-grid { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 10px; margin-bottom: 10px; }
.suggest-grid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.suggest-grid input { width: 100%; }

@media (max-width: 640px) {
  .superlatives, .suggest-grid, .rate-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------------------------------------------------------------- bar of the week */

.bar-week { padding-bottom: 20px; }
.bar-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.crown-card {
  position: relative; padding: 14px 16px 14px 58px; background: var(--paper-2) var(--card-tex, var(--tex-tile));
  border: var(--o); border-radius: var(--wob); box-shadow: var(--pop-shadow);
}
.crown-card::before {
  content: "🏆"; position: absolute; left: 12px; top: 14px; font-size: 30px;
  filter: drop-shadow(1px 2px 0 rgb(0 0 0 / .25));
}
.crown-card.empty::before { content: "🍺"; filter: grayscale(.6); }
.crown-card h3 { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; margin: 4px 0 4px; text-transform: uppercase; letter-spacing: -0.02em; }
.crown-card .hood { margin: 0; font-size: 14px; color: var(--ink-soft); }
.crown-card .blurb { margin: 6px 0 0; font-family: var(--font-hand); font-size: 20px; line-height: 1.15; }
.race {
  display: grid; align-content: center; gap: 2px; padding: 12px 14px;
  background: var(--ink); color: var(--paper); border: var(--o); border-radius: var(--wob-2); box-shadow: 5px 5px 0 var(--red);
}
.race .kicker { color: var(--pop); }
.race b { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.race .muted { color: #c9c0b1; }

.bar-map {
  height: 380px; border: var(--o); border-radius: var(--wob); box-shadow: var(--pop-shadow);
  overflow: hidden; margin-bottom: 14px; background: var(--paper-2);
}
.bar-pin-wrap { background: none; border: 0; }
.bar-pin {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg); background: var(--paper); border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); transition: transform .25s var(--spring);
}
.bar-pin b { transform: rotate(45deg); font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--ink); }
.bar-pin:hover { transform: rotate(-45deg) scale(1.15); }
.bar-pin.picked { background: var(--red); border-color: var(--ink); }
.bar-pin.picked b { color: #fff8ec; }
.bar-pin.crown { background: var(--pop); box-shadow: 2px 2px 0 var(--ink), 0 0 0 4px rgb(255 210 63 / .35); }
.leaflet-popup-content { font-family: var(--font-body); }
.leaflet-popup-content .pop-votes { color: var(--ink-soft); font-size: 13px; }
.small-btn { padding: 5px 12px; font-size: 11px; margin-top: 6px; }

.crawl {
  padding: 12px 14px; margin-bottom: 16px; background: var(--paper-2) var(--card-tex, var(--tex-tile));
  border: var(--o); border-radius: var(--wob-2); box-shadow: 4px 4px 0 var(--ink);
}
.crawl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.crawl-head b { display: block; font-family: var(--font-hand); font-size: 22px; }
.crawl .stops { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.stop-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-body); font-size: 13px; transition: transform .25s var(--spring), background .15s;
}
.stop-chip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-style: normal; font-weight: 700; font-size: 12px; }
.stop-chip em { font-style: normal; color: var(--red); font-weight: 700; }
.stop-chip:hover { background: var(--red); color: #fff8ec; transform: translate(-1px, -2px) rotate(-2deg); }
.stop-chip:hover i { background: var(--paper); color: var(--ink); }
.stop-chip:hover em { color: #fff8ec; }

.bar-list { display: grid; gap: 10px; }
.bar {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px; background: var(--paper-2); border: var(--o); border-radius: var(--wob);
  box-shadow: 3px 3px 0 var(--ink); transition: transform .3s var(--spring), box-shadow .2s;
}
.bar:nth-child(even) { border-radius: var(--wob-2); }
.bar:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink); }
.bar.picked { background: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.bar-rank { font-family: var(--font-display); font-weight: 900; font-size: 24px; text-align: center; color: var(--red); }
.bar-main h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: -0.01em; }
.bar-main .hood { margin: 1px 0 0; font-size: 13px; color: var(--ink-soft); }
.bar-side { display: flex; align-items: center; gap: 12px; }
.bar-side .tally { font-size: 12px; color: var(--ink-soft); text-align: right; line-height: 1.1; }
.bar-side .tally b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--ink); }

.section-rule {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 46px); text-transform: uppercase;
  letter-spacing: -0.02em; margin: 34px 0 14px; padding-top: 10px; border-top: 4px double var(--ink);
}

.story-dlg { width: min(460px, calc(100vw - 24px)); }
.story-dlg canvas { width: 100%; height: auto; display: block; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper-2); }

@media (max-width: 720px) {
  .bar-top { grid-template-columns: 1fr; }
  .bar-map { height: 300px; }
  .bar { grid-template-columns: 36px 1fr; }
  .bar-side { grid-column: 1 / -1; justify-content: space-between; }
}

/* The bar map is printed on the same paper as the page, so the tiles get
   knocked back to ink-on-newsprint instead of arriving as a stock web map. */
.bar-map .basemap { filter: grayscale(0.9) sepia(0.35) contrast(0.92) brightness(1.06); }
:root[data-theme="dark"] .bar-map .basemap { filter: invert(1) hue-rotate(180deg) grayscale(0.7) brightness(0.8); }
.bar-map .leaflet-control-zoom a { border-radius: 0; border: 2px solid var(--ink); color: var(--ink); }

/* ======================================================================
   Find a bar: search type-ahead + "I'm here now".
   ====================================================================== */

.bar-find { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.find-search { position: relative; flex: 1 1 260px; }
.find-search input {
  width: 100%; border: var(--o); border-radius: 999px; padding: 10px 16px; background: var(--paper);
  box-shadow: inset 2px 2px 0 rgb(0 0 0 / .07);
}
.find-search input:focus { box-shadow: 3px 3px 0 var(--pop), 0 0 0 2px var(--ink); }
.find-suggest {
  position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--paper); border: var(--o); border-radius: 16px; box-shadow: 5px 6px 0 var(--ink);
  overflow: hidden; animation: pop-open .22s var(--spring);
}
.find-suggest button {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; width: 100%;
  padding: 9px 14px; border: 0; border-bottom: 1.5px solid var(--line); background: none; text-align: left;
  transition: background .12s, transform .2s var(--spring);
}
.find-suggest button:last-child { border-bottom: 0; }
.find-suggest button:hover, .find-suggest button:focus-visible { background: var(--pop); transform: translateX(3px); }
.find-suggest b { grid-area: 1 / 1; font-family: var(--font-display); font-weight: 900; font-size: 16px; text-transform: uppercase; }
.find-suggest span { grid-area: 2 / 1; font-size: 12px; color: var(--ink-soft); }
.find-suggest em {
  grid-area: 1 / 2 / span 2 / 3; align-self: center; font-style: normal; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); white-space: nowrap;
}
.find-suggest .no-hit { margin: 0; padding: 12px 14px; font-size: 14px; color: var(--ink-soft); }
.find-msg { margin: 0 0 10px; min-height: 1.2em; }
.find-msg .small-btn { margin-left: 6px; }
.me-dot { animation: me-pulse 1.8s ease-in-out infinite; }
@keyframes me-pulse { 50% { opacity: .55; r: 11; } }

/* ======================================================================
   Rate My Beer, in colour: chunky cartoon panels, candy meters, springy
   everything. Eight stable colours, picked per beer so a beer always looks
   like itself.
   ====================================================================== */

.hue-0 { --c: #e0a82e; --c2: #f6cf6a; }   /* gold */
.hue-1 { --c: #3d7fa6; --c2: #7cc0e0; }   /* river */
.hue-2 { --c: #c2512f; --c2: #f08a5d; }   /* brick */
.hue-3 { --c: #2f7d4f; --c2: #74c58c; }   /* ivy */
.hue-4 { --c: #8a4fc4; --c2: #c79bf0; }   /* plum */
.hue-5 { --c: #d1662a; --c2: #f5a55e; }   /* provel */
.hue-6 { --c: #2f6f8f; --c2: #74b6d4; }   /* mosaic */
.hue-7 { --c: #b03a5b; --c2: #ef7f9e; }   /* cherry */

/* ---- superlatives: three trophies ---- */
.superlatives { gap: 12px; }
.superlatives .sup {
  position: relative; overflow: hidden; padding: 16px 14px 14px; border: var(--o); border-radius: 20px 10px 22px 12px / 12px 22px 10px 20px;
  box-shadow: 5px 6px 0 var(--ink); color: var(--ink);
  animation: sup-in .5s var(--spring) backwards; animation-delay: calc(var(--i) * 90ms);
  transition: transform .35s var(--spring), box-shadow .22s;
}
.superlatives .sup:hover { transform: translate(-3px, -5px) rotate(-1.5deg); box-shadow: 9px 11px 0 var(--ink); }
.superlatives .sup::after { /* glossy sweep, the cartoon tell */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / .3) 0 30%, transparent 31%);
}
.superlatives .sup-taste { background: linear-gradient(160deg, #ffd86b, #e0a82e); }
.superlatives .sup-trouble { background: linear-gradient(160deg, #f6a365, #d1552a); }
.superlatives .sup-fight { background: linear-gradient(160deg, #c79bf0, #8a4fc4); }
.superlatives .sup-badge {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; font-size: 22px; font-style: normal;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
  animation: trophy-bob 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * 420ms);
}
.superlatives .sup span { color: rgb(27 26 23 / .8); font-weight: 700; }
/* the two darker tiles need light type to stay readable */
.superlatives .sup-trouble span, .superlatives .sup-fight span { color: #fff6e8; text-shadow: 0 1px 0 rgb(0 0 0 / .45); }
.superlatives .sup-trouble b, .superlatives .sup-fight b { color: #fff6e8; text-shadow: 2px 2px 0 rgb(0 0 0 / .35); }
.superlatives .sup b { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 900; font-size: 21px; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.01em; }
@keyframes sup-in { from { opacity: 0; transform: translateY(18px) scale(.9) rotate(-3deg); } }
@keyframes trophy-bob { 0%, 100% { transform: none; } 45% { transform: translateY(-4px) rotate(-8deg); } 70% { transform: translateY(0) rotate(5deg); } }

/* ---- a beer card ---- */
.beer {
  position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 20px 12px 22px 10px / 10px 22px 12px 20px;
  background: color-mix(in srgb, var(--c, transparent) 10%, var(--paper-2)) var(--card-tex, var(--tex-tile));
  box-shadow: 5px 5px 0 var(--ink);
  animation: beer-in .45s var(--spring) backwards; animation-delay: calc(var(--i) * 45ms);
  transition: transform .35s var(--spring), box-shadow .22s;
}
.beer:hover { transform: translate(-3px, -4px) rotate(-.4deg); box-shadow: 9px 10px 0 var(--ink); }
.beer.mine { box-shadow: 5px 5px 0 var(--c); }
.beer.mine:hover { box-shadow: 9px 10px 0 var(--c); }
/* the colour cap across the top, with a highlight like a painted can */
.beer-cap {
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: linear-gradient(90deg, var(--c), var(--c2));
  border-bottom: 2.5px solid var(--ink);
}
.beer-cap::after { content: ""; position: absolute; inset: 0 0 50% 0; background: rgb(255 255 255 / .3); }
.beer-head { margin-top: 6px; }
.beer h3 {
  font-family: var(--font-display); font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -0.015em;
  text-shadow: 2px 2px 0 var(--c2);
}
.beer .sub { font-size: 13px; }

/* ---- candy meters ---- */
.stat {
  border-radius: 14px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transition: transform .3s var(--spring), box-shadow .2s;
}
.stat:hover { transform: translate(-2px, -3px); box-shadow: 4px 5px 0 var(--ink); }
.stat b { font-family: var(--font-display); font-weight: 900; font-size: 16px; }
.meter { height: 11px; border-radius: 99px; border: 2px solid var(--ink); background: #fffdf6; margin-top: 6px; padding: 0; }
.meter i {
  position: relative; display: block; height: 100%; border-radius: 99px; width: 0;
  background-image: repeating-linear-gradient(115deg, rgb(255 255 255 / .35) 0 6px, transparent 6px 12px);
  animation: meter-fill .9s cubic-bezier(.2, .9, .3, 1.1) .25s forwards;
}
.s-taste .meter i { background-color: #e0a82e; }
.s-trouble .meter i { background-color: #d1662a; }
.s-fight .meter i { background-color: #8a4fc4; }
@keyframes meter-fill { to { width: var(--w); } }
@keyframes beer-in { from { opacity: 0; transform: translateY(20px) scale(.95); } }

/* ---- the rating form ---- */
.rate { border-top: 2.5px dashed var(--ink); animation: rate-open .4s var(--spring); }
@keyframes rate-open { from { opacity: 0; transform: translateY(-10px); } }
.stars label { transition: transform .25s var(--spring), color .15s; }
.stars label:hover { transform: scale(1.25) rotate(-8deg); }
.stars label.on { color: #f2b705; text-shadow: 0 2px 0 rgb(0 0 0 / .3); animation: star-pop .35s var(--spring); }
@keyframes star-pop { 0% { transform: scale(.5) rotate(-25deg); } 60% { transform: scale(1.3) rotate(8deg); } }
.slider-row input { height: 22px; accent-color: var(--red); }
.slider-row output {
  display: inline-block; padding: 1px 10px; background: var(--pop); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 1.5px 1.5px 0 var(--ink); font-weight: 700;
}
.best { font-size: 13px; }
.best b { background: linear-gradient(transparent 62%, var(--c2) 62%); padding: 0 2px; }

@media (prefers-reduced-motion: reduce) {
  .superlatives .sup, .beer, .sup-badge, .meter i, .rate, .me-dot { animation: none !important; }
  .meter i { width: var(--w); }
  .superlatives .sup:hover, .beer:hover, .stat:hover { transform: none; }
}

/* ---- open-now badges ----
   Three states, not two: open, closed, and nobody-knows. The third one is
   grey on purpose — claiming a bar is shut when no one has recorded its hours
   is the one mistake that sends someone home early. */
.oh {
  display: inline-block; padding: 2px 9px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.oh.open { background: var(--good); color: var(--paper); border-color: var(--good); }
.oh.closing { background: var(--warn); color: #1b1a17; border-color: var(--warn); }
.oh.shut { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.oh.unknown { background: transparent; color: var(--ink-soft); border-color: var(--line); border-style: dashed; }

.bar-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.bar-main .blurb { margin: 4px 0 0; }
.leaflet-popup-content .pop-addr { color: var(--ink-soft); font-size: 12px; }
.leaflet-popup-content .small-btn + .small-btn { margin-left: 6px; }

.find-suggest em.is-open { color: var(--good); }
.find-suggest em.is-shut { color: var(--ink-soft); }
.find-suggest em.is-unknown { color: var(--ink-soft); }

/* ---- the confirm card ----
   Small on purpose: name, street, hours, two buttons. It is the only thing
   standing between a search hit and someone else's bar on your crawl. */
.bar-card {
  width: min(360px, calc(100vw - 28px)); padding: 20px; border: var(--o); border-radius: 20px;
  background: var(--paper); box-shadow: 8px 9px 0 var(--ink); animation: pop-open .24s var(--spring);
}
.bar-card::backdrop { background: rgb(27 26 23 / .45); backdrop-filter: blur(2px); }
.bar-card h2 { margin: 0; font-size: 26px; line-height: 1.05; }
.bar-card .card-hood { margin: 4px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.bar-card .card-addr { margin: 6px 0 0; font-family: var(--font-hand); font-size: 19px; }
.bar-card .card-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bar-card .card-blurb { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.bar-card .card-note { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.bar-card .hours-week { margin-top: 10px; font-size: 13px; }
.bar-card .hours-week summary { cursor: pointer; font-weight: 700; }
.bar-card .hours-week dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; }
.bar-card .hours-week dt { font-weight: 700; }
.bar-card .hours-week dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar-card .card-alts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.bar-card .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { .bar-card { animation: none; } }

/* A stack of bars too close to tell apart at this zoom. Round, not a teardrop,
   so it never reads as a single bar sitting at that exact spot. */
.bar-cluster {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 rgb(27 26 23 / .45); cursor: pointer;
  transition: transform .25s var(--spring);
}
.bar-cluster b { font-family: var(--font-body); font-weight: 700; font-size: 13px; }
.bar-cluster:hover { transform: scale(1.14); }
.bar-cluster.hot { background: var(--red); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .bar-cluster { transition: none; } .bar-cluster:hover { transform: none; } }

/* ---- the three ways in, on one row ---- */
#bar-pick {
  flex: 0 1 220px; border: var(--o); border-radius: 999px; padding: 10px 14px;
  background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 14px;
  box-shadow: inset 2px 2px 0 rgb(0 0 0 / .07);
}
#bar-pick:focus-visible { outline: none; box-shadow: 3px 3px 0 var(--pop), 0 0 0 2px var(--ink); }

/* ---- folded panels ----
   The map and the 158-row list start closed so Rate My Beer is on screen
   without scrolling past them. */
.fold { margin-top: 14px; border-top: 2px dashed var(--line); padding-top: 10px; }
.fold > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  list-style: none; padding: 8px 12px; border: var(--o); border-radius: 999px; background: var(--paper);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s var(--spring), background .15s;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--pop); color: var(--pop-ink); transform: translateX(3px); }
.fold > summary em { font-style: normal; font-size: 11px; letter-spacing: .06em; color: var(--ink-soft); }
.fold > summary::after { content: "▸"; margin-left: 4px; transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(90deg); }
.fold[open] > summary { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .fold > summary, .fold > summary::after { transition: none; }
  .fold > summary:hover { transform: none; }
}

/* Both halves of the page, named at the top. */
.zone-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.zone-jump a {
  padding: 6px 14px; border: var(--o); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; box-shadow: 2px 2px 0 var(--ink); transition: transform .2s var(--spring), background .15s;
}
.zone-jump a:hover { background: var(--pop); color: var(--pop-ink); transform: translate(-1px, -2px); box-shadow: 3px 4px 0 var(--ink); }
.lede .adult { display: inline-block; margin-left: 8px; opacity: .8; }
/* Keep the 56px gutter: the trophy/mug is an absolutely positioned ::before
   sitting in it. Tightening this to a plain 14px dropped the emoji straight
   on top of "Last week's winner". */
.bar-week .crown-card { padding: 12px 14px 12px 56px; }
.bar-week .crown-card h3 { margin: 2px 0; }
@media (prefers-reduced-motion: reduce) { .zone-jump a { transition: none; } .zone-jump a:hover { transform: none; } }
.crawl-empty { margin: 0; padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 14px; }

/* Tightened so the week's bar and the beer ratings share one screen on a
   laptop: that pairing is the whole point of the page. */
.page h1 { margin-bottom: 4px; }
body[data-zone="beer"] .page h1 { font-size: clamp(30px, 4.4vw, 50px); }
body[data-zone="beer"] .lede { margin: 0 0 6px; }
.bar-week .bar-top { gap: 10px; margin-bottom: 10px; }
.bar-week > h2 { margin-bottom: 8px; }
.section-rule { margin-top: 18px; }
.bar-week .fold:first-of-type { margin-top: 10px; }

@media (max-width: 720px) {
  /* The two section links are a row, not a stack: they are a tab bar. */
  .zone-jump { gap: 6px; }
  .zone-jump a { flex: 1 1 0; text-align: center; padding: 10px 6px; font-size: 11px; min-height: 44px;
    display: flex; align-items: center; justify-content: center; }
  body[data-zone="beer"] .page h1 { font-size: 30px; }
  .bar-find { gap: 8px; }
  /* min-width:0 matters: a <select> is sized by its widest option, and
     "Urban Chestnut Midtown Brewery" pushed the card past the screen edge on
     a 375px phone. */
  .find-search, #bar-pick, #bar-locate { flex: 1 1 100%; min-width: 0; width: 100%; }
  #bar-pick { text-overflow: ellipsis; }
  .bar-week .btn, .bar-card .btn { min-height: 44px; }
  #bar-locate { justify-content: center; }
  .bar-top { grid-template-columns: 1fr; }
  .crown-card h3 { font-size: 24px; }
  .crown-card { padding-left: 50px; }
  .crown-card::before { font-size: 25px; left: 11px; }
  .bar { grid-template-columns: 34px 1fr; gap: 8px; }
  .bar-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .bar-side .btn { min-height: 44px; }
  .fold > summary { padding: 11px 14px; min-height: 44px; font-size: 11px; }
  .bar-map { height: 260px; }
  .bar-card { width: calc(100vw - 20px); padding: 16px; }
  .bar-card h2 { font-size: 22px; }
  .bar-card .actions .btn { flex: 1 1 0; justify-content: center; }
}
body[data-zone="beer"] { background: radial-gradient(circle at top right, rgba(224, 168, 46, 0.2), transparent 50%), radial-gradient(circle at bottom left, rgba(200, 100, 50, 0.15), transparent 50%), var(--paper) var(--grain); }

/* Cursor-follow glow, pointer devices only — same reasoning as base.css. */
@media (hover: hover) and (pointer: fine) {
  .beer {
    background:
      radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), var(--glow-on, transparent), transparent 40%),
      color-mix(in srgb, var(--c, transparent) 10%, var(--paper-2)) var(--card-tex, var(--tex-tile));
  }
  .beer:hover { --glow-on: var(--glow); }
}

/* The letter tags on a bar row, and the legend above the list. A letter
   rather than a word because a row carries several of them and "Patio · Dance
   floor" crowds out the name on a phone. The title attribute carries the long
   form, and the legend above spells both out so the letters are never the
   only explanation. */
.tag-key {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--gold); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 1;
}
.legend { margin: 0 0 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.legend .tag-key { margin-right: 2px; }

/* ======================================================================
   THE BAR LIST, MADE TO ANSWER BACK

   Every control in this section used to be a label with nothing behind it.
   The two fold headers said "Map of every bar" and a count; the four filter
   chips said "Patio" and left you to tap it to find out whether that meant
   four bars or forty; the rows were 190 identical slabs with a dash where the
   rank goes and a gap in the middle wide enough to park in.

   Three changes, all of them the same idea — a control should tell you what
   it is about to do:
     · every filter carries its own count, and greys out at zero
     · the fold headers say how many and how many are open right now
     · a row carries the bar's share of the week's vote as a bar, so a list
       where nobody has voted looks like one, and a list with a runaway
       leader looks like that
   ====================================================================== */

/* ---- fold headers ---- */
.fold > summary { gap: 12px; }
.fold > summary .fold-label { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.fold > summary .fold-label i { font-style: normal; font-size: 15px; }
.fold > summary em {
  margin-right: auto; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  font-variant-numeric: tabular-nums;
}
.fold > summary .fold-cue { font-size: 15px; transition: transform .25s var(--spring); }
.fold[open] > summary .fold-cue { transform: rotate(90deg); }
/* The generic ::after chevron would be a second one next to this. */
.fold > summary::after { content: none; }
@media (prefers-reduced-motion: reduce) { .fold > summary .fold-cue { transition: none; } }

/* ---- filter chips with counts ---- */
.bar-filters .chip {
  display: inline-flex; align-items: center; gap: 7px;
  transition: transform .25s var(--spring), background .15s, box-shadow .2s, opacity .2s;
}
.bar-filters .chip-n {
  min-width: 20px; padding: 0 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 14%, transparent); color: inherit;
  font-size: 11px; font-variant-numeric: tabular-nums; text-align: center;
}
.bar-filters .chip[aria-pressed="true"] .chip-n { background: color-mix(in srgb, var(--paper) 35%, transparent); }
.bar-filters .chip.none { opacity: .45; }
.bar-filters .chip.none .chip-n { background: transparent; }

/* ---- a row ---- */
.bar { grid-template-columns: 56px 1fr minmax(118px, auto); }
.bar:focus-within { box-shadow: 6px 7px 0 var(--red); }
.bar.has-stamp { background: color-mix(in srgb, var(--gold) 9%, var(--paper-2)); }
.bar-rank { display: grid; place-items: baseline center; grid-auto-flow: column; gap: 1px; line-height: 1; }
.bar-rank b { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--red); }
.bar-rank i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--red); }
.bar-rank .dash { color: var(--line); font-size: 20px; }

/* The name is the row's main control, so it has to look like type and behave
   like a button: no chrome at rest, an underline the moment it is pointed at
   or focused. A bar's name set as a plain <h3> with a click handler is neither
   reachable by keyboard nor obviously tappable, which is what it was. */
.bar-main h3 { margin: 0; }
.bar-name {
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
  font-family: var(--font-display); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: -0.01em;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.bar-name:hover, .bar-name:focus-visible { color: var(--red-ink); border-bottom-color: var(--red); outline: none; }
.bar-name:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.bar-side { flex-direction: column; align-items: flex-end; gap: 6px; }
.bar-side .tally { display: flex; align-items: baseline; gap: 5px; text-align: right; line-height: 1.1; }
.bar-side .tally b { display: inline; font-size: 22px; }
/* The week's vote, as a share of whoever is leading it. Zero width at zero
   votes: a bar drawn at a minimum width would imply a bar nobody picked has
   some support, which is a small lie told 150 times down one page. */
.tally-bar {
  display: block; width: 86px; height: 6px; border: 1.5px solid var(--ink); border-radius: 99px;
  background: var(--paper); overflow: hidden;
}
.tally-bar::before {
  content: ""; display: block; height: 100%; width: var(--share, 0%);
  background: var(--red); transition: width .5s var(--spring);
}
.bar.picked .tally-bar::before { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .tally-bar::before { transition: none; } }

.tag-key.stamped { background: var(--paper); border-color: var(--gold); font-size: 10px; }

/* ---- the rows answer back ----
   A list that redraws silently when you change the filter looks like a list
   that did not change. The stagger is short and capped; it is there to say
   "these are different bars now", not to be an entrance.

   The press state is deliberately keyed to a control inside the row rather
   than to the row itself. A row that flinched because a thumb landed on it
   mid-scroll is noise — but a row whose name or pick button has just been
   pressed should acknowledge the press with its whole body, because the whole
   body is what the finger is covering. */
.bar { animation: bar-in .32s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes bar-in { from { opacity: 0; transform: translateY(10px); } }
.bar:has(:active) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.bar.picked:has(:active) { box-shadow: 1px 1px 0 var(--red); }
@media (prefers-reduced-motion: reduce) {
  .bar { animation: none; }
  .bar:has(:active) { transform: none; }
}

/* ---- paging ---- */
.list-more { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.linkish {
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--red-ink);
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ---- the skeleton rows ---- */
.bar.skel-bar { grid-template-columns: 56px 1fr; align-items: center; pointer-events: none; }
.bar.skel-bar .skel.line { display: block; margin: 6px 0; }

/* ---- under the map ---- */
.map-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin: -4px 0 4px; }
.map-key { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.map-key .key { display: inline-flex; align-items: center; gap: 6px; }
.bar-pin.mini, .bar-cluster.mini {
  width: 22px; height: 22px; display: inline-grid; place-items: center; flex: 0 0 auto;
}
.bar-pin.mini { transform: rotate(-45deg); }
.bar-pin.mini b { transform: rotate(45deg); font-size: 9px; }
.bar-cluster.mini b { font-size: 10px; }
.bar-pin.mini:hover { transform: rotate(-45deg); }
.bar-cluster.mini:hover { transform: none; }

/* ---- the stamp shelf ---- */
.stamp-shelf {
  display: grid; gap: 12px; justify-items: start;
  padding: 14px 16px; margin-bottom: 16px;
  background: var(--paper-2) var(--card-tex, var(--tex-tile));
  border: var(--o); border-radius: var(--wob); box-shadow: 4px 4px 0 var(--gold);
}
.shelf-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.shelf-head b { font-family: var(--font-hand); font-size: 21px; }
.shelf-row { display: flex; gap: 18px; flex-wrap: wrap; }
.shelf-row .stamp { width: 124px; cursor: pointer; }
.shelf-row .stamp-line { display: none; }  /* the joke belongs in the book, not the shelf */

/* ---- the reveal ---- */
.stamp-dlg {
  width: min(400px, calc(100vw - 28px)); padding: 22px; text-align: center;
  border: var(--o); border-radius: 22px; background: var(--paper); box-shadow: 8px 9px 0 var(--ink);
  animation: pop-open .24s var(--spring);
}
.stamp-dlg::backdrop { background: rgb(27 26 23 / .5); backdrop-filter: blur(2px); }
.stamp-dlg h2 { margin: 2px 0 14px; font-size: 30px; }
.stamp-dlg #stamp-reveal { display: grid; justify-items: center; margin-bottom: 12px; }
.stamp-dlg .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.stamp-dlg .actions .btn { flex: 1 1 auto; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .stamp-dlg { animation: none; } }

@media (max-width: 720px) {
  /* Top-aligned: a rank floating halfway down a card whose text runs to four
     lines does not look like the number of the row it is on. */
  .bar { grid-template-columns: 40px 1fr; gap: 8px; align-items: start; }
  .bar-rank { padding-top: 3px; }
  .bar-rank b { font-size: 21px; }
  .bar-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .bar-side .tally { justify-items: start; }
  /* On a phone the label and the count will not share a row: "MAP OF EVERY
     BAR" plus "190 bars · 43 open now" is three wrapped lines inside a pill.
     The count drops to its own line under the label instead. */
  .fold > summary { flex-wrap: wrap; row-gap: 5px; }
  .fold > summary .fold-label { flex: 1 1 auto; min-width: 0; }
  .fold > summary .fold-cue { order: 2; margin-left: auto; }
  .fold > summary em { order: 3; flex: 0 0 100%; margin: 0; width: max-content; white-space: nowrap; }
  .shelf-row .stamp { width: 104px; }
  .map-foot { gap: 10px; }
  .map-foot .btn { width: 100%; justify-content: center; }
}

.bar[data-slide-card] { display:block; }
.bar-preview { display:grid; grid-template-columns:56px minmax(0,1fr) minmax(118px,auto); align-items:center; gap:12px; }
.bar-slide-body .venue-costs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0; }
.bar-slide-body .venue-costs label { display:grid; gap:5px; }
.bar-slide-body .venue-costs input { width:100%; min-width:0; }
@media(max-width:600px) { .bar-preview { grid-template-columns:32px minmax(0,1fr); gap:8px; } .bar-preview .bar-side { grid-column:2; align-items:flex-start; } }
