:root {
  --page: #6683b3; --paper: #ffffff; --sheet: #dfe5f0; --ink: #17202f; --ink-2: #2f3f58; --muted: #4a6084; --rule: #c0cce1; --axis: #a1b3d2;
  --accent: #3c4f6e; --accent-ink: #2f3f58; --hover: #cfd9e9;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300;
  --font-display: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  --font-body: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  --font-data: ui-monospace, Menlo, monospace;
  --font-ui: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.45; }
.wrap { max-width: 900px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-left, 0px)) 64px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 26px; }
.brand svg { width: 44px; height: 40px; fill: currentColor; }
#app { display: flex; flex-direction: column; gap: 22px; }
h1 { font-size: clamp(30px, 6vw, 46px); margin: 0; line-height: 1.1; }
h2 { font-size: 20px; margin: 0; color: var(--page); }
a { color: var(--accent); }
.panel { background: var(--sheet); border-radius: 6px; box-shadow: 0 1px 3px rgba(23,32,47,.25); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card { text-decoration: none; color: var(--ink); }
.card:hover { box-shadow: 0 2px 8px rgba(23,32,47,.35); }
.card h3 { margin: 0; font-size: 21px; }
.addr { color: var(--muted); font-size: 14px; }
.sub { color: var(--ink-2); font-size: 15px; }
.bars { display: flex; align-items: flex-end; gap: 3px; margin-bottom: 6px; }
.bars .col { flex: 1 1 0; max-width: 22px; min-width: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bars .bar { width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; }
.bars i { font: 600 10px var(--font-ui); color: var(--ink-2); font-style: normal; line-height: 1; }
.bars small { font-size: 10px; color: var(--muted); line-height: 1.2; }
.show { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.show:last-child { border-bottom: 0; }
.date { text-align: center; background: var(--paper); border-radius: 6px; padding: 4px 0; }
.date b { display: block; font-size: 20px; line-height: 1.1; }
.date small { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bill a { color: var(--ink); text-decoration: none; }
.bill a:hover { text-decoration: underline; }
.bill .hl { font-weight: 700; font-size: 16px; }
.bill .sup { font-size: 14px; color: var(--ink-2); }
.price { text-align: right; font-weight: 600; white-space: nowrap; }
.price a { display: block; font-size: 13px; font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 4px; border-bottom: 2px solid var(--ink); }
td { padding: 9px 4px; border-bottom: 1px solid var(--rule); }
td.n, th.n { text-align: right; }
tr.ahead td { color: var(--muted); }
.back { font-size: 14px; text-decoration: none; color: var(--ink); font-weight: 600; }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }
.tabs { display: flex; width: max-content; border-radius: 6px; overflow: hidden; }
.tabs a { padding: 8px 16px; font: 600 15px var(--font-ui); background: #4a6084; color: #dfe5f0; text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); }
.monthnav { display: flex; align-items: center; justify-content: space-between; }
.monthnav b { font-size: 18px; }
.monthnav button { border: 1px solid var(--axis); background: var(--paper); color: var(--ink); border-radius: 6px; padding: 6px 14px; font: 600 16px var(--font-ui); cursor: pointer; }
.monthnav button:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; padding-bottom: 2px; }
.cal .d { aspect-ratio: 1; border-radius: 6px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid transparent; font-family: var(--font-ui); color: var(--ink); padding: 0; }
.cal .d small { font-size: 11px; color: var(--muted); line-height: 1; }
.cal .d b { font-size: 18px; line-height: 1.2; min-height: 22px; }
.cal button.d { cursor: pointer; }
.cal .d.has { background: var(--accent); color: var(--sheet); }
.cal .d.has small { color: var(--lighter, #c0cce1); }
.cal .d.past { opacity: .4; }
.cal .d.today { border-color: var(--ink); }
.cal .d.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
.cal .pad { visibility: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search] { flex: 1 1 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--axis); border-radius: 6px; background: var(--paper); color: var(--ink); }
.chip { border: 1px solid var(--axis); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: 500 13px var(--font-ui); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.filters select { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--axis); border-radius: 6px; background: var(--paper); color: var(--ink); }
.where { font-size: 13px; color: var(--muted); margin-top: 2px; }
.where a { color: var(--muted); }
.count { font-size: 13px; color: var(--muted); }
.range { flex: 1 1 100%; display: flex; flex-direction: column; gap: 2px; }
.range .lbl { display: flex; justify-content: space-between; font-size: 14px; }
.range .lbl b { font-weight: 600; }
.range .track { position: relative; height: 28px; }
.range .track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--rule); }
.range .fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--accent); }
.range input[type=range] { position: absolute; left: 0; width: 100%; top: 0; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); cursor: pointer; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); cursor: pointer; }
.range input[type=range]::-moz-range-track { background: none; }
.fees { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ticker { display: flex; flex-direction: column; }
.tk { display: grid; grid-template-columns: 1fr auto 86px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.tk:last-child { border-bottom: 0; }
.tk .nm { font-weight: 600; font-size: 15px; }
.tk .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.tk .px { text-align: right; font: 700 17px var(--font-ui); white-space: nowrap; }
.tk .chg { display: block; font-size: 12px; font-weight: 600; }
.up { color: #2e7d4f; } .down { color: #9c3d8f; } .flat { color: var(--muted); }
.tk svg { display: block; }
.tk.all { border-top: 2px solid var(--ink); }
svg.trend text { font: 10px var(--font-ui); fill: var(--muted); }
.brand img { width: 44px; height: 44px; }
/* curator playlists a show's bands are on now, under the whole show */
.cpills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.cpill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.cpill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #1db954; }
.cpill:hover { border-color: var(--ink-2); }
/* band page: curator picks, newest first */
table.picks td { vertical-align: middle; }
table.picks td .sub { font-size: 13px; color: var(--muted); }
table.picks td.n { white-space: nowrap; color: var(--muted); }

/* ---------- shared components: change them here, every page follows ---------- */

/* Anything marked hidden stays hidden, even where .panel sets display. */
[hidden] { display: none !important; }

/* Page width: .roomy pages use the full width on wide screens (venue pages, venues list). */
@media (min-width: 1000px) { .wrap.roomy { max-width: 1240px; } }

/* Stat row (venue page and venue cards): labels on top, numbers and bar bottoms on
   one line, months below. Sized by the --stat-* variables; .stats.lg is bigger. */
.stats { --stat-num: 32px; --stat-h: 40px; --stat-sub: 14px; --stat-gap: 8px; --stat-pad: 16px; --stat-small: 11px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.lg { --stat-num: 44px; --stat-h: 52px; --stat-sub: 16px; --stat-gap: 10px; --stat-pad: 24px; --stat-small: 12px; }
.stat { display: grid; grid-template-rows: auto var(--stat-h) var(--stat-sub); row-gap: var(--stat-gap); padding: 0 var(--stat-pad); }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat > span { grid-row: 1; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat > b { grid-row: 2; align-self: end; font: 700 var(--stat-num) var(--font-ui); line-height: .8; white-space: nowrap; }
.stat > .bars { grid-row: 2 / 4; align-self: end; margin: 0; gap: var(--stat-gap); height: calc(var(--stat-h) + var(--stat-sub) + var(--stat-gap)); }
.stat > .bars .col { max-width: calc(var(--stat-h) * .85); height: 100%; justify-content: flex-end; }
.stat > .bars .bar { flex-shrink: 0; }
.stat > .bars i { font-size: var(--stat-small); margin-bottom: 4px; }
.stat > .bars small { height: var(--stat-sub); line-height: var(--stat-sub); margin-top: var(--stat-gap); font-size: var(--stat-small); }
@media (max-width: 560px) {
  /* two numbers side by side, the bars full width underneath */
  .stats, .stats.lg { grid-template-columns: 1fr 1fr; --stat-num: 28px; --stat-h: 30px; --stat-pad: 8px; }
  .stats.lg { --stat-num: 34px; --stat-h: 40px; }
  .stat { grid-template-rows: auto var(--stat-h) 0; justify-items: center; text-align: center; }
  .stat:first-child { padding-left: var(--stat-pad); }
  .stat:nth-child(3) { --stat-h: 46px; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); margin-top: 14px; padding: 14px 0 0;
    grid-template-rows: auto var(--stat-h) var(--stat-sub); justify-items: stretch; }
  .stat:nth-child(3) .bars .col { max-width: none; }
}

/* Venue page: playlist beside the shows on wide screens. */
.split { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1000px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
  .split .shows { grid-column: 1; grid-row: 1; }
  .split .playlist { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
}

/* Venues list: cards two across on wide screens. */
.cards { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1000px) { .cards { display: grid; grid-template-columns: 1fr 1fr; } }
.card { gap: 18px; }
.card .stats { border-top: 1px solid var(--rule); padding-top: 16px; }

/* Tastemakers page: one card per curator, its quote, then its playlists with theirs. */
.tm-grid { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1000px) { .tm-grid { display: block; columns: 2; column-gap: 22px; } .tm-grid > .panel { break-inside: avoid; margin-bottom: 22px; } }
.tm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tm-head h2 { color: var(--ink); font-size: 22px; }
.tm-head a { font-size: 13px; color: var(--muted); }
blockquote { margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); font-size: 15px; color: var(--ink-2); }
blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12px; }
blockquote.sm { font-size: 13px; border-left-width: 2px; margin-top: 4px; color: var(--muted); }
.tm-list { border-top: 1px solid var(--rule); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.tm-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tm-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.tm-name:hover { text-decoration: underline; }

/* Picker: a dropdown of checkboxes (All shows: Tastemakers). */
.picker { position: relative; }
.picker summary { list-style: none; cursor: pointer; border: 1px solid var(--axis); background: var(--paper); border-radius: 6px; padding: 6px 12px; font: 600 14px var(--font-ui); }
.picker summary::-webkit-details-marker { display: none; }
.picker summary::after { content: " ▾"; }
.picker-list { position: absolute; z-index: 5; margin-top: 6px; background: var(--paper); border: 1px solid var(--axis); border-radius: 6px; padding: 10px 14px; box-shadow: 0 4px 14px rgba(23,32,47,.25); max-height: 340px; overflow: auto; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.picker-list label { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.picker-list > label, .picker-opts > label { font-weight: 600; }
.picker-opts { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 8px; }
.picker-group { display: flex; flex-direction: column; gap: 3px; }
.picker-group b { font-size: 13px; }
.picker-clear { align-self: flex-start; border: 0; background: none; color: var(--accent); text-decoration: underline; font: 500 13px var(--font-ui); cursor: pointer; padding: 0; }

/* Curator picks with the band and song (All shows). */
.cpicks { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.cpk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cpk-what { font-size: 13px; color: var(--ink-2); }
