/* Pour Decisions: editorial city-guide look. White page, ink type, one red.
   Layout: centered masthead over a dotted rule; boxed title card with a hard
   offset shadow; venues set off by a thick+thin red double rule. */
:root {
  --paper: #ffffff;
  --ink: #131313;
  --red: #e60000;
  --deep: #0e3533;          /* offset shadows, dark buttons */
  --muted: #5d5a57;
  --rule: #dedad5;
  --wash: #f6f3ee;          /* quiet panels */
  --t-plenty: #13704a;     /* time left: 1–2 hr */
  --t-closing: #f2a900;    /* under 1 hr */
  --t-last: #e60000;       /* under 30 min */
  --map-land: #f4f0e6;
  --map-park: #cfe5c2;
  --map-water: #9cd1ee;
  --map-road: #ffffff;
  --map-casing: #ddd5c8;

  --f-mark: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;

  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }

/* ---------- Masthead ---------- */
.masthead { padding-block: 18px 0; }
.mast-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mast-nav { display: flex; gap: 18px; }
.mast-nav a {
  font: 700 13px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent;
}
.mast-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.wordmark {
  font: 900 clamp(38px, 7vw, 76px)/.86 var(--f-mark); color: var(--red);
  text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; text-align: center;
}
.mast-right { justify-self: end; font: 600 12px var(--f-head); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.city-rule { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.city-rule::before, .city-rule::after { content: ""; flex: 1; border-top: 2px dotted #b9b4ad; }
.city-rule span { font: 700 18px var(--f-head); color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) {
  .mast-row { grid-template-columns: 1fr; justify-items: center; }
  .mast-right { display: none; }
  .mast-nav { order: 2; }
}

/* ---------- Type helpers ---------- */
.eyebrow { font: 700 12px/1.2 var(--f-head); color: var(--red); text-transform: uppercase; letter-spacing: .1em; }
.label { font: 700 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meta { font: 600 12.5px/1.4 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wavy {
  width: 104px; height: 8px; margin: 14px auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8'%3E%3Cpath d='M0 4 Q3.25 0 6.5 4 T13 4' fill='none' stroke='%23e60000' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x center;
}
.double-rule { border: 0; height: 9px; margin: 0; border-top: 4px solid var(--red); border-bottom: 1.5px solid var(--red); }

/* ---------- Title card ---------- */
.title-card {
  border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--deep);
  background: var(--paper); padding: 26px 24px 22px; text-align: center;
}
.title-card h1 { font: 800 clamp(30px, 4.6vw, 44px)/1.05 var(--f-head); letter-spacing: -.02em; margin-top: 10px; }
.title-card .dek { font: 400 19px/1.4 var(--f-body); margin: 10px auto 0; max-width: 34ch; }

/* ---------- Controls ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.select {
  appearance: none; border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e60000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 9px 38px 9px 12px; font: 600 15px var(--f-head); min-width: 220px; cursor: pointer;
}
.segmented { display: inline-flex; border: 1.5px solid var(--ink); }
.segmented button {
  border: 0; background: var(--paper); padding: 9px 16px; cursor: pointer;
  font: 700 13px var(--f-head); text-transform: uppercase; letter-spacing: .08em;
}
.segmented button + button { border-left: 1.5px solid var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.search {
  border: 1.5px solid var(--ink); padding: 9px 12px; font: 500 15px var(--f-head); background: var(--paper); min-width: 0; width: 240px;
}
@media (max-width: 560px) { .select, .search { width: 100%; min-width: 0; } .field { flex: 1 1 100%; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--red); color: var(--red); background: var(--paper);
  padding: 9px 16px; font: 600 14.5px var(--f-head); text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--red); color: var(--paper); }
.btn.solid { background: var(--red); color: var(--paper); }
.btn.solid:hover { background: var(--deep); border-color: var(--deep); }
.btn svg { width: 16px; height: 16px; flex: none; }

.time-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px;
  font: 700 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.time-tag .clock { width: 14px; height: 14px; flex: none; }
.time-tag.plenty { background: var(--t-plenty); color: var(--paper); }
.time-tag.closing { background: var(--t-closing); color: var(--ink); }
.time-tag.last { background: var(--t-last); color: var(--paper); }
.tier-key { display: inline-flex; gap: 14px; flex-wrap: wrap; font: 600 12px var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tier-key i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.tier-key i.plenty { background: var(--t-plenty); }
.tier-key i.closing { background: var(--t-closing); }
.tier-key i.last { background: var(--t-last); }

.credit { font: 400 11.5px/1.3 var(--f-head); color: var(--muted); margin-top: 6px; }
.credit a { color: inherit; }

/* ---------- Venue tile ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tile:hover .tile-photo img { transform: scale(1.03); }
.tile-photo .time-tag { position: absolute; left: 0; bottom: 0; }
.tile .double-rule { margin-top: 14px; }
.tile .credit { min-height: 2.6em; }   /* room for two lines keeps rules aligned across a row */
.tile h3 { font: 800 32px/1 var(--f-mark); margin-top: 12px; letter-spacing: .005em; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover { color: var(--red); }
.tile .meta { margin-top: 6px; }
.deal-list { list-style: none; margin: 12px 0 0; padding: 0; font: 400 16px/1.45 var(--f-body); }
.deal-list li { display: flex; gap: 10px; padding-block: 4px; }
.deal-list b { font: 700 15px/1.55 var(--f-head); color: var(--red); min-width: 3.4em; font-variant-numeric: tabular-nums; }
.tile-actions { display: flex; gap: 10px; margin-top: 16px; }
.tile-actions .btn { flex: 1; }

/* ---------- Menu dialog ---------- */
dialog.menu {
  border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--deep); padding: 0;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--paper); color: var(--ink);
}
dialog.menu::backdrop { background: rgba(19, 19, 19, .55); }
.menu-photo { aspect-ratio: 16 / 7; width: 100%; object-fit: cover; display: block; }
.menu-body { padding: 18px 22px 22px; }
.menu-body h2 { font: 800 40px/1 var(--f-mark); margin-top: 12px; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
@media (max-width: 520px) { .menu-cols { grid-template-columns: 1fr; } }
.menu-cols ul { list-style: none; margin: 8px 0 0; padding: 0; }
.menu-cols li { display: flex; align-items: baseline; gap: 6px; padding-block: 6px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.menu-cols li .dots { flex: 1; border-bottom: 1.5px dotted #b9b4ad; transform: translateY(-4px); }
.menu-cols li b { font: 700 15px var(--f-head); color: var(--red); font-variant-numeric: tabular-nums; }
.menu-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 1.5px solid var(--ink);
  background: var(--paper); cursor: pointer; font: 700 18px/1 var(--f-head);
}
.menu-hours { margin-top: 14px; font: 500 15px var(--f-head); }

/* ---------- Sundial picker ---------- */
.dial { width: 100%; max-width: 560px; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.dial-sky { position: relative; container-type: inline-size; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: none; cursor: pointer; }
.dial .horizon { stroke: #b9b4ad; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.dial .tick-label { font: 700 12px var(--f-head); fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.dial .bead { fill: #d5cfc6; transition: r .2s ease, fill .2s ease; }
.dial .bead.on { fill: var(--red); }
.dial .bead.past { opacity: .35; }
.dial .handle { cursor: grab; }
.dial .handle:active { cursor: grabbing; }
.dial .handle-ring { fill: var(--paper); stroke: var(--red); stroke-width: 3; }
.dial .handle-core { fill: var(--red); }
.dial .handle-halo { fill: var(--red); opacity: .14; }
.dial .handle-arrows path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.dial .handle:focus { outline: none; }
.dial .handle:focus-visible .handle-ring { stroke: var(--deep); stroke-width: 4; }
.dial-readout { position: absolute; left: 0; right: 0; bottom: 15%; text-align: center; pointer-events: none; }
/* Readout sizes follow the dial's own width (cqi) so the time always sits clear of the beads. */
.dial-time { font: 900 clamp(22px, 12cqi, 66px)/.9 var(--f-mark); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.dial-sub { font: 600 clamp(10px, 3.4cqi, 13px) var(--f-head); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: clamp(3px, 1.2cqi, 6px); }
.dial-sub b { color: var(--red); }
.days { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.days button {
  flex: 0 1 40px; min-width: 0; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper);
  font: 700 13px var(--f-head); cursor: pointer; position: relative;
}
.days button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.days button.today::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); }
.dial-foot { display: flex; justify-content: center; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-top: 16px; }
.dial-hint { font: 500 13px var(--f-head); color: var(--muted); }
.dial-reset { display: block; margin: 0; border: 0; background: none; cursor: pointer; font: 700 12px var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.dial-reset[hidden] { display: none; }
.dial.compact .tick-label { font-size: 23px; }
.dial.compact .days button { flex-basis: 34px; font-size: 12px; }

/* ---------- Footer ---------- */
.foot { border-top: 1.5px solid var(--ink); margin-top: 56px; padding-block: 18px 32px; font: 500 13px/1.5 var(--f-head); color: var(--muted); }

/* ---------- Map drawing ---------- */
.map-hood { font: 700 12px var(--f-head); fill: #8a847b; letter-spacing: .1em; text-transform: uppercase; }
.map-road { font: 700 9px var(--f-head); fill: #a49d92; letter-spacing: .12em; }
.map-water-label { font: italic 500 12px var(--f-body); fill: #4d8db3; }

/* ---------- Result views: list and compact ---------- */
.btn.small { padding: 6px 12px; font-size: 13.5px; }

.view-toggle button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; }
.view-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.results-list { display: flex; flex-direction: column; border-top: 4px solid var(--red); }
.lrow {
  display: grid; grid-template-columns: 232px minmax(0, 1fr) 150px; gap: 24px;
  padding-block: 22px; border-bottom: 1px solid var(--rule); align-items: start;
}
.lrow-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--wash); }
.lrow-top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.lrow h3 { font: 800 34px/1 var(--f-mark); }
.lrow h3 a { text-decoration: none; }
.lrow h3 a:hover { color: var(--red); }
.lrow .meta { margin-top: 8px; }
.deal-inline { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 16px/1.4 var(--f-body); }
.deal-inline b { font: 700 15px var(--f-head); color: var(--red); font-variant-numeric: tabular-nums; }
.lrow-actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1080px) {
  .lrow { grid-template-columns: 180px minmax(0, 1fr); }
  .lrow-actions { grid-column: 2; flex-direction: row; }
  .lrow-actions .btn { flex: 1; }
}
@media (max-width: 620px) {
  .lrow { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding-block: 16px; }
  .lrow h3 { font-size: 26px; }
  .lrow .credit { display: none; }
  .deal-inline { font-size: 15px; gap: 4px 14px; }
  .lrow-actions { grid-column: 1 / -1; }
}

.results-compact { border-top: 4px solid var(--red); }
.crow {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 18px;
  align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--rule);
}
.crow:not(.chead):hover { background: var(--wash); }
.chead { font: 700 11.5px var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-block: 10px; border-bottom: 1.5px solid var(--ink); }
.c-name a { display: block; font: 800 23px/1.05 var(--f-mark); text-decoration: none; }
.c-name a:hover { color: var(--red); }
.c-name .meta { display: block; font-size: 11.5px; margin-top: 4px; }
.c-deals { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 400 15px/1.35 var(--f-body); }
.c-deals b { font: 700 14px var(--f-head); color: var(--red); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .chead { display: none; }
  .crow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time act" "name name" "deals deals"; gap: 8px 12px; padding: 14px 0; }
  .c-time { grid-area: time; } .c-act { grid-area: act; } .c-name { grid-area: name; } .c-deals { grid-area: deals; }
}

/* ---------- Real data ---------- */
/* One happy-hour window and its own deals (menu dialog, venue page). */
.hh-window { padding: 14px 0 6px; border-top: 1px solid var(--rule); margin-top: 14px; }
.hh-window:first-of-type { margin-top: 10px; }
.hh-when { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hh-days { font: 700 13px var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.hh-when .hrs { font: 700 17px var(--f-head); font-variant-numeric: tabular-nums; }
.hh-window .menu-cols { margin-top: 8px; }
.hh-cond { font: 500 13.5px/1.4 var(--f-head); color: var(--muted); margin-top: 6px; }
.hh-unlisted { font: 400 15px/1.5 var(--f-body); color: var(--muted); margin: 8px 0 4px; }
.week { display: flex; gap: 6px; }
.week span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 11px var(--f-head); border: 1.5px solid var(--rule); color: var(--muted);
}
.week span.on { background: var(--red); border-color: var(--red); color: var(--paper); }
.week span.today { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }

/* A deal that ends before the venue's other deals running now. */
em.until { font: 600 12px var(--f-head); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
/* Happy hour with times but no listed deals. */
.unlisted { font: 500 14.5px/1.4 var(--f-head) !important; color: var(--muted); }
.unlisted-tag {
  display: inline-block; margin-left: 8px; padding: 3px 7px; border: 1.5px solid var(--muted); color: var(--muted);
  font: 700 10.5px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; vertical-align: 3px;
}

/* MapLibre maps inside the design's map frames. */
.maplibregl-map { font: 500 12px var(--f-head); }
.maplibregl-ctrl-attrib { font-size: 10.5px; }

/* Long deal names ("Cocktails: Bourbon Slush, Old Fashioned, …") stop at two lines in lists. */
.deal-list li > span, .deal-inline li, .pop .deals {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
