:root {
  --bg: #fbfaf7;
  --panel: #fff;
  --fg: #1c1b19;
  --muted: #6b675f;
  --line: #e6e2da;
  --soft: #f2efe9;
  --accent: #a3361f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --panel: #1c1b19;
    --fg: #ece8e1;
    --muted: #9a958c;
    --line: #2b2926;
    --soft: #22201e;
    --accent: #e8805f;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    15px/1.4 ui-sans-serif,
    system-ui,
    sans-serif;
}
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
h1 {
  font:
    600 28px/1.1 ui-serif,
    Georgia,
    serif;
  margin: 0 0 4px;
}
.lede {
  color: var(--muted);
  margin: 0 0 16px;
}
a {
  color: inherit;
}
input,
select,
button,
summary {
  font: inherit;
  font-size: 14px;
  color: var(--fg);
}
.bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.field {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  min-height: 38px;
}
input[type='search'] {
  flex: 1 1 220px;
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '▾';
  color: var(--muted);
}
.panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px #0002;
}
.group {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.group:first-child {
  border-top: 0;
  padding-top: 0;
}
.group > .opt {
  font-weight: 600;
}
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px 12px;
  margin: 4px 0 0 22px;
}
.opt {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  cursor: pointer;
}
.opt:has(input:disabled) {
  color: var(--muted);
}
.panel-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
button {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.seg label {
  padding: 8px 10px;
  cursor: pointer;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.seg label:first-child {
  border-left: 0;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg label:has(input:checked) {
  background: var(--fg);
  color: var(--bg);
}
.seg label:has(input:focus-visible),
details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sortsel {
  display: none;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  border-radius: 99px;
  padding: 3px 6px 3px 10px;
  font-size: 13px;
  text-decoration: none;
}
.pill b {
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}
.pill:hover b {
  color: var(--fg);
}
.clear {
  font-size: 13px;
  color: var(--muted);
}
.note {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
thead a {
  text-decoration: none;
  display: inline-flex;
  gap: 4px;
}
thead .arrow {
  opacity: 0.4;
}
thead th[aria-sort] {
  color: var(--fg);
}
thead th[aria-sort] .arrow {
  opacity: 1;
}
tr.night th {
  position: sticky;
  top: 33px;
  z-index: 1;
  background: var(--bg);
  text-align: left;
  padding: 18px 8px 6px;
  font:
    600 14px/1 ui-sans-serif,
    system-ui;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
tr.night span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:not(.night):hover td {
  background: var(--soft);
}
.c-time {
  width: 80px;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.c-show a {
  font-weight: 600;
  text-decoration: none;
}
.c-show a:hover {
  text-decoration: underline;
}
.c-venue {
  width: 210px;
}
.c-price {
  width: 120px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.c-tix {
  width: 80px;
  text-align: right;
}
.sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.na {
  color: var(--muted);
}
.tix {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
.empty {
  padding: 40px 0;
  color: var(--muted);
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
footer {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .sortsel {
    display: block;
  }
  .shows thead {
    display: none;
  }
  tr.night th {
    top: 0;
  }
  .shows tbody tr:not(.night) {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    column-gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .shows tbody tr:not(.night) td {
    border: 0;
    padding: 0;
    width: auto;
  }
  .c-time {
    grid-row: 1/4;
  }
  .c-show {
    grid-column: 2/4;
  }
  .c-venue {
    grid-column: 2;
  }
  .c-price {
    grid-column: 2;
    font-size: 13px;
    color: var(--muted);
  }
  .c-price .na {
    display: none;
  }
  .c-tix {
    grid-column: 3;
    grid-row: 2/4;
    align-self: end;
  }
}

/* source status page */
:root {
  --ok: #2f7d4f;
  --warn: #a86b00;
  --bad: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ok: #6fcf97;
    --warn: #f2b84b;
    --bad: #ff8a80;
  }
}
.crumb {
  margin: 0 0 12px;
  font-size: 14px;
}
.crumb a {
  color: var(--muted);
  text-decoration: none;
}
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  --c: var(--muted);
  color: var(--c);
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.s-healthy {
  --c: var(--ok);
}
.s-warning,
.s-stale {
  --c: var(--warn);
}
.s-failing {
  --c: var(--bad);
}
.health td {
  vertical-align: middle;
}
.health .h-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 110px;
}
.health tbody:hover td {
  background: var(--soft);
}
.health tr:has(+ .h-note) td {
  border-bottom: 0;
}
.h-note td {
  padding-top: 0;
}
.h-note code {
  display: block;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--soft);
  border-left: 3px solid var(--c);
  overflow-wrap: anywhere;
}
.h-note .err {
  --c: var(--bad);
}
.h-note .warn {
  --c: var(--warn);
}
@media (max-width: 720px) {
  .health thead {
    display: none;
  }
  .health tbody tr:not(.h-note) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 12px 0 8px;
  }
  .health tbody tr:not(.h-note) td {
    border: 0;
    padding: 0;
    width: auto;
    text-align: left;
  }
  .health .h-src {
    grid-column: 1;
  }
  .health .h-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .health .h-num::after {
    content: ' upcoming';
    color: var(--muted);
  }
  .health .h-through::before {
    content: 'through ';
    color: var(--muted);
  }
  .health .h-ok::before {
    content: 'ok ';
    color: var(--muted);
  }
  .health .h-num,
  .health .h-through,
  .health .h-ok {
    font-size: 13px;
  }
  .h-note td {
    display: block;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }
}

/* venues directory */
.borough h2 {
  font: 600 14px/1 ui-sans-serif, system-ui;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 32px 0 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.borough h2 span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
.venues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  column-gap: 24px;
}
.venues li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.v-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.v-name {
  font-weight: 600;
  text-decoration: none;
}
.v-name:hover {
  text-decoration: underline;
}
.v-count {
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.v-how {
  font-style: italic;
}
.sub a,
a.map {
  color: inherit;
  text-decoration-color: var(--line);
}
.sub a:hover {
  text-decoration-color: currentColor;
}
